Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 142925 | Differences between
and this patch

Collapse All | Expand All

(-)db-4.2.52_p2-r1.ebuild.orig (-10 / +8 lines)
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/sys-libs/db/db-4.2.52_p2-r1.ebuild,v 1.12 2006/08/03 23:46:04 cardoe Exp $
3
# $Header: /var/cvsroot/gentoo-x86/sys-libs/db/db-4.2.52_p2-r1.ebuild,v 1.12 2006/08/03 23:46:04 cardoe Exp $
4
4
5
inherit eutils gnuconfig db
5
inherit eutils gnuconfig db java-pkg
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 34-39 Link Here
34
RDEPEND="tcl? ( dev-lang/tcl )
34
RDEPEND="tcl? ( dev-lang/tcl )
35
	java? ( virtual/jre )"
35
	java? ( virtual/jre )"
36
36
37
pkg_setup() {
38
	use java && java-pkg_pkg_setup
39
}
40
37
src_unpack() {
41
src_unpack() {
38
	unpack ${MY_P}.tar.gz
42
	unpack ${MY_P}.tar.gz
39
	cd ${WORKDIR}/${MY_P}
43
	cd ${WORKDIR}/${MY_P}
Lines 67-76 Link Here
67
		|| myconf="${myconf} --disable-tcl"
71
		|| myconf="${myconf} --disable-tcl"
68
72
69
	myconf="${myconf} $(use_enable java)"
73
	myconf="${myconf} $(use_enable java)"
70
	if use java && [[ -n ${JAVAC} ]] ; then
71
		export PATH=`dirname ${JAVAC}`:${PATH}
72
		export JAVAC=`basename ${JAVAC}`
73
	fi
74
74
75
	[[ -n ${CBUILD} ]] && myconf="${myconf} --build=${CBUILD}"
75
	[[ -n ${CBUILD} ]] && myconf="${myconf} --build=${CBUILD}"
76
76
Lines 107-117 Link Here
107
	mv ${D}/usr/bin/berkeley_db_svc ${D}/usr/sbin/berkeley_db42_svc
107
	mv ${D}/usr/bin/berkeley_db_svc ${D}/usr/sbin/berkeley_db42_svc
108
108
109
	if use java; then
109
	if use java; then
110
		mkdir -p ${D}/usr/share/db
110
		java-pkg_dojar ${D}/usr/$(get_libdir)/${PN}-${SLOT}.jar
111
		cat <<EOF >${D}/usr/share/db/package.env
111
		rm ${D}/usr/$(get_libdir)/${PN}-${SLOT}.jar
112
DESCRIPTION=The java bindings for berkeley db version ${MY_PV}
112
		java-pkg_doso ${D}/usr/$(get_libdir)/lib${PN}-${SLOT}.so
113
CLASSPATH=:/usr/lib/db-${SLOT}.jar
114
EOF
115
	fi
113
	fi
116
}
114
}
117
115

Return to bug 142925