mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
dev-util/sgb: Bump to EAPI 7
Closes: https://bugs.gentoo.org/697328 Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
59
dev-util/sgb/sgb-20030623-r1.ebuild
Normal file
59
dev-util/sgb/sgb-20030623-r1.ebuild
Normal file
@@ -0,0 +1,59 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DESCRIPTION="Stanford GraphBase"
|
||||
HOMEPAGE="ftp://labrea.stanford.edu/pub/sgb/"
|
||||
SRC_URI="ftp://labrea.stanford.edu/pub/sgb/sgb-${PV:0:4}-${PV:4:2}-${PV:6:2}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="virtual/tex-base"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/sgb-20030623-parallel-make-fix.patch
|
||||
"${FILESDIR}"/sgb-20030623-destdir.patch
|
||||
)
|
||||
|
||||
src_compile() {
|
||||
local vars=(
|
||||
CFLAGS="${CFLAGS}"
|
||||
SGBDIR=/usr/share/${PN}
|
||||
INCLUDEDIR=/usr/include/sgb
|
||||
LIBDIR=/usr/$(get_libdir)
|
||||
BINDIR=/usr/bin
|
||||
#CWEBINPUTS=/usr/share/${PN}/cweb
|
||||
#LDFLAGS="${LDFLAGS}"
|
||||
)
|
||||
# bug #299028
|
||||
emake -j1 "${vars[@]}" lib demos tests
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake tests
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local vars=(
|
||||
SGBDIR=/usr/share/${PN}
|
||||
INCLUDEDIR=/usr/include/sgb
|
||||
LIBDIR=/usr/$(get_libdir)
|
||||
BINDIR=/usr/bin
|
||||
CFLAGS="${CFLAGS}"
|
||||
# TODO: why are they commented out above?
|
||||
LDFLAGS="${LDFLAGS}"
|
||||
CWEBINPUTS=/usr/share/${PN}/cweb
|
||||
)
|
||||
emake DESTDIR="${D}" "${vars[@]}" install
|
||||
|
||||
# we don't need no makefile
|
||||
rm "${D}"/usr/include/sgb/Makefile || die
|
||||
|
||||
dodoc ERRATA README
|
||||
}
|
||||
@@ -1,60 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=0
|
||||
|
||||
inherit eutils multilib
|
||||
|
||||
DESCRIPTION="Stanford GraphBase"
|
||||
HOMEPAGE="ftp://labrea.stanford.edu/pub/sgb/"
|
||||
SRC_URI="ftp://labrea.stanford.edu/pub/sgb/sgb-${PV:0:4}-${PV:4:2}-${PV:6:2}.tar.gz"
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc x86"
|
||||
IUSE=""
|
||||
DEPEND="virtual/tex-base"
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
epatch "${FILESDIR}"/sgb-20030623-parallel-make-fix.patch
|
||||
epatch "${FILESDIR}"/sgb-20030623-destdir.patch
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# bug #299028
|
||||
emake -j1 \
|
||||
CFLAGS="${CFLAGS}" \
|
||||
SGBDIR=/usr/share/${PN} \
|
||||
INCLUDEDIR=/usr/include/sgb \
|
||||
LIBDIR=/usr/$(get_libdir) \
|
||||
BINDIR=/usr/bin \
|
||||
CFLAGS="${CFLAGS}" \
|
||||
lib demos tests || die "Failed to build"
|
||||
#CWEBINPUTS=/usr/share/${PN}/cweb \
|
||||
#LDFLAGS="${LDFLAGS}" \
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodir /usr/share/${PN} /usr/include/sgb /usr/lib /usr/bin /usr/share/${PN}/cweb
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
SGBDIR=/usr/share/${PN} \
|
||||
INCLUDEDIR=/usr/include/sgb \
|
||||
LIBDIR=/usr/$(get_libdir) \
|
||||
BINDIR=/usr/bin \
|
||||
CFLAGS="${CFLAGS}" \
|
||||
LDFLAGS="${LDFLAGS}" \
|
||||
CWEBINPUTS=/usr/share/${PN}/cweb \
|
||||
install \
|
||||
|| die "Failed to install"
|
||||
|
||||
# we don't need no makefile
|
||||
rm "${D}"/usr/include/sgb/Makefile
|
||||
|
||||
dodoc ERRATA README
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake tests
|
||||
}
|
||||
Reference in New Issue
Block a user