Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 214920 | Differences between
and this patch

Collapse All | Expand All

(-)pdflib-7.0.2_p8.ebuild (-15 / +23 lines)
Lines 4-11 Link Here
4
4
5
EAPI="1"
5
EAPI="1"
6
6
7
# RUBY_OPTIONAL="yes"
7
RUBY_OPTIONAL="yes"
8
inherit autotools libtool versionator flag-o-matic toolchain-funcs multilib perl-module java-pkg-opt-2 python # ruby
8
inherit autotools libtool versionator flag-o-matic toolchain-funcs multilib perl-module java-pkg-opt-2 python ruby
9
9
10
MY_PN="${PN/pdf/PDF}-Lite"
10
MY_PN="${PN/pdf/PDF}-Lite"
11
MY_P="${MY_PN}-${PV/_/}"
11
MY_P="${MY_PN}-${PV/_/}"
Lines 16-28 Link Here
16
SRC_URI="http://www.pdflib.com/binaries/${PN/pdf/PDF}/$(delete_all_version_separators ${PV/_*/})/${MY_P}.tar.gz"
16
SRC_URI="http://www.pdflib.com/binaries/${PN/pdf/PDF}/$(delete_all_version_separators ${PV/_*/})/${MY_P}.tar.gz"
17
LICENSE="PDFLite"
17
LICENSE="PDFLite"
18
SLOT="5"
18
SLOT="5"
19
KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ppc64 ~s390 ~sh sparc x86 ~x86-fbsd"
19
KEYWORDS="~x86"
20
IUSE="+cxx doc java perl python tcl" # ruby
20
IUSE="+cxx doc java perl python ruby tcl"
21
21
22
COMMON_DEP="tcl? ( >=dev-lang/tcl-8.2 )
22
COMMON_DEP="tcl? ( >=dev-lang/tcl-8.2 )
23
	    perl? ( >=dev-lang/perl-5.1 )
23
	    perl? ( >=dev-lang/perl-5.1 )
24
	    python? ( >=dev-lang/python-2.2 )"
24
	    python? ( >=dev-lang/python-2.2 )
25
	    # ruby? ( virtual/ruby )
25
	    ruby? ( virtual/ruby )"
26
26
27
DEPEND="${COMMON_DEP}
27
DEPEND="${COMMON_DEP}
28
	java? ( >=virtual/jdk-1.4 )"
28
	java? ( >=virtual/jdk-1.4 )"
Lines 40-50 Link Here
40
	unpack ${A}
40
	unpack ${A}
41
	cd "${S}"
41
	cd "${S}"
42
42
43
	epatch "${FILESDIR}"/${P}-gcc-4.3.patch
44
45
	# fix broken configure option for ruby bindings.
46
	# do NOT call eautoreconf here, it breaks configure horribly.
43
	# do NOT call eautoreconf here, it breaks configure horribly.
47
	epatch "${FILESDIR}"/${P}-ruby-configure.patch
48
	eautoconf
44
	eautoconf
49
	elibtoolize
45
	elibtoolize
50
}
46
}
Lines 61-67 Link Here
61
	use cxx && tc-export CXX
57
	use cxx && tc-export CXX
62
58
63
	local myconf
59
	local myconf
64
	use cxx || myconf="${myconf} --with-cxx=no"
60
	use cxx || myconf="${myconf} --disable-cxx"
65
61
66
	use java \
62
	use java \
67
		&& myconf="${myconf} --with-java=${JAVA_HOME}" \
63
		&& myconf="${myconf} --with-java=${JAVA_HOME}" \
Lines 88-98 Link Here
88
84
89
	# ruby bindings disabled for now, configure uses hardcoded list of paths
85
	# ruby bindings disabled for now, configure uses hardcoded list of paths
90
	# for includes that do not cover all supported arches on Gentoo
86
	# for includes that do not cover all supported arches on Gentoo
91
	# use ruby \
87
	use ruby \
92
	#	&& myconf="${myconf} --with-ruby=${RUBY}"
88
		&& myconf="${myconf} --with-ruby=${RUBY}" \
93
	#	|| myconf="${myconf} --with-ruby=no"
89
		|| myconf="${myconf} --with-ruby=no"
94
90
95
	econf --with-ruby=no ${myconf}
91
	econf ${myconf}
96
92
97
	if use java; then
93
	if use java; then
98
		JAVACFLAGS="$(java-pkg_javac-args)" emake || die "emake failed"
94
		JAVACFLAGS="$(java-pkg_javac-args)" emake || die "emake failed"
Lines 135-140 Link Here
135
	if use java && use doc; then
131
	if use java && use doc; then
136
		java-pkg_dojavadoc ./bind/pdflib/java/javadoc
132
		java-pkg_dojavadoc ./bind/pdflib/java/javadoc
137
	fi
133
	fi
134
	# Lot of hakku for ruby
135
	if use ruby ; then
136
		local RUBYLIBDIR=$(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitelibdir"]')
137
		insinto ${RUBYLIBDIR}
138
		insopts -m 0755
139
		doins ./bind/pdflib/ruby/*.rb
140
		RUBYLIBDIR=$(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitearchdir"]')
141
		dodir ${RUBYLIBDIR}
142
		mv "${D}/usr/$(get_libdir)"/PDFlib.* "${D}/${RUBYLIBDIR}"/
143
		cp ./bind/pdflib/ruby/pdflib_ruby.lo "${D}/${RUBYLIBDIR}"/pdflib_ruby.so
144
		chmod 0755 "${D}/${RUBYLIBDIR}"/*.so*
145
	fi
138
}
146
}
139
147
140
pkg_preinst () {
148
pkg_preinst () {

Return to bug 214920