]> Pileus Git - ~andy/sunrise/commitdiff
app-text/mupdf: Version bump, cleaned up the CFLAGS situation in the build system.
authorMichael Weber <xmw@gentoo.org>
Sat, 5 Jun 2010 15:35:09 +0000 (15:35 +0000)
committerMichael Weber <xmw@gentoo.org>
Sat, 5 Jun 2010 15:35:09 +0000 (15:35 +0000)
svn path=/sunrise/; revision=10659

app-text/mupdf/ChangeLog
app-text/mupdf/Manifest
app-text/mupdf/files/mupdf-0.6-buildsystem.patch [new file with mode: 0644]
app-text/mupdf/files/mupdf-1170-buildsystem.patch [deleted file]
app-text/mupdf/mupdf-0.6.ebuild [moved from app-text/mupdf/mupdf-1170.ebuild with 81% similarity]

index 15689a44998083914bd2b29f24aff7648ce4ba7c..a33e2e8fd2b4243cdc94d1d00bb92c84d42c693f 100644 (file)
@@ -2,6 +2,11 @@
 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  05 Jun 2010; Michael Weber (xmw) <gentoo@xmw.de> +mupdf-0.6.ebuild,
+  +files/mupdf-0.6-buildsystem.patch, -mupdf-1170.ebuild,
+  -files/mupdf-1170-buildsystem.patch:
+  Version bump, cleaned up the CFLAGS situation in the build system.
+
   02 Jun 2010; Michael Weber (xmw) <gentoo@xmw.de> -mupdf-940.ebuild,
   +mupdf-1170.ebuild, +files/mupdf-1170-buildsystem.patch:
   Version bump. ftjam build system replaced by Makefile
index e4d7df26acddf1a0eeaf5929946df3eb990983dc..b1520039c772ed452ee50d6ac2856a83017fd89f 100644 (file)
@@ -1,5 +1,5 @@
-AUX mupdf-1170-buildsystem.patch 1267 RMD160 849e0073ccb27c6fcce2b0529529c31cb8807d23 SHA1 f204a88b2320495ef654b5c3b4332a155940c043 SHA256 c34ae16ed6ec8fcb20a025297e87f4abda97ec5c6823a91a9214baf8a419f613
-DIST mupdf-r1170.tar.gz 3606407 RMD160 909f34560d7e3109b15300afbf915119eefd5744 SHA1 6b36ac33feb5dfed386746166a87123ab914b87d SHA256 00113927c82945288ab5b6530c626d8701b1c2abc1077eea3fb25b9db066f17e
-EBUILD mupdf-1170.ebuild 1385 RMD160 618faefa6915dd8eeec72cc844bae65caf8e75f4 SHA1 304574db86b31e66a0de15481f8ef3915d22075d SHA256 7ffbf678a5f5f0b1e502c57545b80e8e2fbb9f9e2e226c7b7b9e142a8ea81681
-MISC ChangeLog 812 RMD160 234451333e09911fa2828216f72e3bbb3fa33fa8 SHA1 7086edac57e10b5d58f607004d6d68910e5a0a65 SHA256 8bfc1dae2c5fd8d12fc93522568a5f944cfe656797565781d05c6cf92acbeb8f
+AUX mupdf-0.6-buildsystem.patch 1446 RMD160 dbc139d01e47658a2339b6b8b65fe9fa8bfd9870 SHA1 0f4d9b7b47a24590623ef606ffbd6b878b2327a0 SHA256 bf6c539e530fe30f0bfb4c1c3f0e916d07ac18f035764e5afaf6b280c900b06f
+DIST mupdf-0.6-source.tar.gz 3607245 RMD160 50b1ed1c3c07613a1dbb19cfe63cb47d4f2ae2fe SHA1 dd501da6f50c686c6d519fe6ae7c951d2e2d7e1c SHA256 6f87c4f113ee9e0f4bdfd3a316ef44052edc4febc8f7b531c4a3f44ffe149605
+EBUILD mupdf-0.6.ebuild 1469 RMD160 599be1f9fe355c0e2088a58121786ade7b0242d1 SHA1 deed5087824b81622626fe7da3566f7ff5ec5a95 SHA256 859abf89c34ee282bf62fe2e94226e395a09b414f6adaf9d39c76f7b68f221f5
+MISC ChangeLog 1049 RMD160 3df28ef58476e7c1b74eb6658fefbad9fab39e94 SHA1 9a83cec7979a5a81fee048387029e8ab09c87f86 SHA256 7cfc8000e4df13c7183d1cf354f74796ab1459aad504de924b5888ae7d79bacb
 MISC metadata.xml 229 RMD160 f0f6417bec31ce8baba6d476664f7210c8c84c98 SHA1 e5f94f5caadc6f843fc90bb7959570cd503676fd SHA256 3b08fca3c878bdfc4e7639f477dd542d55a4ab5dce39a475e82633071d13eb3f
diff --git a/app-text/mupdf/files/mupdf-0.6-buildsystem.patch b/app-text/mupdf/files/mupdf-0.6-buildsystem.patch
new file mode 100644 (file)
index 0000000..5608672
--- /dev/null
@@ -0,0 +1,51 @@
+Michael Weber Jun 5th 2010
+  Possibility to pass /usr/lib64 on multilib/64bit systems.
+  Dropped the hard compiler options for compartibility on older chips.
+
+--- Makefile   2010-06-05 16:38:48.000000000 +0200
++++ Makefile   2010-06-05 16:41:43.000000000 +0200
+@@ -7,6 +7,7 @@
+ build ?= debug
+ prefix ?= /usr/local
++libprefix ?= $(prefix)/lib
+ OBJDIR := build/$(build)
+ GENDIR := build/generated
+@@ -314,8 +315,8 @@
+       rm -rf build
+ install: $(DIRS) $(APPS) $(MUPDF_LIB)
+-      install -d $(prefix)/bin $(prefix)/lib $(prefix)/include
++      install -d $(prefix)/bin $(libprefix) $(prefix)/include
+       install $(APPS) $(prefix)/bin
+-      install $(MUPDF_LIB) $(prefix)/lib
++      install $(MUPDF_LIB) $(libprefix)
+       install $(MUPDF_HDR) $(prefix)/include
+--- Makerules  2010-06-05 16:38:48.000000000 +0200
++++ Makerules  2010-06-05 16:49:44.000000000 +0200
+@@ -4,8 +4,8 @@
+ OS := $(OS:MINGW%=MINGW)
+ LIBS := -ljbig2dec -lopenjpeg -ljpeg -lz -lm
+-CFLAGS := -Wall --std=gnu99 -Ifitz -Imupdf $(THIRD_INCS)
+-LDFLAGS =
++CFLAGS += -Wall --std=gnu99 -Ifitz -Imupdf $(THIRD_INCS)
++LDFLAGS +=
+ CC = cc
+ LD = $(CC)
+ AR = ar
+@@ -23,10 +23,10 @@
+ CFLAGS += `pkg-config --cflags freetype2`
+ LDFLAGS += `pkg-config --libs freetype2`
+ endif
+-X11LIBS = -lX11 -lXext
++X11LIBS = `pkg-config --libs x11 xext`
+ PDFVIEW_EXE = $(X11VIEW_EXE)
+ ifeq  "$(build)" "release"
+-CFLAGS += -mmmx -ftree-vectorize -msse -msse2 -march=k8 -DARCH_X86
++CFLAGS += 
+ ARCH_SRC = archx86.c
+ endif
+ endif
diff --git a/app-text/mupdf/files/mupdf-1170-buildsystem.patch b/app-text/mupdf/files/mupdf-1170-buildsystem.patch
deleted file mode 100644 (file)
index 76a19db..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
---- Makefile.old       2010-05-27 19:22:34.000000000 +0200
-+++ Makefile   2010-05-29 19:24:55.000000000 +0200
-@@ -7,6 +7,7 @@
- build ?= debug
- prefix ?= /usr/local
-+libprefix ?= $(prefix)/lib
- OBJDIR := build/$(build)
- GENDIR := build/generated
-@@ -301,7 +302,8 @@
-       rm -rf build
- install: $(DIRS) $(APPS) $(MUPDF_LIB)
--      install $(APPS) $(prefix)/bin
--      install $(MUPDF_LIB) $(prefix)/lib
--      install $(MUPDF_HDR) $(prefix)/include
-+      install -d $(prefix)/bin $(libprefix) $(prefix)/include
-+      install $(APPS) -t $(prefix)/bin
-+      install $(MUPDF_LIB) -t $(libprefix)
-+      install $(MUPDF_HDR) -t $(prefix)/include
---- Makerules.old      2010-05-20 18:37:16.000000000 +0200
-+++ Makerules  2010-05-29 19:29:49.000000000 +0200
-@@ -4,8 +4,8 @@
- OS := $(OS:MINGW%=MINGW)
- LIBS := -ljbig2dec -lopenjpeg -lfreetype -ljpeg -lz -lm
--CFLAGS := -Wall --std=gnu99 -Ifitz -Imupdf
--LDFLAGS =
-+CFLAGS += -Wall --std=gnu99 -Ifitz -Imupdf
-+LDFLAGS +=
- CC = cc
- LD = $(CC)
- AR = ar
-@@ -21,7 +21,7 @@
- ifeq "$(OS)" "Linux"
- CFLAGS += `pkg-config --cflags freetype2`
- LDFLAGS += `pkg-config --libs freetype2`
--X11LIBS = -lX11 -lXext
-+X11LIBS += `pkg-config --libs x11 xext`
- PDFVIEW_EXE = $(X11VIEW_EXE)
- ifeq  "$(build)" "release"
- CFLAGS += -mmmx -ftree-vectorize -msse -msse2 -march=k8 -DARCH_X86
similarity index 81%
rename from app-text/mupdf/mupdf-1170.ebuild
rename to app-text/mupdf/mupdf-0.6.ebuild
index 31be9f4d04ca45e68f10603ee6a8a8b8d378da8f..d0546bb7d4ad9feea12bdede6ff4ee9840469745 100644 (file)
@@ -4,12 +4,12 @@
 
 EAPI=2
 
-inherit eutils multilib toolchain-funcs
+inherit eutils flag-o-matic multilib toolchain-funcs
 
 DESCRIPTION="a lightweight PDF viewer and toolkit written in portable C"
 HOMEPAGE="http://mupdf.com/"
-SRC_URI="http://${PN}.com/download/${PN}-r${PV}.tar.gz
-       http://xmw.de/mirror/${PN}/${PN}-r${PV}.tar.gz"
+SRC_URI="http://${PN}.com/download/source/${P}-source.tar.gz
+       http://xmw.de/mirror/${PN}/${P}-source.tar.gz"
 
 LICENSE="GPL-3"
 SLOT="0"
@@ -32,10 +32,12 @@ src_prepare() {
 }
 
 src_compile() {
+       use x86 && append-cflags -DARCH_X86
+       use amd64 && append-cflags -DARCH_X86_64
+
        my_pdfexe=
-       if ! use X ; then
-               my_pdfexe="PDFVIEW_EXE="
-       fi
+       use X || my_pdfexe="PDFVIEW_EXE="
+
        emake build=release ${my_pdfexe} CC="$(tc-getCC)" || die
 }