summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Junghans <ottxor@gentoo.org>2012-10-17 08:19:33 +0000
committerChristoph Junghans <ottxor@gentoo.org>2012-10-17 08:19:33 +0000
commit814771cd3259b69da351ec5764fa2c9c47738fd5 (patch)
tree15666c0b2abf27df0d5cb5b85a32635731acb8b8 /dev-db/hsqldb
parentVersion bump. This release drops support for GTK (bug #436490), fixes a build... (diff)
downloadgentoo-2-814771cd3259b69da351ec5764fa2c9c47738fd5.tar.gz
gentoo-2-814771cd3259b69da351ec5764fa2c9c47738fd5.tar.bz2
gentoo-2-814771cd3259b69da351ec5764fa2c9c47738fd5.zip
added prefix support (bug #435274)
(Portage version: 2.2.0_alpha140/cvs/Linux i686, signed Manifest commit with key C2000586)
Diffstat (limited to 'dev-db/hsqldb')
-rw-r--r--dev-db/hsqldb/ChangeLog5
-rw-r--r--dev-db/hsqldb/hsqldb-1.8.1.3.ebuild53
2 files changed, 29 insertions, 29 deletions
diff --git a/dev-db/hsqldb/ChangeLog b/dev-db/hsqldb/ChangeLog
index f40c6639b5e6..6b31f573112c 100644
--- a/dev-db/hsqldb/ChangeLog
+++ b/dev-db/hsqldb/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for dev-db/hsqldb
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/hsqldb/ChangeLog,v 1.69 2012/09/29 17:45:02 grobian Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/hsqldb/ChangeLog,v 1.70 2012/10/17 08:19:33 ottxor Exp $
+
+ 17 Oct 2012; Christoph Junghans <ottxor@gentoo.org> hsqldb-1.8.1.3.ebuild:
+ added prefix support (bug #435274)
29 Sep 2012; Fabian Groffen <grobian@gentoo.org> hsqldb-1.8.1.3.ebuild:
Marked ~x64-macos
diff --git a/dev-db/hsqldb/hsqldb-1.8.1.3.ebuild b/dev-db/hsqldb/hsqldb-1.8.1.3.ebuild
index fd439fa52b82..472895714d70 100644
--- a/dev-db/hsqldb/hsqldb-1.8.1.3.ebuild
+++ b/dev-db/hsqldb/hsqldb-1.8.1.3.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/hsqldb/hsqldb-1.8.1.3.ebuild,v 1.6 2012/09/29 17:45:02 grobian Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/hsqldb/hsqldb-1.8.1.3.ebuild,v 1.7 2012/10/17 08:19:33 ottxor Exp $
-EAPI=1
+EAPI=4
JAVA_PKG_IUSE="doc source test"
inherit eutils user versionator java-pkg-2 java-ant-2
@@ -15,7 +15,7 @@ SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip"
LICENSE="BSD GPL-2"
SLOT="0"
-KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~x64-macos ~x64-solaris"
+KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~x64-macos ~x64-solaris ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris"
IUSE=""
CDEPEND="java-virtuals/servlet-api:2.3"
@@ -38,15 +38,12 @@ pkg_setup() {
java-pkg-2_pkg_setup
}
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
+src_prepare() {
rm -v lib/*.jar || die
java-pkg_jar-from --virtual --into lib servlet-api-2.3
sed -i -r \
- -e "s#etc/sysconfig#etc/conf.d#g" \
+ -e "s#/etc/sysconfig#${EPREFIX}/etc/conf.d#g" \
bin/hsqldb || die
java-pkg_filter-compiler jikes
@@ -56,8 +53,8 @@ src_unpack() {
epatch "${FILESDIR}/resolve-config-softlinks.patch"
mkdir conf
- sed -e "s/^HSQLDB_JAR_PATH=.*$/HSQLDB_JAR_PATH=${HSQLDB_JAR//\//\\/}/g" \
- -e "s/^SERVER_HOME=.*$/SERVER_HOME=\/var\/lib\/hsqldb/g" \
+ sed -e "s/^HSQLDB_JAR_PATH=.*$/HSQLDB_JAR_PATH=${EPREFIX//\//\\/}${HSQLDB_JAR//\//\\/}/g" \
+ -e "s/^SERVER_HOME=.*$/SERVER_HOME=${EPREFIX//\//\\/}\/var\/lib\/hsqldb/g" \
-e "s/^HSQLDB_OWNER=.*$/HSQLDB_OWNER=hsqldb/g" \
-e 's/^#AUTH_FILE=.*$/AUTH_FILE=${SERVER_HOME}\/sqltool.rc/g' \
src/org/hsqldb/sample/sample-hsqldb.cfg > conf/hsqldb || die
@@ -97,35 +94,35 @@ src_install() {
use source && java-pkg_dosrc src/*
echo "CONFIG_PROTECT=\"${HSQLDB_HOME}\"" > "${T}"/35hsqldb || die
- doenvd "${T}"/35hsqldb || die
+ doenvd "${T}"/35hsqldb
# Put init, configuration and authorization files in /etc
- doinitd "${FILESDIR}/hsqldb" || die
- doconfd conf/hsqldb || die
+ doinitd "${FILESDIR}/hsqldb"
+ doconfd conf/hsqldb
dodir /etc/hsqldb
insinto /etc/hsqldb
# Change the ownership of server.properties and sqltool.rc
# files to hsqldb:hsqldb. (resolves Bug #111963)
- insopts -m0600 -o hsqldb -g hsqldb
- doins conf/server.properties || die
- insopts -m0600 -o hsqldb -g hsqldb
- doins conf/sqltool.rc || die
+ use prefix || insopts -m0600 -o hsqldb -g hsqldb
+ doins conf/server.properties
+ use prefix || insopts -m0600 -o hsqldb -g hsqldb
+ doins conf/sqltool.rc
# Install init script
dodir "${HSQLDB_HOME}/bin"
keepdir "${HSQLDB_HOME}"
exeinto "${HSQLDB_HOME}/bin"
- doexe bin/hsqldb || die
+ doexe bin/hsqldb
# Make sure that files have correct permissions
- chown -R hsqldb:hsqldb "${D}${HSQLDB_HOME}"
- chmod o-rwx "${D}${HSQLDB_HOME}"
+ use prefix || chown -R hsqldb:hsqldb "${ED}${HSQLDB_HOME}"
+ chmod o-rwx "${ED}${HSQLDB_HOME}"
# Create symlinks to authorization files in the server home dir
# (required by the hqldb init script)
insinto "${HSQLDB_HOME}"
- dosym /etc/hsqldb/server.properties "${HSQLDB_HOME}/server.properties" || die
- dosym /etc/hsqldb/sqltool.rc "${HSQLDB_HOME}/sqltool.rc" || die
+ dosym /etc/hsqldb/server.properties "${HSQLDB_HOME}/server.properties"
+ dosym /etc/hsqldb/sqltool.rc "${HSQLDB_HOME}/sqltool.rc"
}
pkg_postinst() {
@@ -137,13 +134,13 @@ pkg_postinst() {
echo
elog "Example:"
echo
- elog "/etc/hsqldb/server.properties"
+ elog "${EPREFIX}/etc/hsqldb/server.properties"
elog "============================="
elog "server.database.1=file:xdb/xdb"
elog "server.dbname.1=xdb"
elog "server.urlid.1=xdb"
elog
- elog "/etc/hsqldb/sqltool.rc"
+ elog "${EPREFIX}/etc/hsqldb/sqltool.rc"
elog "======================"
elog "urlid xdb"
elog "url jdbc:hsqldb:hsql://localhost/xdb"
@@ -156,10 +153,10 @@ pkg_postinst() {
echo
ewarn "For data manipulation use:"
ewarn
- ewarn "# java -classpath ${HSQLDB_JAR} org.hsqldb.util.DatabaseManager"
- ewarn "# java -classpath ${HSQLDB_JAR} org.hsqldb.util.DatabaseManagerSwing"
- ewarn "# java -classpath ${HSQLDB_JAR} org.hsqldb.util.SqlTool \\"
- ewarn " --rcFile /var/lib/hsqldb/sqltool.rc <dbname>"
+ ewarn "# java -classpath ${EPREFIX}${HSQLDB_JAR} org.hsqldb.util.DatabaseManager"
+ ewarn "# java -classpath ${EPREFIX}${HSQLDB_JAR} org.hsqldb.util.DatabaseManagerSwing"
+ ewarn "# java -classpath ${EPREFIX}${HSQLDB_JAR} org.hsqldb.util.SqlTool \\"
+ ewarn " --rcFile ${EPREFIX}/var/lib/hsqldb/sqltool.rc <dbname>"
echo
elog "The Hsqldb can be run in multiple modes - read 'Chapter 1. Running'"
elog "and Using Hsqldb' in the Hsqldb docs at:"