Gentoo Archives: gentoo-commits

From: "Steve Arnold (nerdboy)" <nerdboy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-libs/xgks-pmel: metadata.xml ChangeLog xgks-pmel-2.5.5.ebuild
Date: Thu, 30 Apr 2009 06:36:26
Message-Id: E1LzPsd-0003Us-Tv@stork.gentoo.org
1 nerdboy 09/04/30 06:36:23
2
3 Added: metadata.xml ChangeLog xgks-pmel-2.5.5.ebuild
4 Log:
5 New ebuild for PMEL's xgks library, a required dependency for Ferret.
6 (Portage version: 2.2_rc31/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 sci-libs/xgks-pmel/metadata.xml
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/xgks-pmel/metadata.xml?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/xgks-pmel/metadata.xml?rev=1.1&content-type=text/plain
13
14 Index: metadata.xml
15 ===================================================================
16 <?xml version="1.0" encoding="UTF-8"?>
17 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
18 <pkgmetadata>
19 <herd>sci-geosciences</herd>
20 <maintainer>
21 <email>nerdboy@g.o</email>
22 </maintainer>
23 <longdescription>
24 XGKS is a level 2C implementation of the ANSI Graphical Kernel System (GKS) for
25 X-windows, with a C and Fortran interface. This version has support for PMEL's
26 Ferret visualization tool.
27 </longdescription>
28 </pkgmetadata>
29
30
31
32 1.1 sci-libs/xgks-pmel/ChangeLog
33
34 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/xgks-pmel/ChangeLog?rev=1.1&view=markup
35 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/xgks-pmel/ChangeLog?rev=1.1&content-type=text/plain
36
37 Index: ChangeLog
38 ===================================================================
39 # ChangeLog for sci-libs/xgks-pmel
40 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
41 # $Header: /var/cvsroot/gentoo-x86/sci-libs/xgks-pmel/ChangeLog,v 1.1 2009/04/30 06:36:23 nerdboy Exp $
42
43 *xgks-pmel-2.5.5 (30 Apr 2009)
44
45 30 Apr 2009; Steve Arnold <nerdboy@g.o> +files/aclocal.patch,
46 +metadata.xml, +xgks-pmel-2.5.5.ebuild:
47 New ebuild for PMEL's xgks library, another required dependency for Ferret.
48 Still needs merging with the newer (but unloved) code on sourceforge.
49
50
51
52
53 1.1 sci-libs/xgks-pmel/xgks-pmel-2.5.5.ebuild
54
55 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/xgks-pmel/xgks-pmel-2.5.5.ebuild?rev=1.1&view=markup
56 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/xgks-pmel/xgks-pmel-2.5.5.ebuild?rev=1.1&content-type=text/plain
57
58 Index: xgks-pmel-2.5.5.ebuild
59 ===================================================================
60 # Copyright 1999-2009 Gentoo Foundation
61 # Distributed under the terms of the GNU General Public License v2
62 # $Header: /var/cvsroot/gentoo-x86/sci-libs/xgks-pmel/xgks-pmel-2.5.5.ebuild,v 1.1 2009/04/30 06:36:23 nerdboy Exp $
63
64 inherit eutils fortran toolchain-funcs multilib
65
66 DESCRIPTION="PMEL fork of XGKS, an X11-based version of the ANSI Graphical Kernel System."
67 HOMEPAGE="http://www.gentoogeek.org/viewvc/Linux/xgks-pmel/"
68 SRC_URI="http://www.gentoogeek.org/files/${P}.tar.gz"
69 LICENSE="UCAR-Unidata"
70 SLOT="0"
71 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
72 IUSE="doc"
73
74 RDEPEND="x11-libs/libX11"
75
76 DEPEND="${RDEPEND}
77 sys-devel/flex
78 sys-apps/groff"
79
80 src_unpack() {
81 unpack ${A}
82 cd "${S}"
83 epatch "${FILESDIR}"/aclocal.patch
84 }
85
86 src_compile() {
87 sed -i -e "s:lib64:$(get_libdir):g" port/master.mk.in \
88 fontdb/Makefile.in || die "sed 1 failed"
89
90 CFLAGS=${CFLAGS} LD_X11='-L/usr/$(get_libdir) -lX11' \
91 FC=${FORTRANC} CC=$(tc-getCC) OS=linux \
92 ./configure --prefix=/usr --exec_prefix=/usr/bin \
93 || die "configure failed"
94
95 sed -i -e "s:port/all port/install:port/all:g" Makefile \
96 || die "sed 2 failed"
97
98 make || die "make failed"
99
100 cd src/fortran
101 make || die "make fortran failed"
102 }
103
104 src_install() {
105 dobin progs/{defcolors,font,hanoi,mi,pline,pmark,star} || die
106 dolib.a src/lib/libxgks.a || die
107
108 dodoc COPYRIGHT HISTORY INSTALL README || die
109 doman doc/{xgks.3,xgks_synop.3}
110 if use doc; then
111 newdoc doc/binding/cbinding.me cbinding || die
112 newdoc doc/userdoc/userdoc.me userdoc || die
113 fi
114
115 insinto /usr/include
116 doins src/lib/xgks.h || die
117
118 insinto /usr/share/xgksfonts
119 doins fontdb/{[1-9],*.gksfont} || die
120 }