Lines 2-8
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-lang/swi-prolog/swi-prolog-6.3.0.ebuild,v 1.1 2012/08/31 14:33:30 keri Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-lang/swi-prolog/swi-prolog-6.3.0.ebuild,v 1.1 2012/08/31 14:33:30 keri Exp $ |
4 |
|
4 |
|
5 |
EAPI=2 |
5 |
EAPI=4 |
6 |
|
6 |
|
7 |
inherit eutils flag-o-matic java-pkg-opt-2 multilib |
7 |
inherit eutils flag-o-matic java-pkg-opt-2 multilib |
8 |
|
8 |
|
Lines 15-21
Link Here
|
15 |
|
15 |
|
16 |
LICENSE="LGPL-2.1" |
16 |
LICENSE="LGPL-2.1" |
17 |
SLOT="0" |
17 |
SLOT="0" |
18 |
KEYWORDS="~amd64 ~ppc ~x86" |
18 |
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~x86-macos" |
19 |
IUSE="archive debug doc gmp hardened java minimal odbc readline ssl static-libs test zlib X" |
19 |
IUSE="archive debug doc gmp hardened java minimal odbc readline ssl static-libs test zlib X" |
20 |
|
20 |
|
21 |
RDEPEND="sys-libs/ncurses |
21 |
RDEPEND="sys-libs/ncurses |
Lines 45-50
Link Here
|
45 |
EPATCH_FORCE=yes |
45 |
EPATCH_FORCE=yes |
46 |
EPATCH_SUFFIX=patch |
46 |
EPATCH_SUFFIX=patch |
47 |
epatch "${WORKDIR}"/${PV} |
47 |
epatch "${WORKDIR}"/${PV} |
|
|
48 |
|
49 |
# OSX/Intel ld doesn't like an archive without table of contents |
50 |
sed -i -e 's/-cru/-scru/' packages/nlp/libstemmer_c/Makefile.pl || die |
48 |
} |
51 |
} |
49 |
|
52 |
|
50 |
src_configure() { |
53 |
src_configure() { |
Lines 53-71
Link Here
|
53 |
use hardened && append-flags -fno-unit-at-a-time |
56 |
use hardened && append-flags -fno-unit-at-a-time |
54 |
use debug && append-flags -DO_DEBUG |
57 |
use debug && append-flags -DO_DEBUG |
55 |
|
58 |
|
|
|
59 |
# ARCH is used in the configure script to figure out host and target |
60 |
# specific stuff |
61 |
export ARCH=${CHOST} |
62 |
|
56 |
cd "${S}"/src |
63 |
cd "${S}"/src |
57 |
econf \ |
64 |
econf \ |
58 |
--libdir=/usr/$(get_libdir) \ |
65 |
--libdir="${EPREFIX}"/usr/$(get_libdir) \ |
59 |
$(use_enable gmp) \ |
66 |
$(use_enable gmp) \ |
60 |
$(use_enable readline) \ |
67 |
$(use_enable readline) \ |
61 |
$(use_enable static-libs static) \ |
68 |
$(use_enable static-libs static) \ |
62 |
--enable-shared \ |
69 |
--enable-shared \ |
63 |
--enable-custom-flags COFLAGS="${CFLAGS}" |
70 |
--enable-custom-flags COFLAGS="${CFLAGS}" |
64 |
} |
|
|
65 |
|
66 |
src_compile() { |
67 |
cd "${S}"/src |
68 |
emake || die "emake failed" |
69 |
|
71 |
|
70 |
if ! use minimal ; then |
72 |
if ! use minimal ; then |
71 |
local jpltestconf |
73 |
local jpltestconf |
Lines 75-81
Link Here
|
75 |
|
77 |
|
76 |
cd "${S}/packages" |
78 |
cd "${S}/packages" |
77 |
econf \ |
79 |
econf \ |
78 |
--libdir=/usr/$(get_libdir) \ |
80 |
--libdir="${EPREFIX}"/usr/$(get_libdir) \ |
79 |
$(use_with archive) \ |
81 |
$(use_with archive) \ |
80 |
--with-chr \ |
82 |
--with-chr \ |
81 |
--with-clib \ |
83 |
--with-clib \ |
Lines 101-130
Link Here
|
101 |
$(use_with X xpce) \ |
103 |
$(use_with X xpce) \ |
102 |
$(use_with zlib) \ |
104 |
$(use_with zlib) \ |
103 |
COFLAGS='"${CFLAGS}"' |
105 |
COFLAGS='"${CFLAGS}"' |
|
|
106 |
fi |
107 |
} |
108 |
|
109 |
src_compile() { |
110 |
cd "${S}"/src |
111 |
emake |
104 |
|
112 |
|
105 |
emake || die "packages emake failed" |
113 |
if ! use minimal ; then |
|
|
114 |
cd "${S}/packages" |
115 |
emake |
106 |
fi |
116 |
fi |
107 |
} |
117 |
} |
108 |
|
118 |
|
109 |
src_test() { |
119 |
src_test() { |
110 |
cd "${S}/src" |
120 |
cd "${S}/src" |
111 |
emake check || die "make check failed. See above for details." |
121 |
emake check |
112 |
|
122 |
|
113 |
if ! use minimal ; then |
123 |
if ! use minimal ; then |
114 |
cd "${S}/packages" |
124 |
cd "${S}/packages" |
115 |
emake check || die "make check failed. See above for details." |
125 |
emake check |
116 |
fi |
126 |
fi |
117 |
} |
127 |
} |
118 |
|
128 |
|
119 |
src_install() { |
129 |
src_install() { |
120 |
emake -C src DESTDIR="${D}" install || die "install src failed" |
130 |
emake -C src DESTDIR="${D}" install |
121 |
|
131 |
|
122 |
if ! use minimal ; then |
132 |
if ! use minimal ; then |
123 |
emake -C packages DESTDIR="${D}" install || die "install packages failed" |
133 |
emake -C packages DESTDIR="${D}" install |
124 |
if use doc ; then |
134 |
if use doc ; then |
125 |
emake -C packages DESTDIR="${D}" html-install || die "html-install failed" |
135 |
emake -C packages DESTDIR="${D}" html-install |
126 |
fi |
136 |
fi |
127 |
fi |
137 |
fi |
128 |
|
138 |
|
129 |
dodoc ReleaseNotes/relnotes-5.10 INSTALL README VERSION || die |
139 |
dodoc ReleaseNotes/relnotes-5.10 INSTALL README VERSION |
130 |
} |
140 |
} |