/[gentoo-x86]/x11-misc/xrmap/xrmap-2.29.ebuild
Gentoo

Contents of /x11-misc/xrmap/xrmap-2.29.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Tue May 5 18:04:11 2009 UTC (5 years, 8 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +10 -10 lines
Fix repoman warnings
(Portage version: 2.1.6.13/cvs/Linux x86_64)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/x11-misc/xrmap/xrmap-2.29.ebuild,v 1.9 2007/03/09 07:57:25 drac Exp $
4
5 DESCRIPTION="a X client for generating images of the Earth and manipulating the CIA World data bank"
6 HOMEPAGE="http://frmas.free.fr/li_1.htm#_Xrmap_"
7 FULL_DIST="2.10"
8 SRC_URI="ftp://ftp.ac-grenoble.fr/ge/geosciences/${PN}/${PN}-${FULL_DIST}.tgz
9 ftp://ftp.ac-grenoble.fr/ge/geosciences/${PN}/${P}.tar.bz2
10 ftp://ftp.ac-grenoble.fr/ge/geosciences/CIA_WDB2.jpd.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="x86 ~amd64 ~ppc"
15 IUSE="zlib"
16
17 RDEPEND="x11-libs/libX11
18 x11-libs/libXpm"
19 DEPEND="${RDEPEND}
20 x11-misc/imake
21 x11-proto/xproto
22 media-gfx/imagemagick
23 app-text/gv
24 sys-apps/less
25 >=sys-apps/sed-4
26 zlib? ( sys-libs/zlib )"
27
28 src_unpack() {
29 unpack ${A}
30 rm -rf "${S}"
31 mv "${WORKDIR}"/${PN}-${FULL_DIST} "${S}"
32 unpack ${A}
33 cd "${S}"/editkit && xmkmf || die
34 }
35
36 src_compile() {
37 use zlib || sed -i 's/-DZLIB\|-lz//g' Makefile.noimake || die
38
39 sed -e 's,^\(X11DIR=\).*,\1/usr/,g' \
40 -e 's,^\(EDITOR=\).*,\1less,g' \
41 -e 's,^\(SHAREDIR=\).*,\1/usr/share/xrmap,g' \
42 -e 's,^\(CCOPTIONS=\)-O6 -g,\1${CFLAGS},g' Makefile.noimake > Makefile || die
43
44 sed -i -e 's,^\(#define RCFILE \)SHAREDIR\",\1\"/etc/xrmap,g' \
45 -e 's,^\(#define SHAREDIR \"/usr/share/\),\1x,g' xrmap.h || die
46 emake || die
47 cd tools
48 emake || die
49 cd jpd2else
50 sed -i 's,^\(#define DEFAULT_JPD_FILE \"/usr/share/\),\1x,g' jpd2else.c || die
51 emake || die
52 cd ../cbd2else
53 emake || die
54 }
55
56 src_install() {
57 dobin xrmap tools/preproc tools/jpd2else/jpd2else tools/cbd2else/cbd2else || die
58 dodir /usr/share/${PN}/ || die
59 dodir /etc/xrmap || die
60 cp -r {i18n,Locations,factbook,anthems,flags,hymns,pixmaps} "${D}"/usr/share/${PN}/ || die
61 cp Xrmaprc "${D}"/etc/xrmap || die
62 cp "${WORKDIR}"/CIA_WDB2.jpd "${D}"/usr/share/${PN}/ || die
63 dodoc CHANGES README TODO WARNING tools/cbd2else/README.cbd tools/jpd2else/README.jpd tools/rez2else/README.rez || die
64
65 cd "${S}"
66 newman xrmap.man xrmap.1 || die "newman failed"
67 }

  ViewVC Help
Powered by ViewVC 1.1.20