You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
83 lines
2.0 KiB
83 lines
2.0 KiB
13 years ago
|
# Copyright 1999-2011 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Header: /var/cvsroot/gentoo-x86/sci-libs/xgks-pmel/xgks-pmel-2.5.5.ebuild,v 1.7 2011/06/21 14:44:33 jlec Exp $
|
||
|
|
||
|
inherit eutils fortran-2 toolchain-funcs multilib
|
||
|
|
||
|
DESCRIPTION="PMEL fork of XGKS, an X11-based version of the ANSI Graphical Kernel System."
|
||
|
HOMEPAGE="http://www.gentoogeek.org/viewvc/Linux/xgks-pmel/"
|
||
|
SRC_URI="http://www.gentoogeek.org/files/${P}.tar.gz"
|
||
|
LICENSE="UCAR-Unidata"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
|
||
|
IUSE="doc"
|
||
|
|
||
|
RDEPEND="
|
||
|
virtual/fortran
|
||
|
x11-libs/libX11"
|
||
|
|
||
|
DEPEND="${RDEPEND}
|
||
|
sys-devel/flex
|
||
|
sys-apps/groff"
|
||
|
|
||
|
src_unpack() {
|
||
|
unpack ${A}
|
||
|
cd "${S}"
|
||
|
epatch "${FILESDIR}"/aclocal.patch
|
||
|
}
|
||
|
|
||
|
src_compile() {
|
||
|
sed -i -e "s:lib64:$(get_libdir):g" port/master.mk.in \
|
||
|
fontdb/Makefile.in || die "sed 1 failed"
|
||
|
|
||
|
CFLAGS=${CFLAGS} LD_X11='-L/usr/$(get_libdir) -lX11' \
|
||
|
FC=$(tc-getFC) CC=$(tc-getCC) OS=linux \
|
||
|
./configure --prefix=/usr --exec_prefix=/usr/bin \
|
||
|
|| die "configure failed"
|
||
|
|
||
|
sed -i -e "s:port/all port/install:port/all:g" Makefile \
|
||
|
|| die "sed 2 failed"
|
||
|
|
||
|
# Fails parallel build, bug #295724
|
||
|
emake -j1 || die "make failed"
|
||
|
|
||
|
cd src/fortran
|
||
|
emake -j1 || die "make fortran failed"
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
cd "${S}"/progs
|
||
|
|
||
|
for tool in {defcolors,font,mi,pline,pmark}
|
||
|
do
|
||
|
newbin ${tool} xgks-${tool} || die
|
||
|
done
|
||
|
|
||
|
cd "${S}"
|
||
|
dolib.a src/lib/libxgks.a || die
|
||
|
|
||
|
dodoc COPYRIGHT HISTORY INSTALL README || die
|
||
|
doman doc/{xgks.3,xgks_synop.3} || die
|
||
|
if use doc; then
|
||
|
newdoc doc/binding/cbinding.me cbinding || die
|
||
|
newdoc doc/userdoc/userdoc.me userdoc || die
|
||
|
insinto /usr/share/doc/${P}/examples
|
||
|
doins progs/{hanoi.c,star.c} || die
|
||
|
fi
|
||
|
|
||
|
insinto /usr/include/xgks
|
||
|
doins src/lib/gks*.h || die
|
||
|
doins src/lib/gksm/gksm*.h || die
|
||
|
doins src/fortran/f*.h || die
|
||
|
doins src/lib/w*.h || die
|
||
|
doins src/lib/{input.h,metafile.h,polylines.h,polymarkers.h,text.h} \
|
||
|
|| die
|
||
|
|
||
|
insinto /usr/include
|
||
|
doins src/lib/xgks.h || die
|
||
|
doins port/udposix.h || die
|
||
|
|
||
|
insinto /usr/share/xgksfonts
|
||
|
doins fontdb/{[1-9],*.gksfont} || die
|
||
|
}
|