/[gentoo-x86]/sci-libs/xgks-pmel/xgks-pmel-2.5.5.ebuild
Gentoo

Contents of /sci-libs/xgks-pmel/xgks-pmel-2.5.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Tue Oct 16 19:16:53 2012 UTC (2 years, 4 months ago) by jlec
Branch: MAIN
Changes since 1.8: +1 -3 lines
sci-libs/xgks-pmel: Remove virtual/fortran and always call fortran-2_pkg_setup as intend by the updated fortran-2.eclass

(Portage version: 2.2.0_alpha138/cvs/Linux x86_64, signed Manifest commit with key 70EB7916)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-libs/xgks-pmel/xgks-pmel-2.5.5.ebuild,v 1.8 2012/05/25 07:51:35 scarabeus Exp $
4
5 EAPI=4
6
7 inherit eutils fortran-2 toolchain-funcs multilib
8
9 DESCRIPTION="PMEL fork of XGKS, an X11-based version of the ANSI Graphical Kernel System."
10 HOMEPAGE="http://www.gentoogeek.org/viewvc/Linux/xgks-pmel/"
11 SRC_URI="http://www.gentoogeek.org/files/${P}.tar.gz"
12
13 LICENSE="UCAR-Unidata"
14 SLOT="0"
15 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
16 IUSE="doc"
17
18 RDEPEND="
19 x11-libs/libX11"
20 DEPEND="${RDEPEND}
21 sys-devel/flex
22 sys-apps/groff"
23
24 src_prepare() {
25 epatch "${FILESDIR}"/aclocal.patch
26 }
27
28 src_configure() {
29 sed -i -e "s:lib64:$(get_libdir):g" port/master.mk.in \
30 fontdb/Makefile.in || die
31
32 CFLAGS=${CFLAGS} LD_X11='-L/usr/$(get_libdir) -lX11' \
33 FC=$(tc-getFC) CC=$(tc-getCC) OS=linux \
34 ./configure --prefix=/usr --exec_prefix=/usr/bin \
35 || die
36 }
37
38 src_compile() {
39 sed -i -e "s:port/all port/install:port/all:g" Makefile \
40 || die
41
42 # Fails parallel build, bug #295724
43 emake -j1
44
45 cd src/fortran
46 emake -j1
47 }
48
49 src_install() {
50 cd "${S}"/progs
51
52 for tool in {defcolors,font,mi,pline,pmark}; do
53 newbin ${tool} xgks-${tool}
54 done
55
56 cd "${S}"
57 dolib.a src/lib/libxgks.a
58
59 dodoc COPYRIGHT HISTORY INSTALL README
60 doman doc/{xgks.3,xgks_synop.3}
61 if use doc; then
62 newdoc doc/binding/cbinding.me cbinding
63 newdoc doc/userdoc/userdoc.me userdoc
64 insinto /usr/share/doc/${P}/examples
65 doins progs/{hanoi.c,star.c}
66 fi
67
68 insinto /usr/include/xgks
69 doins src/lib/gks*.h
70 doins src/lib/gksm/gksm*.h
71 doins src/fortran/f*.h
72 doins src/lib/w*.h
73 doins src/lib/{input.h,metafile.h,polylines.h,polymarkers.h,text.h}
74
75 insinto /usr/include
76 doins src/lib/xgks.h
77 doins port/udposix.h
78
79 insinto /usr/share/xgksfonts
80 doins fontdb/{[1-9],*.gksfont}
81 }

  ViewVC Help
Powered by ViewVC 1.1.20