squirrel sql 2.2 gentoo ebuild
17-May-06
Attached to Gentoo Bug#133629:
-- shell-script --
Copyright 2006 Joshua Sled
Distributed under the terms of the GNU General Public License v2
inherit eutils java-pkg
MY_PV=${PV}final
DESCRIPTION=”SQL client” HOMEPAGE=”http://squirrel-sql.sourceforge.net/” SRCURI=”mirror://sourceforge/${PN}/${PN}-${MYPV}-src.zip”
@fixme: log4j, commons-cli, nano-xml
DEPEND=”>=virtual/jdk-1.4 dev-java/ant-core” LICENSE=”LGPL-2″ SLOT=”0″ KEYWORDS=”x86″ IUSE=”"
S=”${WORKDIR}/sql12″
src_unpack() { unpack ${A} cd ${S} }
srccompile() { cd ${S}/build ant jarsource compile_plugins }
src_install() { dodir /opt/${P} dodir /opt/${P}/doc
cp -R ${WORKDIR}/squirrel-sql-dist/squirrel-sql/core/dist/* ${D}/opt/${P}/ cp ${D}/opt/${P}/squirrel-sql.sh ${T} echo ${T} sed -e “s#%INSTALLPATH#/opt/${P}#” < ${T}/squirrel-sql.sh > ${D}/opt/${P}/squirrel-sql.sh makedesktop_entry squirrel-sql.sh “SQuirreL SQL ${PV}” /opt/${P}/icons/acorn.png “Utility” /opt/${P}/ }