Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Gentoo ebuild package for jzmq. the code is the dirtiest ever, but works.
EAPI=3
WANT_AUTOCONF="2.5"
inherit git-2 autotools
DESCRIPTION="jzmq"
HOMEPAGE="http://www.zeromq.org/bindings:java"
if [[ ${PV} == "9999" ]] ; then
EGIT_REPO_URI="git://github.com/zeromq/jzmq.git"
vcs=git-2
else
SRC_URI=""
KEYWORDS="~amd64 ~x86"
fi
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE=""
RDEPEND=""
DEPEND="net-libs/zeromq"
src_prepare() {
eaclocal
eautoconf
}
src_configure() {
echo "configure"
PATH=/etc/java-config-2/current-system-vm/bin:$PATH
PKG_CONFIG=/usr/lib64/pkgconfig/
eautomake
econf
make
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc README ChangeLog || die "dodoc failed"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment