parent
de7cbc4ef3
commit
1f222b9c2e
@ -0,0 +1,173 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/antlr/antlr-2.7.7-r6.ebuild,v 1.1 2015/07/19 08:22:24 monsieurp Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
DISTUTILS_OPTIONAL="y"
|
||||
DISTUTILS_SINGLE_IMPL="y"
|
||||
DISTUTILS_IN_SOURCE_BUILD="y"
|
||||
|
||||
inherit base java-pkg-2 mono autotools distutils-r1 multilib toolchain-funcs versionator
|
||||
|
||||
DESCRIPTION="A parser generator for C++, C#, Java, and Python"
|
||||
HOMEPAGE="http://www.antlr2.org/"
|
||||
SRC_URI="http://www.antlr2.org/download/${P}.tar.gz"
|
||||
|
||||
LICENSE="public-domain"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="doc debug examples mono +cxx +java python script source static-libs"
|
||||
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
# TODO do we actually need jdk at runtime?
|
||||
RDEPEND="python? ( ${PYTHON_DEPS} )
|
||||
>=virtual/jdk-1.6
|
||||
mono? ( dev-lang/mono )"
|
||||
DEPEND="${RDEPEND}
|
||||
>=sys-devel/automake-1.15
|
||||
script? ( !dev-util/pccts )
|
||||
source? ( app-arch/zip )"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${PV}-{gcc-4.3,gcc-4.4,makefixes}.patch )
|
||||
|
||||
make_shared_lib() {
|
||||
local soname=$(basename "${1%.a}")$(get_libname $(get_major_version))
|
||||
einfo "Making ${soname}"
|
||||
[[ ${CHOST} == *-darwin* ]] \
|
||||
&& make_shared_lib_macho "${soname}" "$1" "$2"\
|
||||
|| make_shared_lib_elf "${soname}" "$1" "$2"
|
||||
}
|
||||
|
||||
make_shared_lib_elf() {
|
||||
local soname=$1 archive=$2 cc=$3
|
||||
${cc:-$(tc-getCXX)} ${LDFLAGS} \
|
||||
-shared -Wl,-soname="${soname}" \
|
||||
-Wl,--whole-archive "${archive}" -Wl,--no-whole-archive \
|
||||
-o $(dirname "${archive}")/"${soname}" || return 1
|
||||
}
|
||||
|
||||
make_shared_lib_macho() {
|
||||
local soname=$1 archive=$2 cc=$3
|
||||
${cc:-$(tc-getCXX)} ${LDFLAGS} \
|
||||
-dynamiclib -install_name "${EPREFIX}/usr/$(get_libdir)/${soname}" \
|
||||
-force_load "${archive}" \
|
||||
-o $(dirname "${archive}")/"${soname}" || return 1
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
java-pkg-2_pkg_setup
|
||||
|
||||
if use python ; then
|
||||
python-single-r1_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
base_src_prepare
|
||||
|
||||
sed -i \
|
||||
-e 's/install:.*this-install/install:/' \
|
||||
lib/cpp/src/Makefile.in || die
|
||||
|
||||
use static-libs || epatch "${FILESDIR}/${PV}-static-libs-fix.patch"
|
||||
|
||||
# See bug #468540, this can be removed once bug #469150 is fixed.
|
||||
sed -i 's/tlib lib ar/ar/' configure.in || die
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# don't ask why, but this is needed for stuff to get built properly
|
||||
# across the various JDKs
|
||||
JAVACFLAGS="+ ${JAVACFLAGS}"
|
||||
|
||||
# mcs for https://bugs.gentoo.org/show_bug.cgi?id=172104
|
||||
CSHARPC="mcs" econf $(use_enable java) \
|
||||
$(use_enable python) \
|
||||
$(use_enable mono csharp) \
|
||||
$(use_enable debug) \
|
||||
$(use_enable examples) \
|
||||
$(use_enable cxx) \
|
||||
--enable-verbose
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake CXXFLAGS="${CXXFLAGS} -fPIC"
|
||||
if use cxx; then
|
||||
pushd lib/cpp/src > /dev/null
|
||||
make_shared_lib libantlr.a || die
|
||||
if use static-libs; then
|
||||
make clean
|
||||
emake
|
||||
fi
|
||||
popd > /dev/null
|
||||
fi
|
||||
|
||||
if use python ; then
|
||||
pushd "${S}"/lib/python > /dev/null
|
||||
distutils-r1_src_compile
|
||||
popd > /dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin scripts/antlr-config
|
||||
|
||||
if use cxx ; then
|
||||
pushd lib/cpp > /dev/null
|
||||
einstall
|
||||
dolib.so src/libantlr$(get_libname $(get_major_version))
|
||||
dosym libantlr$(get_libname $(get_major_version)) \
|
||||
/usr/$(get_libdir)/libantlr$(get_libname)
|
||||
use static-libs && dolib.a src/libantlr.a
|
||||
newdoc AUTHORS{,.cpp}
|
||||
newdoc ChangeLog{,.cpp}
|
||||
newdoc TODO{,.cpp}
|
||||
popd > /dev/null
|
||||
fi
|
||||
|
||||
if use java ; then
|
||||
java-pkg_dojar antlr/antlr.jar
|
||||
use script && java-pkg_dolauncher antlr --main antlr.Tool
|
||||
use source && java-pkg_dosrc antlr
|
||||
use doc && java-pkg_dohtml -r doc/*
|
||||
fi
|
||||
|
||||
if use mono ; then
|
||||
pushd lib > /dev/null
|
||||
dodir /usr/$(get_libdir)/antlr/
|
||||
insinto /usr/$(get_libdir)/antlr/
|
||||
doins antlr.astframe.dll
|
||||
doins antlr.runtime.dll
|
||||
sed -e "s|@prefix@|${EPREFIX}/usr|" \
|
||||
-e 's|@exec_prefix@|${prefix}|' \
|
||||
-e "s|@libdir@|\$\{exec_prefix\}/$(get_libdir)/antlr|" \
|
||||
-e 's|@libs@|-r:${libdir}/antlr.astframe.dll -r:${libdir}/antlr.runtime.dll|' \
|
||||
-e "s|@VERSION@|${PV}|" \
|
||||
"${FILESDIR}"/antlr.pc.in > antlr.pc
|
||||
insinto /usr/$(get_libdir)/pkgconfig
|
||||
doins antlr.pc
|
||||
popd > /dev/null
|
||||
fi
|
||||
|
||||
if use python ; then
|
||||
pushd "${S}"/lib/python > /dev/null
|
||||
distutils-r1_src_install
|
||||
popd > /dev/null
|
||||
fi
|
||||
|
||||
if use examples ; then
|
||||
find "${S}"/examples -iname Makefile\* -exec rm \{\} \;
|
||||
insinto /usr/share/doc/${PF}/examples
|
||||
use cxx && doins -r "${S}"/examples/cpp
|
||||
use java && doins -r "${S}"/examples/java
|
||||
use mono && doins -r "${S}"/examples/csharp
|
||||
use python && doins -r "${S}"/examples/python
|
||||
fi
|
||||
|
||||
dodoc README.txt
|
||||
}
|
@ -0,0 +1,58 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-util/aruba/aruba-0.8.1.ebuild,v 1.1 2015/07/19 06:37:10 graaff Exp $
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby19 ruby20 ruby21 ruby22"
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_RECIPE_TEST="cucumber"
|
||||
RUBY_FAKEGEM_EXTRADOC="History.md README.md"
|
||||
|
||||
RUBY_FAKEGEM_GEMSPEC="aruba.gemspec"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="Cucumber steps for driving out command line applications"
|
||||
HOMEPAGE="https://github.com/cucumber/aruba"
|
||||
LICENSE="MIT"
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="${DEPEND} test? ( sys-devel/bc )"
|
||||
RDEPEND="${RDEPEND}"
|
||||
|
||||
ruby_add_rdepend "
|
||||
>=dev-ruby/childprocess-0.5.6 =dev-ruby/childprocess-0.5*
|
||||
>=dev-ruby/contracts-0.9:0
|
||||
>=dev-ruby/rspec-expectations-2.99:2
|
||||
>=dev-util/cucumber-1.3.19"
|
||||
|
||||
ruby_add_bdepend "test? ( dev-ruby/rspec:3 >=dev-ruby/bcat-0.6.2 )"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Remove bundler-related code.
|
||||
sed -i -e '/[Bb]undler/d' Rakefile spec/spec_helper.rb || die
|
||||
rm Gemfile || die
|
||||
|
||||
sed -i -e '/simplecov/I s:^:#:' \
|
||||
-e '/Before/,/^end/ s:^:#:' \
|
||||
spec/spec_helper.rb features/support/env.rb || die
|
||||
rm -f features/support/simplecov_setup.rb || die
|
||||
sed -i -e '1i require "time"' spec/spec_helper.rb || die
|
||||
|
||||
# Remove references to git ls-files.
|
||||
sed -i -e '/git ls-files/d' aruba.gemspec || die
|
||||
|
||||
# Avoid scenarios making broken assumptions on ${HOME}
|
||||
sed -i -e '/Scenario: Use ~ in path/i @wip' \
|
||||
features/api/core/expand_path.feature || die
|
||||
rm -f features/configuration/home_directory.feature || die
|
||||
}
|
||||
|
||||
each_ruby_test() {
|
||||
RSPEC_VERSION=3 ruby-ng_rspec
|
||||
RUBYLIB="$(pwd)/lib" ruby-ng_cucumber
|
||||
}
|
@ -1 +1 @@
|
||||
Sun, 19 Jul 2015 06:36:51 +0000
|
||||
Sun, 19 Jul 2015 09:06:52 +0000
|
||||
|
@ -1 +1 @@
|
||||
Sun, 19 Jul 2015 06:36:51 +0000
|
||||
Sun, 19 Jul 2015 09:06:52 +0000
|
||||
|
@ -0,0 +1,14 @@
|
||||
DEFINED_PHASES=compile configure install preinst prepare setup unpack
|
||||
DEPEND=python? ( >=dev-lang/python-2.7.5-r2:2.7 >=dev-lang/python-exec-2:=[python_targets_python2_7(-)?,-python_single_target_jython2_5(-),-python_single_target_jython2_7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),-python_single_target_python3_3(-),-python_single_target_python3_4(-),python_single_target_python2_7(+)] ) >=virtual/jdk-1.6 mono? ( dev-lang/mono ) >=sys-devel/automake-1.15 script? ( !dev-util/pccts ) source? ( app-arch/zip ) >=dev-java/java-config-2.2.0 !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.15:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4
|
||||
DESCRIPTION=A parser generator for C++, C#, Java, and Python
|
||||
EAPI=5
|
||||
HOMEPAGE=http://www.antlr2.org/
|
||||
IUSE=doc debug examples mono +cxx +java python script source static-libs elibc_FreeBSD python_targets_python2_7
|
||||
KEYWORDS=~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris
|
||||
LICENSE=public-domain
|
||||
RDEPEND=python? ( >=dev-lang/python-2.7.5-r2:2.7 >=dev-lang/python-exec-2:=[python_targets_python2_7(-)?,-python_single_target_jython2_5(-),-python_single_target_jython2_7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),-python_single_target_python3_3(-),-python_single_target_python3_4(-),python_single_target_python2_7(+)] ) >=virtual/jdk-1.6 mono? ( dev-lang/mono ) >=dev-java/java-config-2.2.0
|
||||
REQUIRED_USE=python? ( python_targets_python2_7 )
|
||||
SLOT=0
|
||||
SRC_URI=http://www.antlr2.org/download/antlr-2.7.7.tar.gz
|
||||
_eclasses_=autotools 2264f05fbbbaaf83d34ec81e72b38ffd base 87f7447ccfc06fd0729ff4684e11e0d6 distutils-r1 715b22a21726d3fd76b17e007c5daf5f eutils 9fb270e417e0e83d64ca52586c4a79de java-pkg-2 1889f7787714c5f7e3b5bb1c2be07c1f java-utils-2 8cdf065211fa6d6687bdc3f3ebe12efc libtool 52d0e17251d04645ffaa61bfdd858944 mono 203a4295c06155d318bdff9c6b2d5e1c multilib 62927b3db3a589b0806255f3a002d5d3 python-single-r1 351da1aa73960a282591217fb57c1bb8 python-utils-r1 ae9becb5d45344c01939c3f57df0d3fd toolchain-funcs 42408102d713fbad60ca21349865edb4 versionator cd0bcdb170807e4a1984115e9d53a26f
|
||||
_md5_=f12565cf913afa427e6fa38e14aec58e
|
@ -0,0 +1,14 @@
|
||||
DEFINED_PHASES=compile configure install prepare setup test unpack
|
||||
DEPEND=test? ( sys-devel/bc ) test? ( ruby_targets_ruby19? ( >=dev-ruby/childprocess-0.5.6[ruby_targets_ruby19] =dev-ruby/childprocess-0.5*[ruby_targets_ruby19] >=dev-ruby/contracts-0.9:0[ruby_targets_ruby19] >=dev-ruby/rspec-expectations-2.99:2[ruby_targets_ruby19] >=dev-util/cucumber-1.3.19[ruby_targets_ruby19] ) ruby_targets_ruby20? ( >=dev-ruby/childprocess-0.5.6[ruby_targets_ruby20] =dev-ruby/childprocess-0.5*[ruby_targets_ruby20] >=dev-ruby/contracts-0.9:0[ruby_targets_ruby20] >=dev-ruby/rspec-expectations-2.99:2[ruby_targets_ruby20] >=dev-util/cucumber-1.3.19[ruby_targets_ruby20] ) ruby_targets_ruby21? ( >=dev-ruby/childprocess-0.5.6[ruby_targets_ruby21] =dev-ruby/childprocess-0.5*[ruby_targets_ruby21] >=dev-ruby/contracts-0.9:0[ruby_targets_ruby21] >=dev-ruby/rspec-expectations-2.99:2[ruby_targets_ruby21] >=dev-util/cucumber-1.3.19[ruby_targets_ruby21] ) ruby_targets_ruby22? ( >=dev-ruby/childprocess-0.5.6[ruby_targets_ruby22] =dev-ruby/childprocess-0.5*[ruby_targets_ruby22] >=dev-ruby/contracts-0.9:0[ruby_targets_ruby22] >=dev-ruby/rspec-expectations-2.99:2[ruby_targets_ruby22] >=dev-util/cucumber-1.3.19[ruby_targets_ruby22] ) ) ruby_targets_ruby19? ( test? ( dev-ruby/rspec:3[ruby_targets_ruby19] >=dev-ruby/bcat-0.6.2[ruby_targets_ruby19] ) ) ruby_targets_ruby20? ( test? ( dev-ruby/rspec:3[ruby_targets_ruby20] >=dev-ruby/bcat-0.6.2[ruby_targets_ruby20] ) ) ruby_targets_ruby21? ( test? ( dev-ruby/rspec:3[ruby_targets_ruby21] >=dev-ruby/bcat-0.6.2[ruby_targets_ruby21] ) ) ruby_targets_ruby22? ( test? ( dev-ruby/rspec:3[ruby_targets_ruby22] >=dev-ruby/bcat-0.6.2[ruby_targets_ruby22] ) ) ruby_targets_ruby19? ( dev-lang/ruby:1.9 ) ruby_targets_ruby20? ( dev-lang/ruby:2.0 ) ruby_targets_ruby21? ( dev-lang/ruby:2.1 ) ruby_targets_ruby22? ( dev-lang/ruby:2.2 ) ruby_targets_ruby19? ( test? ( dev-util/cucumber[ruby_targets_ruby19] ) ) ruby_targets_ruby20? ( test? ( dev-util/cucumber[ruby_targets_ruby20] ) ) ruby_targets_ruby21? ( test? ( dev-util/cucumber[ruby_targets_ruby21] ) ) ruby_targets_ruby22? ( test? ( dev-util/cucumber[ruby_targets_ruby22] ) ) ruby_targets_ruby19? ( virtual/rubygems[ruby_targets_ruby19] ) ruby_targets_ruby20? ( virtual/rubygems[ruby_targets_ruby20] ) ruby_targets_ruby21? ( virtual/rubygems[ruby_targets_ruby21] ) ruby_targets_ruby22? ( virtual/rubygems[ruby_targets_ruby22] ) test? ( ruby_targets_ruby19? ( virtual/rubygems[ruby_targets_ruby19] ) ruby_targets_ruby20? ( virtual/rubygems[ruby_targets_ruby20] ) ruby_targets_ruby21? ( virtual/rubygems[ruby_targets_ruby21] ) ruby_targets_ruby22? ( virtual/rubygems[ruby_targets_ruby22] ) )
|
||||
DESCRIPTION=Cucumber steps for driving out command line applications
|
||||
EAPI=5
|
||||
HOMEPAGE=https://github.com/cucumber/aruba
|
||||
IUSE=test elibc_FreeBSD ruby_targets_ruby19 ruby_targets_ruby20 ruby_targets_ruby21 ruby_targets_ruby22 test test
|
||||
KEYWORDS=~amd64
|
||||
LICENSE=MIT
|
||||
RDEPEND=ruby_targets_ruby19? ( >=dev-ruby/childprocess-0.5.6[ruby_targets_ruby19] =dev-ruby/childprocess-0.5*[ruby_targets_ruby19] >=dev-ruby/contracts-0.9:0[ruby_targets_ruby19] >=dev-ruby/rspec-expectations-2.99:2[ruby_targets_ruby19] >=dev-util/cucumber-1.3.19[ruby_targets_ruby19] ) ruby_targets_ruby20? ( >=dev-ruby/childprocess-0.5.6[ruby_targets_ruby20] =dev-ruby/childprocess-0.5*[ruby_targets_ruby20] >=dev-ruby/contracts-0.9:0[ruby_targets_ruby20] >=dev-ruby/rspec-expectations-2.99:2[ruby_targets_ruby20] >=dev-util/cucumber-1.3.19[ruby_targets_ruby20] ) ruby_targets_ruby21? ( >=dev-ruby/childprocess-0.5.6[ruby_targets_ruby21] =dev-ruby/childprocess-0.5*[ruby_targets_ruby21] >=dev-ruby/contracts-0.9:0[ruby_targets_ruby21] >=dev-ruby/rspec-expectations-2.99:2[ruby_targets_ruby21] >=dev-util/cucumber-1.3.19[ruby_targets_ruby21] ) ruby_targets_ruby22? ( >=dev-ruby/childprocess-0.5.6[ruby_targets_ruby22] =dev-ruby/childprocess-0.5*[ruby_targets_ruby22] >=dev-ruby/contracts-0.9:0[ruby_targets_ruby22] >=dev-ruby/rspec-expectations-2.99:2[ruby_targets_ruby22] >=dev-util/cucumber-1.3.19[ruby_targets_ruby22] ) ruby_targets_ruby19? ( dev-lang/ruby:1.9 ) ruby_targets_ruby20? ( dev-lang/ruby:2.0 ) ruby_targets_ruby21? ( dev-lang/ruby:2.1 ) ruby_targets_ruby22? ( dev-lang/ruby:2.2 ) ruby_targets_ruby19? ( virtual/rubygems[ruby_targets_ruby19] ) ruby_targets_ruby20? ( virtual/rubygems[ruby_targets_ruby20] ) ruby_targets_ruby21? ( virtual/rubygems[ruby_targets_ruby21] ) ruby_targets_ruby22? ( virtual/rubygems[ruby_targets_ruby22] )
|
||||
REQUIRED_USE=|| ( ruby_targets_ruby19 ruby_targets_ruby20 ruby_targets_ruby21 ruby_targets_ruby22 )
|
||||
SLOT=0
|
||||
SRC_URI=mirror://rubygems/aruba-0.8.1.gem
|
||||
_eclasses_=eutils 9fb270e417e0e83d64ca52586c4a79de java-utils-2 8cdf065211fa6d6687bdc3f3ebe12efc multilib 62927b3db3a589b0806255f3a002d5d3 ruby-fakegem 59aa129a3b9dc9e6225a0622860d2f54 ruby-ng a1c75617b3482d513ad41d1aea8dbf8f ruby-utils a74e21a353442acf697b6c82e7df6df8 toolchain-funcs 42408102d713fbad60ca21349865edb4 versionator cd0bcdb170807e4a1984115e9d53a26f
|
||||
_md5_=bb71fec2b4ffa39ae422f8826a282203
|
@ -0,0 +1,14 @@
|
||||
DEFINED_PHASES=compile configure install prepare setup test
|
||||
DEPEND=dev-python/setuptools[python_targets_python3_3(-)?,python_targets_python3_4(-)?,python_targets_python2_7(-)?,-python_single_target_jython2_5(-),-python_single_target_jython2_7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),python_single_target_python3_3(+)?,python_single_target_python3_4(+)?,python_single_target_python2_7(+)?] test? ( dev-python/nose[coverage(+)] ) python_single_target_python3_3? ( >=dev-lang/python-3.3.2-r2:3.3 ) python_single_target_python3_4? ( dev-lang/python:3.4 ) python_single_target_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) >=dev-lang/python-exec-2:=[python_targets_python3_3(-)?,python_targets_python3_4(-)?,python_targets_python2_7(-)?,-python_single_target_jython2_5(-),-python_single_target_jython2_7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),python_single_target_python3_3(+)?,python_single_target_python3_4(+)?,python_single_target_python2_7(+)?]
|
||||
DESCRIPTION=Download videos from YouTube.com (and more sites...)
|
||||
EAPI=5
|
||||
HOMEPAGE=http://rg3.github.com/youtube-dl/
|
||||
IUSE=offensive test python_targets_python3_3 python_targets_python3_4 python_targets_python2_7 python_single_target_python3_3 python_single_target_python3_4 python_single_target_python2_7
|
||||
KEYWORDS=~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris
|
||||
LICENSE=public-domain
|
||||
RDEPEND=python_single_target_python3_3? ( >=dev-lang/python-3.3.2-r2:3.3 ) python_single_target_python3_4? ( dev-lang/python:3.4 ) python_single_target_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) >=dev-lang/python-exec-2:=[python_targets_python3_3(-)?,python_targets_python3_4(-)?,python_targets_python2_7(-)?,-python_single_target_jython2_5(-),-python_single_target_jython2_7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),python_single_target_python3_3(+)?,python_single_target_python3_4(+)?,python_single_target_python2_7(+)?]
|
||||
REQUIRED_USE=^^ ( python_single_target_python3_3 python_single_target_python3_4 python_single_target_python2_7 ) python_single_target_python3_3? ( python_targets_python3_3 ) python_single_target_python3_4? ( python_targets_python3_4 ) python_single_target_python2_7? ( python_targets_python2_7 )
|
||||
SLOT=0
|
||||
SRC_URI=http://youtube-dl.org/downloads/2015.07.18/youtube-dl-2015.07.18.tar.gz
|
||||
_eclasses_=bash-completion-r1 c8399c7c7ecbcf7ed6e5bd3abb3d4af3 distutils-r1 715b22a21726d3fd76b17e007c5daf5f eutils 9fb270e417e0e83d64ca52586c4a79de multilib 62927b3db3a589b0806255f3a002d5d3 python-single-r1 351da1aa73960a282591217fb57c1bb8 python-utils-r1 ae9becb5d45344c01939c3f57df0d3fd toolchain-funcs 42408102d713fbad60ca21349865edb4
|
||||
_md5_=5ac2a94f1f9c49cd5e44f3d749d167de
|
@ -1 +1 @@
|
||||
Sun, 19 Jul 2015 06:36:55 +0000
|
||||
Sun, 19 Jul 2015 09:06:55 +0000
|
||||
|
@ -1 +1 @@
|
||||
Sun Jul 19 06:36:51 UTC 2015
|
||||
Sun Jul 19 09:06:52 UTC 2015
|
||||
|
@ -1 +1 @@
|
||||
Sun, 19 Jul 2015 07:00:01 +0000
|
||||
Sun, 19 Jul 2015 09:30:01 +0000
|
||||
|
@ -1 +1 @@
|
||||
1437287701 Sun 19 Jul 2015 06:35:01 AM UTC
|
||||
1437296701 Sun 19 Jul 2015 09:05:01 AM UTC
|
||||
|
@ -0,0 +1,87 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/net-misc/youtube-dl/youtube-dl-2015.07.18.ebuild,v 1.1 2015/07/19 07:45:39 jer Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=(python{2_7,3_3,3_4})
|
||||
DISTUTILS_SINGLE_IMPL=true
|
||||
inherit bash-completion-r1 distutils-r1 eutils
|
||||
|
||||
DESCRIPTION="Download videos from YouTube.com (and more sites...)"
|
||||
HOMEPAGE="http://rg3.github.com/youtube-dl/"
|
||||
SRC_URI="http://youtube-dl.org/downloads/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="public-domain"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
|
||||
IUSE="offensive test"
|
||||
|
||||
DEPEND="
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? ( dev-python/nose[coverage(+)] )
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${PN}"
|
||||
|
||||
src_prepare() {
|
||||
if ! use offensive; then
|
||||
sed -i -e "/__version__/s|'$|-gentoo_no_offensive_sites'|g" \
|
||||
youtube_dl/version.py || die
|
||||
# these have single line import statements
|
||||
local xxx=(
|
||||
alphaporno anysex behindkink drtuber eporner eroprofile extremetube
|
||||
fourtube foxgay goshgay hellporno hentaistigma hornbunny keezmovies
|
||||
mofosex motherless porn91 pornhd pornotube pornovoisines pornoxo
|
||||
redtube sexykarma sexu sunporno slutload spankbang spankwire thisav
|
||||
trutube tube8 vporn xbef xnxx xtube xvideos xxxymovies youjizz
|
||||
youporn
|
||||
)
|
||||
# these have multi-line import statements
|
||||
local mxxx=(
|
||||
pornhub xhamster tnaflix
|
||||
)
|
||||
# do single line imports
|
||||
sed -i \
|
||||
-e $( printf '/%s/d;' ${xxx[@]} ) \
|
||||
youtube_dl/extractor/__init__.py \
|
||||
|| die
|
||||
|
||||
# do multiple line imports
|
||||
sed -i \
|
||||
-e $( printf '/%s/,/)/d;' ${mxxx[@]} ) \
|
||||
youtube_dl/extractor/__init__.py \
|
||||
|| die
|
||||
|
||||
sed -i \
|
||||
-e $( printf '/%s/d;' ${mxxx[@]} ) \
|
||||
youtube_dl/extractor/generic.py \
|
||||
youtube_dl/extractor/tumblr.py \
|
||||
|| die
|
||||
|
||||
rm \
|
||||
$( printf 'youtube_dl/extractor/%s.py ' ${xxx[@]} ) \
|
||||
$( printf 'youtube_dl/extractor/%s.py ' ${mxxx[@]} ) \
|
||||
test/test_age_restriction.py \
|
||||
|| die
|
||||
fi
|
||||
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
distutils-r1_src_compile
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
python_domodule youtube_dl
|
||||
dobin bin/${PN}
|
||||
dodoc README.txt
|
||||
doman ${PN}.1
|
||||
newbashcomp ${PN}.bash-completion ${PN}
|
||||
python_fix_shebang "${ED}"
|
||||
}
|
Loading…
Reference in new issue