summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2008-12-15 22:09:28 +0000
committerJeroen Roovers <jer@gentoo.org>2008-12-15 22:09:28 +0000
commitce10b04ef6f842572d1e4ead5c976e1a04e7f52e (patch)
tree2b201a6d2c0a1c09303d0158fd73e85bdd0d34e5
parentFix building w/ gcc-4.3, #250684 (diff)
downloadgentoo-2-ce10b04ef6f842572d1e4ead5c976e1a04e7f52e.tar.gz
gentoo-2-ce10b04ef6f842572d1e4ead5c976e1a04e7f52e.tar.bz2
gentoo-2-ce10b04ef6f842572d1e4ead5c976e1a04e7f52e.zip
Fix ${S}. Do not build bzip2/ or link to it (still bug #249140).
(Portage version: 2.2_rc17/cvs/Linux 2.6.25-gentoo-r7-JeR i686)
-rw-r--r--app-admin/analog/ChangeLog6
-rw-r--r--app-admin/analog/analog-6.0-r2.ebuild8
-rw-r--r--app-admin/analog/analog-6.0-r3.ebuild6
-rw-r--r--app-admin/analog/files/analog-6.0-bzip2.patch31
4 files changed, 40 insertions, 11 deletions
diff --git a/app-admin/analog/ChangeLog b/app-admin/analog/ChangeLog
index 264fc1f8f552..d2b4074a18fa 100644
--- a/app-admin/analog/ChangeLog
+++ b/app-admin/analog/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for app-admin/analog
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/analog/ChangeLog,v 1.42 2008/12/15 06:50:43 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/analog/ChangeLog,v 1.43 2008/12/15 22:09:28 jer Exp $
+
+ 15 Dec 2008; Jeroen Roovers <jer@gentoo.org> files/analog-6.0-bzip2.patch,
+ analog-6.0-r2.ebuild, analog-6.0-r3.ebuild:
+ Fix ${S}. Do not build bzip2/ or link to it (still bug #249140).
*analog-6.0-r3 (15 Dec 2008)
*analog-6.0-r2 (15 Dec 2008)
diff --git a/app-admin/analog/analog-6.0-r2.ebuild b/app-admin/analog/analog-6.0-r2.ebuild
index d9eacc4cdc4c..b28cb80da14f 100644
--- a/app-admin/analog/analog-6.0-r2.ebuild
+++ b/app-admin/analog/analog-6.0-r2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/analog/analog-6.0-r2.ebuild,v 1.1 2008/12/15 06:50:43 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/analog/analog-6.0-r2.ebuild,v 1.2 2008/12/15 22:09:28 jer Exp $
inherit eutils toolchain-funcs
@@ -32,17 +32,15 @@ pkg_setup() {
fi
}
-S="${WORKDIR}"/${P}/src
-
src_unpack() {
unpack ${A}
- cd "${S}"
+ cd "${S}"/src
epatch "${FILESDIR}/${PN}-5.1-gentoo.diff"
epatch "${FILESDIR}/${P}-bzip2.patch"
}
src_compile() {
- tc-export CC || die "ohnoz"
+ tc-export CC
emake || die "make failed"
}
diff --git a/app-admin/analog/analog-6.0-r3.ebuild b/app-admin/analog/analog-6.0-r3.ebuild
index 4bfe597eac83..bb517580b621 100644
--- a/app-admin/analog/analog-6.0-r3.ebuild
+++ b/app-admin/analog/analog-6.0-r3.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/analog/analog-6.0-r3.ebuild,v 1.1 2008/12/15 06:50:43 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/analog/analog-6.0-r3.ebuild,v 1.2 2008/12/15 22:09:28 jer Exp $
EAPI=2
@@ -21,11 +21,9 @@ DEPEND=">=dev-libs/libpcre-3.4
media-libs/jpeg
media-libs/libpng"
-S="${WORKDIR}"/${P}/src
-
src_unpack() {
unpack ${A}
- cd "${S}"
+ cd "${S}"/src
epatch "${FILESDIR}/${PN}-5.1-gentoo.diff"
epatch "${FILESDIR}/${P}-bzip2.patch"
}
diff --git a/app-admin/analog/files/analog-6.0-bzip2.patch b/app-admin/analog/files/analog-6.0-bzip2.patch
index 5a0c23d7da48..30ec4ae8461e 100644
--- a/app-admin/analog/files/analog-6.0-bzip2.patch
+++ b/app-admin/analog/files/analog-6.0-bzip2.patch
@@ -3,7 +3,7 @@ Use system bzip2 library. Get CC and CFLAGS from environment.
--- analog-6.0/src/Makefile.orig 2004-12-19 14:51:30.000000000 +0100
-+++ analog-6.0/src/Makefile 2008-12-15 07:34:09.000000000 +0100
++++ analog-6.0/src/Makefile 2008-12-15 22:50:04.000000000 +0100
@@ -2,16 +2,16 @@
# Please read docs/Readme.html, or http://www.analog.cx/
# This is a general Unix-like Makefile: Makefiles for other OS's can be found
@@ -33,3 +33,32 @@ Use system bzip2 library. Get CC and CFLAGS from environment.
# need -lm LAST
# if you defined HAVE_GD above you also need -lgd -lpng -ljpeg -lz
# if you defined HAVE_ZLIB above you also need -lz
+@@ -54,7 +54,7 @@
+ input.o macinput.o macstuff.o output.o output2.o outcro.o outhtml.o \
+ outlatex.o outplain.o outxhtml.o outxml.o process.o settings.o sort.o \
+ tree.o utils.o win32.o
+-SUBDIRS = bzip2 libgd libpng pcre unzip zlib
++SUBDIRS = libgd libpng pcre unzip zlib
+ SUBDIROBJS = libgd/gd.o libgd/gd_io.o libgd/gd_io_file.o libgd/gd_png.o \
+ libgd/gdfontf.o libgd/gdfonts.o libgd/gdtables.o \
+ libpng/png.o libpng/pngerror.o libpng/pngmem.o libpng/pngset.o \
+@@ -63,9 +63,7 @@
+ zlib/adler32.o zlib/compress.o zlib/crc32.o zlib/deflate.o \
+ zlib/gzio.o zlib/infblock.o zlib/infcodes.o zlib/inffast.o \
+ zlib/inflate.o zlib/inftrees.o zlib/infutil.o zlib/trees.o \
+- zlib/uncompr.o zlib/zutil.o unzip/ioapi.o unzip/unzip.o \
+- bzip2/bzlib.o bzip2/blocksort.o bzip2/compress.o bzip2/crctable.o \
+- bzip2/decompress.o bzip2/huffman.o bzip2/randtable.o
++ zlib/uncompr.o zlib/zutil.o unzip/ioapi.o unzip/unzip.o
+ HEADERS = anlghead.h anlghea2.h anlghea3.h anlghea4.h macdir.h \
+ pcre/pcre.h libgd/gd.h libgd/gdfontf.h libgd/gdfonts.h unzip/unzip.h \
+ zlib/zlib.h bzip2/bzlib.h
+@@ -77,8 +75,6 @@
+
+ # There doesn't seem to be a good way to write all these rules in a generic
+ # form that works for all "make" programs
+-bzip2: ALWAYS
+- cd bzip2 && $(MAKE) 'CC=$(CC)' 'ALLCFLAGS=$(ALLCFLAGS)'
+
+ libgd: ALWAYS
+ cd libgd && $(MAKE) 'CC=$(CC)' 'ALLCFLAGS=$(ALLCFLAGS)'