diff options
author | Kevin McCarthy <signals@gentoo.org> | 2011-03-25 17:10:45 +0000 |
---|---|---|
committer | Kevin McCarthy <signals@gentoo.org> | 2011-03-25 17:10:45 +0000 |
commit | 8cbbc0e974db2d8c435afd7a1e58bbc0b2ea1bb6 (patch) | |
tree | e052ebe589389924e5556fae6f429a4bd0c37107 /x11-misc | |
parent | Improve kernel config check. (diff) | |
download | gentoo-2-8cbbc0e974db2d8c435afd7a1e58bbc0b2ea1bb6.tar.gz gentoo-2-8cbbc0e974db2d8c435afd7a1e58bbc0b2ea1bb6.tar.bz2 gentoo-2-8cbbc0e974db2d8c435afd7a1e58bbc0b2ea1bb6.zip |
Respect LDFLAGS, CFLAGS, CC #342211. Fix all QA warnings. Remove unneeded imake DEP. RDEPEND timidity++. Clean up (R)DEPENDS. Change default browser from dillo to xdg-open. Install current data files. Install required earthview bin/data. General ebuild cleanup.
(Portage version: 2.2.0_alpha28/cvs/Linux x86_64)
Diffstat (limited to 'x11-misc')
-rw-r--r-- | x11-misc/xrmap/ChangeLog | 13 | ||||
-rw-r--r-- | x11-misc/xrmap/files/xrmap-2.33-parallel-make.patch | 45 | ||||
-rw-r--r-- | x11-misc/xrmap/xrmap-2.33-r1.ebuild | 97 |
3 files changed, 153 insertions, 2 deletions
diff --git a/x11-misc/xrmap/ChangeLog b/x11-misc/xrmap/ChangeLog index b28f5d4108ac..a0b2e1cc2e35 100644 --- a/x11-misc/xrmap/ChangeLog +++ b/x11-misc/xrmap/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for x11-misc/xrmap -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/x11-misc/xrmap/ChangeLog,v 1.20 2010/06/23 12:24:47 hwoarang Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/x11-misc/xrmap/ChangeLog,v 1.21 2011/03/25 17:10:45 signals Exp $ + +*xrmap-2.33-r1 (25 Mar 2011) + + 25 Mar 2011; Kevin McCarthy <signals@gentoo.org> +xrmap-2.33-r1.ebuild, + +files/xrmap-2.33-parallel-make.patch: + Respect LDFLAGS, CFLAGS, CC #342211. Fix all QA warnings. Remove unneeded + imake DEP. RDEPEND timidity++. Clean up (R)DEPENDS. Change default browser + from dillo to xdg-open. Install current data files. Install required + earthview bin/data. General ebuild cleanup. 23 Jun 2010; Markos Chandras <hwoarang@gentoo.org> xrmap-2.33.ebuild: Fix makefile to allow parallel compilation. Fixes bug #323065 diff --git a/x11-misc/xrmap/files/xrmap-2.33-parallel-make.patch b/x11-misc/xrmap/files/xrmap-2.33-parallel-make.patch new file mode 100644 index 000000000000..64681c6c119a --- /dev/null +++ b/x11-misc/xrmap/files/xrmap-2.33-parallel-make.patch @@ -0,0 +1,45 @@ +Parallel make fixes + +Patch by Kevin McCarthy <signals@gentoo.org> + +--- Makefile.noimake ++++ Makefile.noimake +@@ -21,12 +21,12 @@ + + all: explorer.o image.o xrmap.o + gcc -o xrmap explorer.o image.o xrmap.o $(LDOPTIONS) +- cd editkit ; make -f Makefile.kit DESTDIR=$(DESTDIR) +- cd earthview ; make DESTDIR=$(DESTDIR) ++ $(MAKE) -C editkit -f Makefile.kit DESTDIR=$(DESTDIR) ++ $(MAKE) -C earthview DESTDIR=$(DESTDIR) + @cat EXTRADATA + + numdefs.h: +- cd tools ; make ++ $(MAKE) -C tools + + explorer.o: xrmap.h version.h bitmaps.h numdefs.h menudefs.h xrmap.c + gcc $(CCOPTIONS) -c explorer.c +--- tools/Makefile ++++ tools/Makefile +@@ -3,16 +3,16 @@ + ./preproc > ../numdefs.h + + locutils: +- cd locutils; make ++ $(MAKE) -C locutils + + cbd2else: +- cd cbd2else; make ++ $(MAKE) -C cbd2else + + jpd2else: +- cd jpd2else; make ++ $(MAKE) -C jpd2else + + rez2else: +- cd rez2else; make ++ $(MAKE) -C rez2else + + world: locutils cbd2else jpd2else rez2else + diff --git a/x11-misc/xrmap/xrmap-2.33-r1.ebuild b/x11-misc/xrmap/xrmap-2.33-r1.ebuild new file mode 100644 index 000000000000..d27a1c8969ef --- /dev/null +++ b/x11-misc/xrmap/xrmap-2.33-r1.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-misc/xrmap/xrmap-2.33-r1.ebuild,v 1.1 2011/03/25 17:10:45 signals Exp $ + +EAPI=2 +inherit eutils toolchain-funcs + +FLAGS_VER=2.9 +ANTHEMS_VER=1.3 +HYMNS_VER=1.4 +FACTBOOK_VER=2008 +DESCRIPTION="a X client for generating images of the Earth and manipulating the CIA World data bank" +HOMEPAGE="http://frmas.free.fr/li_1.htm#_Xrmap_" +SRC_URI="ftp://ftp.ac-grenoble.fr/ge/geosciences/${PN}/${P}.tar.bz2 + ftp://ftp.ac-grenoble.fr/ge/geosciences/${PN}/data/factbook_html_${FACTBOOK_VER}.tar.bz2 + ftp://ftp.ac-grenoble.fr/ge/geosciences/${PN}/data/anthems-${ANTHEMS_VER}.tar.bz2 + ftp://ftp.ac-grenoble.fr/ge/geosciences/${PN}/data/flags-${FLAGS_VER}-xpm_150.tar.bz2 + ftp://ftp.ac-grenoble.fr/ge/geosciences/${PN}/data/hymns-${HYMNS_VER}.tar.bz2 + ftp://ftp.ac-grenoble.fr/ge/geosciences/${PN}/data/earthdata_low_res.tar.bz2 + ftp://ftp.ac-grenoble.fr/ge/geosciences/CIA_WDB2.jpd.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="zlib" + +CDEPEND="x11-libs/libX11 + x11-libs/libXpm + zlib? ( sys-libs/zlib )" +RDEPEND="${CDEPEND} + x11-misc/xdg-utils + app-text/gv + || ( media-gfx/imagemagick media-gfx/graphicsmagick[imagemagick] ) + sys-apps/less + media-sound/timidity++" +DEPEND="${CDEPEND} + x11-proto/xproto + >=sys-apps/sed-4" + +pkg_setup() { + tc-export CC +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-Makefile.kit.patch \ + "${FILESDIR}"/${P}-as-needed.patch \ + "${FILESDIR}"/${P}-parallel-make.patch + use zlib || sed -i 's/-DZLIB\|-lz//g' Makefile.noimake || die + + sed -e 's,^\(X11DIR=\).*,\1/usr/,g' \ + -e 's,^\(EDITOR=\).*,\1less,g' \ + -e 's,^\(SHAREDIR=\).*,\1/usr/share/xrmap,g' \ + -e 's,^\(CCOPTIONS=\)-O6 -g,\1${CFLAGS},g' \ + -e 's,^\(LDOPTIONS=\)-O6 -g,\1${LDFLAGS},g' \ + -e 's,gcc,$(CC),' \ + Makefile.noimake > Makefile || die + sed -i 's,^\(#define DEFAULT_JPD_FILE \"/usr/share/\),\1x,g' \ + tools/jpd2else/jpd2else.c || die + sed -i -e 's,^\(#define RCFILE \)SHAREDIR\",\1\"/etc/xrmap,g' \ + -e 's,^\(#define SHAREDIR \"/usr/share/\),\1x,g' xrmap.h || die + # bug #323065 + sed -i "/^image.o/s/image.o:/& numdefs.h/" Makefile || die + # Respect CFLAGS, LDFLAGS, CC + sed -i -e 's,cc,$(CC) $(CFLAGS) $(LDFLAGS),' tools/Makefile || die + sed -i -e 's,gcc,$(CC) $(CFLAGS) $(LDFLAGS),' \ + tools/jpd2else/Makefile tools/cbd2else/Makefile \ + earthview/Makefile editkit/Makefile.kit || die + # Fix implicit decl of strlen + sed -i -e '3 i #include <string.h>' tools/preproc.c || die + # Fix array subscript below bounds (Eliminates unnecessary cast to char) + sed -i -e '2495 s/(char)//' xrmap.c || die + # Fix datadir for earthview + sed -i -e 's,^DATADIR=.*$,DATADIR=/usr/share/xrmap/earthdata,' earthview/Makefile || die +} + +src_compile() { + emake HTML_VIEWER="xdg-open" || die + emake -C tools || die + emake -C tools/jpd2else || die + emake -C tools/cbd2else || die +} + +src_install() { + dobin xrmap tools/preproc tools/jpd2else/jpd2else tools/cbd2else/cbd2else \ + earthview/earthview || die + dodir /etc/xrmap || die + insinto /etc/xrmap + doins Xrmaprc || die + dodoc CHANGES README TODO tools/cbd2else/README.cbd tools/jpd2else/README.jpd tools/rez2else/README.rez || die + newman xrmap.man xrmap.1 || die "newman failed" + mv "${WORKDIR}"/hymns-${HYMNS_VER} hymns || die + mv "${WORKDIR}"/anthems-${ANTHEMS_VER} anthems || die + dodir /usr/share/${PN}/ || die + insinto /usr/share/${PN} + doins -r i18n hymns anthems Locations pixmaps \ + "${WORKDIR}"/{factbook,flags,earthdata,CIA_WDB2.jpd} || die +} |