blob: c0a37b97742e392af94400667570a45980373124 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-libs/ss/ss-1.40.4.ebuild,v 1.5 2008/01/31 16:40:19 nixnut Exp $
inherit eutils flag-o-matic toolchain-funcs
DESCRIPTION="Subsystem command parsing library"
HOMEPAGE="http://e2fsprogs.sourceforge.net/"
SRC_URI="mirror://sourceforge/e2fsprogs/e2fsprogs-${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha ~amd64 ~arm hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~x86-fbsd"
IUSE="nls"
RDEPEND="~sys-libs/com_err-${PV}"
DEPEND="${RDEPEND}
nls? ( sys-devel/gettext )"
S=${WORKDIR}/e2fsprogs-${PV}
env_setup() {
export LDCONFIG=/bin/true
export CC=$(tc-getCC)
export STRIP=/bin/true
}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${PN}-1.39-makefile.patch
epatch "${FILESDIR}"/${PN}-1.40.4-check.patch #201762
}
src_compile() {
env_setup
# We want to use the "bsd" libraries while building on Darwin, but while
# building on other Gentoo/*BSD we prefer elf-naming scheme.
local libtype
case ${CHOST} in
*-darwin*) libtype=bsd;;
*) libtype=elf;;
esac
econf \
--enable-${libtype}-shlibs \
--with-ldopts="${LDFLAGS}" \
$(use_enable nls) \
|| die
emake -C lib/ss COMPILE_ET=compile_et || die "make ss failed"
}
src_test() {
env_setup
ln -s $(${CC} -print-file-name=libcom_err.so) lib/libcom_err.so
emake -j1 -C lib/ss check || die "make check failed"
}
src_install() {
env_setup
dodir /usr/share/man/man1
make -C lib/ss DESTDIR="${D}" install || die
# Move shared libraries to /lib/, install static libraries to /usr/lib/,
# and install linker scripts to /usr/lib/.
dodir /$(get_libdir)
mv "${D}"/usr/$(get_libdir)/*.so* "${D}"/$(get_libdir)/ || die "move .so"
dolib.a lib/libss.a || die "dolib.a"
gen_usr_ldscript libss.so
}
|