parent
6753db5320
commit
9dcf128e37
@ -0,0 +1,197 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice-bin/openoffice-bin-3.4.0.ebuild,v 1.1 2012/05/08 23:30:35 chithanh Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit eutils fdo-mime gnome2-utils pax-utils prefix rpm multilib
|
||||
|
||||
IUSE="gnome java"
|
||||
|
||||
BUILDID="9590"
|
||||
BUILDID2="9590"
|
||||
MST="OOO330_m20"
|
||||
MY_PV="${PV}rc10"
|
||||
MY_PV2="${MY_PV}_20110118"
|
||||
BVER="${PV/_rc*/}-${BUILDID}"
|
||||
BVER2="3.4-${BUILDID2}"
|
||||
BASIS="ooobasis3.4"
|
||||
BASIS2="basis3.4"
|
||||
NM="openoffice"
|
||||
NM1="${NM}.org"
|
||||
NM2="${NM1}3"
|
||||
NM3="${NM2}.4"
|
||||
FILEPATH="mirror://sourceforge/openofficeorg.mirror/localized"
|
||||
if [ "${ARCH}" = "amd64" ] ; then
|
||||
XARCH="x86_64"
|
||||
else
|
||||
XARCH="i586"
|
||||
fi
|
||||
UP="en-US/RPMS"
|
||||
|
||||
DESCRIPTION="Apache OpenOffice productivity suite."
|
||||
HOMEPAGE="http://www.openoffice.org/"
|
||||
SRC_URI="amd64? ( mirror://sourceforge/openofficeorg.mirror/stable/${PV}/Apache_OpenOffice_incubating_${PV}_Linux_x86-64_install-rpm_en-US.tar.gz )
|
||||
x86? ( mirror://sourceforge/openofficeorg.mirror/stable/${PV}/Apache_OpenOffice_incubating_${PV}_Linux_x86_install-rpm_en-US.tar.gz )"
|
||||
|
||||
LANGS="ar zh_CN zh_TW cs nl fr gl de hu it ja pt_BR ru es"
|
||||
|
||||
for X in ${LANGS} ; do
|
||||
[[ ${X} != "en" ]] && SRC_URI="${SRC_URI} linguas_${X}? (
|
||||
amd64? ( "${FILEPATH}"/${X/_/-}/${PV}/Apache_OpenOffice_incubating_${PV}_Linux_x86-64_langpack-rpm_${X/_/-}.tar.gz )
|
||||
x86? ( "${FILEPATH}"/${X/_/-}/${PV}/Apache_OpenOffice_incubating_${PV}_Linux_x86_langpack-rpm_${X/_/-}.tar.gz ) )"
|
||||
IUSE="${IUSE} linguas_${X}"
|
||||
done
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
RDEPEND="!app-office/libreoffice
|
||||
!app-office/openoffice
|
||||
!app-office/libreoffice-bin
|
||||
!prefix? ( sys-libs/glibc )
|
||||
app-arch/unzip
|
||||
app-arch/zip
|
||||
>=dev-lang/perl-5.0
|
||||
>=media-libs/freetype-2.1.10-r2
|
||||
x11-libs/libXaw
|
||||
x11-libs/libXinerama"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
sys-apps/findutils"
|
||||
|
||||
PDEPEND="java? ( >=virtual/jre-1.5 )"
|
||||
|
||||
RESTRICT="strip"
|
||||
|
||||
QA_PREBUILT="usr/$(get_libdir)/${NM}/${BASIS2}/program/*
|
||||
usr/$(get_libdir)/${NM}/program/*
|
||||
usr/$(get_libdir)/${NM}/ure/bin/*
|
||||
usr/$(get_libdir)/${NM}/ure/lib/*"
|
||||
QA_TEXTRELS="usr/$(get_libdir)/${NM}/${BASIS2}/program/libvclplug_genli.so \
|
||||
usr/$(get_libdir)/${NM}/${BASIS2}/program/python-core-2.6.1/lib/lib-dynload/_curses_panel.so \
|
||||
usr/$(get_libdir)/${NM}/${BASIS2}/program/python-core-2.6.1/lib/lib-dynload/_curses.so \
|
||||
usr/$(get_libdir)/${NM}/ure/lib/*"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
src_unpack() {
|
||||
|
||||
unpack ${A}
|
||||
|
||||
cp "${FILESDIR}"/{50-${PN},wrapper.in} "${T}"
|
||||
eprefixify "${T}"/{50-${PN},wrapper.in}
|
||||
|
||||
for i in base binfilter calc core01 core02 core03 core04 core05 core06 core07 draw graphicfilter images impress math ogltrans ooofonts ooolinguistic pyuno testtool writer xsltfilter ; do
|
||||
rpm_unpack "./${UP}/${BASIS}-${i}-${BVER}.${XARCH}.rpm"
|
||||
done
|
||||
|
||||
rpm_unpack "./${UP}/${NM2}-${BVER}.${XARCH}.rpm"
|
||||
rpm_unpack "./${UP}/${NM1}-ure-${BVER}.${XARCH}.rpm"
|
||||
|
||||
for j in base calc draw impress math writer; do
|
||||
rpm_unpack "./${UP}/${NM2}-${j}-${BVER}.${XARCH}.rpm"
|
||||
done
|
||||
|
||||
rpm_unpack "./${UP}/desktop-integration/${NM3}-freedesktop-menus-${BVER2}.noarch.rpm"
|
||||
|
||||
use gnome && rpm_unpack "./${UP}/${BASIS}-gnome-integration-${BVER}.${XARCH}.rpm"
|
||||
use java && rpm_unpack "./${UP}/${BASIS}-javafilter-${BVER}.${XARCH}.rpm"
|
||||
|
||||
# English support installed by default
|
||||
rpm_unpack "./${UP}/${BASIS}-en-US-${BVER}.${XARCH}.rpm"
|
||||
rpm_unpack "./${UP}/${NM2}-en-US-${BVER}.${XARCH}.rpm"
|
||||
for s in base binfilter calc draw help impress math res writer ; do
|
||||
rpm_unpack "./${UP}/${BASIS}-en-US-${s}-${BVER}.${XARCH}.rpm"
|
||||
done
|
||||
|
||||
# Localization
|
||||
strip-linguas ${LANGS}
|
||||
for l in ${LINGUAS}; do
|
||||
m="${l/_/-}"
|
||||
if [[ ${m} != "en" ]] ; then
|
||||
LANGDIR="${m}/RPMS/"
|
||||
rpm_unpack "./${LANGDIR}/${BASIS}-${m}-${BVER}.${XARCH}.rpm"
|
||||
rpm_unpack "./${LANGDIR}/${NM2}-${m}-${BVER}.${XARCH}.rpm"
|
||||
for n in base binfilter calc draw help impress math res writer; do
|
||||
rpm_unpack "./${LANGDIR}/${BASIS}-${m}-${n}-${BVER}.${XARCH}.rpm"
|
||||
done
|
||||
|
||||
fi
|
||||
done
|
||||
|
||||
}
|
||||
|
||||
src_install () {
|
||||
|
||||
INSTDIR="/usr/$(get_libdir)/${NM}"
|
||||
dodir ${INSTDIR}
|
||||
mv "${WORKDIR}"/opt/${NM1}/* "${ED}${INSTDIR}" || die
|
||||
mv "${WORKDIR}"/opt/${NM2}/* "${ED}${INSTDIR}" || die
|
||||
|
||||
#Menu entries, icons and mime-types
|
||||
cd "${ED}${INSTDIR}/share/xdg/"
|
||||
for desk in base calc draw impress javafilter math printeradmin qstart startcenter writer; do
|
||||
if [ "${desk}" = "javafilter" ] ; then
|
||||
use java || { rm javafilter.desktop; continue; }
|
||||
fi
|
||||
mv ${desk}.desktop ${NM1}-${desk}.desktop
|
||||
sed -i -e s/${NM2}/ooffice/g ${NM1}-${desk}.desktop || die
|
||||
domenu ${NM1}-${desk}.desktop
|
||||
done
|
||||
insinto /usr/share
|
||||
doins -r "${WORKDIR}"/usr/share/icons
|
||||
doins -r "${WORKDIR}"/usr/share/mime
|
||||
|
||||
# Make sure the permissions are right
|
||||
use prefix || fowners -R root:0 /
|
||||
|
||||
# Install wrapper script
|
||||
newbin "${T}/wrapper.in" ooffice
|
||||
sed -i -e s/LIBDIR/$(get_libdir)/g "${ED}/usr/bin/ooffice" || die
|
||||
|
||||
# Component symlinks
|
||||
for app in base calc draw impress math writer; do
|
||||
dosym ${INSTDIR}/program/s${app} /usr/bin/oo${app}
|
||||
done
|
||||
|
||||
dosym ${INSTDIR}/program/spadmin /usr/bin/ooffice-printeradmin
|
||||
dosym ${INSTDIR}/program/soffice /usr/bin/soffice
|
||||
|
||||
rm -f "${ED}${INSTDIR}/basis-link" || die
|
||||
dosym ${INSTDIR}/${BASIS2} ${INSTDIR}/basis-link
|
||||
|
||||
# Change user install dir
|
||||
sed -i -e "s/.${NM1}\/3/.ooo3/g" "${ED}${INSTDIR}/program/bootstraprc" || die
|
||||
|
||||
# Non-java weirdness see bug #99366
|
||||
use !java && rm -f "${ED}${INSTDIR}/ure/bin/javaldx"
|
||||
|
||||
# prevent revdep-rebuild from attempting to rebuild all the time
|
||||
insinto /etc/revdep-rebuild && doins "${T}/50-${PN}"
|
||||
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
|
||||
use gnome && gnome2_icon_savelist
|
||||
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
|
||||
fdo-mime_desktop_database_update
|
||||
fdo-mime_mime_database_update
|
||||
use gnome && gnome2_icon_cache_update
|
||||
|
||||
pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/${NM}/program/soffice.bin
|
||||
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
|
||||
fdo-mime_desktop_database_update
|
||||
use gnome && gnome2_icon_cache_update
|
||||
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE catmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<catmetadata>
|
||||
<longdescription lang="en">
|
||||
The app-officeext category contains extension packages for
|
||||
LibreOffice and OpenOffice.
|
||||
</longdescription>
|
||||
<longdescription lang="de">
|
||||
Die Kategorie app-officeext enthält Erweiterungspakete
|
||||
(extensions) für LibreOffice und OpenOffice.
|
||||
</longdescription>
|
||||
</catmetadata>
|
@ -0,0 +1 @@
|
||||
DIST TexMaths-0.34.oxt 83740 RMD160 4978aa8294a80504cf39f219f76055301ed9140f SHA1 cb3b1f23d87f18683f7c30831509f11a4de202a0 SHA256 a53382879e9ae517f868f6f45c3631e5292287273068ac09c8414a8a2419c9e3
|
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>openoffice</herd>
|
||||
</pkgmetadata>
|
@ -0,0 +1,34 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-officeext/texmaths/texmaths-0.34.ebuild,v 1.1 2012/05/08 21:36:28 dilfridge Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
MY_P="TexMaths-${PV}"
|
||||
|
||||
OO_EXTENSIONS=(
|
||||
"${MY_P}.oxt"
|
||||
)
|
||||
|
||||
inherit office-ext
|
||||
|
||||
DESCRIPTION="LaTeX Equation Editor for LibreOffice"
|
||||
HOMEPAGE="http://roland65.free.fr/texmaths/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.oxt"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="
|
||||
app-text/dvisvgm
|
||||
virtual/tex-base
|
||||
"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
src_unpack() {
|
||||
cp -v "${DISTDIR}/${MY_P}.oxt" "${S}"
|
||||
}
|
@ -1,5 +1,4 @@
|
||||
DIST jruby-src-1.3.1.tar.gz 12076705 RMD160 ef10395dbdf9490820caa65ff6236dd99e7c62c8 SHA1 e4de71e5c01f71f236b3135e07a5841784767fd8 SHA256 9095b0bec0ee8e6cd96b72c7f2aec8a90fa429b840484d57a48d8fb760aae600
|
||||
DIST jruby-src-1.4.1.tar.gz 12351374 RMD160 079036e7df373d444221083a9487b6ad8a676879 SHA1 282a730d33fe5ba0686297de6ff68eee443e67ab SHA256 685e6ba0a4709e06fab1158ef6e4d2b246ab91a770fe8b5c1b642d55d22c725a
|
||||
DIST jruby-src-1.5.6.tar.gz 11166177 RMD160 ecb3d9f08837c1d0c4342bcf0bcaa0fe0c16a0e1 SHA1 99c084b669a92ce548aa5ed731c2fb102a8fc293 SHA256 c0217d6852a1fbf8edd55c1ec866af623e7aaf5f7b0be7abfaf1baf365655efa
|
||||
DIST jruby-src-1.6.5.1.tar.gz 14284770 RMD160 a96de6c66055cbcebf48109c972d46f7d22a67c2 SHA1 8e1f6fbf609ed98ad848d3636aac1bcdcb63e3ff SHA256 1126f29b888b5427c2d416042a6c010849ab1d29ee9be97e592caf6859921be5
|
||||
DIST jruby-src-1.6.7.tar.gz 14579497 RMD160 250e24ee7bfd5e28aac11b1f571fd067a050ef71 SHA1 1b5ef0cdaf68f6d6add385136e74b330a5e1e7b6 SHA256 38a15bc4b9849c9fdfe87077b21be0427ad6432167c9bf55558fc09b57402c37
|
||||
DIST jruby-src-1.6.7.2.tar.gz 14701511 RMD160 ccf300fb5793ca40287a654f95cdff28003d4236 SHA1 c45b6fca792209061f57649ce6f950a85272274f SHA256 d3308652136a20883184860ea7b3373e8474f2b6df533518d02590e3f10dbca7
|
||||
|
@ -1,178 +0,0 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/jruby/jruby-1.3.1-r1.ebuild,v 1.6 2010/06/30 20:53:35 caster Exp $
|
||||
|
||||
EAPI="2"
|
||||
JAVA_PKG_IUSE="doc source test"
|
||||
inherit eutils java-pkg-2 java-ant-2
|
||||
|
||||
MY_PV="${PV/_rc1/RC1}"
|
||||
|
||||
DESCRIPTION="Java-based Ruby interpreter implementation"
|
||||
HOMEPAGE="http://jruby.codehaus.org/"
|
||||
SRC_URI="http://dist.codehaus.org/${PN}/${MY_PV}/${PN}-src-${MY_PV}.tar.gz"
|
||||
LICENSE="|| ( CPL-1.0 GPL-2 LGPL-2.1 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~ppc"
|
||||
IUSE="bsf java6 ssl"
|
||||
|
||||
CDEPEND=">=dev-java/bytelist-1.0.2:0
|
||||
>=dev-java/constantine-0.6:0
|
||||
>=dev-java/jline-0.9.94:0
|
||||
>=dev-java/joni-1.1.3:0
|
||||
>=dev-java/jna-posix-1.0.1:0
|
||||
>=dev-java/jvyamlb-0.2.5:0
|
||||
dev-java/asm:3
|
||||
dev-java/jcodings:0
|
||||
dev-java/jffi:0.4
|
||||
dev-java/jna:0
|
||||
dev-java/joda-time:0
|
||||
dev-util/jay:0[java]
|
||||
dev-java/nailgun:0"
|
||||
|
||||
RDEPEND="${CDEPEND}
|
||||
!java6? ( =virtual/jre-1.5* )
|
||||
java6? ( >=virtual/jre-1.6 )"
|
||||
|
||||
# using 1.6 produces 1.6 bytecode, not sure why
|
||||
DEPEND="${CDEPEND}
|
||||
!java6? ( =virtual/jdk-1.5* )
|
||||
java6? ( >=virtual/jdk-1.6 )
|
||||
bsf? ( dev-java/bsf:2.3 )
|
||||
test? (
|
||||
dev-java/ant-junit
|
||||
dev-java/ant-trax
|
||||
)"
|
||||
|
||||
PDEPEND="dev-ruby/rubygems
|
||||
>=dev-ruby/rake-0.7.3
|
||||
>=dev-ruby/rspec-1.0.4
|
||||
ssl? ( dev-ruby/jruby-openssl )"
|
||||
|
||||
# Tests work for ali_bush. But fail for flameeyes see #282439.
|
||||
# Tests work for ali_bush inside the ebuild env
|
||||
# but fail when using vanilla src tarball.
|
||||
# Restrict tests so we can stablise this package.
|
||||
RESTRICT="test"
|
||||
|
||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
||||
|
||||
RUBY_HOME=/usr/share/${PN}/lib/ruby
|
||||
SITE_RUBY=${RUBY_HOME}/site_ruby
|
||||
GEMS=${RUBY_HOME}/gems
|
||||
|
||||
JAVA_ANT_REWRITE_CLASSPATH="true"
|
||||
JAVA_ANT_IGNORE_SYSTEM_CLASSES="true"
|
||||
EANT_GENTOO_CLASSPATH="asm-3 bytelist constantine jay jcodings jffi-0.4 jline \
|
||||
joda-time joni jna jna-posix jvyamlb,nailgun"
|
||||
EANT_NEEDS_TOOLS="true"
|
||||
|
||||
pkg_setup() {
|
||||
java-pkg-2_pkg_setup
|
||||
|
||||
local fail
|
||||
|
||||
if [[ ! -d "${GEMS}" && -L "${GEMS}" ]]; then
|
||||
eerror "${GEMS} is a symlink. Please remove this symlink."
|
||||
fail="true"
|
||||
fi
|
||||
|
||||
# the symlink creates a collision with rubygems, bug #270953
|
||||
# cannot be currently solved by removing in pkg_preinst, bug #233278
|
||||
if [[ -L "${SITE_RUBY}" ]]; then
|
||||
eerror "${SITE_RUBY} is a symlink. Please remove this symlink."
|
||||
fail="true"
|
||||
fi
|
||||
|
||||
if [[ -n ${fail} ]]; then
|
||||
eerror "Unmerging the old jruby version should also fix the problem(s)."
|
||||
die "Please address the above errors, then run emerge --resume"
|
||||
fi
|
||||
}
|
||||
|
||||
java_prepare() {
|
||||
epatch "${FILESDIR}/ftype-test-fixes.patch"
|
||||
epatch "${FILESDIR}/user-test-fixes.patch"
|
||||
|
||||
# We don't need to use Retroweaver. There is a jarjar and a regular jar
|
||||
# target but even with jarjarclean, both are a pain. The latter target
|
||||
# is slightly easier so go with this one.
|
||||
sed -r -i \
|
||||
-e 's/maxmemory="128m"/maxmemory="192m"/' \
|
||||
-e "/RetroWeaverTask/d" \
|
||||
-e "/<zipfileset .+\/>/d" \
|
||||
build.xml || die
|
||||
|
||||
# Delete the bundled JARs but keep invokedynamic.jar.
|
||||
# No source is available and it's only a dummy anyway.
|
||||
find build_lib lib -name "*.jar" ! -name "invokedynamic.jar" -delete || die
|
||||
|
||||
if ! use bsf; then
|
||||
# Remove BSF test cases.
|
||||
cd "${S}/test/org/jruby"
|
||||
rm -f test/TestAdoptedThreading.java || die
|
||||
rm -f javasupport/test/TestBSF.java || die
|
||||
sed -i '/TestBSF.class/d' javasupport/test/JavaSupportTestSuite.java || die
|
||||
sed -i '/TestAdoptedThreading.class/d' test/MainTestSuite.java || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
eant jar $(use_doc create-apidocs) -Djdk1.5+=true
|
||||
}
|
||||
|
||||
src_test() {
|
||||
if [ ${UID} == 0 ] ; then
|
||||
ewarn 'The tests will fail if run as root so skipping them.'
|
||||
ewarn 'Enable FEATURES="userpriv" if you want to run them.'
|
||||
return
|
||||
fi
|
||||
|
||||
# ali_bush was getting crashes while attempting to run a test.
|
||||
# No info about why it crashed seemed to be produced.
|
||||
# remove it as temp fix.
|
||||
sed -i -e '/MRI/d' build.xml || die "Failed to sed build.xml"
|
||||
|
||||
# BSF is a compile-time only dependency because it's just the adapter
|
||||
# classes and they won't be used unless invoked from BSF itself.
|
||||
use bsf && java-pkg_jar-from --into build_lib --with-dependencies bsf-2.3
|
||||
|
||||
# Our jruby.jar is unbundled so we need to add the classpath to this test.
|
||||
sed -i "s:java -jar:java -Xbootclasspath/a\:#{ENV['JRUBY_CP']} -jar:g" test/test_load_compiled_ruby_class_from_classpath.rb || die
|
||||
|
||||
ANT_TASKS="ant-junit ant-trax" JRUBY_CP=`java-pkg_getjars ${EANT_GENTOO_CLASSPATH// /,}` JRUBY_OPTS="" eant test -Djdk1.5+=true
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local bin
|
||||
|
||||
java-pkg_dojar lib/${PN}.jar
|
||||
dodoc README docs/{*.txt,README.*} || die
|
||||
|
||||
use doc && java-pkg_dojavadoc docs/api
|
||||
use source && java-pkg_dosrc src/org
|
||||
|
||||
dobin "${FILESDIR}/jruby" || die
|
||||
exeinto "/usr/share/${PN}/bin"
|
||||
doexe "${S}/bin/jruby" || die
|
||||
|
||||
# Install some jruby tools.
|
||||
dobin "${S}"/bin/j{gem,irb{,_swing},rubyc} || die
|
||||
|
||||
# Symlink some common tools so that jruby can launch them internally.
|
||||
for bin in {j,}gem jirb jrubyc rake rdoc ri spec{,_translator} ; do
|
||||
dosym "/usr/bin/${bin}" "/usr/share/${PN}/bin/${bin}" || die
|
||||
done
|
||||
|
||||
insinto "${RUBY_HOME}"
|
||||
doins -r "${S}/lib/ruby/1.8" || die
|
||||
doins -r "${S}/lib/ruby/site_ruby" || die
|
||||
|
||||
# Autoload rubygems and append regular site_ruby to $LOAD_PATH.
|
||||
# Unfortunately the -I option prepends instead.
|
||||
insinto "${SITE_RUBY}"
|
||||
doins "${FILESDIR}/gentoo.rb" || die
|
||||
doenvd "${FILESDIR}/10jruby" || die
|
||||
|
||||
keepdir "${GEMS}"/1.8/{cache,doc}
|
||||
}
|
@ -1,200 +0,0 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/jruby/jruby-1.5.6-r1.ebuild,v 1.1 2011/10/22 11:35:07 graaff Exp $
|
||||
|
||||
EAPI="2"
|
||||
JAVA_PKG_IUSE="doc source test"
|
||||
inherit eutils java-pkg-2 java-ant-2
|
||||
|
||||
MY_PV="${PV/_rc1/RC1}"
|
||||
|
||||
DESCRIPTION="Java-based Ruby interpreter implementation"
|
||||
HOMEPAGE="http://jruby.codehaus.org/"
|
||||
SRC_URI="http://jruby.org.s3.amazonaws.com/downloads/${PV}/${PN}-src-${PV}.tar.gz"
|
||||
LICENSE="|| ( CPL-1.0 GPL-2 LGPL-2.1 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="bsf ssl"
|
||||
|
||||
CDEPEND=">=dev-java/bytelist-1.0.6:0
|
||||
>=dev-java/constantine-0.6:0
|
||||
>=dev-java/jline-0.9.94:0
|
||||
>=dev-java/joni-1.1.3:0
|
||||
>=dev-java/jnr-posix-1.1.3:0
|
||||
>=dev-java/jnr-netdb-1.0:0
|
||||
>=dev-java/jvyamlb-0.2.5:0
|
||||
>=dev-java/asm-3.2:3
|
||||
dev-java/jcodings:0
|
||||
>=dev-java/jffi-0.7_pre:0.4
|
||||
dev-java/joda-time:0
|
||||
dev-util/jay:0[java]
|
||||
dev-java/nailgun:0
|
||||
dev-java/jaffl:0
|
||||
dev-java/jgrapht:0
|
||||
dev-java/ant-core:0
|
||||
dev-java/bsf:2.3"
|
||||
|
||||
RDEPEND="${CDEPEND}
|
||||
>=virtual/jre-1.6"
|
||||
|
||||
DEPEND="${CDEPEND}
|
||||
virtual/jdk:1.6
|
||||
test? (
|
||||
dev-java/ant-junit4:0
|
||||
dev-java/ant-trax:0
|
||||
dev-java/junit:4
|
||||
java-virtuals/jdk-with-com-sun
|
||||
dev-java/commons-logging:0
|
||||
dev-java/xalan:0
|
||||
>=dev-java/jna-posix-1.0.1:0
|
||||
)
|
||||
!!<dev-ruby/jruby-1.3.1-r1"
|
||||
|
||||
PDEPEND="ssl? ( dev-ruby/jruby-openssl )"
|
||||
|
||||
# Tests fail.
|
||||
# Need to stop injecting jar's into classpath.
|
||||
RESTRICT="test"
|
||||
|
||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
||||
|
||||
RUBY_HOME=/usr/share/${PN}/lib/ruby
|
||||
SITE_RUBY=${RUBY_HOME}/site_ruby
|
||||
GEMS=${RUBY_HOME}/gems
|
||||
|
||||
JAVA_ANT_REWRITE_CLASSPATH="true"
|
||||
JAVA_ANT_IGNORE_SYSTEM_CLASSES="true"
|
||||
EANT_GENTOO_CLASSPATH="ant-core asm-3 bsf-2.3 bytelist constantine jay \
|
||||
jcodings jffi-0.4 jline constantine \
|
||||
joda-time joni jnr-posix jnr-netdb jvyamlb nailgun jaffl jgrapht"
|
||||
EANT_NEEDS_TOOLS="true"
|
||||
|
||||
pkg_setup() {
|
||||
java-pkg-2_pkg_setup
|
||||
|
||||
local fail
|
||||
|
||||
for directory in "${GEMS}" "${SITE_RUBY}"; do
|
||||
if [[ -L ${directory} ]]; then
|
||||
eerror "${directory} is a symlink. Please do the following to resolve the situation:"
|
||||
echo 'emerge -an app-portage/gentoolkit'
|
||||
echo 'equery -qC b '"${directory}"' | sort | uniq | sed s/^/=/ > ~/jruby.fix'
|
||||
echo 'emerge -1C $(< ~/jruby.fix)'
|
||||
echo "rm ${directory}"
|
||||
echo 'emerge -1 $(< ~/jruby.fix)'
|
||||
echo 'rm ~/jruby.fix'
|
||||
|
||||
eerror "For more information, please see http://bugs.gentoo.org/show_bug.cgi?id=302187"
|
||||
fail="true"
|
||||
fi
|
||||
done
|
||||
|
||||
if [[ -n ${fail} ]]; then
|
||||
die "Please address the above errors, then run emerge --resume"
|
||||
fi
|
||||
}
|
||||
|
||||
java_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-1.5.0-system-jars.patch
|
||||
epatch "${FILESDIR}/1.5.1/build.xml.patch"
|
||||
epatch "${FILESDIR}/1.5.1/testfixes.patch"
|
||||
epatch "${FILESDIR}/${P}-rubygems-1.8.x.patch"
|
||||
|
||||
# We don't need to use Retroweaver. There is a jarjar and a regular jar
|
||||
# target but even with jarjarclean, both are a pain. The latter target
|
||||
# is slightly easier so go with this one.
|
||||
sed -r -i \
|
||||
-e 's/maxmemory="128m"/maxmemory="192m"/' \
|
||||
-e "/RetroWeaverTask/d" \
|
||||
-e "/<zipfileset .+\/>/d" \
|
||||
build.xml || die
|
||||
|
||||
sed -i -e '/Arndt/d' src/org/jruby/RubyBigDecimal.java
|
||||
|
||||
# Delete the bundled JARs but keep invokedynamic.jar.
|
||||
# No source is available and it's only a dummy anyway.
|
||||
find build_lib -name "*.jar" ! -name "jsr292-mock.jar" -delete || die
|
||||
|
||||
# change some defaults for Gentoo to work properly
|
||||
cat - >> src/org/jruby/jruby.properties <<EOF
|
||||
jruby.bindir = /usr/bin
|
||||
EOF
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local flags=""
|
||||
use bsf && flags="-Dbsf.present=true"
|
||||
|
||||
eant jar $(use_doc apidocs) -Djdk1.5+=true ${flags}
|
||||
}
|
||||
|
||||
src_test() {
|
||||
if [ ${UID} == 0 ] ; then
|
||||
ewarn 'The tests will fail if run as root so skipping them.'
|
||||
ewarn 'Enable FEATURES="userpriv" if you want to run them.'
|
||||
return
|
||||
fi
|
||||
# Our jruby.jar is unbundled so we need to add the classpath to this test.
|
||||
sed -i "s:java -jar:java -Xbootclasspath/a\:#{ENV['JRUBY_CP']} -jar:g" test/test_load_compiled_ruby_class_from_classpath.rb || die
|
||||
sed -i "s@:refid => 'build.classpath'@:path =>\"#{ENV['JRUBY_CP']}:lib/jruby.jar\"@g" \
|
||||
rakelib/commands.rake || die
|
||||
#sed -i "s@:refid => 'test.class.path'@:path => \"#{ENV['JRUBY_CP']}@g" \
|
||||
# rakelib/commands.rake || die
|
||||
|
||||
#bsf optionally depends on jruby, which means that the previously
|
||||
#installed jruby will be added to classpath, nasty things will happen.
|
||||
local cpath=`java-pkg_getjars ${EANT_GENTOO_CLASSPATH// /,},junit-4`
|
||||
cpath="$(echo ${cpath} | sed -e "s_${ROOT}/usr/share/jruby/lib/jruby.jar:__g")"
|
||||
cpath="${cpath}:$(java-pkg_getjars --build-only commons-logging,xalan)"
|
||||
EANT_GENTOO_CLASSPATH=""
|
||||
|
||||
local flags=""
|
||||
use bsf && flags="-Dbsf.present=true"
|
||||
|
||||
#Clear RUBYOPT
|
||||
export RUBYOPT=""
|
||||
export JRUBY_CP="${cpath}"
|
||||
ANT_TASKS="ant-junit4 ant-trax" \
|
||||
JRUBY_OPTS="" eant test -Djdk1.5+=true -Djruby.bindir=bin \
|
||||
-Dgentoo.classpath="${cpath}" ${flags}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local bin
|
||||
|
||||
java-pkg_dojar lib/${PN}.jar
|
||||
dodoc README docs/{*.txt,README.*} || die
|
||||
|
||||
use doc && java-pkg_dojavadoc docs/api
|
||||
use source && java-pkg_dosrc src/org
|
||||
|
||||
# We run the sed here in install so that we don't get the wrong
|
||||
# data during the test phase!
|
||||
sed \
|
||||
-e '/++ebuild-cut-here++/, /--ebuild-cut-here--/ d' \
|
||||
-e '/^JRUBY_HOME=/s:=:=/usr/share/jruby:' \
|
||||
bin/jruby > "${T}"/jruby
|
||||
|
||||
dobin "${T}"/jruby "${S}"/bin/j{irb{,_swing},rubyc} || die
|
||||
|
||||
insinto "${RUBY_HOME}"
|
||||
doins -r "${S}"/lib/ruby/{1.8,1.9,site_ruby} || die
|
||||
|
||||
# Remove all the references to RubyGems as we're just going to
|
||||
# install it through dev-ruby/rubygems.
|
||||
find "${D}${RUBY_HOME}" -type f \
|
||||
'(' '(' -path '*rubygems*' -not -name 'jruby.rb' ')' -or -name 'ubygems.rb' -or -name 'datadir.rb' ')' \
|
||||
-delete || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ewarn "If you're updating from <=jruby-1.4.0, you're going to get errors related"
|
||||
ewarn "to gentoo.rb load failure."
|
||||
ewarn "This is due to a stray definition of JRUBY_OPTS variable from the previous ebuilds."
|
||||
ewarn "To solve the problem, either login in a new shell, use 'env -i ${SHELL} --login'"
|
||||
ewarn "or explicitly unset the variable before running jruby."
|
||||
ewarn ""
|
||||
ewarn "Currently this package introduces issues/bugs that are not present within upstream"
|
||||
ewarn "releases. Therefore if you are wanting a stable build of jruby please do not"
|
||||
ewarn "use this package."
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/jruby/jruby-1.6.7.ebuild,v 1.1 2012/04/29 04:50:00 flameeyes Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/jruby/jruby-1.6.7.2.ebuild,v 1.1 2012/05/09 04:03:28 flameeyes Exp $
|
||||
|
||||
EAPI="4"
|
||||
JAVA_PKG_IUSE="doc source test"
|
@ -1,2 +1 @@
|
||||
DIST libmcs-0.7.1.tgz 107684 RMD160 4deb72bd417394a484a689bb4dc58bc1a6a563ba SHA1 498a8ace5bc171cb8999ecf8c77cab59c6ded4bb SHA256 73799477e8089a59edf313b0a13813dcd3a76d0df4ef0ce224670fee1e409504
|
||||
DIST libmcs-0.7.2.tgz 112987 RMD160 95b6ce72b8c7adca2c20380350d714975a38df35 SHA1 f0f147f3175d6e0d9e8e2ddb0918dde65b96c86b SHA256 989f8dc4598ffab2f6a5648ba40f12d2e2c392b7ec6e66eeef194591565e60d9
|
||||
|
@ -1,32 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libmcs/libmcs-0.7.1-r2.ebuild,v 1.12 2012/05/04 18:35:50 jdhore Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
DESCRIPTION="Abstracts the storage of configuration settings away from applications."
|
||||
HOMEPAGE="http://git.atheme.org/libmcs/"
|
||||
SRC_URI="http://distfiles.atheme.org/${P}.tgz"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 hppa ~mips ppc ppc64 sparc x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux"
|
||||
IUSE="gnome"
|
||||
|
||||
RDEPEND=">=dev-libs/libmowgli-0.6.1:0
|
||||
gnome? ( >=gnome-base/gconf-2.6.0 )"
|
||||
DEPEND="virtual/pkgconfig
|
||||
${RDEPEND}"
|
||||
|
||||
src_compile() {
|
||||
econf \
|
||||
--disable-kconfig \
|
||||
$(use_enable gnome gconf) \
|
||||
|| die "econf failed"
|
||||
emake || die "emake failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die "emake install failed"
|
||||
dodoc AUTHORS README TODO
|
||||
}
|
@ -1,30 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libmcs/libmcs-0.7.1-r3.ebuild,v 1.4 2012/05/04 18:35:50 jdhore Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
DESCRIPTION="Abstracts the storage of configuration settings away from applications."
|
||||
HOMEPAGE="http://git.atheme.org/libmcs/"
|
||||
SRC_URI="http://distfiles.atheme.org/${P}.tgz"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux"
|
||||
IUSE="gnome"
|
||||
|
||||
RDEPEND=">=dev-libs/libmowgli-0.6.1:0
|
||||
gnome? ( >=gnome-base/gconf-2.6.0 )"
|
||||
DEPEND="virtual/pkgconfig
|
||||
${RDEPEND}"
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--disable-kconfig \
|
||||
$(use_enable gnome gconf)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
dodoc AUTHORS README TODO
|
||||
}
|
@ -1,6 +1,2 @@
|
||||
DIST libmowgli-0.6.1.tgz 109102 RMD160 352daa998390a4bce708ae659f7599ff01504f46 SHA1 307172a480e5ea1d21f8978fdc3881d9bd889207 SHA256 1454d47cf1d09c9466b4620ef903b62d151075c5c89c15a3bf232466ba7f1d2e
|
||||
DIST libmowgli-0.7.0.tbz2 96565 RMD160 4d762d304aaf973cbab6e2ab44d2bbedb58b903a SHA1 6448f4cc2fa0a98992eb24e4b6a431c4c67f348f SHA256 fdd3bb2f576d3a000d9c7406744d6bdc3e2380ed1c242111a67092ec3e0ac3b4
|
||||
DIST libmowgli-0.9.50.tar.bz2 105376 RMD160 67714555518a5a6e4232c31ab4ba437999f6c689 SHA1 51cac29a5670561e63dd9346820d61e6fd409e88 SHA256 3ff5be7c91b9e5cae94ab5824b9ed7b56599d7e9be3ff8ae79b2cc9f45bb7671
|
||||
DIST libmowgli-0.9.95.tar.bz2 105939 RMD160 e9aac3750045fe98cd03efccf6d6ef26ab0e6e46 SHA1 50d32d4d84f2438382c203bd7c85adc976683c25 SHA256 e1d9c961e24066af0b6c82f28af96f18dcd4c05819984a74d3ec14d07ff8a749
|
||||
DIST libmowgli-1.0.0.tar.bz2 105929 RMD160 5365f004f11ca9fcd404e491b2ee186af99b4399 SHA1 cc4a1b330d17c491d6f9c26d7987ca33adc2fa1d SHA256 8ea0dfd606b0ac280747c9a5f93ca940c23c7367dee0776715c87623ae6624fb
|
||||
DIST libmowgli-2.0.0.tar.gz 200771 RMD160 0cfa8c5bdc8b9116ab74b20e3924015582f4147b SHA1 5a697380f253f0456a5d8a38006a9d12847fb538 SHA256 7c5a94082899d055fc9a02b94e2658b42616fdb98e58e9a71165c07b6f5cceba
|
||||
|
@ -1,23 +0,0 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libmowgli/libmowgli-0.6.1.ebuild,v 1.9 2011/02/06 19:51:06 chainsaw Exp $
|
||||
|
||||
DESCRIPTION="High-performance C development framework. Can be used stand-alone or as a supplement to GLib."
|
||||
HOMEPAGE="http://www.atheme.org/project/mowgli"
|
||||
SRC_URI="http://distfiles.atheme.org/${P}.tgz"
|
||||
IUSE="examples"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 hppa ~ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd"
|
||||
|
||||
src_compile() {
|
||||
econf $(use_enable examples) \
|
||||
|| die "econf failed"
|
||||
emake || die "emake failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die "emake install failed"
|
||||
dodoc AUTHORS
|
||||
}
|
@ -1,23 +0,0 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libmowgli/libmowgli-0.7.0.ebuild,v 1.10 2011/02/06 19:51:06 chainsaw Exp $
|
||||
|
||||
DESCRIPTION="High-performance C development framework. Can be used stand-alone or as a supplement to GLib."
|
||||
HOMEPAGE="http://www.atheme.org/project/mowgli"
|
||||
SRC_URI="http://distfiles.atheme.org/${P}.tbz2"
|
||||
IUSE="examples"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 hppa ~ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
|
||||
|
||||
src_compile() {
|
||||
econf $(use_enable examples) \
|
||||
|| die "econf failed"
|
||||
emake || die "emake failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die "emake install failed"
|
||||
dodoc AUTHORS README doc/BOOST
|
||||
}
|
@ -1,24 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libmowgli/libmowgli-0.9.50.ebuild,v 1.8 2012/02/19 15:04:36 armin76 Exp $
|
||||
|
||||
EAPI=3
|
||||
|
||||
DESCRIPTION="High-performance C development framework. Can be used stand-alone or as a supplement to GLib."
|
||||
HOMEPAGE="http://www.atheme.org/project/mowgli"
|
||||
SRC_URI="http://distfiles.atheme.org/${P}.tar.bz2"
|
||||
IUSE="examples"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 hppa ~ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
|
||||
|
||||
src_configure() {
|
||||
econf $(use_enable examples) \
|
||||
|| die "econf failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die "emake install failed"
|
||||
dodoc AUTHORS README doc/BOOST
|
||||
}
|
@ -1,24 +0,0 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libmowgli/libmowgli-0.9.95.ebuild,v 1.1 2011/09/26 22:16:42 chainsaw Exp $
|
||||
|
||||
EAPI=3
|
||||
|
||||
DESCRIPTION="High-performance C development framework. Can be used stand-alone or as a supplement to GLib."
|
||||
HOMEPAGE="http://www.atheme.org/project/mowgli"
|
||||
SRC_URI="http://distfiles.atheme.org/${P}.tar.bz2"
|
||||
IUSE="examples"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
|
||||
|
||||
src_configure() {
|
||||
econf $(use_enable examples) \
|
||||
|| die "econf failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die "emake install failed"
|
||||
dodoc AUTHORS README doc/BOOST
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST findlib-1.2.7.tar.gz 163452 RMD160 d374a9dcfee69e2428e904a77882616dd4fe61e7 SHA1 bb99da86a454ec755c9c5e4a464013be5c766801 SHA256 c920b129e48b3b313e67b915a078ab06a9ddd2e072f3353edfa74144f256029b
|
||||
DIST findlib-1.2.8.tar.gz 163985 RMD160 8b8c22c27cbdfa0a324d44480671d36d3c6eb2a8 SHA1 85d28df1a5a5c72a7a1b1c40ff89ea592507e6bd SHA256 1b1d54932a8b09c221d92ee85953f2b612381e8fd48fdf3e7a96f88995544567
|
||||
DIST findlib-1.3.0.tar.gz 229667 RMD160 3db8c6ff52234208ea5308dac2358c7b2fdf6a90 SHA1 374def2ba1ad406d07bb7a85ce9b9cf64af4e428 SHA256 abb0a41ccf3e71460ac79ac4d8e914975ba400797d0260b2dc9fe3e7d30b456d
|
||||
DIST findlib-1.3.1.tar.gz 229719 RMD160 c8a609d74df7dd87850ae34c88307af3636b20bc SHA1 996d8ff4372e178a9fb18b690bb9746847763d82 SHA256 9e4b063c3b10f36006521fb4ef457d87c2a0684a55e76c1776fbce707422b978
|
||||
|
@ -0,0 +1,77 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ml/findlib/findlib-1.3.1.ebuild,v 1.1 2012/05/08 22:45:59 aballier Exp $
|
||||
|
||||
EAPI=2
|
||||
|
||||
inherit multilib
|
||||
|
||||
RESTRICT="installsources"
|
||||
|
||||
DESCRIPTION="OCaml tool to find/use non-standard packages."
|
||||
HOMEPAGE="http://projects.camlcity.org/projects/findlib.html"
|
||||
SRC_URI="http://download.camlcity.org/download/${P}.tar.gz"
|
||||
IUSE="doc +ocamlopt tk"
|
||||
|
||||
LICENSE="MIT"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
|
||||
|
||||
DEPEND=">=dev-lang/ocaml-3.10[ocamlopt?,tk?]"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
ocamlfind_destdir="/usr/$(get_libdir)/ocaml"
|
||||
stublibs="${ocamlfind_destdir}/stublibs"
|
||||
|
||||
src_configure() {
|
||||
local myconf
|
||||
use tk && myconf="-with-toolbox"
|
||||
./configure -bindir /usr/bin -mandir /usr/share/man \
|
||||
-sitelib ${ocamlfind_destdir} \
|
||||
-config ${ocamlfind_destdir}/findlib/findlib.conf \
|
||||
${myconf} || die "configure failed"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake all || die
|
||||
if use ocamlopt; then
|
||||
emake opt || die # optimized code
|
||||
else
|
||||
# If using bytecode we dont want to strip the binary as it would remove the
|
||||
# bytecode and only leave ocamlrun...
|
||||
export STRIP_MASK="*/bin/*"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodir `ocamlc -where`
|
||||
|
||||
emake prefix="${D}" install || die
|
||||
|
||||
dodir "${stublibs}"
|
||||
|
||||
cd "${S}/doc"
|
||||
dodoc QUICKSTART README DOCINFO
|
||||
use doc && dohtml -r ref-html guide-html
|
||||
}
|
||||
|
||||
check_stublibs() {
|
||||
local ocaml_stdlib=`ocamlc -where`
|
||||
local ldconf="${ocaml_stdlib}/ld.conf"
|
||||
|
||||
if [ ! -e ${ldconf} ]
|
||||
then
|
||||
echo "${ocaml_stdlib}" > ${ldconf}
|
||||
echo "${ocaml_stdlib}/stublibs" >> ${ldconf}
|
||||
fi
|
||||
|
||||
if [ -z `grep -e ${stublibs} ${ldconf}` ]
|
||||
then
|
||||
echo ${stublibs} >> ${ldconf}
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
check_stublibs
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST authres-0.3.tar.gz 12755 RMD160 167395587366a7273b0916bfae7cf06c2799e203 SHA1 0334f6855e4fd2139042db2be017500beaddfab5 SHA256 94342a0a0f1d95468e5d58769ba8aeaf0c887571014f8274649f93bfd9250700
|
||||
DIST authres-0.401.tar.gz 15278 RMD160 35ee7a3b700cda3afc44a5a0a57da668b2b1d2d4 SHA1 649fd706e6103b428676bb71a3f9a755749e583d SHA256 1da49151c1326805cd12b9ca47895310f646187763211d4e52f6b86862fd9cd0
|
||||
|
@ -1,28 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/authres/authres-0.3.ebuild,v 1.2 2012/04/24 11:32:18 xarthisius Exp $
|
||||
|
||||
EAPI=4
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
RESTRICT_PYTHON_ABIS="2.5"
|
||||
|
||||
inherit distutils
|
||||
|
||||
DESCRIPTION="Authentication Results Header Module"
|
||||
HOMEPAGE="https://launchpad.net/authentication-results-python http://pypi.python.org/pypi/authres"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
PYTHON_MODNAME=${PN}.py
|
||||
DOCS="CHANGES README"
|
||||
|
||||
src_test() {
|
||||
testing() {
|
||||
PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib*)" "$(PYTHON)" ${PN}.py || die
|
||||
}
|
||||
python_execute_function testing
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST oauthlib-0.1.3.tar.gz 24684 RMD160 b370e0c9d3c6eb5b02185584e47f47bdb516cac3 SHA1 57ae3bcba69dc55e9628059fc4cccde4587b6afa SHA256 6066c9c0ab07953f98870bc97d29f6defd066b6c215de74b9976666f3f6c3d40
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>python</herd>
|
||||
<upstream>
|
||||
<remote-id type="pypi">oauthlib</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -0,0 +1,37 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/oauthlib/oauthlib-0.1.3.ebuild,v 1.4 2012/05/09 03:51:47 floppym Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
PYTHON_DEPEND="2:2.6"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
RESTRICT_PYTHON_ABIS="2.5 3.*"
|
||||
DISTUTILS_SRC_TEST="nosetests"
|
||||
|
||||
inherit distutils
|
||||
|
||||
DESCRIPTION="A generic, spec-compliant, thorough implementation of the OAuth request-signing logic"
|
||||
HOMEPAGE="https://github.com/idangazit/oauthlib
|
||||
http://pypi.python.org/pypi/oauthlib"
|
||||
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="dev-python/rsa"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools
|
||||
test? ( dev-python/unittest2 )"
|
||||
|
||||
src_test() {
|
||||
touch tests/__init__.py
|
||||
distutils_src_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
rm -f tests/__init__.py
|
||||
distutils_src_install
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST rsa-3.0.1.zip 49380 RMD160 5d8feb9aed2e1ab65f62dc33d66f3c0c78bdf965 SHA1 8a2ff5e1c0083e91300172e6e8d6385e9711d4f4 SHA256 2c36df5690f476154c32537b6a0a0bce85c26b4b4a365e23b6e5ac6773355668
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>python</herd>
|
||||
<upstream>
|
||||
<remote-id type="pypi">rsa</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -0,0 +1,26 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/rsa/rsa-3.0.1.ebuild,v 1.1 2012/05/08 22:35:40 floppym Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
PYTHON_DEPEND="2:2.6"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
RESTRICT_PYTHON_ABIS="2.5 3.*"
|
||||
DISTUTILS_SRC_TEST="nosetests"
|
||||
|
||||
inherit distutils
|
||||
|
||||
DESCRIPTION="Pure-Python RSA implementation"
|
||||
HOMEPAGE="http://stuvel.eu/rsa http://pypi.python.org/pypi/rsa"
|
||||
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.zip"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=dev-python/pyasn1-0.0.13
|
||||
>=dev-python/setuptools-0.6.10"
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/unzip"
|
@ -0,0 +1,2 @@
|
||||
DIST openclonk-release-5.2.2-src.tar.gz 43078356 RMD160 ab6aa6fd108470e94115cb3a1d1b5a637eb6ed67 SHA1 e1cf9347bc6246647358a62241c31e7f06781eef SHA256 87bf6c4836ed5c15e8ae66f7f2b0eec097e0d641a36bf1b328568be8d8fe39a9
|
||||
DIST openclonk.png 8487 RMD160 8b80ccfae62794ed37f05ddaa87d6f470f93b5ce SHA1 36bc26a08fecbe6dd75bcc541c879a69ff31fd95 SHA256 93ff9f479e166f30f1c1042c32624b7e54b4d917813a4f46cce57e39a1f30233
|
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
# wrapper prevents the game to look for .ocp files in the current dir
|
||||
# which can lead to weird behavior and game freeze
|
||||
|
||||
[ -d ~/.clonk/openclonk ] || mkdir -p ~/.clonk/openclonk
|
||||
|
||||
cd ~/.clonk/openclonk
|
||||
|
||||
exec clonk "$@"
|
@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>games</herd>
|
||||
<maintainer>
|
||||
<email>hasufell@gentoo.org</email>
|
||||
<name>Julian Ospald</name>
|
||||
<description>Maintainer, assign bugs to him</description>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<changelog>http://hg.openclonk.org/openclonk/</changelog>
|
||||
<doc lang="en">http://wiki.openclonk.org/w/C4Script_Documentation</doc>
|
||||
<bugs-to>http://bugs.openclonk.org/</bugs-to>
|
||||
</upstream>
|
||||
<longdescription lang="en">
|
||||
OpenClonk is the Open source successor of the Clonk gaming series.
|
||||
OpenClonk is a project dedicated to the further development of the
|
||||
Clonk game series. Our goal is to improve and make the real strengths
|
||||
of Clonk more fun to play: Bustling mining, production lines and
|
||||
economy, fast and fiddly melees. Another focus lies on the further
|
||||
enchancement of the game engine and the extensibility/modability of
|
||||
the game content with C4Script which has always been one of the most
|
||||
important features of Clonk.
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
||||
|
@ -0,0 +1,108 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/games-action/openclonk/openclonk-5.2.2.ebuild,v 1.1 2012/05/08 22:49:47 hasufell Exp $
|
||||
|
||||
EAPI=3
|
||||
|
||||
inherit autotools eutils flag-o-matic python games
|
||||
|
||||
MY_P=${PN}-release-${PV}-src
|
||||
|
||||
DESCRIPTION="A free multiplayer action game where you control clonks"
|
||||
HOMEPAGE="http://openclonk.org/"
|
||||
SRC_URI="http://hg.${PN}.org/${PN}/archive/${MY_P}.tar.gz
|
||||
http://${PN}.org/homepage/icon.png -> ${PN}.png"
|
||||
|
||||
LICENSE="BSD CLONK-source CLONK-trademark LGPL-2.1 POSTGRESQL"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="dedicated doc mp3 sound"
|
||||
|
||||
RDEPEND="
|
||||
media-libs/libpng:0
|
||||
sys-libs/zlib
|
||||
virtual/jpeg
|
||||
!dedicated? (
|
||||
media-libs/freetype:2
|
||||
media-libs/glew
|
||||
media-libs/libsdl[X,opengl,video]
|
||||
virtual/opengl
|
||||
virtual/glu
|
||||
x11-libs/cairo
|
||||
x11-libs/gdk-pixbuf
|
||||
x11-libs/gtk+:3
|
||||
x11-libs/libXpm
|
||||
x11-libs/libXrandr
|
||||
x11-libs/libXxf86vm
|
||||
x11-libs/libX11
|
||||
sound? ( media-libs/libsdl[audio]
|
||||
media-libs/sdl-mixer[mp3?,vorbis,wav] )
|
||||
)
|
||||
dedicated? ( sys-libs/readline:0 )"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-libs/boost-1.40
|
||||
virtual/pkgconfig
|
||||
doc? (
|
||||
=dev-lang/python-2*
|
||||
dev-libs/libxml2[python]
|
||||
sys-devel/gettext
|
||||
)
|
||||
"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
pkg_setup() {
|
||||
games_pkg_setup
|
||||
|
||||
python_set_active_version 2
|
||||
python_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# remove license files
|
||||
sed \
|
||||
-e '/dist_doc_DATA/s#planet/COPYING ##' \
|
||||
-e '/dist_doc_DATA/s#licenses/LGPL.txt ##' \
|
||||
-i Makefile.am || die
|
||||
|
||||
# verbose
|
||||
sed \
|
||||
-e "/AM_SILENT_RULES/d" \
|
||||
-i configure.ac || die
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# QA
|
||||
append-flags -fno-strict-aliasing
|
||||
|
||||
egamesconf \
|
||||
$(use_enable dedicated console) \
|
||||
$(use_enable sound) \
|
||||
$(use_enable mp3) \
|
||||
$(usex dedicated "--with-gtk=no" "--with-gtk=3.0") \
|
||||
--without-openal \
|
||||
--with-automatic-update=no
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake || die
|
||||
|
||||
if use doc ; then
|
||||
emake -C docs || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die
|
||||
|
||||
if ! use dedicated; then
|
||||
newgamesbin "${FILESDIR}"/${PN}-wrapper-script.sh ${PN} || die
|
||||
doicon "${DISTDIR}"/${PN}.png
|
||||
make_desktop_entry ${PN}
|
||||
fi
|
||||
use doc && dohtml -r docs/online/*
|
||||
|
||||
prepgamesdirs
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
Copyright (c) 2001-2009, RedWolf Design GmbH, http://www.clonk.de
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
@ -0,0 +1,14 @@
|
||||
Clonk Trademark License
|
||||
|
||||
'Clonk' is a registered trademark of Matthes Bender. It may be used within
|
||||
software products which are using source code from the OpenClonk project
|
||||
with the following limitations:
|
||||
|
||||
If the word 'Clonk' is used as the name of anything in your software product
|
||||
then you must include the following notice in a suitable place (e.g. credits
|
||||
screen): "Clonk" is a registered trademark of Matthes Bender.
|
||||
|
||||
If the title of your software product contains the word 'Clonk' then you must
|
||||
prefix the word with an added name of your choosing, e.g. 'MyClonk' or
|
||||
'PortableClonk' and you must subtitle your project with the term 'An OpenClonk
|
||||
project'.
|
@ -1,3 +1,4 @@
|
||||
DIST ffmpeg-0.10.2.tar.bz2 5780204 RMD160 b9dd617935e106e4a1980167bdb7ec8d76d3f2f7 SHA1 743f44a71f93b14c9b26ca2424b0da8457cef4be SHA256 2d990012091c07849843c456eb34ad015a00f45a66cba5be7c81a28e45fb6711
|
||||
DIST ffmpeg-0.10.3.tar.bz2 5855494 RMD160 1fa566eb75489ed48faf8f818561399b3d426791 SHA1 4fb6f682dbc1b4ea54178040d515fc3a4c05d415 SHA256 7d1ca0abc80e2f6161e2a48878b62a2e6d0301c231f91e7677b889ef048b931f
|
||||
DIST ffmpeg-0.10.tar.bz2 5778962 RMD160 a60568d4e8bd1a44a2c986e0648cfacba766bcd4 SHA1 a3a7fe25db760a99d51266b33386da9c8552feef SHA256 43596aa76d1a0fab6d42927bf60383405de2bca8fbc740c2012877559ae17ff9
|
||||
DIST ffmpeg-0.7.8.tar.bz2 4530406 RMD160 8f69a6bc5caaba4e3d440c2d5dc96a946454a52c SHA1 df4983c028a61d4bf3baceab3bae535b91b8928a SHA256 548197968e69b732c12b2cad3173eb6933a9573a7b1f5b29be36d31b9977c9f3
|
||||
|
@ -0,0 +1,283 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ffmpeg-0.10.3.ebuild,v 1.1 2012/05/08 22:49:09 aballier Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
SCM=""
|
||||
if [ "${PV#9999}" != "${PV}" ] ; then
|
||||
SCM="git-2"
|
||||
EGIT_REPO_URI="git://git.videolan.org/ffmpeg.git"
|
||||
fi
|
||||
|
||||
inherit eutils flag-o-matic multilib toolchain-funcs ${SCM}
|
||||
|
||||
DESCRIPTION="Complete solution to record, convert and stream audio and video. Includes libavcodec."
|
||||
HOMEPAGE="http://ffmpeg.org/"
|
||||
if [ "${PV#9999}" != "${PV}" ] ; then
|
||||
SRC_URI=""
|
||||
elif [ "${PV%_p*}" != "${PV}" ] ; then # Snapshot
|
||||
SRC_URI="mirror://gentoo/${P}.tar.bz2"
|
||||
else # Release
|
||||
SRC_URI="http://ffmpeg.org/releases/${P/_/-}.tar.bz2"
|
||||
fi
|
||||
FFMPEG_REVISION="${PV#*_p}"
|
||||
|
||||
LICENSE="GPL-2 amr? ( GPL-3 ) encode? ( aac? ( GPL-3 ) )"
|
||||
SLOT="0"
|
||||
if [ "${PV#9999}" = "${PV}" ] ; then
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
|
||||
fi
|
||||
IUSE="
|
||||
aac aacplus alsa amr ass bindist +bzip2 cdio celt cpudetection debug
|
||||
dirac doc +encode faac frei0r gnutls gsm +hardcoded-tables ieee1394 jack
|
||||
jpeg2k libv4l modplug mp3 network openal openssl oss pic pulseaudio
|
||||
rtmp schroedinger sdl speex static-libs test theora threads
|
||||
truetype v4l vaapi vdpau vorbis vpx X x264 xvid +zlib
|
||||
"
|
||||
|
||||
# String for CPU features in the useflag[:configure_option] form
|
||||
# if :configure_option isn't set, it will use 'useflag' as configure option
|
||||
CPU_FEATURES="3dnow:amd3dnow 3dnowext:amd3dnowext altivec avx mmx mmxext:mmx2 ssse3 vis neon"
|
||||
|
||||
for i in ${CPU_FEATURES}; do
|
||||
IUSE="${IUSE} ${i%:*}"
|
||||
done
|
||||
|
||||
FFTOOLS="aviocat cws2fws ffeval graph2dot ismindex pktdumper qt-faststart trasher"
|
||||
|
||||
for i in ${FFTOOLS}; do
|
||||
IUSE="${IUSE} +fftools_$i"
|
||||
done
|
||||
|
||||
RDEPEND="
|
||||
alsa? ( media-libs/alsa-lib )
|
||||
amr? ( media-libs/opencore-amr )
|
||||
ass? ( media-libs/libass )
|
||||
bzip2? ( app-arch/bzip2 )
|
||||
cdio? ( dev-libs/libcdio )
|
||||
celt? ( >=media-libs/celt-0.11.1 )
|
||||
dirac? ( media-video/dirac )
|
||||
encode? (
|
||||
aac? ( media-libs/vo-aacenc )
|
||||
aacplus? ( media-libs/libaacplus )
|
||||
amr? ( media-libs/vo-amrwbenc )
|
||||
faac? ( media-libs/faac )
|
||||
mp3? ( >=media-sound/lame-3.98.3 )
|
||||
theora? ( >=media-libs/libtheora-1.1.1[encode] media-libs/libogg )
|
||||
vorbis? ( media-libs/libvorbis media-libs/libogg )
|
||||
x264? ( >=media-libs/x264-0.0.20111017 )
|
||||
xvid? ( >=media-libs/xvid-1.1.0 )
|
||||
)
|
||||
frei0r? ( media-plugins/frei0r-plugins )
|
||||
gnutls? ( >=net-libs/gnutls-2.12.16 )
|
||||
gsm? ( >=media-sound/gsm-1.0.12-r1 )
|
||||
ieee1394? ( media-libs/libdc1394 sys-libs/libraw1394 )
|
||||
jack? ( media-sound/jack-audio-connection-kit )
|
||||
jpeg2k? ( >=media-libs/openjpeg-1.3-r2 )
|
||||
libv4l? ( media-libs/libv4l )
|
||||
modplug? ( media-libs/libmodplug )
|
||||
openal? ( >=media-libs/openal-1.1 )
|
||||
pulseaudio? ( media-sound/pulseaudio )
|
||||
rtmp? ( >=media-video/rtmpdump-2.2f )
|
||||
sdl? ( >=media-libs/libsdl-1.2.13-r1[audio,video] )
|
||||
schroedinger? ( media-libs/schroedinger )
|
||||
speex? ( >=media-libs/speex-1.2_beta3 )
|
||||
truetype? ( media-libs/freetype:2 )
|
||||
vaapi? ( >=x11-libs/libva-0.32 )
|
||||
vdpau? ( x11-libs/libvdpau )
|
||||
vpx? ( >=media-libs/libvpx-0.9.6 )
|
||||
X? ( x11-libs/libX11 x11-libs/libXext x11-libs/libXfixes )
|
||||
zlib? ( sys-libs/zlib )
|
||||
!media-video/qt-faststart
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
>=sys-devel/make-3.81
|
||||
dirac? ( virtual/pkgconfig )
|
||||
doc? ( app-text/texi2html )
|
||||
gnutls? ( virtual/pkgconfig )
|
||||
ieee1394? ( virtual/pkgconfig )
|
||||
libv4l? ( virtual/pkgconfig )
|
||||
mmx? ( dev-lang/yasm )
|
||||
rtmp? ( virtual/pkgconfig )
|
||||
schroedinger? ( virtual/pkgconfig )
|
||||
test? ( net-misc/wget )
|
||||
truetype? ( virtual/pkgconfig )
|
||||
v4l? ( sys-kernel/linux-headers )
|
||||
"
|
||||
# faac is license-incompatible with ffmpeg
|
||||
REQUIRED_USE="bindist? ( encode? ( !faac !aacplus ) !openssl )
|
||||
libv4l? ( v4l )
|
||||
fftools_cws2fws? ( zlib )
|
||||
test? ( encode zlib )"
|
||||
|
||||
S=${WORKDIR}/${P/_/-}
|
||||
|
||||
src_prepare() {
|
||||
if [ "${PV%_p*}" != "${PV}" ] ; then # Snapshot
|
||||
export revision=git-N-${FFMPEG_REVISION}
|
||||
fi
|
||||
epatch "${FILESDIR}/freiordl.patch"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf="${EXTRA_FFMPEG_CONF}"
|
||||
# Set to --enable-version3 if (L)GPL-3 is required
|
||||
local version3=""
|
||||
|
||||
# enabled by default
|
||||
for i in debug doc network vaapi vdpau zlib; do
|
||||
use ${i} || myconf="${myconf} --disable-${i}"
|
||||
done
|
||||
use bzip2 || myconf="${myconf} --disable-bzlib"
|
||||
use sdl || myconf="${myconf} --disable-ffplay"
|
||||
|
||||
use cpudetection && myconf="${myconf} --enable-runtime-cpudetect"
|
||||
use openssl && myconf="${myconf} --enable-openssl --enable-nonfree"
|
||||
for i in gnutls ; do
|
||||
use $i && myconf="${myconf} --enable-$i"
|
||||
done
|
||||
|
||||
# Encoders
|
||||
if use encode
|
||||
then
|
||||
use mp3 && myconf="${myconf} --enable-libmp3lame"
|
||||
use aac && { myconf="${myconf} --enable-libvo-aacenc" ; version3=" --enable-version3" ; }
|
||||
use amr && { myconf="${myconf} --enable-libvo-amrwbenc" ; version3=" --enable-version3" ; }
|
||||
for i in theora vorbis x264 xvid; do
|
||||
use ${i} && myconf="${myconf} --enable-lib${i}"
|
||||
done
|
||||
use aacplus && myconf="${myconf} --enable-libaacplus --enable-nonfree"
|
||||
use faac && myconf="${myconf} --enable-libfaac --enable-nonfree"
|
||||
else
|
||||
myconf="${myconf} --disable-encoders"
|
||||
fi
|
||||
|
||||
# libavdevice options
|
||||
use cdio && myconf="${myconf} --enable-libcdio"
|
||||
use ieee1394 && myconf="${myconf} --enable-libdc1394"
|
||||
use openal && myconf="${myconf} --enable-openal"
|
||||
# Indevs
|
||||
# v4l1 is gone since linux-headers-2.6.38
|
||||
myconf="${myconf} --disable-indev=v4l"
|
||||
use v4l || myconf="${myconf} --disable-indev=v4l2"
|
||||
for i in alsa oss jack ; do
|
||||
use ${i} || myconf="${myconf} --disable-indev=${i}"
|
||||
done
|
||||
use X && myconf="${myconf} --enable-x11grab"
|
||||
use pulseaudio && myconf="${myconf} --enable-libpulse"
|
||||
use libv4l && myconf="${myconf} --enable-libv4l2"
|
||||
# Outdevs
|
||||
for i in alsa oss sdl ; do
|
||||
use ${i} || myconf="${myconf} --disable-outdev=${i}"
|
||||
done
|
||||
# libavfilter options
|
||||
use frei0r && myconf="${myconf} --enable-frei0r"
|
||||
use truetype && myconf="${myconf} --enable-libfreetype"
|
||||
use ass && myconf="${myconf} --enable-libass"
|
||||
|
||||
# Threads; we only support pthread for now but ffmpeg supports more
|
||||
use threads && myconf="${myconf} --enable-pthreads"
|
||||
|
||||
# Decoders
|
||||
use amr && { myconf="${myconf} --enable-libopencore-amrwb --enable-libopencore-amrnb" ; version3=" --enable-version3" ; }
|
||||
for i in celt gsm dirac modplug rtmp schroedinger speex vpx; do
|
||||
use ${i} && myconf="${myconf} --enable-lib${i}"
|
||||
done
|
||||
use jpeg2k && myconf="${myconf} --enable-libopenjpeg"
|
||||
|
||||
# CPU features
|
||||
for i in ${CPU_FEATURES}; do
|
||||
use ${i%:*} || myconf="${myconf} --disable-${i#*:}"
|
||||
done
|
||||
if use pic ; then
|
||||
myconf="${myconf} --enable-pic"
|
||||
# disable asm code if PIC is required
|
||||
# as the provided asm decidedly is not PIC for x86.
|
||||
use x86 && myconf="${myconf} --disable-asm"
|
||||
fi
|
||||
|
||||
# Try to get cpu type based on CFLAGS.
|
||||
# Bug #172723
|
||||
# We need to do this so that features of that CPU will be better used
|
||||
# If they contain an unknown CPU it will not hurt since ffmpeg's configure
|
||||
# will just ignore it.
|
||||
for i in $(get-flag march) $(get-flag mcpu) $(get-flag mtune) ; do
|
||||
[ "${i}" = "native" ] && i="host" # bug #273421
|
||||
myconf="${myconf} --cpu=${i}"
|
||||
break
|
||||
done
|
||||
|
||||
# Mandatory configuration
|
||||
myconf="
|
||||
--enable-gpl
|
||||
${version3}
|
||||
--enable-postproc
|
||||
--enable-avfilter
|
||||
--disable-stripping
|
||||
${myconf}"
|
||||
|
||||
# cross compile support
|
||||
if tc-is-cross-compiler ; then
|
||||
myconf="${myconf} --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}-"
|
||||
case ${CHOST} in
|
||||
*freebsd*)
|
||||
myconf="${myconf} --target-os=freebsd"
|
||||
;;
|
||||
mingw32*)
|
||||
myconf="${myconf} --target-os=mingw32"
|
||||
;;
|
||||
*linux*)
|
||||
myconf="${myconf} --target-os=linux"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# Misc stuff
|
||||
use hardcoded-tables && myconf="${myconf} --enable-hardcoded-tables"
|
||||
|
||||
cd "${S}"
|
||||
./configure \
|
||||
--prefix="${EPREFIX}/usr" \
|
||||
--libdir="${EPREFIX}/usr/$(get_libdir)" \
|
||||
--shlibdir="${EPREFIX}/usr/$(get_libdir)" \
|
||||
--mandir="${EPREFIX}/usr/share/man" \
|
||||
--enable-shared \
|
||||
--cc="$(tc-getCC)" \
|
||||
--cxx="$(tc-getCXX)" \
|
||||
--ar="$(tc-getAR)" \
|
||||
--optflags="${CFLAGS}" \
|
||||
--extra-cflags="${CFLAGS}" \
|
||||
--extra-cxxflags="${CXXFLAGS}" \
|
||||
$(use_enable static-libs static) \
|
||||
${myconf} || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake
|
||||
|
||||
for i in ${FFTOOLS} ; do
|
||||
if use fftools_$i ; then
|
||||
emake tools/$i
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install install-man
|
||||
|
||||
dodoc Changelog README INSTALL
|
||||
dodoc -r doc/*
|
||||
|
||||
for i in ${FFTOOLS} ; do
|
||||
if use fftools_$i ; then
|
||||
dobin tools/$i
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
src_test() {
|
||||
LD_LIBRARY_PATH="${S}/libpostproc:${S}/libswscale:${S}/libswresample:${S}/libavcodec:${S}/libavdevice:${S}/libavfilter:${S}/libavformat:${S}/libavutil" \
|
||||
emake fate
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue