You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-ruby/plruby/plruby-0.5.4.ebuild

49 lines
1.2 KiB

# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/plruby/plruby-0.5.4.ebuild,v 1.3 2011/12/04 13:58:43 hwoarang Exp $
EAPI=2
USE_RUBY="ruby18"
inherit ruby-ng
GITHUB_USER="knu"
DESCRIPTION="plruby language for PostgreSQL"
HOMEPAGE="http://github.com/knu/postgresql-plruby"
SRC_URI="http://github.com/${GITHUB_USER}/postgresql-plruby/tarball/v${PV} -> ${P}.tgz"
LICENSE="Ruby"
SLOT="0"
KEYWORDS="amd64 ~ppc x86"
IUSE=""
DEPEND="${DEPEND} dev-db/postgresql-server"
RDEPEND="${RDEPEND} dev-db/postgresql-server"
RUBY_PATCHES=( "${P}-fix-build-system.patch" )
S="${WORKDIR}"/${GITHUB_USER}-postgresql-plruby-*
each_ruby_configure() {
${RUBY} extconf.rb || die
}
each_ruby_compile() {
# We have injected --no-undefined in Ruby as a safety precaution
# against broken ebuilds, but these bindings unfortunately rely on
# the lazy load of other extensions; see bug #320545.
find . -name Makefile -print0 | xargs -0 \
sed -i -e 's:-Wl,--no-undefined::' || die "--no-undefined removal failed"
emake || die
}
each_ruby_install() {
emake install DESTDIR="${D}"
}
all_ruby_install() {
dodoc Changes plruby.html plruby.rd README.en
}