pentoo-overlay/dev-util/collabreate/collabreate-0.2.0.ebuild

48 lines
1,011 B
Bash

# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/radare/radare-1.5-r1.ebuild,v 1.2 2010/09/25 15:18:56 eva Exp $
EAPI="2"
inherit cmake-utils
DESCRIPTION="A library for efficient use of ATI CAL with C++"
HOMEPAGE="http://www.idabook.com/collabreate/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="mysql postgres"
RDEPEND="virtual/jdk
mysql? ( dev-db/mysql )
postgres? ( dev-db/postgresql-base )"
DEPEND="${RDEPEND}"
S="${WORKDIR}/${PN}"
src_configure() {
cd "${S}"
mv trunk "${PN}"
epatch "${FILESDIR}/mysql-deterministic-${PV}.patch"
}
src_compile() {
cd "${S}"/"${PN}"/server
sh build_jar.sh
}
src_install() {
cd "${S}"/"${PN}"/server
dodir /opt/collabreate/server
insinto /opt/collabreate/server
doins *.jar
doins *.conf
doins *.sql
doins launch_*
dodoc README
}
pkg_postinst() {
elog "Read the readme file in the doc dir"
}