Lines 1-8
Link Here
|
1 |
# Copyright 1999-2018 Gentoo Foundation |
1 |
# Copyright 1999-2018 Gentoo Foundation |
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 |
|
3 |
|
4 |
EAPI=5 |
4 |
EAPI=6 |
5 |
inherit eutils db flag-o-matic java-pkg-opt-2 autotools multilib multilib-minimal versionator toolchain-funcs |
5 |
inherit db eapi7-ver flag-o-matic java-pkg-opt-2 autotools multilib-minimal toolchain-funcs |
6 |
|
6 |
|
7 |
#Number of official patches |
7 |
#Number of official patches |
8 |
#PATCHNO=`echo ${PV}|sed -e "s,\(.*_p\)\([0-9]*\),\2,"` |
8 |
#PATCHNO=`echo ${PV}|sed -e "s,\(.*_p\)\([0-9]*\),\2,"` |
Lines 16-23
Link Here
|
16 |
MY_P=${PN}-${MY_PV} |
16 |
MY_P=${PN}-${MY_PV} |
17 |
fi |
17 |
fi |
18 |
|
18 |
|
19 |
S_BASE="${WORKDIR}/${MY_P}" |
19 |
S="${WORKDIR}/${MY_P}" |
20 |
S="${S_BASE}/build_unix" |
20 |
BUILD_DIR="${S}/build${MULTIBUILD_VARIANT}" |
21 |
DESCRIPTION="Oracle Berkeley DB" |
21 |
DESCRIPTION="Oracle Berkeley DB" |
22 |
HOMEPAGE="http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/overview/index.html" |
22 |
HOMEPAGE="http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/overview/index.html" |
23 |
SRC_URI="http://download.oracle.com/berkeley-db/${MY_P}.tar.gz" |
23 |
SRC_URI="http://download.oracle.com/berkeley-db/${MY_P}.tar.gz" |
Lines 26-32
Link Here
|
26 |
done |
26 |
done |
27 |
|
27 |
|
28 |
LICENSE="AGPL-3" |
28 |
LICENSE="AGPL-3" |
29 |
SLOT="$(get_version_component_range 1-2)" |
29 |
SLOT="$(ver_cut 1-2)" |
30 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" |
30 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" |
31 |
IUSE="doc java cxx tcl test" |
31 |
IUSE="doc java cxx tcl test" |
32 |
|
32 |
|
Lines 41-88
Link Here
|
41 |
java? ( >=virtual/jre-1.5 )" |
41 |
java? ( >=virtual/jre-1.5 )" |
42 |
|
42 |
|
43 |
MULTILIB_WRAPPED_HEADERS=( |
43 |
MULTILIB_WRAPPED_HEADERS=( |
44 |
/usr/include/db$(get_version_component_range 1-2)/db.h |
44 |
/usr/include/db$(ver_cut 1-2)/db.h |
45 |
) |
45 |
) |
46 |
|
46 |
|
47 |
src_prepare() { |
47 |
PATCHES=() |
48 |
cd "${WORKDIR}"/"${MY_P}" |
48 |
for (( i=1 ; i<=${PATCHNO} ; i++ )) |
49 |
for (( i=1 ; i<=${PATCHNO} ; i++ )) |
49 |
do |
50 |
do |
50 |
PATCHES+=( "${DISTDIR}"/patch."${MY_PV}"."${i}" ) |
51 |
epatch "${DISTDIR}"/patch."${MY_PV}"."${i}" |
51 |
done |
52 |
done |
52 |
PATCHES+=( |
53 |
|
|
|
54 |
# bug #510506 |
53 |
# bug #510506 |
55 |
epatch "${FILESDIR}"/${PN}-4.8.24-java-manifest-location.patch |
54 |
"${FILESDIR}"/${PN}-4.8.24-java-manifest-location.patch |
56 |
|
55 |
|
57 |
# use the includes from the prefix |
56 |
# use the includes from the prefix |
58 |
epatch "${FILESDIR}"/${PN}-4.6-jni-check-prefix-first.patch |
57 |
"${FILESDIR}"/${PN}-4.6-jni-check-prefix-first.patch |
59 |
epatch "${FILESDIR}"/${PN}-4.3-listen-to-java-options.patch |
58 |
"${FILESDIR}"/${PN}-4.3-listen-to-java-options.patch |
60 |
|
59 |
|
61 |
# sqlite configure call has an extra leading .. |
60 |
# sqlite configure call has an extra leading .. |
62 |
# upstreamed:5.2.36, missing in 5.3.x/6.x |
61 |
# upstreamed:5.2.36, missing in 5.3.x/6.x |
63 |
# still needs to be patched in 6.0.20 |
62 |
# still needs to be patched in 6.0.20 |
64 |
epatch "${FILESDIR}"/${PN}-6.0.35-sqlite-configure-path.patch |
63 |
"${FILESDIR}"/${PN}-6.0.35-sqlite-configure-path.patch |
65 |
|
64 |
|
66 |
# The upstream testsuite copies .lib and the binaries for each parallel test |
65 |
# The upstream testsuite copies .lib and the binaries for each parallel test |
67 |
# core, ~300MB each. This patch uses links instead, saves a lot of space. |
66 |
# core, ~300MB each. This patch uses links instead, saves a lot of space. |
68 |
epatch "${FILESDIR}"/${PN}-6.0.20-test-link.patch |
67 |
"${FILESDIR}"/${PN}-6.0.20-test-link.patch |
|
|
68 |
) |
69 |
|
70 |
src_prepare() { |
71 |
default |
69 |
|
72 |
|
70 |
# Upstream release script grabs the dates when the script was run, so lets |
73 |
# Upstream release script grabs the dates when the script was run, so lets |
71 |
# end-run them to keep the date the same. |
74 |
# end-run them to keep the date the same. |
72 |
export REAL_DB_RELEASE_DATE="$(awk \ |
75 |
export REAL_DB_RELEASE_DATE="$(awk \ |
73 |
'/^DB_VERSION_STRING=/{ gsub(".*\\(|\\).*","",$0); print $0; }' \ |
76 |
'/^DB_VERSION_STRING=/{ gsub(".*\\(|\\).*","",$0); print $0; }' \ |
74 |
"${S_BASE}"/dist/configure)" |
77 |
dist/configure)" |
75 |
sed -r -i \ |
78 |
sed -r -i \ |
76 |
-e "/^DB_RELEASE_DATE=/s~=.*~='${REAL_DB_RELEASE_DATE}'~g" \ |
79 |
-e "/^DB_RELEASE_DATE=/s~=.*~='${REAL_DB_RELEASE_DATE}'~g" \ |
77 |
"${S_BASE}"/dist/RELEASE || die |
80 |
dist/RELEASE || die |
78 |
|
81 |
|
79 |
# Include the SLOT for Java JAR files |
82 |
# Include the SLOT for Java JAR files |
80 |
# This supersedes the unused jarlocation patches. |
83 |
# This supersedes the unused jarlocation patches. |
81 |
sed -r -i \ |
84 |
sed -r -i \ |
82 |
-e '/jarfile=.*\.jar$/s,(.jar$),-$(LIBVERSION)\1,g' \ |
85 |
-e '/jarfile=.*\.jar$/s,(.jar$),-$(LIBVERSION)\1,g' \ |
83 |
"${S_BASE}"/dist/Makefile.in || die |
86 |
"${S}"/dist/Makefile.in || die |
84 |
|
87 |
|
85 |
cd "${S_BASE}"/dist || die |
88 |
cd dist || die |
86 |
rm -f aclocal/libtool.m4 |
89 |
rm -f aclocal/libtool.m4 |
87 |
sed -i \ |
90 |
sed -i \ |
88 |
-e '/AC_PROG_LIBTOOL$/aLT_OUTPUT' \ |
91 |
-e '/AC_PROG_LIBTOOL$/aLT_OUTPUT' \ |
Lines 106-112
Link Here
|
106 |
# looks for 'Skipping\s' |
109 |
# looks for 'Skipping\s' |
107 |
sed -i \ |
110 |
sed -i \ |
108 |
-e '/db_repsite/s,Skipping:,Skipping,g' \ |
111 |
-e '/db_repsite/s,Skipping:,Skipping,g' \ |
109 |
"${S_BASE}"/test/tcl/reputils.tcl || die |
112 |
"${S}"/test/tcl/reputils.tcl || die |
110 |
} |
113 |
} |
111 |
|
114 |
|
112 |
multilib_src_configure() { |
115 |
multilib_src_configure() { |
Lines 149-155
Link Here
|
149 |
# --enable-sql_compat |
152 |
# --enable-sql_compat |
150 |
# Don't --enable-sql* because we don't want to use bundled sqlite. |
153 |
# Don't --enable-sql* because we don't want to use bundled sqlite. |
151 |
# See Gentoo bug #605688 |
154 |
# See Gentoo bug #605688 |
152 |
ECONF_SOURCE="${S_BASE}"/dist \ |
155 |
ECONF_SOURCE="${S}"/dist \ |
153 |
STRIP="true" \ |
156 |
STRIP="true" \ |
154 |
econf \ |
157 |
econf \ |
155 |
--enable-compat185 \ |
158 |
--enable-compat185 \ |
Lines 213-219
Link Here
|
213 |
# "${S_BASE}/test/testparams.tcl" |
216 |
# "${S_BASE}/test/testparams.tcl" |
214 |
sed -ri \ |
217 |
sed -ri \ |
215 |
-e '/multi_repmgr/d' \ |
218 |
-e '/multi_repmgr/d' \ |
216 |
"${S_BASE}/test/tcl/test.tcl" || die |
219 |
"${S}/test/tcl/test.tcl" || die |
217 |
|
220 |
|
218 |
# This is the only failure in 5.2.28 so far, and looks like a false positive. |
221 |
# This is the only failure in 5.2.28 so far, and looks like a false positive. |
219 |
# Repmgr018 (btree): Test of repmgr stats. |
222 |
# Repmgr018 (btree): Test of repmgr stats. |
Lines 226-232
Link Here
|
226 |
sed -ri \ |
229 |
sed -ri \ |
227 |
-e '/set parms.*repmgr018/d' \ |
230 |
-e '/set parms.*repmgr018/d' \ |
228 |
-e 's/repmgr018//g' \ |
231 |
-e 's/repmgr018//g' \ |
229 |
"${S_BASE}/test/tcl/test.tcl" || die |
232 |
"${S}/test/tcl/test.tcl" || die |
230 |
|
233 |
|
231 |
multilib-minimal_src_test |
234 |
multilib-minimal_src_test |
232 |
} |
235 |
} |