parent
6ccd36febc
commit
bc6b4833b2
@ -1,5 +1,19 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
DIST util-linux-2.21-20120228.diff.bz2 43809 SHA256 fc28d4f0e2737b53a4db59072ab0fcf4180a8ece28c79219a21780124798572a SHA512 94135ed18699efd949f5937576da2721957177bbef9be8234ae48ee34f30f4cb65361a541f79c636ed6d6bb5c2786e1096d096407834e1421d82ee78ae0790e9 WHIRLPOOL ba23dccc56fc49d7ad9075537317ad4580ace2a4cd8f6b0250f42035c03ba910f3cafa8e8b1da4c7e5a0960d74c42f2706fda579a3b4a6cadc61dccd2fff3ff0
|
||||
DIST util-linux-2.21.tar.xz 2954504 SHA256 5192e8ba7dcf3cf0dc447f07b3d177f6cb3fb49dfae54ac45d6c8c7d86eeab0f SHA512 aab384db2d1a3e08fd560a3e4d7ed7d6b2ceac61386db94eecae65bd540200a8549e141b99d8dad5c6f96587940b574d0544984acef6a35d1f24870e0072c552 WHIRLPOOL 1968ddd63fd21ef9542bb8afc77292ed2bad6f83e1cd67aa4159db8b320abd80ee0d20a062df35ae2ad91e0bc9068168b9f9e44aa39eaf4861d436dd855bea5d
|
||||
EBUILD loop-aes-losetup-2.21.ebuild 2734 SHA256 59538ccb1336e03a5e0188000161ba3566a31ad00d88b695710cfe89493b07ca SHA512 1d653fbf3cfa4af23eeef5927414d42be64a3f036b34a5f9f4730a74d4b3eefa5f021b559dcd706195c2a0acf61eab14e65fdbe7178b275f3cae00b77b1515ae WHIRLPOOL 482faf43395370ecc221e58cfb341dfd4b14800b0f286e72304a0aba70e0693a3d1bb29fff74995d3e729ff903f7083b80c2ac7fcdbe3e35b9a91a119f309b3d
|
||||
MISC ChangeLog 373 SHA256 fae6ec0f8f7fcb08735e50cef709c2ab0691733a5de44e08ec9ec7928f286679 SHA512 797a852c48cd7626144cb2bd532c2981b8d7eecebcd6e9eb3370e241bb705c88895536f32c78b7f063e6ce92da729dbd420c22b4e16656514f006aead832e698 WHIRLPOOL 33534592fd177db2bf9c721066a2c429c6dcac0ff8552b3e966ea2f546e14885c0863fd98edfc74f2c6b27257c5929611a466fc3823cbf510cb1805e435c9787
|
||||
EBUILD loop-aes-losetup-2.21.ebuild 2733 SHA256 742967336a6c91a8489d9fd1118155b59402c24fce8acb73bd5e05ed7c5948e9 SHA512 3aa0ac5e9c48daab2f9f6ab0f82776e2456c44b0a201d092c0e960508717387c5aeae12397d8dc142d12920f974a3db7fe87fd6f89c6dda03c78c422846b3e82 WHIRLPOOL f511712ada4f9d3504e5b3a9b21284f89549625cef9bbb2591c8d6d8ed273195ed787cd38e71a8ae6c7c2b604ea85bff71975a036b2f396b0e6824e328e0c606
|
||||
MISC ChangeLog 487 SHA256 1c1a0c63fea9c287307a4b761c2585d5d332f0fa6fdad43e4c0abb6223ccda41 SHA512 d3a5219326dce54659aeeefaf22c4259f8102f9c27ff29afc928cfdb0cc73461e933537a3e48477731644b9c66dfd1f0362b30390c7ff86cb8d38e35a28d11d3 WHIRLPOOL af29af8fac83ef8d7ac76ae10fdfff202a466867c05addbd320b8d5d3f05e84b4590e898bac1b3dcc51b830aa03481f64e929d6bb1d80dafdd1903a116e1e2dd
|
||||
MISC metadata.xml 160 SHA256 7419f4e73ddd07284403525f1380824fc68280cad69e2dfae0645ad52b33ef10 SHA512 bfec8d424a118209f298dd88f7073aaaf6e1ad49f67a441817313a6fa525a0d228241dfb1ccd8dae45e1192db9712b1d5e9cf053f9f398eff5c17089373e7104 WHIRLPOOL 47a9e0b778a140714a565acf9db6bd59e11732af1f4cbb86af0beb36a8a9d77a29f0a875aa24537387ffe6e3143724a59cc60a0d93cf7870fd47e511d17c3de5
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.0.20 (GNU/Linux)
|
||||
|
||||
iQEcBAEBCAAGBQJRuiRVAAoJEA2sAkrWKOU2rkgIAJ26BdMBCbxXndmo2z1Ml5az
|
||||
7H0ICyOmkggUfi4y5QLJCJipx2DJx9VxKelBr1Pm0VGzBmV3l/z5tePyXawtTQz6
|
||||
0xNG45lxElHFDWx/u3V69YYOpoIo+svE5uZPrWeZ9rVJOB502JhEYZknv/4LSgnc
|
||||
/s+EtfmDYwdxY1nZm0njzDBPfa6kl9kS8JZO5dfcXJiRKllQMkM4ZrOlXlu+1Leq
|
||||
OIx3lGSV+sG6BkISkkJOX5jRbLLhW3KfE/iXFo2VsaqqkXWh4c35kRbW6cT5FHw6
|
||||
w0KXJVLq2Z+5d21vgxaEB3no7izLlcZrnoK28oued6r9rhxeHFWsAhsi7AyRP/Q=
|
||||
=9JKX
|
||||
-----END PGP SIGNATURE-----
|
||||
|
@ -0,0 +1,47 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/zathura-cb/zathura-cb-0.1.1.ebuild,v 1.2 2013/06/13 21:52:51 xmw Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
DESCRIPTION="Comic book plug-in for zathura with 7zip, rar, tar and zip support"
|
||||
HOMEPAGE="http://pwmt.org/projects/zathura/"
|
||||
SRC_URI="http://pwmt.org/projects/zathura/plugins/download/${P}.tar.gz"
|
||||
|
||||
LICENSE="ZLIB"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="cairo"
|
||||
|
||||
COMMON_DEPEND=">=app-text/zathura-0.2.0
|
||||
dev-libs/glib:2
|
||||
app-arch/libarchive:=
|
||||
cairo? ( x11-libs/cairo )"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
app-arch/p7zip
|
||||
app-arch/tar
|
||||
app-arch/unrar
|
||||
app-arch/unzip"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
pkg_setup() {
|
||||
myzathuraconf=(
|
||||
WITH_CAIRO=$(usex cairo 1 0)
|
||||
CC="$(tc-getCC)"
|
||||
LD="$(tc-getLD)"
|
||||
VERBOSE=1
|
||||
DESTDIR="${D}"
|
||||
)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake "${myzathuraconf[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake "${myzathuraconf[@]}" install
|
||||
dodoc AUTHORS
|
||||
}
|
@ -0,0 +1,42 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/zathura-djvu/zathura-djvu-0.2.3.ebuild,v 1.1 2013/06/13 22:00:58 xmw Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
DESCRIPTION="DjVu plug-in for zathura"
|
||||
HOMEPAGE="http://pwmt.org/projects/zathura/"
|
||||
SRC_URI="http://pwmt.org/projects/zathura/plugins/download/${P}.tar.gz"
|
||||
|
||||
LICENSE="ZLIB"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="cairo"
|
||||
|
||||
RDEPEND=">=app-text/djvu-3.5.24-r1
|
||||
>=app-text/zathura-0.2.0
|
||||
dev-libs/glib:2
|
||||
cairo? ( x11-libs/cairo )"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
pkg_setup() {
|
||||
myzathuraconf=(
|
||||
WITH_CAIRO=$(usex cairo 1 0)
|
||||
CC="$(tc-getCC)"
|
||||
LD="$(tc-getLD)"
|
||||
VERBOSE=1
|
||||
DESTDIR="${D}"
|
||||
)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake "${myzathuraconf[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake "${myzathuraconf[@]}" install
|
||||
dodoc AUTHORS
|
||||
}
|
@ -1,8 +1,29 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer>
|
||||
<email>xmw@gentoo.org</email>
|
||||
<name>Michael Weber</name>
|
||||
</maintainer>
|
||||
<maintainer>
|
||||
<email>wired@gentoo.org</email>
|
||||
<name>Alex Alexander</name>
|
||||
</maintainer>
|
||||
<maintainer>
|
||||
<email>ssuominen@gentoo.org</email>
|
||||
<name>Samuli Suominen</name>
|
||||
</maintainer>
|
||||
<maintainer>
|
||||
<email>xmw@gentoo.org</email>
|
||||
<name>Michael Weber</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<maintainer status="active">
|
||||
<email>mlq@pwmt.org</email>
|
||||
<name>Moritz Lipp</name>
|
||||
</maintainer>
|
||||
<maintainer status="active">
|
||||
<email>sebastian+dev@ramacher.at</email>
|
||||
<name>Sebastian Ramacher</name>
|
||||
</maintainer>
|
||||
<changelog>http://pwmt.org/projects/zathura/download/</changelog>
|
||||
<doc lang="en">http://pwmt.org/projects/zathura/</doc>
|
||||
<bugs-to>http://bugs.pwmt.org/</bugs-to>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
|
@ -0,0 +1,41 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/zathura-pdf-poppler/zathura-pdf-poppler-0.2.3.ebuild,v 1.1 2013/06/13 22:06:43 xmw Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
DESCRIPTION="PDF plug-in for zathura"
|
||||
HOMEPAGE="http://pwmt.org/projects/zathura/"
|
||||
SRC_URI="http://pwmt.org/projects/zathura/plugins/download/${P}.tar.gz"
|
||||
|
||||
LICENSE="ZLIB"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="cairo"
|
||||
|
||||
RDEPEND="app-text/poppler:=[cairo?]
|
||||
>=app-text/zathura-0.2.0
|
||||
cairo? ( x11-libs/cairo:= )"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
pkg_setup() {
|
||||
myzathuraconf=(
|
||||
WITH_CAIRO=$(usex cairo 1 0)
|
||||
CC="$(tc-getCC)"
|
||||
LD="$(tc-getLD)"
|
||||
VERBOSE=1
|
||||
DESTDIR="${D}"
|
||||
)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake "${myzathuraconf[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake "${myzathuraconf[@]}" install
|
||||
dodoc AUTHORS
|
||||
}
|
@ -0,0 +1,42 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/zathura-ps/zathura-ps-0.2.2.ebuild,v 1.1 2013/06/13 21:54:15 xmw Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
DESCRIPTION="PostScript plug-in for zathura"
|
||||
HOMEPAGE="http://pwmt.org/projects/zathura/"
|
||||
SRC_URI="http://pwmt.org/projects/zathura/plugins/download/${P}.tar.gz"
|
||||
|
||||
LICENSE="ZLIB"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="cairo"
|
||||
|
||||
RDEPEND=">=app-text/libspectre-0.2.6
|
||||
>=app-text/zathura-0.2.0
|
||||
dev-libs/glib:2
|
||||
cairo? ( x11-libs/cairo )"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
pkg_setup() {
|
||||
myzathuraconf=(
|
||||
WITH_CAIRO=$(usex cairo 1 0)
|
||||
CC="$(tc-getCC)"
|
||||
LD="$(tc-getLD)"
|
||||
VERBOSE=1
|
||||
DESTDIR="${D}"
|
||||
)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake "${myzathuraconf[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake "${myzathuraconf[@]}" install
|
||||
dodoc AUTHORS
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/zathura/zathura-0.2.3.ebuild,v 1.1 2013/06/13 22:24:38 xmw Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils fdo-mime multilib toolchain-funcs virtualx
|
||||
|
||||
DESCRIPTION="A highly customizable and functional document viewer"
|
||||
HOMEPAGE="http://pwmt.org/projects/zathura/"
|
||||
SRC_URI="http://pwmt.org/projects/${PN}/download/${P}.tar.gz"
|
||||
|
||||
LICENSE="ZLIB"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="+doc sqlite test"
|
||||
|
||||
RDEPEND=">=dev-libs/girara-0.1.6:2
|
||||
dev-libs/glib:2
|
||||
x11-libs/cairo
|
||||
sqlite? ( dev-db/sqlite:3 )"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/gettext
|
||||
virtual/pkgconfig
|
||||
doc? ( dev-python/docutils )
|
||||
test? ( dev-libs/check )"
|
||||
|
||||
pkg_setup() {
|
||||
myzathuraconf=(
|
||||
ZATHURA_GTK_VERSION=2
|
||||
WITH_SQLITE=$(usex sqlite 1 0)
|
||||
PREFIX="${EPREFIX}"/usr
|
||||
LIBDIR='${PREFIX}'/$(get_libdir)
|
||||
RSTTOMAN="$(use doc && type -P rst2man.py)"
|
||||
CC="$(tc-getCC)"
|
||||
SFLAGS=""
|
||||
VERBOSE=1
|
||||
DESTDIR="${D}"
|
||||
)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake "${myzathuraconf[@]}"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
Xemake "${myzathuraconf[@]}" test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake "${myzathuraconf[@]}" install
|
||||
dodoc AUTHORS
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
fdo-mime_desktop_database_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
fdo-mime_desktop_database_update
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
Disable -Werror.
|
||||
|
||||
--- a/src/cmd/dist/build.c
|
||||
+++ b/src/cmd/dist/build.c
|
||||
@@ -384,7 +384,6 @@ static char *proto_gccargs[] = {
|
||||
"-Wno-unknown-pragmas",
|
||||
"-Wno-switch",
|
||||
"-Wno-comment",
|
||||
- "-Werror",
|
||||
"-fno-common",
|
||||
"-ggdb",
|
||||
"-O2",
|
@ -0,0 +1,139 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/go/go-1.1.1.ebuild,v 1.1 2013/06/14 01:10:58 williamh Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
export CTARGET=${CTARGET:-${CHOST}}
|
||||
|
||||
inherit bash-completion-r1 elisp-common eutils
|
||||
|
||||
if [[ ${PV} = 9999 ]]; then
|
||||
EHG_REPO_URI="https://go.googlecode.com/hg"
|
||||
inherit mercurial
|
||||
else
|
||||
SRC_URI="http://go.googlecode.com/files/go${PV}.src.tar.gz"
|
||||
# Upstream only supports go on amd64, arm and x86 architectures.
|
||||
KEYWORDS="-* ~amd64 ~arm ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="A concurrent garbage collected and typesafe programming language"
|
||||
HOMEPAGE="http://www.golang.org"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
IUSE="bash-completion emacs vim-syntax zsh-completion"
|
||||
|
||||
DEPEND="sys-apps/ed"
|
||||
RDEPEND="bash-completion? ( app-shells/bash-completion )
|
||||
emacs? ( virtual/emacs )
|
||||
vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )
|
||||
zsh-completion? ( app-shells/zsh-completion )"
|
||||
|
||||
# The tools in /usr/lib/go should not cause the multilib-strict check to fail.
|
||||
QA_MULTILIB_PATHS="usr/lib/go/pkg/tool/linux.*/.*"
|
||||
|
||||
# The go language uses *.a files which are _NOT_ libraries and should not be
|
||||
# stripped.
|
||||
STRIP_MASK="/usr/lib/go/pkg/linux*/*.a"
|
||||
|
||||
if [[ ${PV} != 9999 ]]; then
|
||||
S="${WORKDIR}"/go
|
||||
fi
|
||||
|
||||
src_prepare()
|
||||
{
|
||||
if [[ ${PV} != 9999 ]]; then
|
||||
epatch "${FILESDIR}"/${P}-no-Werror.patch
|
||||
fi
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_compile()
|
||||
{
|
||||
export GOROOT_FINAL=/usr/lib/go
|
||||
export GOROOT="$(pwd)"
|
||||
export GOBIN="${GOROOT}/bin"
|
||||
if [[ $CTARGET = armv5* ]]
|
||||
then
|
||||
export GOARM=5
|
||||
fi
|
||||
|
||||
cd src
|
||||
./make.bash || die "build failed"
|
||||
cd ..
|
||||
|
||||
if use emacs; then
|
||||
elisp-compile misc/emacs/*.el
|
||||
fi
|
||||
}
|
||||
|
||||
src_test()
|
||||
{
|
||||
cd src
|
||||
PATH="${GOBIN}:${PATH}" \
|
||||
./run.bash --no-rebuild --banner || die "tests failed"
|
||||
}
|
||||
|
||||
src_install()
|
||||
{
|
||||
dobin bin/*
|
||||
dodoc AUTHORS CONTRIBUTORS PATENTS README
|
||||
|
||||
dodir /usr/lib/go
|
||||
insinto /usr/lib/go
|
||||
|
||||
# There is a known issue which requires the source tree to be installed [1].
|
||||
# Once this is fixed, we can consider using the doc use flag to control
|
||||
# installing the doc and src directories.
|
||||
# [1] http://code.google.com/p/go/issues/detail?id=2775
|
||||
doins -r doc include lib pkg src
|
||||
|
||||
if use bash-completion; then
|
||||
dobashcomp misc/bash/go
|
||||
fi
|
||||
|
||||
if use emacs; then
|
||||
elisp-install ${PN} misc/emacs/*.el misc/emacs/*.elc
|
||||
fi
|
||||
|
||||
if use vim-syntax; then
|
||||
insinto /usr/share/vim/vimfiles
|
||||
doins -r misc/vim/ftdetect
|
||||
doins -r misc/vim/ftplugin
|
||||
doins -r misc/vim/syntax
|
||||
doins -r misc/vim/plugin
|
||||
doins -r misc/vim/indent
|
||||
fi
|
||||
|
||||
if use zsh-completion; then
|
||||
insinto /usr/share/zsh/site-functions
|
||||
doins misc/zsh/go
|
||||
fi
|
||||
|
||||
fperms -R +x /usr/lib/go/pkg/tool
|
||||
}
|
||||
|
||||
pkg_postinst()
|
||||
{
|
||||
if use emacs; then
|
||||
elisp-site-regen
|
||||
fi
|
||||
|
||||
# If the go tool sees a package file timestamped older than a dependancy it
|
||||
# will rebuild that file. So, in order to stop go from rebuilding lots of
|
||||
# packages for every build we need to fix the timestamps. The compiler and
|
||||
# linker are also checked - so we need to fix them too.
|
||||
ebegin "fixing timestamps to avoid unnecessary rebuilds"
|
||||
tref="usr/lib/go/pkg/*/runtime.a"
|
||||
find "${ROOT}"usr/lib/go -type f \
|
||||
-exec touch -r "${ROOT}"${tref} {} \;
|
||||
eend $?
|
||||
}
|
||||
|
||||
pkg_postrm()
|
||||
{
|
||||
if use emacs; then
|
||||
elisp-site-regen
|
||||
fi
|
||||
}
|
@ -0,0 +1,55 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/girara/girara-0.1.6-r200.ebuild,v 1.1 2013/06/13 22:32:52 xmw Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit multilib toolchain-funcs
|
||||
|
||||
DESCRIPTION="A library that implements a user interface that focuses on simplicity and minimalism"
|
||||
HOMEPAGE="http://pwmt.org/projects/girara/"
|
||||
SRC_URI="http://pwmt.org/projects/${PN}/download/${P}.tar.gz"
|
||||
|
||||
LICENSE="ZLIB"
|
||||
SLOT="2"
|
||||
KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="static-libs"
|
||||
|
||||
# Pull in SLOT="3" for headers
|
||||
RDEPEND="${CATEGORY}/${PN}:3
|
||||
>=x11-libs/gtk+-2.18.6:2"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/gettext
|
||||
virtual/pkgconfig"
|
||||
|
||||
pkg_setup() {
|
||||
mygiraraconf=(
|
||||
PREFIX="${EPREFIX}"/usr
|
||||
LIBDIR='${PREFIX}'/$(get_libdir)
|
||||
GIRARA_GTK_VERSION=2
|
||||
CC="$(tc-getCC)"
|
||||
SFLAGS=""
|
||||
VERBOSE=1
|
||||
DESTDIR="${D}"
|
||||
)
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Remove 'static' and 'install-static' targets
|
||||
if ! use static-libs; then
|
||||
sed -i \
|
||||
-e '/^${PROJECT}:/s:static::' \
|
||||
-e '/^install:/s:install-static::' \
|
||||
Makefile || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake "${mygiraraconf[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake "${mygiraraconf[@]}" install
|
||||
dodoc AUTHORS
|
||||
|
||||
rm -rf "${ED}"/usr/include/${PN}
|
||||
}
|
@ -0,0 +1,52 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/girara/girara-0.1.6-r300.ebuild,v 1.1 2013/06/13 22:32:52 xmw Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit multilib toolchain-funcs
|
||||
|
||||
DESCRIPTION="A library that implements a user interface that focuses on simplicity and minimalism"
|
||||
HOMEPAGE="http://pwmt.org/projects/girara/"
|
||||
SRC_URI="http://pwmt.org/projects/${PN}/download/${P}.tar.gz"
|
||||
|
||||
LICENSE="ZLIB"
|
||||
SLOT="3"
|
||||
KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="static-libs"
|
||||
|
||||
RDEPEND=">=x11-libs/gtk+-3.0.11:3
|
||||
!<${CATEGORY}/${PN}-0.1.5-r200"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/gettext
|
||||
virtual/pkgconfig"
|
||||
|
||||
pkg_setup() {
|
||||
mygiraraconf=(
|
||||
PREFIX="${EPREFIX}"/usr
|
||||
LIBDIR='${PREFIX}'/$(get_libdir)
|
||||
GIRARA_GTK_VERSION=3
|
||||
CC="$(tc-getCC)"
|
||||
SFLAGS=""
|
||||
VERBOSE=1
|
||||
DESTDIR="${D}"
|
||||
)
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Remove 'static' and 'install-static' targets
|
||||
if ! use static-libs; then
|
||||
sed -i \
|
||||
-e '/^${PROJECT}:/s:static::' \
|
||||
-e '/^install:/s:install-static::' \
|
||||
Makefile || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake "${mygiraraconf[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake "${mygiraraconf[@]}" install
|
||||
dodoc AUTHORS
|
||||
}
|
@ -0,0 +1,64 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libattica/libattica-0.4.2.ebuild,v 1.1 2013/06/13 17:51:48 johu Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
MY_P="${P#lib}"
|
||||
MY_PN="${PN#lib}"
|
||||
|
||||
if [[ $PV = *9999* ]]; then
|
||||
EGIT_REPO_URI="git://anongit.kde.org/attica"
|
||||
KEYWORDS=""
|
||||
scm_eclass=git-2
|
||||
else
|
||||
SRC_URI="mirror://kde/stable/${MY_PN}/${MY_P}.tar.bz2"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
|
||||
fi
|
||||
|
||||
inherit cmake-utils ${scm_eclass}
|
||||
|
||||
DESCRIPTION="A library providing access to Open Collaboration Services"
|
||||
HOMEPAGE="http://www.kde.org/"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2"
|
||||
SLOT="0"
|
||||
IUSE="debug +qt4 qt5 test"
|
||||
|
||||
REQUIRED_USE="^^ ( qt4 qt5 )"
|
||||
|
||||
RDEPEND="
|
||||
qt4? ( dev-qt/qtcore:4 )
|
||||
qt5? (
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtnetwork:5
|
||||
)
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
qt5? (
|
||||
dev-libs/extra-cmake-modules
|
||||
dev-qt/qtconcurrent:5
|
||||
)
|
||||
test? (
|
||||
qt4? (
|
||||
dev-qt/qtgui:4
|
||||
dev-qt/qttest:4
|
||||
)
|
||||
qt5? (
|
||||
dev-qt/qttest:5
|
||||
dev-qt/qtwidgets:5
|
||||
)
|
||||
)
|
||||
"
|
||||
|
||||
DOCS=( AUTHORS ChangeLog README )
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
$(cmake-utils_use_find_package qt5 Qt5Core)
|
||||
$(cmake-utils_use test ATTICA_ENABLE_TESTS)
|
||||
)
|
||||
cmake-utils_src_configure
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
# ChangeLog for dev-python/itsdangerous
|
||||
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/itsdangerous/ChangeLog,v 1.1 2013/06/14 03:17:21 rafaelmartins Exp $
|
||||
|
||||
*itsdangerous-0.21 (14 Jun 2013)
|
||||
|
||||
14 Jun 2013; Rafael G. Martins <rafaelmartins@gentoo.org>
|
||||
+itsdangerous-0.21.ebuild, +metadata.xml:
|
||||
Initial commit. Dependency for dev-python/flask
|
@ -0,0 +1,4 @@
|
||||
DIST itsdangerous-0.21.tar.gz 8595 SHA256 c760381fc09dc120e4b459f5ba39ed55ea21fd77ac9f4d4101c0c237d8fc9d9e SHA512 5164dda9d38d0d1c880f7782db12fe74b7f305057fa5507d788d6af2d49068a870313280ece6e4b019d0e5ba01f945ae7a54b205f289efda2602bad12cd401cd WHIRLPOOL 1359b8625a7865a590fd2d3d8fd667f6ad0b74d5b4bb90b9afd4b38e41479ed0e1f56f92ff55d57c24edc486711dbca36a6ee778b70b766ea6ba32c22793eadc
|
||||
EBUILD itsdangerous-0.21.ebuild 637 SHA256 47d806d142d7ecf219b24d640b5a49b58b99dc02b39b9a6f31948e91e5cc4084 SHA512 c2cff8c22ce3da4dc13e0cd2997d05b9a2e4e35e16e3dc98882b93ce0151572539476339404660a792a268f7b00a79ea0a5ef00ce531b511b0844e792b5b75f2 WHIRLPOOL 776c95c1cccca3f896bcb16ac4fe93368822900bb5200223b39813b51c67e9e843a716cc5b50299d32e6e7bc8d95f56bed5bd8950b8556636ce569f6ea2b6b87
|
||||
MISC ChangeLog 414 SHA256 b91437c12e573c42802a7bcb0abf210c7c97a647b83f8f8bee364d0f609fb327 SHA512 805fef343e8474c0f1e668f56db96048d5ecd0eb139b6135c93008981284d2e5eb7cf7812bd21b26bffa4504d888d3707758ce1f43bc9303c21398ee74e52979 WHIRLPOOL c863c822877c37c8b65a6fc7646fb90fef7e27ea12b32f713e89dbadae19d0a533bd9d3a2ac746851a90ff67121977fbc51de87c86f11511f3318dc24dd9f810
|
||||
MISC metadata.xml 161 SHA256 6f41e9b782499f6bac80760066dc5ebb307e73d31d2080f2eaa383b8a236c68e SHA512 9d77a0cf6ef95d95fe0e41852a1ddedc8bc4a82d39fa75e8bbf760ba835deebe6ac3beddc83b9b70e381cee31936f54bb2db7cb88357ed2228c9e972cf2cac47 WHIRLPOOL 1f1ee9aa1b4b8747fb5f6c9234263952071a1a90100df893eb7fed974ea7c63639796521cfa1fde8929fc2f1bf0cc65e88ef6d703a2dff633816ff87cbf21411
|
@ -0,0 +1,20 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/itsdangerous/itsdangerous-0.21.ebuild,v 1.1 2013/06/14 03:17:21 rafaelmartins Exp $
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python{2_6,2_7,3_3} pypy{1_9,2_0} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Various helpers to pass trusted data to untrusted environments and back."
|
||||
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
|
||||
HOMEPAGE="http://pythonhosted.org/itsdangerous/ http://pypi.python.org/pypi/itsdangerous"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="${RDEPEND}"
|
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>python</herd>
|
||||
</pkgmetadata>
|
||||
|
@ -1,16 +1,18 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
DIST pyparted-3.10.tar.gz 189069 SHA256 bb8de71ba54983af84cf036002511cfb6d8fab4fc5e9a9be7236ecba6d24989f SHA512 5dec303fdfd901b39640c273c962a32b58ba48a9aafa37871baa75ed0a7260886c2dbbecaacfd64dca82260b64f41ead65af8e67acbc1e490784b4b0e3ddd7f6 WHIRLPOOL 72c23abdc6d37c3ff058daa6449176411776c17297b7367b126a7976b55cd5ffd732b20831bfe911a5932bfcb4b513d17b7a286f14d84e195067ffde0281cd71
|
||||
DIST pyparted-3.8.tar.gz 185726 SHA256 c9978380e18fe284dd5b74a5043d259ef8512323fa3c85d08c7a5f3bb9563326 SHA512 a1dc0d553f9ed45442227124613cd0846b43c02e6e4ce106a71b34b58f9304510b509d6613ed2e8ddb6ea2c14d708e5851885a0ccdb2bf9a62c093a07fd0eeef WHIRLPOOL 94bda288c766cc4465e5badd3b80d3125ff249d4d56c83167a559446d319d7aae24a67d66d3b53c17cb0161f690d8bbb821cb979221620afa34f402d40258460
|
||||
DIST pyparted-3.9.tar.gz 186136 SHA256 a56712e3d058ce3d859c158236dbbf45224018919efd3d880ea80f9e0d0bebbb SHA512 16ed2144524590e8b6b4ec8b47c3453fea0dfc89fc2c43189e50bff4db56d22bf5fe41f91225c8448b4b97bf963aa4e02b4dc1f91464dd446200af630148c308 WHIRLPOOL f4d33379193b32373b0a37d4d65b8f85e4ae7c0ae1594c8b48de3bda12fe407ea07ae1029a5f011647dd189c685a6189b0f00aeb0233bd6f165b0b1b792069a8
|
||||
EBUILD pyparted-3.10.ebuild 790 SHA256 2d60e4913a7cce13632f6a2e24898bd1800ade3f6668a21d06404db0a8bd37ec SHA512 fba19ae249f74e872c7be41048a68a103ec8f4b3c87639d55d8d907c6afe702a4d2546cd6d9da837237ae111ae506e799b399053253cfa60fe16d60a2673b10a WHIRLPOOL db9e80dbd0f328370b21a363a78d23373726ca0fc24a222211e033a73567dbfdae1ff89ffe46ffd6f77975bfdb8ee59a6f02603e40cc964994c6b370529787b0
|
||||
EBUILD pyparted-3.8-r1.ebuild 782 SHA256 64edcf7ff06e91c289c6429909f7d267bbc099ac0a63cbe78e3038cf9798bfe8 SHA512 9f6ccc63aa8a7a7b774317fb7908a39331789c39e26cdbf57fd7b674df3128e0e1c5312015c019c33e2edf94896ae2aa5561677d44213e792c14d296010027da WHIRLPOOL 10f03f2d83aa6601c49148bb27b34e9b6d3179b06503732add6fa0b3cfd63b81bf691288ff7dc4fc2a1f872a09f056a16c99d9791a1e797f3d2e8de14164a046
|
||||
EBUILD pyparted-3.9.ebuild 761 SHA256 38b6fb2670874a714ec841761ded4e2c7b399d1922b36d147593c74a9b629efb SHA512 93ef8a375f558f839db7a0734ef71dfc9e77cc76e80f532f4bcd5b8d091d2dfb26281e6a357630ef14e29ac7eefd2cedb108238355c2572f25d909eda125237b WHIRLPOOL b609cd32692ce7fff3ea94925f5ae3d8735f29a2419c8db4de66841dc71a1356b0ed20d09bd4d92f98e919096105ab2b6b3719ee9f34b271006d65fa7639164c
|
||||
MISC ChangeLog 9655 SHA256 88cc5d9a017143a65799023c18ae156d8496e6d84dbf8a65d1a08a8884e58362 SHA512 c0db4edb5204b717907683aa9015aeef919da6e9814a121e015a2c9b76c489d0b98531e87ffcebf472d0dc401823ea7f172d995d557cad64098ae6fab1af2298 WHIRLPOOL ea2b024c25888d03307bb5d958116f952bbe1a605d859827c34c268a4e4df6514b95f888eb9b694cdbb12ee5463f6d4ad84dae7ec52d86f06974bb0ddb06e87d
|
||||
MISC ChangeLog 9796 SHA256 28ce6d4f29c2bf7cd5ee511ce14d6403db0dbd7fb3baf23fc48d6eaa11f45925 SHA512 0c744e46bb0e97e037a71b085559986cdd225ec0afa565a59a83cfc9d0d09756c91f3b40be5d2d42d8df86c792c7831677ebdc3d1b697860e90d3bb6881070aa WHIRLPOOL 4d1925bb1100f236dfcfbe857f93b4dd4bb2301720f9e464a805fe5a7542bba394d8c48e61c98140925ba7a735e8ab7ec1cb98e86e7f151a50352a45f68e709c
|
||||
MISC metadata.xml 159 SHA256 b6e17484225400d76c65d178bf5a10dc0a8da7f345993c2acc63d1093a77c90d SHA512 37ed78a226beefc94388ad36fd7fc7bd5fff47765afff211a43bb5e105cd94e3f958ff1c1bd790d1bdee2a342daa5239ea83ada97c4674a23bdbd7b42efbe95f WHIRLPOOL 69e8ac88aa9c0fb6684bfc84cb9c36f5fefef95e66f4437b33fc946cab6e764af122dc04c5dd4e11a373c04dca3fb88c87f38631e73c3ef0ffeaca639deef98c
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.0.19 (GNU/Linux)
|
||||
Version: GnuPG v2.0.20 (GNU/Linux)
|
||||
|
||||
iEYEAREIAAYFAlDh0rQACgkQVWmRsqeSphPH6wCfYncZrHXt+LZDoVsbs8HB/oJA
|
||||
tQAAniH5NOQP+lb5wcIBn49LKEVO+hJn
|
||||
=lOXQ
|
||||
iEUEAREIAAYFAlG57PUACgkQVWmRsqeSphPMKACWIVei9KIdjbOy8VsvduDlHDE+
|
||||
xQCfdaPv1AtfQCuOEj3dqZcyLmSUPJg=
|
||||
=p7d3
|
||||
-----END PGP SIGNATURE-----
|
||||
|
@ -0,0 +1,32 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/pyparted/pyparted-3.10.ebuild,v 1.1 2013/06/13 16:01:56 jer Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_1,3_2} )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python bindings for sys-block/parted"
|
||||
HOMEPAGE="https://fedorahosted.org/pyparted/"
|
||||
SRC_URI="https://fedorahosted.org/releases/p/y/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="
|
||||
>=sys-block/parted-3.1
|
||||
dev-python/decorator
|
||||
sys-libs/ncurses
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
"
|
||||
# test? ( dev-python/pychecker )
|
||||
|
||||
src_test() {
|
||||
ewarn "Test suite disabled until dev-python/pychecker"
|
||||
ewarn "is migrated to -r1.eclass"
|
||||
}
|
@ -1,19 +1,32 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
AUX distribute-0.6.16-fix_deprecation_warnings.patch 4880 SHA256 abf78f789b846c32e1e857b3f50347034b68592a7d0e12d34a3d9d463323dfcd SHA512 4b09e2fa73dc46c1ffcc0024fa03e79c2c6125a593b4c0a2d4fc0c577e720cd40993662d144062754310d5020ad39cfd004f5f4160df91ef3e94babb76748f85 WHIRLPOOL 808954910e462ebc0fde40cdd7288472f38edd440ffb03bafcc797371496396cbd996f2b4c2c662ed13b187b0f270b6210f8ca59a6a11384d949909f8d90dd06
|
||||
AUX setuptools-0.6.40-no-exes.patch 290 SHA256 78e81de65f4bd6894f910c7c835b222b206eb2b86063b34c5b6b80e9fa754861 SHA512 ea49e219d4e4861165d1ead308a32361c3e21e2dc745b3e6cdf37b86a4f0ba04a33245e6dde1b35b3417f33773cf89bcd7323334f8fab717ad8a0acfac604230 WHIRLPOOL 150271d41411aaf125fe499c5a41f49ccb6841545891a3d55136190efb3099d4e5355a6d858d3a521f1481a5425933b24f67b3ebd466b6a97860be4ac3e1b996
|
||||
AUX setuptools-0.6.45-no-exes.patch 307 SHA256 c19562d4a082f2a40ee0d7b96cd38de5d7803c44d9d5362ec3acf3e6beb459ed SHA512 8de3549787b199cc154b018a14621f4b6ba4041daf53565b1f3cad735ecc2636c8badbb8ef6736d381c8f820dfc49cd0ee0f7ea64bb42f9a602a8fd3b8b558c4 WHIRLPOOL 8318ed76143b8317e0ec6a53b26a7857ceeed2692fe22afbc8a64f463fb1fba11effdbb032842bca2d5e34871d92fef4f9f09b7355ff3aef7e4c73133c6c9802
|
||||
AUX setuptools-0.6_rc7-noexe.patch 351 SHA256 772731de7539b71d45da2ac77062965c1ea36294781d4113a2845868b98d8b83 SHA512 b3125b5bcc73aa54eed39ce79ddaa62a56bbd1586cd7264b7b05db4a42c76e5684cb42b3c48b154a6bc71a4a6dd7306a5a55c5e87da1b9a48d545f4bc01a1f39 WHIRLPOOL ff76586c5887547343b622396960138f4ced4b13399c25027491b901b889e3179df11ce56059e7d4e890494025c4ae037fdaf528d5c174f3960b51418fb52ce0
|
||||
AUX setuptools-0.7.2-test-easy.patch 812 SHA256 2da4ebba1f4ec98d8e73dca2d8845b27bb74e4e02df41842faf3504049d0b5d4 SHA512 2f8e7e57d5e8ee6fdacba1bedb0e9a9e7d2639abad647846329b0967ad024078b5dcd9af4941ec1cff2b2d7d5ba9d020794c045f06572280fc150185e9af03b6 WHIRLPOOL 23f97e76b519d3dbc6ec93d6ecdd19be860937f9191caccb83ad6422e889954773835954f8905c12e6ca26fee72f52a6ebbd60b92c698694a63ad0d5e3bb6b36
|
||||
DIST distribute-0.6.21.tar.gz 400092 SHA256 5701c39864ac17d17b66aceca4ea3c92a8b9ab63d593ac491a2455d3de3e53b9 SHA512 45898d760bf527c2a02ddea0b6ae32d0c028b40cd1ab4674947eb4123f9fee99e2076640b86920ab9d8995bfce8bf536f7694d3bf2e112a5aec4fc394f123a39 WHIRLPOOL 0443066f5c71bebb428939ccee6b04e7942dd94f199153466a9783b514c3f985435623fbfb6cf606c443d91faf379236ed5e4b5f2fb3c45786eadea087a2e27b
|
||||
DIST distribute-0.6.30.tar.gz 638335 SHA256 7ff34c3a9a844ee881ff28efc5d1f74603b72e0a5235a9d6dc76e603149e8eab SHA512 17af11c106064100aa9710d6d129b624727ca20c9f37a77a64b7394768f4006613605382f41d20beed24005189c7a68986208970586ed910a4c7bfff59d10350 WHIRLPOOL 5ca0537bf2c6b1c09ed5d2264cd0b1bfa9fa3f661788e9174705753c683d15c90a06f6bff810646aa670a9e99403671eb1248daf3fa15c972befec9b9e19d27f
|
||||
DIST distribute-0.6.32.tar.gz 643362 SHA256 8970cd1e148b5d1fea9430584aea66c45ea22d80e0933393ec49ebc388f718df SHA512 4a216e8bd5f48143d7b4d1b0b05279e85f1d3b7114152317bb7395e351f7faa09338699a3b7df940275eb371b97fb0bde73692f33dcfc4efeda104219a1fc848 WHIRLPOOL c0796f6a3c66256acd8386fe117c175602f4da96e857b00c894675dc476d9b216eacae6650994d6d8f8446672fe7c3f9de67d9a5c07f9d01cc83fc1ed6727670
|
||||
DIST distribute-0.6.33.tar.gz 644203 SHA256 52d9bf08ddd7598fea591434188577e59f06cbaa0fbd9cf31dd09b455c18433a SHA512 9a5fdedde884a72fb312954e5f2ea480e001914442ecadf7f4bc05ca6cc3dd63cde17e5e7fc746bd430a134ec9a3f358ce523a50955461278d1d15b0cc112626 WHIRLPOOL 92b508c622fdc9b3a8bb61bd80a64b8d0d1e8e595fae4214a166e49e0874f24a3ec374fc0fc31beab4b6611186562ca29acff436f214861574e0a2f35f86b884
|
||||
DIST distribute-0.6.40.tar.gz 718084 SHA256 5e06a3097f4150b26e4de0d4f57dbe7425ac3645ce7a337abffab8489bc80daa SHA512 318fd9dd238292e60c860c1a0be9727b0d0563423c205297c9836fd462b6ca3519078c936f33a67ac306230b3741a9182161e5a07cf3dc89e080b0fce70089a1 WHIRLPOOL 58cf3c32f097d2250fb619c801bc82331089a31fcbf116a453ab9b4aead4e5881f96059d1b03e79aef9d37bd797e76f7e54e13aa3e2c753caa4afde98d42eb84
|
||||
DIST distribute-0.6.45.tar.gz 723456 SHA256 7c0b21329bbd087410ce4be4bf64058c1085a27e5ae5886a52950ff46ab9eb66 SHA512 9009ab78633bccaa9adb056bc78857b789c7ea5ae64864c8d23ef6d994a815d42bf431b19847b2dbff826e894d7b7e64ae7d31c4f2858a88b2c7e3dc7027ca96 WHIRLPOOL d8eaba6931fcc3ee08f21b6c73bad7e66b2c34334867557de50a7bf64289b1d0029f909aa205e25a7a87c1ec17ce921c7336c6d6e9e82909e94b5b9ef0e76dd5
|
||||
DIST setuptools-0.7.2.tar.gz 633077 SHA256 ebca524b7fcc122e4eb9b5304c34e0fdedfb5e66dcebd642aeb0670ae464fc9a SHA512 f94d39601a046000a3b8d4b2e964935b393326fbeed547ab58ec2be6c4f0179bd963c5f1d688b52810166245122ecc326d04651539ad529f3b1c938d540a424b WHIRLPOOL aa9083fd596df8d23b6ff8e3cca4053f544b640de9637ab126a1971fb43df609d242aca8b097950606ed8aaec837cedf3c38d44727e48b279e5294cf9db6792d
|
||||
EBUILD setuptools-0.6.21.ebuild 1753 SHA256 fb8be8dde2f3310f313bed574cdee710b04986d03c81769028e7c0c4352b0c8b SHA512 654a7ea3f75b90d2772ee47ac9fac9c873a81314b9261601402768a737715904c5ffe6f6600652210ce7614f1b62d361a6ae5a0317f662cd97ad96bb2566cb51 WHIRLPOOL 49e91b838de21ce91a5d2acfc44c1687ef999fd3d82af3f785bd00ed41eee1f7a3257af15f5ae89014fa9ad94c7de303d3ca259adc3eb92912ffc9914b8b8103
|
||||
EBUILD setuptools-0.6.30-r1.ebuild 1516 SHA256 1c8e8e57bc1887316a1c441546a075a0c2cf2458cfa19ac11b44eaddd9830ba5 SHA512 1f35fe39030e86e7e5c771c21df8acc61ea848809d20bd7334d87cb7f8dd765fdd0d9eb39393dd8b6c8c04d0e1d663b541cfdb232d5eb7baebde83036114b465 WHIRLPOOL 9e1a374a9e0520dbe8dd9674c771f70828979ea41d69a8fb6a88bf825a3d4d6e40397063e94f9dd925354334aa658d2c693e3304edb1775163d263de04e77fe5
|
||||
EBUILD setuptools-0.6.32.ebuild 1571 SHA256 39268228e54a38dfa95415808dc6866799f3f2095d850c34ae8846ada58ff358 SHA512 a9d6ce4f359fe32596b99c1e7fd06d85010c16508595355cbf8abab183d2aa130adbd1f8b1f7b498e14d18f45081c84eb9eb314909229c954847043cf8347d26 WHIRLPOOL 4e72b59faba8fe479952990a29f7c08791db51e8838d583cf67fff6a8b3122db7f9fdb95f2e0906c888ae1e6ec2a673a9664c643b4a3bc462d5995e07c6bcb3b
|
||||
EBUILD setuptools-0.6.33.ebuild 1640 SHA256 2f15d770c048dad767ec2e7b5d4018f540928e8945e174bac42cc4f673ca9e90 SHA512 b806c02c676438167ec8f51f77eec3c2338550df18f3bf235d7722f0cbce912e17fe049bcc5c8d5bd88f0640b1a3cc17aa8c743f8cb4fa8eab8eee8d56a45a54 WHIRLPOOL fd8f706723656a591736b56831a7bb9ccefeac06cb18beb2af0177d34d59ca04acee07de84013d39e8c8863493d3ae8c0538196b8d0368810d8a94f1f6ee5f74
|
||||
EBUILD setuptools-0.6.40.ebuild 1647 SHA256 a8e3e2d5ec9fbf068b15d29444ff6c7747097825d0eb3885b073734e51d34140 SHA512 6d0327f9b67eaffa0ea08960b172e6522e2087fe9782e753e8ba609b812cb711bf27b6d2e8f534a2955be30cee89f23e8eb1bd7b6dbe643504c737f4e4f3e6d5 WHIRLPOOL c4368fdb191e9d0021f354d0d0e8771c7ccf7d8fe00920cd9d9a5bed0cb9fb9ace0952bfc6b3e6c35c5a347e930780317100cd1cac7c589632891c98676f1b4d
|
||||
EBUILD setuptools-0.6.45.ebuild 1647 SHA256 8d76c42a6228822068e2bb9ba27b2ae4fc8e3f9b4dab0200d3f4c25fa441be50 SHA512 64facee70626cc38ba1340861310a1d2a889a92a4516f9220467256fd67deaf40ea75aec57a0dd6062d034f7d495aa3fdace23488fbc0e33aa48862dbeaab326 WHIRLPOOL 244774b0dfad28c73fe5045e63dc108d704c66da2b5b34669f584a49014005b568edb16530150e9f1447b77dca96f071ce81d4cf5b203bc348f92075b4aaf5b6
|
||||
EBUILD setuptools-0.7.2.ebuild 1321 SHA256 b81ede2c1a454d227195c13da90428acd27c66e58d371291b80aec120437fc87 SHA512 fab85f847e280abf52808d8131dcdb9ea2303e41e90b5ef22f54d4ddc3a57169eaaec808c4e51dc45083f0a2401f9975a6d363343373fe60df6ebd4bad5a9197 WHIRLPOOL 1b0087ff9683fb78591872be74b2b11cf9ccbb44a37c1717131536ae182e5dd99f5ab3a509dda3c0eb8a075ef029697d71be673d1897c831a68099dc9abf3625
|
||||
EBUILD setuptools-9999.ebuild 1754 SHA256 e9281e51c3e200977c4ccff893308bc002285da2561bb120e67413f56a4609d5 SHA512 ab685e24e672b0b46d9f18969264b56948b40b73eace68d8590abcc14c7fd48f07290ce82d7e1709696f7c2aa34e59b27931ef33512e008b433ddb7c0a1fa529 WHIRLPOOL 134f0595cbb40a5dd9887d66ef1af73d55fc37075c7bac38afa43962ff7fd76daa65c274f475c914af2ea06785975d8a1fb3de4b43e4ba0da70ec43c40606907
|
||||
MISC ChangeLog 26308 SHA256 f284446d375debe86ced126516d1793e01a109a17f0bb435130c466e32e82c86 SHA512 2eec28fdf5e0cece233f0f1668add4b22eb7ff26d4207887c5f21df4092e04c9480cc48a76881e57f2dc22fd990ada1e3802717f7682c2d9c7cc7921c1733f51 WHIRLPOOL 7d514eb08ec8b190413d098111b350d084a9f78e84455c8f6d83e22499fe610d2fe450b25a7d6d6094486a82085fb170e77592bb721de57fa507b146e58abdff
|
||||
MISC ChangeLog 26537 SHA256 2680e9b0524698c286748e7d9fd07c71ca4aa4c4214dda0600cdf90a904d5b66 SHA512 cae34aa912ad3fde14ec90c15117edab3042464045eb5ef5fc27df32783dca1d66754e481a556d6c69b8bf00d5c6fbc48dc1162c1516eedeefc79439a7a9fc25 WHIRLPOOL 8b000d6efc9d108b824abce5d58ea7985002741692a1cd15c668f278b99b4ecd6ac2e73a11078071a9f766fbfe159defd24b7fcbbfd439147247fa726d342067
|
||||
MISC metadata.xml 233 SHA256 6dc0849682824e3bb8e7b092b59c0c49a7df79b6496086559a4b4bbf1a8bc586 SHA512 4c547bff28a5f545edec812745a83e42a044f7117a21bc5f417b91e48e61095194003760813b03c557004a3c9c669aa8ec50988eb4a3a106cfcb4e1063a0ef30 WHIRLPOOL a846059cf244c81e8d8ff01d667d0ced9a32d31bab77a25765a7c88eecefc3f7a4370939a9bcbb1822f3f35c182afe0e83693b241a2aa703597f15649baa00cb
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.0.19 (GNU/Linux)
|
||||
|
||||
iEYEAREIAAYFAlG6j2UACgkQso7CE7gHKw17wQCg3esLd6GYTJ5xB/sORIGqty69
|
||||
KUoAn2ttcn8BiYHSvawdNaBQt/cvhq03
|
||||
=BX6H
|
||||
-----END PGP SIGNATURE-----
|
||||
|
@ -0,0 +1,15 @@
|
||||
patch for py2.5 failing over not being able to write to the system installed py2.5. 'build' sees it pass
|
||||
https://bitbucket.org/pypa/setuptools/issue/19/2-tests-fail-in-current-072
|
||||
diff -ur
|
||||
setuptools-0.7.2.orig/setuptools/tests/test_easy_install.py setuptools-0.7.2/setuptools/tests/test_easy_install.py
|
||||
--- setuptools/tests/test_easy_install.py 2013-06-09 23:59:08.000000000 +0800
|
||||
+++ setuptools/tests/test_easy_install.py 2013-06-13 22:48:54.036377152 +0800
|
||||
@@ -273,7 +273,7 @@
|
||||
sys.stderr = StringIO.StringIO()
|
||||
try:
|
||||
reset_setup_stop_context(
|
||||
- lambda: run_setup(test_setup_py, ['install'])
|
||||
+ lambda: run_setup(test_setup_py, ['build'])
|
||||
)
|
||||
except SandboxViolation:
|
||||
self.fail('Installation caused SandboxViolation')
|
@ -0,0 +1,39 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/setuptools/setuptools-0.7.2.ebuild,v 1.1 2013/06/14 03:34:47 idella4 Exp $
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python{2_5,2_6,2_7,3_1,3_2,3_3} pypy{1_9,2_0} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="a collection of extensions to Distutils"
|
||||
HOMEPAGE="http://pypi.python.org/pypi/setuptools"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="PSF-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
# Force in-source build because build system modifies sources.
|
||||
DISTUTILS_IN_SOURCE_BUILD=1
|
||||
|
||||
DOCS=( README.txt docs/{easy_install.txt,pkg_resources.txt,setuptools.txt} )
|
||||
|
||||
python_prepare() {
|
||||
if [[ "${EPYTHON}" == 'python2.5' ]]; then
|
||||
epatch "${FILESDIR}"/${P}-test-easy.patch
|
||||
fi
|
||||
}
|
||||
|
||||
python_prepare_all() {
|
||||
# Disable tests requiring network connection.
|
||||
rm -f setuptools/tests/test_packageindex.py
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
esetup.py test
|
||||
}
|
@ -0,0 +1,264 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/media-tv/xbmc/xbmc-12.2-r1.ebuild,v 1.1 2013/06/13 22:47:47 aballier Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
# Does not work with py3 here
|
||||
# It might work with py:2.5 but I didn't test that
|
||||
PYTHON_COMPAT=( python{2_6,2_7} )
|
||||
PYTHON_REQ_USE="sqlite"
|
||||
|
||||
inherit eutils python-single-r1 multiprocessing autotools
|
||||
|
||||
BACKPORTS_VERSION=1
|
||||
|
||||
case ${PV} in
|
||||
9999)
|
||||
EGIT_REPO_URI="git://github.com/xbmc/xbmc.git"
|
||||
inherit git-2
|
||||
SRC_URI="!java? ( mirror://gentoo/${P}-20121224-generated-addons.tar.xz )"
|
||||
;;
|
||||
*_alpha*|*_beta*|*_rc*)
|
||||
MY_PV="Frodo_${PV#*_}"
|
||||
MY_P="${PN}-${MY_PV}"
|
||||
SRC_URI="https://github.com/xbmc/xbmc/archive/${MY_PV}.tar.gz -> ${P}.tar.gz
|
||||
!java? ( mirror://gentoo/${P}-generated-addons.tar.xz )"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
;;
|
||||
*)
|
||||
MY_P=${P/_/-*_}
|
||||
SRC_URI="http://mirrors.xbmc.org/releases/source/${MY_P}.tar.gz
|
||||
mirror://gentoo/${PN}_backports-12-${BACKPORTS_VERSION}.tar.bz2"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
;;
|
||||
esac
|
||||
|
||||
DESCRIPTION="XBMC is a free and open source media-player and entertainment hub"
|
||||
HOMEPAGE="http://xbmc.org/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="airplay alsa altivec avahi bluetooth bluray caps cec css debug gles goom java joystick midi mysql neon nfs +opengl profile +projectm pulseaudio pvr +rsxs rtmp +samba +sdl sse sse2 sftp udev upnp +usb vaapi vdpau webserver +X +xrandr"
|
||||
REQUIRED_USE="
|
||||
pvr? ( mysql )
|
||||
rsxs? ( X )
|
||||
X? ( sdl )
|
||||
xrandr? ( X )
|
||||
"
|
||||
|
||||
COMMON_DEPEND="${PYTHON_DEPS}
|
||||
app-arch/bzip2
|
||||
app-arch/unzip
|
||||
app-arch/zip
|
||||
app-i18n/enca
|
||||
airplay? ( app-pda/libplist )
|
||||
dev-libs/boost
|
||||
dev-libs/fribidi
|
||||
dev-libs/libcdio[-minimal]
|
||||
cec? ( >=dev-libs/libcec-2.1 )
|
||||
dev-libs/libpcre[cxx]
|
||||
>=dev-libs/lzo-2.04
|
||||
dev-libs/tinyxml[stl]
|
||||
dev-libs/yajl
|
||||
dev-python/simplejson[${PYTHON_USEDEP}]
|
||||
media-libs/alsa-lib
|
||||
media-libs/flac
|
||||
media-libs/fontconfig
|
||||
media-libs/freetype
|
||||
>=media-libs/glew-1.5.6
|
||||
media-libs/jasper
|
||||
media-libs/jbigkit
|
||||
>=media-libs/libass-0.9.7
|
||||
bluray? ( media-libs/libbluray )
|
||||
css? ( media-libs/libdvdcss )
|
||||
media-libs/libmad
|
||||
media-libs/libmodplug
|
||||
media-libs/libmpeg2
|
||||
media-libs/libogg
|
||||
media-libs/libpng
|
||||
projectm? ( media-libs/libprojectm )
|
||||
media-libs/libsamplerate
|
||||
sdl? ( media-libs/libsdl[audio,opengl,video,X] )
|
||||
alsa? ( media-libs/libsdl[alsa] )
|
||||
>=media-libs/taglib-1.8
|
||||
media-libs/libvorbis
|
||||
sdl? (
|
||||
media-libs/sdl-gfx
|
||||
>=media-libs/sdl-image-1.2.10[gif,jpeg,png]
|
||||
media-libs/sdl-mixer
|
||||
media-libs/sdl-sound
|
||||
)
|
||||
media-libs/tiff
|
||||
pulseaudio? ( media-sound/pulseaudio )
|
||||
media-sound/wavpack
|
||||
|| ( media-libs/libpostproc <media-video/libav-0.8.2-r1 media-video/ffmpeg )
|
||||
>=virtual/ffmpeg-0.6[encode]
|
||||
rtmp? ( media-video/rtmpdump )
|
||||
avahi? ( net-dns/avahi )
|
||||
nfs? ( net-fs/libnfs )
|
||||
webserver? ( net-libs/libmicrohttpd[messages] )
|
||||
sftp? ( net-libs/libssh )
|
||||
net-misc/curl
|
||||
samba? ( >=net-fs/samba-3.4.6[smbclient] )
|
||||
bluetooth? ( net-wireless/bluez )
|
||||
sys-apps/dbus
|
||||
caps? ( sys-libs/libcap )
|
||||
sys-libs/zlib
|
||||
virtual/jpeg
|
||||
usb? ( virtual/libusb )
|
||||
mysql? ( virtual/mysql )
|
||||
opengl? (
|
||||
virtual/glu
|
||||
virtual/opengl
|
||||
)
|
||||
gles? ( virtual/opengl )
|
||||
vaapi? ( x11-libs/libva[opengl] )
|
||||
vdpau? (
|
||||
|| ( x11-libs/libvdpau >=x11-drivers/nvidia-drivers-180.51 )
|
||||
virtual/ffmpeg[vdpau]
|
||||
)
|
||||
X? (
|
||||
x11-apps/xdpyinfo
|
||||
x11-apps/mesa-progs
|
||||
x11-libs/libXinerama
|
||||
xrandr? ( x11-libs/libXrandr )
|
||||
x11-libs/libXrender
|
||||
)"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
udev? ( sys-fs/udisks:0 sys-power/upower )"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
app-arch/xz-utils
|
||||
dev-lang/swig
|
||||
dev-util/gperf
|
||||
X? ( x11-proto/xineramaproto )
|
||||
dev-util/cmake
|
||||
x86? ( dev-lang/nasm )
|
||||
java? ( virtual/jre )"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
[[ ${PV} == "9999" ]] && git-2_src_unpack || default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-9999-nomythtv.patch
|
||||
epatch "${FILESDIR}"/${PN}-9999-no-arm-flags.patch #400617
|
||||
epatch "${FILESDIR}"/${PN}-12.0-system-projectm.patch
|
||||
# Backported fixes
|
||||
EPATCH_MULTI_MSG="Applying patches backported from master..." \
|
||||
EPATCH_SUFFIX="patch" \
|
||||
epatch "${WORKDIR}/${PN}_backports"
|
||||
# The mythtv patch touches configure.ac, so force a regen
|
||||
rm -f configure
|
||||
|
||||
# some dirs ship generated autotools, some dont
|
||||
multijob_init
|
||||
local d
|
||||
for d in $(printf 'f:\n\t@echo $(BOOTSTRAP_TARGETS)\ninclude bootstrap.mk\n' | emake -f - f) ; do
|
||||
[[ -e ${d} ]] && continue
|
||||
pushd ${d/%configure/.} >/dev/null || die
|
||||
AT_NOELIBTOOLIZE="yes" AT_TOPLEVEL_EAUTORECONF="yes" \
|
||||
multijob_child_init eautoreconf
|
||||
popd >/dev/null
|
||||
done
|
||||
multijob_finish
|
||||
elibtoolize
|
||||
|
||||
# Disable internal func checks as our USE/DEPEND
|
||||
# stuff handles this just fine already #408395
|
||||
export ac_cv_lib_avcodec_ff_vdpau_vc1_decode_picture=yes
|
||||
|
||||
local squish #290564
|
||||
use altivec && squish="-DSQUISH_USE_ALTIVEC=1 -maltivec"
|
||||
use sse && squish="-DSQUISH_USE_SSE=1 -msse"
|
||||
use sse2 && squish="-DSQUISH_USE_SSE=2 -msse2"
|
||||
sed -i \
|
||||
-e '/^CXXFLAGS/{s:-D[^=]*=.::;s:-m[[:alnum:]]*::}' \
|
||||
-e "1iCXXFLAGS += ${squish}" \
|
||||
lib/libsquish/Makefile.in || die
|
||||
|
||||
# Fix XBMC's final version string showing as "exported"
|
||||
# instead of the SVN revision number.
|
||||
export HAVE_GIT=no GIT_REV=${EGIT_VERSION:-exported}
|
||||
|
||||
# avoid long delays when powerkit isn't running #348580
|
||||
sed -i \
|
||||
-e '/dbus_connection_send_with_reply_and_block/s:-1:3000:' \
|
||||
xbmc/linux/*.cpp || die
|
||||
|
||||
epatch_user #293109
|
||||
|
||||
# Tweak autotool timestamps to avoid regeneration
|
||||
find . -type f -print0 | xargs -0 touch -r configure
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# Disable documentation generation
|
||||
export ac_cv_path_LATEX=no
|
||||
# Avoid help2man
|
||||
export HELP2MAN=$(type -P help2man || echo true)
|
||||
# No configure flage for this #403561
|
||||
export ac_cv_lib_bluetooth_hci_devid=$(usex bluetooth)
|
||||
# Requiring java is asine #434662
|
||||
export ac_cv_path_JAVA_EXE=$(which $(usex java java true))
|
||||
|
||||
econf \
|
||||
--docdir=/usr/share/doc/${PF} \
|
||||
--disable-ccache \
|
||||
--disable-optimizations \
|
||||
--enable-external-libraries \
|
||||
--enable-gl \
|
||||
$(use_enable airplay) \
|
||||
$(use_enable avahi) \
|
||||
$(use_enable bluray libbluray) \
|
||||
$(use_enable caps libcap) \
|
||||
$(use_enable cec libcec) \
|
||||
$(use_enable css dvdcss) \
|
||||
$(use_enable debug) \
|
||||
$(use_enable gles) \
|
||||
$(use_enable goom) \
|
||||
--disable-hal \
|
||||
$(use_enable joystick) \
|
||||
$(use_enable midi mid) \
|
||||
$(use_enable mysql) \
|
||||
$(use_enable neon) \
|
||||
$(use_enable nfs) \
|
||||
$(use_enable opengl gl) \
|
||||
$(use_enable profile profiling) \
|
||||
$(use_enable projectm) \
|
||||
$(use_enable pulseaudio pulse) \
|
||||
$(use_enable pvr mythtv) \
|
||||
$(use_enable rsxs) \
|
||||
$(use_enable rtmp) \
|
||||
$(use_enable samba) \
|
||||
$(use_enable sdl) \
|
||||
$(use_enable sftp ssh) \
|
||||
$(use_enable usb libusb) \
|
||||
$(use_enable upnp) \
|
||||
$(use_enable vaapi) \
|
||||
$(use_enable vdpau) \
|
||||
$(use_enable webserver) \
|
||||
$(use_enable X x11) \
|
||||
$(use_enable xrandr)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
rm "${ED}"/usr/share/doc/*/{LICENSE.GPL,copying.txt}*
|
||||
|
||||
domenu tools/Linux/xbmc.desktop
|
||||
newicon tools/Linux/xbmc-48x48.png xbmc.png
|
||||
|
||||
python_domodule tools/EventClients/lib/python/xbmcclient.py
|
||||
python_newscript "tools/EventClients/Clients/XBMC Send/xbmc-send.py" xbmc-send
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "Visit http://wiki.xbmc.org/?title=XBMC_Online_Manual"
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
Index: MPlayer-1.1.1/libmpdemux/demux_lavf.c
|
||||
===================================================================
|
||||
--- MPlayer-1.1.1.orig/libmpdemux/demux_lavf.c
|
||||
+++ MPlayer-1.1.1/libmpdemux/demux_lavf.c
|
||||
@@ -423,7 +423,11 @@ static void handle_stream(demuxer_t *dem
|
||||
case AVMEDIA_TYPE_SUBTITLE:{
|
||||
sh_sub_t* sh_sub;
|
||||
char type;
|
||||
- if(codec->codec_id == AV_CODEC_ID_TEXT)
|
||||
+ if(codec->codec_id == AV_CODEC_ID_TEXT
|
||||
+#if LIBAVUTIL_VERSION_MICRO >= 100
|
||||
+ || codec->codec_id == AV_CODEC_ID_SUBRIP
|
||||
+#endif
|
||||
+ )
|
||||
type = 't';
|
||||
else if(codec->codec_id == AV_CODEC_ID_MOV_TEXT)
|
||||
type = 'm';
|
@ -0,0 +1,17 @@
|
||||
Index: MPlayer-1.1.1/libmpdemux/demux_lavf.c
|
||||
===================================================================
|
||||
--- MPlayer-1.1.1.orig/libmpdemux/demux_lavf.c
|
||||
+++ MPlayer-1.1.1/libmpdemux/demux_lavf.c
|
||||
@@ -423,7 +423,11 @@ static void handle_stream(demuxer_t *dem
|
||||
case AVMEDIA_TYPE_SUBTITLE:{
|
||||
sh_sub_t* sh_sub;
|
||||
char type;
|
||||
- if(codec->codec_id == CODEC_ID_TEXT)
|
||||
+ if(codec->codec_id == CODEC_ID_TEXT
|
||||
+#if LIBAVUTIL_VERSION_MICRO >= 100
|
||||
+ || codec->codec_id == AV_CODEC_ID_SUBRIP
|
||||
+#endif
|
||||
+ )
|
||||
type = 't';
|
||||
else if(codec->codec_id == CODEC_ID_MOV_TEXT)
|
||||
type = 'm';
|
@ -0,0 +1,653 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer/mplayer-1.1.1-r1.ebuild,v 1.1 2013/06/14 00:06:19 aballier Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
EGIT_REPO_URI="git://git.videolan.org/ffmpeg.git"
|
||||
ESVN_REPO_URI="svn://svn.mplayerhq.hu/mplayer/trunk"
|
||||
[[ ${PV} = *9999* ]] && SVN_ECLASS="subversion git-2" || SVN_ECLASS=""
|
||||
|
||||
inherit toolchain-funcs eutils flag-o-matic multilib base ${SVN_ECLASS}
|
||||
|
||||
IUSE="3dnow 3dnowext +a52 aalib +alsa altivec aqua bidi bindist bl bluray
|
||||
bs2b cddb +cdio cdparanoia cpudetection debug dga
|
||||
directfb doc +dts +dv dvb +dvd +dvdnav dxr3 +enca +encode faac +faad fbcon
|
||||
ftp gif ggi gsm +iconv ipv6 jack joystick jpeg jpeg2k kernel_linux ladspa
|
||||
+libass libcaca libmpeg2 lirc +live lzo mad md5sum +mmx mmxext mng +mp3 nas
|
||||
+network nut openal +opengl +osdmenu oss png pnm pulseaudio pvr +quicktime
|
||||
radio +rar +rtc rtmp samba +shm sdl +speex sse sse2 ssse3
|
||||
tga +theora +tremor +truetype +toolame +twolame +unicode v4l vdpau vidix
|
||||
+vorbis +X +x264 xanim xinerama +xscreensaver +xv +xvid xvmc zoran"
|
||||
|
||||
VIDEO_CARDS="s3virge mga tdfx"
|
||||
for x in ${VIDEO_CARDS}; do
|
||||
IUSE+=" video_cards_${x}"
|
||||
done
|
||||
|
||||
FONT_URI="
|
||||
mirror://mplayer/releases/fonts/font-arial-iso-8859-1.tar.bz2
|
||||
mirror://mplayer/releases/fonts/font-arial-iso-8859-2.tar.bz2
|
||||
mirror://mplayer/releases/fonts/font-arial-cp1250.tar.bz2
|
||||
"
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
RELEASE_URI=""
|
||||
elif [ "${PV%_rc*}" = "${PV}" ]; then
|
||||
MY_P="MPlayer-${PV}"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
RELEASE_URI="mirror://mplayer/releases/${MY_P}.tar.xz"
|
||||
else
|
||||
RELEASE_URI="mirror://gentoo/${P}.tar.xz"
|
||||
fi
|
||||
SRC_URI="${RELEASE_URI}
|
||||
!truetype? ( ${FONT_URI} )"
|
||||
|
||||
DESCRIPTION="Media Player for Linux"
|
||||
HOMEPAGE="http://www.mplayerhq.hu/"
|
||||
|
||||
FONT_RDEPS="
|
||||
virtual/ttf-fonts
|
||||
media-libs/fontconfig
|
||||
>=media-libs/freetype-2.2.1:2
|
||||
"
|
||||
X_RDEPS="
|
||||
x11-libs/libXext
|
||||
x11-libs/libXxf86vm
|
||||
"
|
||||
# Rar: althrought -gpl version is nice, it cant do most functions normal rars can
|
||||
# nemesi? ( net-libs/libnemesi )
|
||||
RDEPEND+="
|
||||
sys-libs/ncurses
|
||||
app-arch/bzip2
|
||||
sys-libs/zlib
|
||||
>=virtual/ffmpeg-0.10.3
|
||||
a52? ( media-libs/a52dec )
|
||||
aalib? ( media-libs/aalib )
|
||||
alsa? ( media-libs/alsa-lib )
|
||||
bidi? ( dev-libs/fribidi )
|
||||
bluray? ( >=media-libs/libbluray-0.2.1 )
|
||||
bs2b? ( media-libs/libbs2b )
|
||||
cdio? ( || ( dev-libs/libcdio-paranoia <dev-libs/libcdio-0.90[-minimal] ) )
|
||||
cdparanoia? ( !cdio? ( media-sound/cdparanoia ) )
|
||||
dga? ( x11-libs/libXxf86dga )
|
||||
directfb? ( dev-libs/DirectFB )
|
||||
dts? ( media-libs/libdca )
|
||||
dv? ( media-libs/libdv )
|
||||
dvb? ( virtual/linuxtv-dvb-headers )
|
||||
dvd? ( >=media-libs/libdvdread-4.1.3 )
|
||||
dvdnav? ( >=media-libs/libdvdnav-4.1.3 )
|
||||
encode? (
|
||||
!twolame? ( toolame? ( media-sound/toolame ) )
|
||||
twolame? ( media-sound/twolame )
|
||||
faac? ( media-libs/faac )
|
||||
mp3? ( media-sound/lame )
|
||||
x264? ( >=media-libs/x264-0.0.20100423 )
|
||||
xvid? ( media-libs/xvid )
|
||||
)
|
||||
enca? ( app-i18n/enca )
|
||||
faad? ( media-libs/faad2 )
|
||||
ggi? ( media-libs/libggi media-libs/libggiwmh )
|
||||
gif? ( media-libs/giflib )
|
||||
gsm? ( media-sound/gsm )
|
||||
iconv? ( virtual/libiconv )
|
||||
jack? ( media-sound/jack-audio-connection-kit )
|
||||
jpeg? ( virtual/jpeg )
|
||||
jpeg2k? ( media-libs/openjpeg:0 )
|
||||
ladspa? ( media-libs/ladspa-sdk )
|
||||
libass? ( >=media-libs/libass-0.9.10[enca?] )
|
||||
libcaca? ( media-libs/libcaca )
|
||||
libmpeg2? ( media-libs/libmpeg2 )
|
||||
lirc? ( app-misc/lirc )
|
||||
live? ( media-plugins/live )
|
||||
lzo? ( >=dev-libs/lzo-2 )
|
||||
mad? ( media-libs/libmad )
|
||||
mng? ( media-libs/libmng )
|
||||
mp3? ( media-sound/mpg123 )
|
||||
nas? ( media-libs/nas )
|
||||
nut? ( >=media-libs/libnut-661 )
|
||||
openal? ( media-libs/openal )
|
||||
opengl? ( virtual/opengl )
|
||||
png? ( media-libs/libpng )
|
||||
pnm? ( media-libs/netpbm )
|
||||
pulseaudio? ( media-sound/pulseaudio )
|
||||
rar? (
|
||||
|| (
|
||||
app-arch/unrar
|
||||
app-arch/rar
|
||||
)
|
||||
)
|
||||
rtmp? ( media-video/rtmpdump )
|
||||
samba? ( net-fs/samba )
|
||||
sdl? ( media-libs/libsdl )
|
||||
speex? ( media-libs/speex )
|
||||
theora? ( media-libs/libtheora[encode?] )
|
||||
truetype? ( ${FONT_RDEPS} )
|
||||
vdpau? ( x11-libs/libvdpau )
|
||||
vorbis? ( media-libs/libvorbis )
|
||||
X? ( ${X_RDEPS} )
|
||||
xanim? ( media-video/xanim )
|
||||
xinerama? ( x11-libs/libXinerama )
|
||||
xscreensaver? ( x11-libs/libXScrnSaver )
|
||||
xv? ( x11-libs/libXv )
|
||||
xvmc? ( x11-libs/libXvMC )
|
||||
"
|
||||
|
||||
X_DEPS="
|
||||
x11-proto/videoproto
|
||||
x11-proto/xf86vidmodeproto
|
||||
"
|
||||
ASM_DEP="dev-lang/yasm"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
dga? ( x11-proto/xf86dgaproto )
|
||||
dxr3? ( media-video/em8300-libraries )
|
||||
X? ( ${X_DEPS} )
|
||||
xinerama? ( x11-proto/xineramaproto )
|
||||
xscreensaver? ( x11-proto/scrnsaverproto )
|
||||
amd64? ( ${ASM_DEP} )
|
||||
doc? (
|
||||
dev-libs/libxslt app-text/docbook-xml-dtd
|
||||
app-text/docbook-xsl-stylesheets
|
||||
)
|
||||
x86? ( ${ASM_DEP} )
|
||||
x86-fbsd? ( ${ASM_DEP} )
|
||||
"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="GPL-2"
|
||||
if [[ ${PV} != *9999* ]]; then
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
|
||||
else
|
||||
KEYWORDS=""
|
||||
fi
|
||||
|
||||
# faac codecs are nonfree, win32codecs are nonfree
|
||||
# libcdio support: prefer libcdio over cdparanoia and don't check for cddb w/cdio
|
||||
# dvd navigation requires dvd read support
|
||||
# ass and freetype font require iconv and ass requires freetype fonts
|
||||
# unicode transformations are usefull only with iconv
|
||||
# libvorbis require external tremor to work
|
||||
# radio requires oss or alsa backend
|
||||
# xvmc requires xvideo support
|
||||
REQUIRED_USE="bindist? ( !faac )
|
||||
dvdnav? ( dvd )
|
||||
libass? ( truetype )
|
||||
truetype? ( iconv )
|
||||
dxr3? ( X )
|
||||
ggi? ( X )
|
||||
xinerama? ( X )
|
||||
dga? ( X )
|
||||
opengl? ( || ( X aqua ) )
|
||||
osdmenu? ( || ( X aqua ) )
|
||||
vdpau? ( X )
|
||||
vidix? ( X )
|
||||
xscreensaver? ( X )
|
||||
xv? ( X )
|
||||
xvmc? ( xv )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-1.0_rc4-pkg-config.patch"
|
||||
"${FILESDIR}/${PN}-1.1-ffmpeg.patch"
|
||||
"${FILESDIR}/${PN}-1.1-libav-0.8.patch"
|
||||
"${FILESDIR}/${PN}-1.1-codecid.patch"
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
elog
|
||||
elog "This is a live ebuild which installs the latest from upstream's"
|
||||
elog "subversion repository, and is unsupported by Gentoo."
|
||||
elog "Everything but bugs in the ebuild itself will be ignored."
|
||||
elog
|
||||
fi
|
||||
|
||||
if use cpudetection; then
|
||||
ewarn
|
||||
ewarn "You've enabled the cpudetection flag. This feature is"
|
||||
ewarn "included mainly for people who want to use the same"
|
||||
ewarn "binary on another system with a different CPU architecture."
|
||||
ewarn "MPlayer will already detect your CPU settings by default at"
|
||||
ewarn "buildtime; this flag is used for runtime detection."
|
||||
ewarn "You won't need this turned on if you are only building"
|
||||
ewarn "mplayer for this system. Also, if your compile fails, try"
|
||||
ewarn "disabling this use flag."
|
||||
fi
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
subversion_src_unpack
|
||||
cd "${WORKDIR}"
|
||||
rm -rf "${WORKDIR}/${P}/ffmpeg/"
|
||||
( S="${WORKDIR}/${P}/ffmpeg/" git-2_src_unpack )
|
||||
else
|
||||
unpack ${A}
|
||||
fi
|
||||
|
||||
if [[ ${PV} = *9999* ]] || [[ "${PV%_rc*}" = "${PV}" ]]; then
|
||||
cd "${S}"
|
||||
cp "${FILESDIR}/dump_ffmpeg.sh" . || die
|
||||
chmod +x dump_ffmpeg.sh
|
||||
./dump_ffmpeg.sh || die
|
||||
fi
|
||||
|
||||
if ! use truetype; then
|
||||
unpack font-arial-iso-8859-1.tar.bz2 \
|
||||
font-arial-iso-8859-2.tar.bz2 \
|
||||
font-arial-cp1250.tar.bz2
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local svf=snapshot_version
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
# Set SVN version manually
|
||||
subversion_wc_info
|
||||
printf "${ESVN_WC_REVISION}" > $svf
|
||||
fi
|
||||
if [ ! -f VERSION ] ; then
|
||||
[ -f "$svf" ] || die "Missing ${svf}. Did you generate your snapshot with prepare_mplayer.sh?"
|
||||
local sv=$(<$svf)
|
||||
printf "SVN-r${sv} (Gentoo)" > VERSION
|
||||
fi
|
||||
|
||||
# fix path to bash executable in configure scripts
|
||||
sed -i -e "1c\#!${EPREFIX}/bin/bash" configure version.sh || die
|
||||
|
||||
if has_version dev-libs/libcdio-paranoia; then
|
||||
sed -i \
|
||||
-e 's:cdio/cdda.h:cdio/paranoia/cdda.h:' \
|
||||
-e 's:cdio/paranoia.h:cdio/paranoia/paranoia.h:' \
|
||||
configure stream/stream_cdda.c || die
|
||||
fi
|
||||
|
||||
base_src_prepare
|
||||
if has_version '>=media-video/libav-9_rc' || has_version '>=media-video/ffmpeg-1.1' ; then
|
||||
epatch "${FILESDIR}/${PN}-1.1-libav-9.patch" \
|
||||
"${FILESDIR}/${PN}-1.1-planaraudio.patch" \
|
||||
"${FILESDIR}/${PN}-1.1-missingbreak.patch" \
|
||||
"${FILESDIR}/${PN}-1.1.1-avcodecidsubrip.patch"
|
||||
elif has_version '>=media-video/ffmpeg-1' ; then
|
||||
epatch "${FILESDIR}/${PN}-1.1.1-codecidsubrip.patch"
|
||||
fi
|
||||
|
||||
# Use sane default for >=virtual/udev-197
|
||||
sed -i -e '/default_dvd_device/s:/dev/dvd:/dev/cdrom:' configure || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=""
|
||||
local uses i
|
||||
|
||||
# set LINGUAS
|
||||
[[ -n $LINGUAS ]] && LINGUAS="${LINGUAS/da/dk}"
|
||||
|
||||
# mplayer ebuild uses "use foo || --disable-foo" to forcibly disable
|
||||
# compilation in almost every situation. The reason for this is
|
||||
# because if --enable is used, it will force the build of that option,
|
||||
# regardless of whether the dependency is available or not.
|
||||
|
||||
###################
|
||||
#Optional features#
|
||||
###################
|
||||
# disable svga since we don't want it
|
||||
# disable arts since we don't have kde3
|
||||
# always disable internal ass
|
||||
myconf+="
|
||||
--disable-svga --disable-svgalib_helper
|
||||
--disable-ass-internal
|
||||
--disable-arts
|
||||
--disable-kai
|
||||
$(use_enable network networking)
|
||||
$(use_enable joystick)
|
||||
"
|
||||
uses="bl bluray enca ftp rtc" # nemesi <- not working with in-tree ebuild
|
||||
myconf+=" --disable-nemesi" # nemesi automagic disable
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-${i}"
|
||||
done
|
||||
use bidi || myconf+=" --disable-fribidi"
|
||||
use ipv6 || myconf+=" --disable-inet6"
|
||||
use libass || myconf+=" --disable-ass"
|
||||
use nut || myconf+=" --disable-libnut"
|
||||
use rar || myconf+=" --disable-unrarexec"
|
||||
use samba || myconf+=" --disable-smb"
|
||||
use lirc || myconf+=" --disable-lirc --disable-lircc --disable-apple-ir"
|
||||
|
||||
# libcdio support: prefer libcdio over cdparanoia
|
||||
# don't check for cddb w/cdio
|
||||
if use cdio; then
|
||||
myconf+=" --disable-cdparanoia"
|
||||
else
|
||||
myconf+=" --disable-libcdio"
|
||||
use cdparanoia || myconf+=" --disable-cdparanoia"
|
||||
use cddb || myconf+=" --disable-cddb"
|
||||
fi
|
||||
|
||||
################################
|
||||
# DVD read, navigation support #
|
||||
################################
|
||||
#
|
||||
# dvdread - accessing a DVD
|
||||
# dvdnav - navigation of menus
|
||||
#
|
||||
# use external libdvdcss, dvdread and dvdnav
|
||||
myconf+=" --disable-dvdread-internal --disable-libdvdcss-internal"
|
||||
use dvd || myconf+=" --disable-dvdread"
|
||||
use dvdnav || myconf+=" --disable-dvdnav"
|
||||
|
||||
#############
|
||||
# Subtitles #
|
||||
#############
|
||||
#
|
||||
# SRT/ASS/SSA (subtitles) requires freetype support
|
||||
# freetype support requires iconv
|
||||
# iconv optionally can use unicode
|
||||
use truetype || myconf+=" --disable-freetype"
|
||||
use iconv || myconf+=" --disable-iconv --charset=noconv"
|
||||
use iconv && use unicode && myconf+=" --charset=UTF-8"
|
||||
|
||||
#####################################
|
||||
# DVB / Video4Linux / Radio support #
|
||||
#####################################
|
||||
myconf+=" --disable-tv-bsdbt848"
|
||||
# broken upstream, won't work with recent kernels
|
||||
myconf+=" --disable-ivtv"
|
||||
# gone since linux-headers-2.6.38
|
||||
myconf+=" --disable-tv-v4l1"
|
||||
if { use dvb || use v4l || use pvr || use radio; }; then
|
||||
use dvb || myconf+=" --disable-dvb"
|
||||
use pvr || myconf+=" --disable-pvr"
|
||||
use v4l || myconf+=" --disable-tv-v4l2"
|
||||
if use radio && { use dvb || use v4l; }; then
|
||||
myconf+="
|
||||
--enable-radio
|
||||
$(use_enable encode radio-capture)
|
||||
"
|
||||
else
|
||||
myconf+="
|
||||
--disable-radio-v4l2
|
||||
--disable-radio-bsdbt848
|
||||
"
|
||||
fi
|
||||
else
|
||||
myconf+="
|
||||
--disable-tv
|
||||
--disable-tv-v4l2
|
||||
--disable-radio
|
||||
--disable-radio-v4l2
|
||||
--disable-radio-bsdbt848
|
||||
--disable-dvb
|
||||
--disable-v4l2
|
||||
--disable-pvr"
|
||||
fi
|
||||
|
||||
##########
|
||||
# Codecs #
|
||||
##########
|
||||
myconf+=" --disable-musepack" # Use internal musepack codecs for SV7 and SV8 support
|
||||
myconf+=" --disable-libmpeg2-internal" # always use system media-libs/libmpeg2
|
||||
use dts || myconf+=" --disable-libdca"
|
||||
# Disable internal mp3lib, bug #384849
|
||||
# Samuli Suominen: Looks like MPlayer in Portage is using internal mp3lib by
|
||||
# default, where as mpg123 upstream has incorporated all the optimizations
|
||||
# from mplayer's mp3lib in libmpg123 and more.
|
||||
# It makes very little sense to use the internal copy as default anymore.
|
||||
myconf+=" --disable-mp3lib"
|
||||
if ! use mp3; then
|
||||
myconf+="
|
||||
--disable-mp3lame
|
||||
--disable-mpg123
|
||||
"
|
||||
fi
|
||||
uses="a52 bs2b dv gsm lzo rtmp"
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-lib${i}"
|
||||
done
|
||||
|
||||
uses="faad gif jpeg libmpeg2 live mad mng png pnm speex tga theora xanim"
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-${i}"
|
||||
done
|
||||
use jpeg2k || myconf+=" --disable-libopenjpeg"
|
||||
if use vorbis || use tremor; then
|
||||
use tremor || myconf+=" --disable-tremor-internal"
|
||||
use vorbis || myconf+=" --disable-libvorbis"
|
||||
else
|
||||
myconf+="
|
||||
--disable-tremor-internal
|
||||
--disable-tremor
|
||||
--disable-libvorbis
|
||||
"
|
||||
fi
|
||||
# Encoding
|
||||
uses="faac x264 xvid toolame twolame"
|
||||
if use encode; then
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-${i}"
|
||||
done
|
||||
else
|
||||
myconf+=" --disable-mencoder"
|
||||
for i in ${uses}; do
|
||||
myconf+=" --disable-${i}"
|
||||
use ${i} && elog "Useflag \"${i}\" will only be useful for encoding, i.e., with \"encode\" useflag enabled."
|
||||
done
|
||||
fi
|
||||
|
||||
#################
|
||||
# Binary codecs #
|
||||
#################
|
||||
# bug 213836
|
||||
use quicktime || myconf+=" --disable-qtx"
|
||||
myconf+=" --disable-real --disable-win32dll"
|
||||
|
||||
################
|
||||
# Video Output #
|
||||
################
|
||||
uses="directfb md5sum sdl"
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-${i}"
|
||||
done
|
||||
use aalib || myconf+=" --disable-aa"
|
||||
use fbcon || myconf+=" --disable-fbdev"
|
||||
use fbcon && use video_cards_s3virge && myconf+=" --enable-s3fb"
|
||||
use libcaca || myconf+=" --disable-caca"
|
||||
use zoran || myconf+=" --disable-zr"
|
||||
|
||||
if ! use kernel_linux || ! use video_cards_mga; then
|
||||
myconf+=" --disable-mga --disable-xmga"
|
||||
fi
|
||||
|
||||
if use video_cards_tdfx; then
|
||||
myconf+="
|
||||
$(use_enable video_cards_tdfx tdfxvid)
|
||||
$(use_enable fbcon tdfxfb)
|
||||
"
|
||||
else
|
||||
myconf+="
|
||||
--disable-3dfx
|
||||
--disable-tdfxvid
|
||||
--disable-tdfxfb
|
||||
"
|
||||
fi
|
||||
|
||||
# sun card, disable by default, see bug #258729
|
||||
myconf+=" --disable-xvr100"
|
||||
|
||||
################
|
||||
# Audio Output #
|
||||
################
|
||||
myconf+=" --disable-esd"
|
||||
uses="alsa jack ladspa nas openal"
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-${i}"
|
||||
done
|
||||
use pulseaudio || myconf+=" --disable-pulse"
|
||||
if ! use radio; then
|
||||
use oss || myconf+=" --disable-ossaudio"
|
||||
fi
|
||||
|
||||
####################
|
||||
# Advanced Options #
|
||||
####################
|
||||
# Platform specific flags, hardcoded on amd64 (see below)
|
||||
use cpudetection && myconf+=" --enable-runtime-cpudetection"
|
||||
|
||||
uses="3dnow 3dnowext altivec mmx mmxext shm sse sse2 ssse3"
|
||||
for i in ${uses}; do
|
||||
myconf+=" $(use_enable ${i})"
|
||||
done
|
||||
|
||||
use debug && myconf+=" --enable-debug=3"
|
||||
|
||||
if use x86 && gcc-specs-pie; then
|
||||
filter-flags -fPIC -fPIE
|
||||
append-ldflags -nopie
|
||||
fi
|
||||
|
||||
###########################
|
||||
# X enabled configuration #
|
||||
###########################
|
||||
myconf+=" --disable-gui"
|
||||
myconf+=" --disable-vesa"
|
||||
uses="dxr3 ggi vdpau xinerama xv"
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-${i}"
|
||||
done
|
||||
use dga || myconf+=" --disable-dga1 --disable-dga2"
|
||||
use opengl || myconf+=" --disable-gl"
|
||||
use osdmenu && myconf+=" --enable-menu"
|
||||
use vidix || myconf+=" --disable-vidix --disable-vidix-pcidb"
|
||||
use xscreensaver || myconf+=" --disable-xss"
|
||||
use X || myconf+=" --disable-x11"
|
||||
if use xvmc; then
|
||||
myconf+=" --enable-xvmc --with-xvmclib=XvMCW"
|
||||
else
|
||||
myconf+=" --disable-xvmc"
|
||||
fi
|
||||
|
||||
############################
|
||||
# OSX (aqua) configuration #
|
||||
############################
|
||||
if use aqua; then
|
||||
myconf+="
|
||||
--enable-macosx-finder
|
||||
--enable-macosx-bundle
|
||||
"
|
||||
fi
|
||||
|
||||
tc-export PKG_CONFIG
|
||||
./configure \
|
||||
--cc="$(tc-getCC)" \
|
||||
--host-cc="$(tc-getBUILD_CC)" \
|
||||
--prefix="${EPREFIX}/usr" \
|
||||
--bindir="${EPREFIX}/usr/bin" \
|
||||
--libdir="${EPREFIX}/usr/$(get_libdir)" \
|
||||
--confdir="${EPREFIX}/etc/mplayer" \
|
||||
--datadir="${EPREFIX}/usr/share/mplayer${namesuf}" \
|
||||
--mandir="${EPREFIX}/usr/share/man" \
|
||||
--disable-ffmpeg_a \
|
||||
${myconf} || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
base_src_compile
|
||||
# Build only user-requested docs if they're available.
|
||||
if use doc ; then
|
||||
# select available languages from $LINGUAS
|
||||
LINGUAS=${LINGUAS/zh/zh_CN}
|
||||
local ALLOWED_LINGUAS="cs de en es fr hu it pl ru zh_CN"
|
||||
local BUILT_DOCS=""
|
||||
for i in ${LINGUAS} ; do
|
||||
has ${i} ${ALLOWED_LINGUAS} && BUILT_DOCS+=" ${i}"
|
||||
done
|
||||
if [[ -z $BUILT_DOCS ]]; then
|
||||
emake -j1 html-chunked
|
||||
else
|
||||
for i in ${BUILT_DOCS}; do
|
||||
emake -j1 html-chunked-${i}
|
||||
done
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local i
|
||||
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
INSTALLSTRIP="" \
|
||||
install
|
||||
|
||||
dodoc AUTHORS Changelog Copyright README etc/codecs.conf
|
||||
|
||||
docinto tech/
|
||||
dodoc DOCS/tech/{*.txt,MAINTAINERS,mpsub.sub,playtree,TODO,wishlist}
|
||||
docinto TOOLS/
|
||||
dodoc -r TOOLS
|
||||
docinto tech/mirrors/
|
||||
dodoc DOCS/tech/mirrors/*
|
||||
|
||||
if use doc; then
|
||||
docinto html/
|
||||
dohtml -r "${S}"/DOCS/HTML/*
|
||||
fi
|
||||
|
||||
if ! use truetype; then
|
||||
dodir /usr/share/mplayer/fonts
|
||||
# Do this generic, as the mplayer people like to change the structure
|
||||
# of their zips ...
|
||||
for i in $(find "${WORKDIR}/" -type d -name 'font-arial-*'); do
|
||||
cp -pPR "${i}" "${ED}/usr/share/mplayer/fonts"
|
||||
done
|
||||
# Fix the font symlink ...
|
||||
rm -rf "${ED}/usr/share/mplayer/font"
|
||||
dosym fonts/font-arial-14-iso-8859-1 /usr/share/mplayer/font
|
||||
fi
|
||||
|
||||
insinto /etc/mplayer
|
||||
newins "${S}/etc/example.conf" mplayer.conf
|
||||
cat >> "${ED}/etc/mplayer/mplayer.conf" << _EOF_
|
||||
# Config options can be section specific, global
|
||||
# options should go in the default section
|
||||
[default]
|
||||
_EOF_
|
||||
doins "${S}/etc/input.conf"
|
||||
if use osdmenu; then
|
||||
doins "${S}/etc/menu.conf"
|
||||
fi
|
||||
|
||||
if use truetype; then
|
||||
cat >> "${ED}/etc/mplayer/mplayer.conf" << _EOF_
|
||||
fontconfig=1
|
||||
subfont-osd-scale=4
|
||||
subfont-text-scale=3
|
||||
_EOF_
|
||||
fi
|
||||
|
||||
# bug 256203
|
||||
if use rar; then
|
||||
cat >> "${ED}/etc/mplayer/mplayer.conf" << _EOF_
|
||||
unrarexec=${EPREFIX}/usr/bin/unrar
|
||||
_EOF_
|
||||
fi
|
||||
|
||||
dosym ../../../etc/mplayer/mplayer.conf /usr/share/mplayer/mplayer.conf
|
||||
newbin "${S}/TOOLS/midentify.sh" midentify
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
[[ -d ${EROOT}/usr/share/mplayer/Skin/default ]] && \
|
||||
rm -rf "${EROOT}/usr/share/mplayer/Skin/default"
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
# Cleanup stale symlinks
|
||||
[ -L "${EROOT}/usr/share/mplayer/font" -a \
|
||||
! -e "${EROOT}/usr/share/mplayer/font" ] && \
|
||||
rm -f "${EROOT}/usr/share/mplayer/font"
|
||||
|
||||
[ -L "${EROOT}/usr/share/mplayer/subfont.ttf" -a \
|
||||
! -e "${EROOT}/usr/share/mplayer/subfont.ttf" ] && \
|
||||
rm -f "${EROOT}/usr/share/mplayer/subfont.ttf"
|
||||
}
|
@ -1,50 +0,0 @@
|
||||
diff -upr mplayer2-20121128.orig/stream/stream_cdda.c mplayer2-20121128/stream/stream_cdda.c
|
||||
--- mplayer2-20121128.orig/stream/stream_cdda.c 2013-01-10 19:37:31.000000000 +0200
|
||||
+++ mplayer2-20121128/stream/stream_cdda.c 2013-01-10 20:23:25.000000000 +0200
|
||||
@@ -17,8 +17,8 @@
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
-#include <cdio/cdda.h>
|
||||
-#include <cdio/paranoia.h>
|
||||
+#include <cdio/paranoia/cdda.h>
|
||||
+#include <cdio/paranoia/paranoia.h>
|
||||
#include <cdio/cdio.h>
|
||||
|
||||
#include <stdio.h>
|
||||
@@ -116,25 +116,25 @@ const m_option_t cdda_opts[] = {
|
||||
};
|
||||
|
||||
static const char *cdtext_name[] = {
|
||||
- [CDTEXT_ARRANGER] = "Arranger",
|
||||
- [CDTEXT_COMPOSER] = "Composer",
|
||||
- [CDTEXT_MESSAGE] = "Message",
|
||||
- [CDTEXT_ISRC] = "ISRC",
|
||||
- [CDTEXT_PERFORMER] = "Performer",
|
||||
- [CDTEXT_SONGWRITER] = "Songwriter",
|
||||
- [CDTEXT_TITLE] = "Title",
|
||||
- [CDTEXT_UPC_EAN] = "UPC_EAN",
|
||||
+ [CDTEXT_FIELD_ARRANGER] = "Arranger",
|
||||
+ [CDTEXT_FIELD_COMPOSER] = "Composer",
|
||||
+ [CDTEXT_FIELD_MESSAGE] = "Message",
|
||||
+ [CDTEXT_FIELD_ISRC] = "ISRC",
|
||||
+ [CDTEXT_FIELD_PERFORMER] = "Performer",
|
||||
+ [CDTEXT_FIELD_SONGWRITER] = "Songwriter",
|
||||
+ [CDTEXT_FIELD_TITLE] = "Title",
|
||||
+ [CDTEXT_FIELD_UPC_EAN] = "UPC_EAN",
|
||||
};
|
||||
|
||||
static bool print_cdtext(stream_t *s, int track)
|
||||
{
|
||||
cdda_priv* p = (cdda_priv*)s->priv;
|
||||
- cdtext_t *text = cdio_get_cdtext(p->cd->p_cdio, track);
|
||||
+ cdtext_t *text = cdio_get_cdtext(p->cd->p_cdio);
|
||||
if (text) {
|
||||
mp_msg(MSGT_SEEK, MSGL_INFO, "CD-Text (%s):\n", track ? "track" : "CD");
|
||||
for (int i = 0; i < sizeof(cdtext_name) / sizeof(cdtext_name[0]); i++) {
|
||||
const char *name = cdtext_name[i];
|
||||
- const char *value = cdtext_get_const(i, text);
|
||||
+ const char *value = cdtext_get_const(text, i, track);
|
||||
if (name && value)
|
||||
mp_msg(MSGT_SEEK, MSGL_INFO, " %s: '%s'\n", name, value);
|
||||
}
|
@ -1,600 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer2/mplayer2-2.0_p20120309.ebuild,v 1.15 2013/05/16 19:14:38 ulm Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
[[ ${PV} = *9999* ]] && VCS_ECLASS="git-2" || VCS_ECLASS=""
|
||||
|
||||
inherit toolchain-funcs eutils flag-o-matic multilib base ${VCS_ECLASS}
|
||||
|
||||
NAMESUF="${PN/mplayer/}"
|
||||
DESCRIPTION="Media Player for Linux"
|
||||
HOMEPAGE="http://www.mplayer2.org/"
|
||||
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
EGIT_REPO_URI="git://git.mplayer2.org/mplayer2.git"
|
||||
else
|
||||
RELEASE_URI="http://dev.gentooexperimental.org/~scarabeus/${P}.tar.xz"
|
||||
fi
|
||||
SRC_URI="${RELEASE_URI}
|
||||
!truetype? (
|
||||
mirror://mplayer/releases/fonts/font-arial-iso-8859-1.tar.bz2
|
||||
mirror://mplayer/releases/fonts/font-arial-iso-8859-2.tar.bz2
|
||||
mirror://mplayer/releases/fonts/font-arial-cp1250.tar.bz2
|
||||
)
|
||||
"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
KEYWORDS=""
|
||||
else
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86 ~amd64-linux"
|
||||
fi
|
||||
IUSE="3dnow 3dnowext +a52 aalib +alsa altivec aqua bidi bl
|
||||
bluray bs2b cddb +cdio cdparanoia cpudetection custom-cpuopts
|
||||
debug directfb doc +dts +dv dvb +dvd +dvdnav dxr3 +enca +faad fbcon ftp
|
||||
gif ggi +iconv ipv6 jack joystick jpeg kernel_linux ladspa +libass libcaca lirc
|
||||
mad md5sum +mmx mmxext mng +mp3 nas +network nut +opengl oss png pnm pulseaudio
|
||||
pvr +quicktime radio +rar +real +rtc samba +shm sdl +speex sse sse2 ssse3 tga
|
||||
+theora +truetype +unicode v4l vdpau +vorbis +X xanim xinerama
|
||||
+xscreensaver +xv xvid"
|
||||
IUSE+=" symlink"
|
||||
|
||||
VIDEO_CARDS="s3virge mga tdfx vesa"
|
||||
for x in ${VIDEO_CARDS}; do
|
||||
IUSE+=" video_cards_${x}"
|
||||
done
|
||||
|
||||
REQUIRED_USE="
|
||||
cdio? ( !cdparanoia )
|
||||
cddb? ( || ( cdio cdparanoia ) network )
|
||||
dvdnav? ( dvd )
|
||||
libass? ( truetype )
|
||||
truetype? ( iconv )
|
||||
radio? ( || ( dvb v4l ) )
|
||||
dxr3? ( X )
|
||||
ggi? ( X )
|
||||
opengl? ( X )
|
||||
vdpau? ( X )
|
||||
xinerama? ( X )
|
||||
xscreensaver? ( X )
|
||||
xv? ( X )
|
||||
"
|
||||
|
||||
FONT_RDEPS="
|
||||
virtual/ttf-fonts
|
||||
media-libs/fontconfig
|
||||
>=media-libs/freetype-2.2.1:2
|
||||
"
|
||||
# Rar: althrought -gpl version is nice, it cant do most functions normal rars can
|
||||
# nemesi? ( net-libs/libnemesi )
|
||||
RDEPEND+="
|
||||
sys-libs/ncurses
|
||||
sys-libs/zlib
|
||||
X? (
|
||||
x11-libs/libXext
|
||||
x11-libs/libXxf86vm
|
||||
ggi? (
|
||||
media-libs/libggi
|
||||
media-libs/libggiwmh
|
||||
)
|
||||
opengl? ( virtual/opengl )
|
||||
vdpau? ( x11-libs/libvdpau )
|
||||
xinerama? ( x11-libs/libXinerama )
|
||||
xscreensaver? ( x11-libs/libXScrnSaver )
|
||||
xv? (
|
||||
x11-libs/libXv
|
||||
)
|
||||
)
|
||||
a52? ( media-libs/a52dec )
|
||||
aalib? ( media-libs/aalib )
|
||||
alsa? ( media-libs/alsa-lib )
|
||||
bidi? ( dev-libs/fribidi )
|
||||
bluray? ( media-libs/libbluray )
|
||||
bs2b? ( media-libs/libbs2b )
|
||||
cdio? ( dev-libs/libcdio )
|
||||
cdparanoia? ( !cdio? ( media-sound/cdparanoia ) )
|
||||
directfb? ( dev-libs/DirectFB )
|
||||
dts? ( media-libs/libdca )
|
||||
dv? ( media-libs/libdv )
|
||||
dvb? ( virtual/linuxtv-dvb-headers )
|
||||
dvd? (
|
||||
>=media-libs/libdvdread-4.1.3
|
||||
dvdnav? ( >=media-libs/libdvdnav-4.1.3 )
|
||||
)
|
||||
enca? ( app-i18n/enca )
|
||||
faad? ( media-libs/faad2 )
|
||||
gif? ( media-libs/giflib )
|
||||
iconv? ( virtual/libiconv )
|
||||
jack? ( media-sound/jack-audio-connection-kit )
|
||||
jpeg? ( virtual/jpeg )
|
||||
ladspa? ( media-libs/ladspa-sdk )
|
||||
libass? ( >=media-libs/libass-0.9.10[enca?,fontconfig] )
|
||||
libcaca? ( media-libs/libcaca )
|
||||
lirc? ( app-misc/lirc )
|
||||
mad? ( media-libs/libmad )
|
||||
mng? ( media-libs/libmng )
|
||||
mp3? ( media-sound/mpg123 )
|
||||
nas? ( media-libs/nas )
|
||||
nut? ( >=media-libs/libnut-661 )
|
||||
png? ( media-libs/libpng )
|
||||
pnm? ( media-libs/netpbm )
|
||||
pulseaudio? ( media-sound/pulseaudio )
|
||||
rar? (
|
||||
|| (
|
||||
app-arch/unrar
|
||||
app-arch/rar
|
||||
)
|
||||
)
|
||||
samba? ( net-fs/samba )
|
||||
sdl? ( media-libs/libsdl )
|
||||
speex? ( media-libs/speex )
|
||||
theora? ( media-libs/libtheora )
|
||||
truetype? ( ${FONT_RDEPS} )
|
||||
vorbis? ( media-libs/libvorbis )
|
||||
xanim? ( media-video/xanim )
|
||||
xvid? ( media-libs/xvid )
|
||||
|| ( media-libs/libpostproc <media-video/libav-0.8.2-r1 media-video/ffmpeg )
|
||||
>=virtual/ffmpeg-0.10.2
|
||||
symlink? ( !media-video/mplayer )
|
||||
"
|
||||
ASM_DEP="dev-lang/yasm"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
dev-lang/python
|
||||
sys-devel/gettext
|
||||
X? (
|
||||
x11-proto/videoproto
|
||||
x11-proto/xf86vidmodeproto
|
||||
dxr3? ( media-video/em8300-libraries )
|
||||
xinerama? ( x11-proto/xineramaproto )
|
||||
xscreensaver? ( x11-proto/scrnsaverproto )
|
||||
)
|
||||
amd64? ( ${ASM_DEP} )
|
||||
doc? (
|
||||
dev-libs/libxslt app-text/docbook-xml-dtd
|
||||
app-text/docbook-xsl-stylesheets
|
||||
)
|
||||
x86? ( ${ASM_DEP} )
|
||||
x86-fbsd? ( ${ASM_DEP} )
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
elog
|
||||
elog "This is a live ebuild which installs the latest from upstream's"
|
||||
elog "${VCS_ECLASS} repository, and is unsupported by Gentoo."
|
||||
elog "Everything but bugs in the ebuild itself will be ignored."
|
||||
elog
|
||||
fi
|
||||
|
||||
if use cpudetection; then
|
||||
ewarn
|
||||
ewarn "You've enabled the cpudetection flag. This feature is"
|
||||
ewarn "included mainly for people who want to use the same"
|
||||
ewarn "binary on another system with a different CPU architecture."
|
||||
ewarn "MPlayer will already detect your CPU settings by default at"
|
||||
ewarn "buildtime; this flag is used for runtime detection."
|
||||
ewarn "You won't need this turned on if you are only building"
|
||||
ewarn "mplayer for this system. Also, if your compile fails, try"
|
||||
ewarn "disabling this use flag."
|
||||
fi
|
||||
|
||||
if use custom-cpuopts; then
|
||||
ewarn
|
||||
ewarn "You are using the custom-cpuopts flag which will"
|
||||
ewarn "specifically allow you to enable / disable certain"
|
||||
ewarn "CPU optimizations."
|
||||
ewarn
|
||||
ewarn "Most desktop users won't need this functionality, but it"
|
||||
ewarn "is included for corner cases like cross-compiling and"
|
||||
ewarn "certain profiles. If unsure, disable this flag and MPlayer"
|
||||
ewarn "will automatically detect and use your available CPU"
|
||||
ewarn "optimizations."
|
||||
ewarn
|
||||
ewarn "Using this flag means your build is unsupported, so"
|
||||
ewarn "please make sure your CPU optimization use flags (3dnow"
|
||||
ewarn "3dnowext mmx mmxext sse sse2 ssse3) are properly set."
|
||||
fi
|
||||
|
||||
einfo "For various format support you need to enable the support on your ffmpeg package:"
|
||||
einfo " media-video/libav or media-video/ffmpeg"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# fix path to bash executable in configure scripts
|
||||
local bash_scripts="configure version.sh"
|
||||
sed -i -e "1c\#!${EPREFIX}/bin/bash" \
|
||||
${bash_scripts} || die
|
||||
|
||||
if [[ -n ${NAMESUF} ]]; then
|
||||
sed -e "/elif linux ; then/a\ _exesuf=\"${NAMESUF}\"" \
|
||||
-i configure || die
|
||||
sed -e "\, -m 644 DOCS/man/en/mplayer,i\ mv DOCS/man/en/mplayer.1 DOCS/man/en/${PN}.1" \
|
||||
-e "\, -m 644 DOCS/man/\$(lang)/mplayer,i\ mv DOCS/man/\$(lang)/mplayer.1 DOCS/man/\$(lang)/${PN}.1" \
|
||||
-e "s/er.1/er${NAMESUF}.1/g" \
|
||||
-i Makefile || die
|
||||
sed -e "s/mplayer/${PN}/" \
|
||||
-i TOOLS/midentify.sh || die
|
||||
fi
|
||||
|
||||
base_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=""
|
||||
local uses i
|
||||
|
||||
# set LINGUAS
|
||||
[[ -n $LINGUAS ]] && LINGUAS="${LINGUAS/da/dk}"
|
||||
|
||||
# mplayer ebuild uses "use foo || --disable-foo" to forcibly disable
|
||||
# compilation in almost every situation. The reason for this is
|
||||
# because if --enable is used, it will force the build of that option,
|
||||
# regardless of whether the dependency is available or not.
|
||||
|
||||
###################
|
||||
#Optional features#
|
||||
###################
|
||||
# disable svga since we don't want it
|
||||
# disable arts since we don't have kde3
|
||||
# disable tremor, it needs libvorbisidec and is for FPU-less systems only
|
||||
myconf+="
|
||||
--disable-svga
|
||||
--disable-arts
|
||||
--disable-kai
|
||||
--disable-tremor
|
||||
$(use_enable network networking)
|
||||
$(use_enable joystick)
|
||||
"
|
||||
uses="bl bluray enca ftp libass rtc" # nemesi <- not working with in-tree ebuild
|
||||
myconf+=" --disable-nemesi" # nemesi automagic disable
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-${i}"
|
||||
done
|
||||
use bidi || myconf+=" --disable-fribidi"
|
||||
use ipv6 || myconf+=" --disable-inet6"
|
||||
use nut || myconf+=" --disable-libnut"
|
||||
use rar || myconf+=" --disable-unrarexec"
|
||||
use samba || myconf+=" --disable-smb"
|
||||
if ! use lirc; then
|
||||
myconf+="
|
||||
--disable-lirc
|
||||
--disable-lircc
|
||||
--disable-apple-ir
|
||||
"
|
||||
fi
|
||||
|
||||
########
|
||||
# CDDA #
|
||||
########
|
||||
use cddb || myconf+=" --disable-cddb"
|
||||
use cdio || myconf+=" --disable-libcdio"
|
||||
use cdparanoia || myconf+=" --disable-cdparanoia"
|
||||
|
||||
################################
|
||||
# DVD read, navigation support #
|
||||
################################
|
||||
#
|
||||
# dvdread - accessing a DVD
|
||||
# dvdnav - navigation of menus
|
||||
#
|
||||
# use external libdvdcss, dvdread and dvdnav
|
||||
myconf+=" --disable-dvdread-internal --disable-libdvdcss-internal"
|
||||
if use dvd; then
|
||||
use dvdnav || myconf+=" --disable-dvdnav"
|
||||
else
|
||||
myconf+="
|
||||
--disable-dvdnav
|
||||
--disable-dvdread
|
||||
"
|
||||
fi
|
||||
|
||||
#############
|
||||
# Subtitles #
|
||||
#############
|
||||
# SRT/ASS/SSA (subtitles) requires freetype support
|
||||
# freetype support requires iconv
|
||||
# iconv optionally can use unicode
|
||||
if ! use truetype; then
|
||||
myconf+=" --disable-freetype"
|
||||
if ! use iconv; then
|
||||
myconf+="
|
||||
--disable-iconv
|
||||
--charset=noconv
|
||||
"
|
||||
fi
|
||||
fi
|
||||
use iconv && use unicode && myconf+=" --charset=UTF-8"
|
||||
|
||||
#####################################
|
||||
# DVB / Video4Linux / Radio support #
|
||||
#####################################
|
||||
myconf+=" --disable-tv-bsdbt848"
|
||||
# broken upstream, won't work with recent kernels
|
||||
myconf+=" --disable-ivtv"
|
||||
# v4l1 is gone since linux-headers-2.6.38
|
||||
myconf+=" --disable-tv-v4l1"
|
||||
if { use dvb || use v4l || use pvr || use radio; }; then
|
||||
use dvb || myconf+=" --disable-dvb"
|
||||
use pvr || myconf+=" --disable-pvr"
|
||||
use v4l || myconf+=" --disable-tv-v4l2"
|
||||
if use radio && { use dvb || use v4l; }; then
|
||||
myconf+="
|
||||
--enable-radio
|
||||
--disable-radio-capture
|
||||
"
|
||||
else
|
||||
myconf+="
|
||||
--disable-radio-v4l2
|
||||
--disable-radio-bsdbt848
|
||||
"
|
||||
fi
|
||||
else
|
||||
myconf+="
|
||||
--disable-tv
|
||||
--disable-tv-v4l2
|
||||
--disable-radio
|
||||
--disable-radio-v4l2
|
||||
--disable-radio-bsdbt848
|
||||
--disable-dvb
|
||||
--disable-v4l2
|
||||
--disable-pvr"
|
||||
fi
|
||||
|
||||
##########
|
||||
# Codecs #
|
||||
##########
|
||||
myconf+=" --disable-musepack" # deprecated, libavcodec Musepack decoder is preferred
|
||||
use dts || myconf+=" --disable-libdca"
|
||||
use mp3 || myconf+=" --disable-mpg123"
|
||||
uses="a52 bs2b dv vorbis"
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-lib${i}"
|
||||
done
|
||||
uses="faad gif jpeg mad mng png pnm speex tga theora xanim xvid"
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-${i}"
|
||||
done
|
||||
myconf+=" --disable-live" # >=live-2012 are broken
|
||||
|
||||
#################
|
||||
# Binary codecs #
|
||||
#################
|
||||
# bug 213836
|
||||
use quicktime || myconf+=" --disable-qtx"
|
||||
|
||||
######################
|
||||
# RealPlayer support #
|
||||
######################
|
||||
# Realplayer support shows up in four places:
|
||||
# - libavcodec (internal)
|
||||
# - win32codecs
|
||||
# - realcodecs (win32codecs libs)
|
||||
# - realcodecs (realplayer libs)
|
||||
|
||||
# internal
|
||||
use real || myconf+=" --disable-real"
|
||||
|
||||
# Real binary codec support only available on x86, amd64
|
||||
if use real; then
|
||||
use x86 && myconf+=" --codecsdir=/opt/RealPlayer/codecs"
|
||||
use amd64 && myconf+=" --codecsdir=/usr/$(get_libdir)/codecs"
|
||||
fi
|
||||
myconf+=" --disable-win32dll"
|
||||
|
||||
################
|
||||
# Video Output #
|
||||
################
|
||||
uses="directfb md5sum sdl"
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-${i}"
|
||||
done
|
||||
use aalib || myconf+=" --disable-aa"
|
||||
use fbcon || myconf+=" --disable-fbdev"
|
||||
use fbcon && use video_cards_s3virge && myconf+=" --enable-s3fb"
|
||||
use libcaca || myconf+=" --disable-caca"
|
||||
|
||||
if ! use kernel_linux || ! use video_cards_mga; then
|
||||
myconf+=" --disable-mga --disable-xmga"
|
||||
fi
|
||||
|
||||
if use video_cards_tdfx; then
|
||||
myconf+="
|
||||
$(use_enable video_cards_tdfx tdfxvid)
|
||||
$(use_enable fbcon tdfxfb)
|
||||
"
|
||||
else
|
||||
myconf+="
|
||||
--disable-3dfx
|
||||
--disable-tdfxvid
|
||||
--disable-tdfxfb
|
||||
"
|
||||
fi
|
||||
|
||||
# sun card, disable by default, see bug #258729
|
||||
myconf+=" --disable-xvr100"
|
||||
|
||||
################
|
||||
# Audio Output #
|
||||
################
|
||||
myconf+=" --disable-rsound" # media-sound/rsound is in pro-audio overlay only
|
||||
myconf+=" --disable-esd"
|
||||
uses="alsa jack ladspa nas"
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-${i}"
|
||||
done
|
||||
#use openal && myconf+=" --enable-openal" # build fails
|
||||
use pulseaudio || myconf+=" --disable-pulse"
|
||||
if ! use radio; then
|
||||
use oss || myconf+=" --disable-ossaudio"
|
||||
fi
|
||||
|
||||
####################
|
||||
# Advanced Options #
|
||||
####################
|
||||
# Platform specific flags, hardcoded on amd64 (see below)
|
||||
use cpudetection && myconf+=" --enable-runtime-cpudetection"
|
||||
|
||||
# Turning off CPU optimizations usually will break the build.
|
||||
# However, this use flag, if enabled, will allow users to completely
|
||||
# specify which ones to use. If disabled, mplayer will automatically
|
||||
# enable all CPU optimizations that the host build supports.
|
||||
if use custom-cpuopts; then
|
||||
uses="3dnow 3dnowext altivec mmx mmxext shm sse sse2 ssse3"
|
||||
for i in ${uses}; do
|
||||
myconf+=" $(use_enable ${i})"
|
||||
done
|
||||
fi
|
||||
|
||||
use debug && myconf+=" --enable-debug=3"
|
||||
|
||||
if use x86 && gcc-specs-pie; then
|
||||
filter-flags -fPIC -fPIE
|
||||
append-ldflags -nopie
|
||||
fi
|
||||
|
||||
is-flag -O? || append-flags -O2
|
||||
|
||||
# workaround bug, x86 just has too few registers, see c.f.
|
||||
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=402950#44
|
||||
# and 32-bits OSX, bug 329861
|
||||
if [[ ${CHOST} == i?86-* ]] ; then
|
||||
use debug || append-flags -fomit-frame-pointer
|
||||
fi
|
||||
|
||||
###########################
|
||||
# X enabled configuration #
|
||||
###########################
|
||||
myconf+=" --disable-dga1 --disable-dga2"
|
||||
if use X; then
|
||||
uses="dxr3 ggi xinerama xv"
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-${i}"
|
||||
done
|
||||
use opengl || myconf+=" --disable-gl"
|
||||
use vdpau || myconf+=" --disable-vdpau"
|
||||
use video_cards_vesa || myconf+=" --disable-vesa"
|
||||
use xscreensaver || myconf+=" --disable-xss"
|
||||
else
|
||||
myconf+="
|
||||
--disable-dxr3
|
||||
--disable-ggi
|
||||
--disable-gl
|
||||
--disable-vdpau
|
||||
--disable-xinerama
|
||||
--disable-xss
|
||||
--disable-xv
|
||||
--disable-x11
|
||||
"
|
||||
fi
|
||||
|
||||
############################
|
||||
# OSX (aqua) configuration #
|
||||
############################
|
||||
if use aqua; then
|
||||
myconf+="
|
||||
--enable-macosx-finder
|
||||
--enable-macosx-bundle
|
||||
"
|
||||
fi
|
||||
|
||||
./configure \
|
||||
--cc="$(tc-getCC)" \
|
||||
--host-cc="$(tc-getBUILD_CC)" \
|
||||
--pkg-config="$(tc-getPKG_CONFIG)" \
|
||||
--prefix="${EPREFIX}"/usr \
|
||||
--bindir="${EPREFIX}"/usr/bin \
|
||||
--libdir="${EPREFIX}"/usr/$(get_libdir) \
|
||||
--confdir="${EPREFIX}"/etc/${PN} \
|
||||
--datadir="${EPREFIX}"/usr/share/${PN} \
|
||||
--mandir="${EPREFIX}"/usr/share/man \
|
||||
--localedir="${EPREFIX}"/usr/share/locale \
|
||||
--enable-translation \
|
||||
${myconf} || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# enable verbose build, bug #448196
|
||||
base_src_compile V=1
|
||||
# Build only user-requested docs if they're available.
|
||||
if use doc ; then
|
||||
# select available languages from $LINGUAS
|
||||
LINGUAS=${LINGUAS/zh/zh_CN}
|
||||
local ALLOWED_LINGUAS="cs de en es fr hu it pl ru zh_CN"
|
||||
local BUILT_DOCS=""
|
||||
for i in ${LINGUAS} ; do
|
||||
has ${i} ${ALLOWED_LINGUAS} && BUILT_DOCS+=" ${i}"
|
||||
done
|
||||
if [[ -z $BUILT_DOCS ]]; then
|
||||
emake -j1 -C DOCS/xml html-chunked
|
||||
else
|
||||
for i in ${BUILT_DOCS}; do
|
||||
emake -j1 -C DOCS/xml html-chunked-${i}
|
||||
done
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local i
|
||||
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
INSTALLSTRIP="" \
|
||||
install
|
||||
|
||||
dodoc AUTHORS Copyright README etc/codecs.conf
|
||||
|
||||
docinto tech/
|
||||
dodoc DOCS/tech/{*.txt,mpsub.sub,playtree}
|
||||
docinto TOOLS/
|
||||
dodoc -r TOOLS
|
||||
if use real; then
|
||||
docinto tech/realcodecs/
|
||||
dodoc DOCS/tech/realcodecs/*
|
||||
fi
|
||||
|
||||
if use doc; then
|
||||
docinto html/
|
||||
dohtml -r "${S}"/DOCS/HTML/*
|
||||
fi
|
||||
|
||||
if ! use truetype; then
|
||||
dodir /usr/share/${PN}/fonts
|
||||
# Do this generic, as the mplayer people like to change the structure
|
||||
# of their zips ...
|
||||
for i in $(find "${WORKDIR}/" -type d -name 'font-arial-*'); do
|
||||
cp -pPR "${i}" "${ED}/usr/share/${PN}/fonts"
|
||||
done
|
||||
# Fix the font symlink ...
|
||||
rm -rf "${ED}/usr/share/${PN}/font"
|
||||
dosym fonts/font-arial-14-iso-8859-1 /usr/share/${PN}/font
|
||||
fi
|
||||
|
||||
insinto /etc/${PN}
|
||||
newins "${S}/etc/example.conf" mplayer.conf
|
||||
cat >> "${ED}/etc/${PN}/mplayer.conf" << _EOF_
|
||||
# Config options can be section specific, global
|
||||
# options should go in the default section
|
||||
[default]
|
||||
_EOF_
|
||||
doins "${S}/etc/input.conf"
|
||||
|
||||
# set unrar path when required
|
||||
if use rar; then
|
||||
cat >> "${ED}/etc/${PN}/mplayer.conf" << _EOF_
|
||||
unrarexec=${EPREFIX}/usr/bin/unrar
|
||||
_EOF_
|
||||
fi
|
||||
dosym ../../../etc/${PN}/mplayer.conf /usr/share/${PN}/mplayer.conf
|
||||
|
||||
newbin "${S}/TOOLS/midentify.sh" midentify${NAMESUF}
|
||||
|
||||
if [[ -n ${NAMESUF} ]] && use symlink; then
|
||||
dosym "${PN}" /usr/bin/mplayer
|
||||
dosym "midentify${NAMESUF}" /usr/bin/midentify
|
||||
fi
|
||||
}
|
@ -1,469 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer2/mplayer2-2.0_p20121108.ebuild,v 1.5 2013/05/16 19:14:38 ulm Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
[[ ${PV} = *9999* ]] && VCS_ECLASS="git-2" || VCS_ECLASS=""
|
||||
|
||||
inherit python toolchain-funcs eutils flag-o-matic multilib base ${VCS_ECLASS}
|
||||
|
||||
NAMESUF="${PN/mplayer/}"
|
||||
DESCRIPTION="Media Player for Linux"
|
||||
HOMEPAGE="http://www.mplayer2.org/"
|
||||
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
EGIT_REPO_URI="git://git.mplayer2.org/mplayer2.git"
|
||||
else
|
||||
SRC_URI="http://rion-overlay.googlecode.com/files/${P}.tar.xz"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
KEYWORDS=""
|
||||
else
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux"
|
||||
fi
|
||||
IUSE="+a52 +alsa aqua bluray bs2b cddb +cdio cpudetection debug
|
||||
directfb doc +dts +dv dvb +dvd +dvdnav +enca +faad fbcon ftp gif +iconv
|
||||
ipv6 jack joystick jpeg kernel_linux ladspa lcms +libass libcaca lirc mad
|
||||
md5sum mng +mp3 +network nut +opengl oss png pnm portaudio +postproc
|
||||
pulseaudio pvr +quicktime quvi radio +rar +real +rtc samba sdl +speex tga
|
||||
+theora +unicode v4l vcd vdpau +vorbis +X xanim xinerama
|
||||
+xscreensaver +xv xvid yuv4mpeg
|
||||
"
|
||||
IUSE+=" symlink"
|
||||
|
||||
CPU_FEATURES="3dnow 3dnowext altivec +mmx mmxext +shm sse sse2 ssse3"
|
||||
for x in ${CPU_FEATURES}; do
|
||||
IUSE+=" ${x}"
|
||||
done
|
||||
|
||||
REQUIRED_USE="
|
||||
cddb? ( cdio network )
|
||||
dvdnav? ( dvd )
|
||||
lcms? ( opengl )
|
||||
libass? ( iconv )
|
||||
opengl? ( || ( aqua X ) )
|
||||
radio? ( || ( dvb v4l ) )
|
||||
vdpau? ( X )
|
||||
xinerama? ( X )
|
||||
xscreensaver? ( X )
|
||||
xv? ( X )
|
||||
"
|
||||
|
||||
# Rar: althrought -gpl version is nice, it cant do most functions normal rars can
|
||||
RDEPEND+="
|
||||
sys-libs/ncurses
|
||||
sys-libs/zlib
|
||||
X? (
|
||||
x11-libs/libXext
|
||||
x11-libs/libXxf86vm
|
||||
opengl? ( virtual/opengl )
|
||||
lcms? ( media-libs/lcms:2 )
|
||||
vdpau? ( x11-libs/libvdpau )
|
||||
xinerama? ( x11-libs/libXinerama )
|
||||
xscreensaver? ( x11-libs/libXScrnSaver )
|
||||
xv? (
|
||||
x11-libs/libXv
|
||||
)
|
||||
)
|
||||
a52? ( media-libs/a52dec )
|
||||
alsa? ( media-libs/alsa-lib )
|
||||
bluray? ( media-libs/libbluray )
|
||||
bs2b? ( media-libs/libbs2b )
|
||||
cdio? ( dev-libs/libcdio )
|
||||
directfb? ( dev-libs/DirectFB )
|
||||
dts? ( media-libs/libdca )
|
||||
dv? ( media-libs/libdv )
|
||||
dvb? ( virtual/linuxtv-dvb-headers )
|
||||
dvd? (
|
||||
>=media-libs/libdvdread-4.1.3
|
||||
dvdnav? ( >=media-libs/libdvdnav-4.1.3 )
|
||||
)
|
||||
enca? ( app-i18n/enca )
|
||||
faad? ( media-libs/faad2 )
|
||||
gif? ( media-libs/giflib )
|
||||
iconv? ( virtual/libiconv )
|
||||
jack? ( media-sound/jack-audio-connection-kit )
|
||||
jpeg? ( virtual/jpeg )
|
||||
ladspa? ( media-libs/ladspa-sdk )
|
||||
libass? ( >=media-libs/libass-0.9.10[enca?,fontconfig] virtual/ttf-fonts )
|
||||
libcaca? ( media-libs/libcaca )
|
||||
lirc? ( app-misc/lirc )
|
||||
mad? ( media-libs/libmad )
|
||||
mng? ( media-libs/libmng )
|
||||
mp3? ( media-sound/mpg123 )
|
||||
nut? ( >=media-libs/libnut-661 )
|
||||
png? ( media-libs/libpng )
|
||||
pnm? ( media-libs/netpbm )
|
||||
portaudio? ( >=media-libs/portaudio-19_pre20111121 )
|
||||
postproc? ( || ( media-libs/libpostproc <media-video/libav-0.8.2-r1 media-video/ffmpeg ) )
|
||||
pulseaudio? ( media-sound/pulseaudio )
|
||||
quvi? ( >=media-libs/libquvi-0.4.1 )
|
||||
rar? (
|
||||
|| (
|
||||
app-arch/unrar
|
||||
app-arch/rar
|
||||
)
|
||||
)
|
||||
samba? ( net-fs/samba )
|
||||
sdl? ( media-libs/libsdl )
|
||||
speex? ( media-libs/speex )
|
||||
theora? ( media-libs/libtheora )
|
||||
vorbis? ( media-libs/libvorbis )
|
||||
xanim? ( media-video/xanim )
|
||||
xvid? ( media-libs/xvid )
|
||||
>=virtual/ffmpeg-0.10.2
|
||||
symlink? ( !media-video/mplayer )
|
||||
"
|
||||
ASM_DEP="dev-lang/yasm"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
>=dev-lang/python-2.7
|
||||
dev-python/docutils
|
||||
sys-devel/gettext
|
||||
X? (
|
||||
x11-proto/videoproto
|
||||
x11-proto/xf86vidmodeproto
|
||||
xinerama? ( x11-proto/xineramaproto )
|
||||
xscreensaver? ( x11-proto/scrnsaverproto )
|
||||
)
|
||||
amd64? ( ${ASM_DEP} )
|
||||
doc? (
|
||||
dev-libs/libxslt app-text/docbook-xml-dtd
|
||||
app-text/docbook-xsl-stylesheets
|
||||
)
|
||||
x86? ( ${ASM_DEP} )
|
||||
x86-fbsd? ( ${ASM_DEP} )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-py2compat.patch"
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
elog
|
||||
elog "This is a live ebuild which installs the latest from upstream's"
|
||||
elog "${VCS_ECLASS} repository, and is unsupported by Gentoo."
|
||||
elog "Everything but bugs in the ebuild itself will be ignored."
|
||||
elog
|
||||
fi
|
||||
|
||||
if use cpudetection; then
|
||||
ewarn
|
||||
ewarn "You've enabled the cpudetection flag. This feature is"
|
||||
ewarn "included mainly for people who want to use the same"
|
||||
ewarn "binary on another system with a different CPU architecture."
|
||||
ewarn "MPlayer will already detect your CPU settings by default at"
|
||||
ewarn "buildtime; this flag is used for runtime detection."
|
||||
ewarn "You won't need this turned on if you are only building"
|
||||
ewarn "mplayer for this system. Also, if your compile fails, try"
|
||||
ewarn "disabling this use flag."
|
||||
fi
|
||||
|
||||
if use !libass; then
|
||||
ewarn
|
||||
ewarn "You've disabled the libass flag. No OSD or subtitles will be displayed."
|
||||
fi
|
||||
|
||||
einfo "For various format support you need to enable the support on your ffmpeg package:"
|
||||
einfo " media-video/libav or media-video/ffmpeg"
|
||||
|
||||
# https://bugs.gentoo.org/show_bug.cgi?id=434356#c4
|
||||
python_pkg_setup
|
||||
major=$(python_get_version --major)
|
||||
minor=$(python_get_version --minor)
|
||||
[[ ( ${major} -eq 2 && ${minor} -ge 7 ) || ${major} -ge 3 ]] \
|
||||
|| die "Please eselect Python 2.7 or later"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# fix path to bash executable in configure scripts
|
||||
local bash_scripts="configure version.sh"
|
||||
sed -i -e "1c\#!${EPREFIX}/bin/bash" \
|
||||
${bash_scripts} || die
|
||||
|
||||
sed -e 's/rst2man /rst2man.py /g' -i Makefile || die
|
||||
|
||||
if [[ -n ${NAMESUF} ]]; then
|
||||
sed -e "/^EXESUF/s,= \$_exesuf$,= ${NAMESUF}\$_exesuf," \
|
||||
-i configure || die
|
||||
sed -e "s/mplayer/${PN}/" \
|
||||
-i TOOLS/midentify.sh || die
|
||||
fi
|
||||
|
||||
base_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=""
|
||||
local uses i
|
||||
|
||||
# mplayer ebuild uses "use foo || --disable-foo" to forcibly disable
|
||||
# compilation in almost every situation. The reason for this is
|
||||
# because if --enable is used, it will force the build of that option,
|
||||
# regardless of whether the dependency is available or not.
|
||||
|
||||
###################
|
||||
#Optional features#
|
||||
###################
|
||||
# disable tremor, it needs libvorbisidec and is for FPU-less systems only
|
||||
myconf+="
|
||||
--disable-tremor
|
||||
$(use_enable network networking)
|
||||
$(use_enable joystick)
|
||||
"
|
||||
uses="bluray enca ftp libass rtc vcd"
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-${i}"
|
||||
done
|
||||
use ipv6 || myconf+=" --disable-inet6"
|
||||
use nut || myconf+=" --disable-libnut"
|
||||
use quvi || myconf+=" --disable-libquvi"
|
||||
use rar || myconf+=" --disable-unrarexec"
|
||||
use samba || myconf+=" --disable-smb"
|
||||
if ! use lirc; then
|
||||
myconf+="
|
||||
--disable-lirc
|
||||
--disable-lircc
|
||||
--disable-apple-ir
|
||||
"
|
||||
fi
|
||||
|
||||
########
|
||||
# CDDA #
|
||||
########
|
||||
use cddb || myconf+=" --disable-cddb"
|
||||
use cdio || myconf+=" --disable-libcdio"
|
||||
|
||||
################################
|
||||
# DVD read, navigation support #
|
||||
################################
|
||||
#
|
||||
# dvdread - accessing a DVD
|
||||
# dvdnav - navigation of menus
|
||||
#
|
||||
# use external libdvdcss, dvdread and dvdnav
|
||||
myconf+=" --disable-dvdread-internal --disable-libdvdcss-internal"
|
||||
use dvd || myconf+=" --disable-dvdread"
|
||||
use dvdnav || myconf+=" --disable-dvdnav"
|
||||
|
||||
#############
|
||||
# Subtitles #
|
||||
#############
|
||||
#
|
||||
# iconv optionally can use unicode
|
||||
use iconv || myconf+=" --disable-iconv --charset=noconv"
|
||||
use iconv && use unicode && myconf+=" --charset=UTF-8"
|
||||
|
||||
#####################################
|
||||
# DVB / Video4Linux / Radio support #
|
||||
#####################################
|
||||
myconf+=" --disable-tv-bsdbt848"
|
||||
# v4l1 is gone since linux-headers-2.6.38
|
||||
myconf+=" --disable-tv-v4l1"
|
||||
if { use dvb || use v4l || use pvr || use radio; }; then
|
||||
use dvb || myconf+=" --disable-dvb"
|
||||
use pvr || myconf+=" --disable-pvr"
|
||||
use v4l || myconf+=" --disable-tv-v4l2"
|
||||
if use radio && { use dvb || use v4l; }; then
|
||||
myconf+="
|
||||
--enable-radio
|
||||
--disable-radio-capture
|
||||
"
|
||||
else
|
||||
myconf+="
|
||||
--disable-radio-v4l2
|
||||
--disable-radio-bsdbt848
|
||||
"
|
||||
fi
|
||||
else
|
||||
myconf+="
|
||||
--disable-tv
|
||||
--disable-tv-v4l2
|
||||
--disable-radio
|
||||
--disable-radio-v4l2
|
||||
--disable-radio-bsdbt848
|
||||
--disable-dvb
|
||||
--disable-v4l2
|
||||
--disable-pvr"
|
||||
fi
|
||||
|
||||
##########
|
||||
# Codecs #
|
||||
##########
|
||||
myconf+=" --disable-musepack" # deprecated, libavcodec Musepack decoder is preferred
|
||||
use dts || myconf+=" --disable-libdca"
|
||||
use mp3 || myconf+=" --disable-mpg123"
|
||||
uses="a52 bs2b dv vorbis"
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-lib${i}"
|
||||
done
|
||||
uses="faad gif jpeg mad mng png pnm speex tga theora xanim xvid"
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-${i}"
|
||||
done
|
||||
|
||||
#################
|
||||
# Binary codecs #
|
||||
#################
|
||||
# bug 213836
|
||||
use quicktime || myconf+=" --disable-qtx"
|
||||
|
||||
######################
|
||||
# RealPlayer support #
|
||||
######################
|
||||
# Realplayer support shows up in four places:
|
||||
# - libavcodec (internal)
|
||||
# - win32codecs
|
||||
# - realcodecs (win32codecs libs)
|
||||
# - realcodecs (realplayer libs)
|
||||
|
||||
# internal
|
||||
use real || myconf+=" --disable-real"
|
||||
|
||||
# Real binary codec support only available on x86, amd64
|
||||
if use real; then
|
||||
use x86 && myconf+=" --codecsdir=/opt/RealPlayer/codecs"
|
||||
use amd64 && myconf+=" --codecsdir=/usr/$(get_libdir)/codecs"
|
||||
fi
|
||||
myconf+=" --disable-win32dll"
|
||||
|
||||
################
|
||||
# Video Output #
|
||||
################
|
||||
uses="directfb md5sum sdl yuv4mpeg"
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-${i}"
|
||||
done
|
||||
use libcaca || myconf+=" --disable-caca"
|
||||
use postproc || myconf+=" --disable-libpostproc"
|
||||
|
||||
################
|
||||
# Audio Output #
|
||||
################
|
||||
myconf+=" --disable-rsound" # media-sound/rsound is in pro-audio overlay only
|
||||
uses="alsa jack ladspa portaudio"
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-${i}"
|
||||
done
|
||||
#use openal && myconf+=" --enable-openal" # build fails
|
||||
use pulseaudio || myconf+=" --disable-pulse"
|
||||
if ! use radio; then
|
||||
use oss || myconf+=" --disable-ossaudio"
|
||||
fi
|
||||
|
||||
####################
|
||||
# Advanced Options #
|
||||
####################
|
||||
# Platform specific flags, hardcoded on amd64 (see below)
|
||||
use cpudetection && myconf+=" --enable-runtime-cpudetection"
|
||||
|
||||
for i in ${CPU_FEATURES//+/}; do
|
||||
myconf+=" $(use_enable ${i})"
|
||||
done
|
||||
|
||||
use debug && myconf+=" --enable-debug=3"
|
||||
|
||||
if use x86 && gcc-specs-pie; then
|
||||
filter-flags -fPIC -fPIE
|
||||
append-ldflags -nopie
|
||||
fi
|
||||
|
||||
###########################
|
||||
# X enabled configuration #
|
||||
###########################
|
||||
use X || myconf+=" --disable-x11"
|
||||
uses="vdpau xinerama xv"
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-${i}"
|
||||
done
|
||||
use opengl || myconf+=" --disable-gl"
|
||||
use lcms || myconf+=" --disable-lcms2"
|
||||
use xscreensaver || myconf+=" --disable-xss"
|
||||
|
||||
############################
|
||||
# OSX (aqua) configuration #
|
||||
############################
|
||||
if use aqua; then
|
||||
myconf+="
|
||||
--enable-macosx-finder
|
||||
--enable-macosx-bundle
|
||||
"
|
||||
fi
|
||||
|
||||
./configure \
|
||||
--cc="$(tc-getCC)" \
|
||||
--pkg-config="$(tc-getPKG_CONFIG)" \
|
||||
--prefix="${EPREFIX}"/usr \
|
||||
--bindir="${EPREFIX}"/usr/bin \
|
||||
--libdir="${EPREFIX}"/usr/$(get_libdir) \
|
||||
--confdir="${EPREFIX}"/etc/${PN} \
|
||||
--datadir="${EPREFIX}"/usr/share/${PN} \
|
||||
--mandir="${EPREFIX}"/usr/share/man \
|
||||
--localedir="${EPREFIX}"/usr/share/locale \
|
||||
--enable-translation \
|
||||
${myconf} || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# enable verbose build, bug #448196
|
||||
base_src_compile V=1
|
||||
use doc && emake -C DOCS/xml html-chunked
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local i
|
||||
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
INSTALLSTRIP="" \
|
||||
install
|
||||
|
||||
dodoc AUTHORS Copyright README etc/codecs.conf
|
||||
|
||||
docinto tech/
|
||||
dodoc DOCS/tech/{*.txt,mpsub.sub,playtree}
|
||||
docinto TOOLS/
|
||||
dodoc -r TOOLS
|
||||
if use real; then
|
||||
docinto tech/realcodecs/
|
||||
dodoc DOCS/tech/realcodecs/*
|
||||
fi
|
||||
|
||||
if use doc; then
|
||||
docinto html/
|
||||
dohtml -r "${S}"/DOCS/HTML/*
|
||||
fi
|
||||
|
||||
insinto /etc/${PN}
|
||||
newins "${S}/etc/example.conf" mplayer.conf
|
||||
cat >> "${ED}/etc/${PN}/mplayer.conf" << _EOF_
|
||||
# Config options can be section specific, global
|
||||
# options should go in the default section
|
||||
[default]
|
||||
_EOF_
|
||||
doins "${S}/etc/input.conf"
|
||||
|
||||
# set unrar path when required
|
||||
if use rar; then
|
||||
cat >> "${ED}/etc/${PN}/mplayer.conf" << _EOF_
|
||||
unrarexec=${EPREFIX}/usr/bin/unrar
|
||||
_EOF_
|
||||
fi
|
||||
dosym ../../../etc/${PN}/mplayer.conf /usr/share/${PN}/mplayer.conf
|
||||
|
||||
newbin "${S}/TOOLS/midentify.sh" midentify${NAMESUF}
|
||||
|
||||
if [[ -n ${NAMESUF} ]]; then
|
||||
mv "${ED}/usr/share/man/man1/mplayer.1" "${ED}/usr/share/man/man1/mplayer${NAMESUF}.1" || die
|
||||
|
||||
if use symlink; then
|
||||
dosym "${PN}" /usr/bin/mplayer
|
||||
dosym "midentify${NAMESUF}" /usr/bin/midentify
|
||||
fi
|
||||
fi
|
||||
}
|
@ -1,471 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer2/mplayer2-2.0_p20121128.ebuild,v 1.4 2013/05/16 19:14:38 ulm Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
[[ ${PV} = *9999* ]] && VCS_ECLASS="git-2" || VCS_ECLASS=""
|
||||
|
||||
inherit python toolchain-funcs eutils flag-o-matic multilib base ${VCS_ECLASS}
|
||||
|
||||
NAMESUF="${PN/mplayer/}"
|
||||
DESCRIPTION="Media Player for Linux"
|
||||
HOMEPAGE="http://www.mplayer2.org/"
|
||||
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
EGIT_REPO_URI="git://git.mplayer2.org/mplayer2.git"
|
||||
else
|
||||
SRC_URI="http://rion-overlay.googlecode.com/files/${P}.tar.xz"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
KEYWORDS=""
|
||||
else
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux"
|
||||
fi
|
||||
IUSE="+a52 +alsa aqua bluray bs2b cddb +cdio cpudetection debug
|
||||
directfb doc +dts +dv dvb +dvd +dvdnav +enca +faad fbcon ftp gif +iconv
|
||||
ipv6 jack joystick jpeg kernel_linux ladspa lcms +libass libcaca lirc mad
|
||||
md5sum mng +mp3 +network nut +opengl oss png pnm portaudio +postproc
|
||||
pulseaudio pvr +quicktime quvi radio +rar +real +rtc samba sdl +speex tga
|
||||
+theora +unicode v4l vcd vdpau +vorbis +X xanim xinerama
|
||||
+xscreensaver +xv xvid yuv4mpeg
|
||||
"
|
||||
IUSE+=" symlink"
|
||||
|
||||
CPU_FEATURES="3dnow 3dnowext altivec +mmx mmxext +shm sse sse2 ssse3"
|
||||
for x in ${CPU_FEATURES}; do
|
||||
IUSE+=" ${x}"
|
||||
done
|
||||
|
||||
REQUIRED_USE="
|
||||
cddb? ( cdio network )
|
||||
dvdnav? ( dvd )
|
||||
lcms? ( opengl )
|
||||
libass? ( iconv )
|
||||
opengl? ( || ( aqua X ) )
|
||||
radio? ( || ( dvb v4l ) )
|
||||
vdpau? ( X )
|
||||
xinerama? ( X )
|
||||
xscreensaver? ( X )
|
||||
xv? ( X )
|
||||
"
|
||||
|
||||
# Rar: althrought -gpl version is nice, it cant do most functions normal rars can
|
||||
RDEPEND+="
|
||||
sys-libs/ncurses
|
||||
sys-libs/zlib
|
||||
X? (
|
||||
x11-libs/libXext
|
||||
x11-libs/libXxf86vm
|
||||
opengl? ( virtual/opengl )
|
||||
lcms? ( media-libs/lcms:2 )
|
||||
vdpau? ( x11-libs/libvdpau )
|
||||
xinerama? ( x11-libs/libXinerama )
|
||||
xscreensaver? ( x11-libs/libXScrnSaver )
|
||||
xv? (
|
||||
x11-libs/libXv
|
||||
)
|
||||
)
|
||||
a52? ( media-libs/a52dec )
|
||||
alsa? ( media-libs/alsa-lib )
|
||||
bluray? ( media-libs/libbluray )
|
||||
bs2b? ( media-libs/libbs2b )
|
||||
cdio? (
|
||||
>=dev-libs/libcdio-0.90
|
||||
>=dev-libs/libcdio-paranoia-0.90
|
||||
)
|
||||
directfb? ( dev-libs/DirectFB )
|
||||
dts? ( media-libs/libdca )
|
||||
dv? ( media-libs/libdv )
|
||||
dvb? ( virtual/linuxtv-dvb-headers )
|
||||
dvd? (
|
||||
>=media-libs/libdvdread-4.1.3
|
||||
dvdnav? ( >=media-libs/libdvdnav-4.1.3 )
|
||||
)
|
||||
enca? ( app-i18n/enca )
|
||||
faad? ( media-libs/faad2 )
|
||||
gif? ( media-libs/giflib )
|
||||
iconv? ( virtual/libiconv )
|
||||
jack? ( media-sound/jack-audio-connection-kit )
|
||||
jpeg? ( virtual/jpeg )
|
||||
ladspa? ( media-libs/ladspa-sdk )
|
||||
libass? ( >=media-libs/libass-0.9.10[enca?,fontconfig] virtual/ttf-fonts )
|
||||
libcaca? ( media-libs/libcaca )
|
||||
lirc? ( app-misc/lirc )
|
||||
mad? ( media-libs/libmad )
|
||||
mng? ( media-libs/libmng )
|
||||
mp3? ( media-sound/mpg123 )
|
||||
nut? ( >=media-libs/libnut-661 )
|
||||
png? ( media-libs/libpng )
|
||||
pnm? ( media-libs/netpbm )
|
||||
portaudio? ( >=media-libs/portaudio-19_pre20111121 )
|
||||
postproc? ( || ( media-libs/libpostproc <media-video/libav-0.8.2-r1 media-video/ffmpeg ) )
|
||||
pulseaudio? ( media-sound/pulseaudio )
|
||||
quvi? ( >=media-libs/libquvi-0.4.1 )
|
||||
rar? (
|
||||
|| (
|
||||
app-arch/unrar
|
||||
app-arch/rar
|
||||
)
|
||||
)
|
||||
samba? ( net-fs/samba )
|
||||
sdl? ( media-libs/libsdl )
|
||||
speex? ( media-libs/speex )
|
||||
theora? ( media-libs/libtheora )
|
||||
vorbis? ( media-libs/libvorbis )
|
||||
xanim? ( media-video/xanim )
|
||||
xvid? ( media-libs/xvid )
|
||||
>=virtual/ffmpeg-0.10.2
|
||||
symlink? ( !media-video/mplayer )
|
||||
"
|
||||
ASM_DEP="dev-lang/yasm"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
>=dev-lang/python-2.7
|
||||
dev-python/docutils
|
||||
sys-devel/gettext
|
||||
X? (
|
||||
x11-proto/videoproto
|
||||
x11-proto/xf86vidmodeproto
|
||||
xinerama? ( x11-proto/xineramaproto )
|
||||
xscreensaver? ( x11-proto/scrnsaverproto )
|
||||
)
|
||||
amd64? ( ${ASM_DEP} )
|
||||
doc? (
|
||||
dev-libs/libxslt app-text/docbook-xml-dtd
|
||||
app-text/docbook-xsl-stylesheets
|
||||
)
|
||||
x86? ( ${ASM_DEP} )
|
||||
x86-fbsd? ( ${ASM_DEP} )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-py2compat.patch"
|
||||
"${FILESDIR}/${P}-cdio-api-fixes.patch"
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
elog
|
||||
elog "This is a live ebuild which installs the latest from upstream's"
|
||||
elog "${VCS_ECLASS} repository, and is unsupported by Gentoo."
|
||||
elog "Everything but bugs in the ebuild itself will be ignored."
|
||||
elog
|
||||
fi
|
||||
|
||||
if use cpudetection; then
|
||||
ewarn
|
||||
ewarn "You've enabled the cpudetection flag. This feature is"
|
||||
ewarn "included mainly for people who want to use the same"
|
||||
ewarn "binary on another system with a different CPU architecture."
|
||||
ewarn "MPlayer will already detect your CPU settings by default at"
|
||||
ewarn "buildtime; this flag is used for runtime detection."
|
||||
ewarn "You won't need this turned on if you are only building"
|
||||
ewarn "mplayer for this system. Also, if your compile fails, try"
|
||||
ewarn "disabling this use flag."
|
||||
fi
|
||||
|
||||
if use !libass; then
|
||||
ewarn
|
||||
ewarn "You've disabled the libass flag. No OSD or subtitles will be displayed."
|
||||
fi
|
||||
|
||||
einfo "For various format support you need to enable the support on your ffmpeg package:"
|
||||
einfo " media-video/libav or media-video/ffmpeg"
|
||||
|
||||
# https://bugs.gentoo.org/show_bug.cgi?id=434356#c4
|
||||
python_pkg_setup
|
||||
major=$(python_get_version --major)
|
||||
minor=$(python_get_version --minor)
|
||||
[[ ( ${major} -eq 2 && ${minor} -ge 7 ) || ${major} -ge 3 ]] \
|
||||
|| die "Please eselect Python 2.7 or later"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# fix path to bash executable in configure scripts
|
||||
local bash_scripts="configure version.sh"
|
||||
sed -i -e "1c\#!${EPREFIX}/bin/bash" \
|
||||
${bash_scripts} || die
|
||||
|
||||
if [[ -n ${NAMESUF} ]]; then
|
||||
sed -e "/^EXESUF/s,= \$_exesuf$,= ${NAMESUF}\$_exesuf," \
|
||||
-i configure || die
|
||||
sed -e "s/mplayer/${PN}/" \
|
||||
-i TOOLS/midentify.sh || die
|
||||
fi
|
||||
|
||||
base_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=""
|
||||
local uses i
|
||||
|
||||
# mplayer ebuild uses "use foo || --disable-foo" to forcibly disable
|
||||
# compilation in almost every situation. The reason for this is
|
||||
# because if --enable is used, it will force the build of that option,
|
||||
# regardless of whether the dependency is available or not.
|
||||
|
||||
###################
|
||||
#Optional features#
|
||||
###################
|
||||
# disable tremor, it needs libvorbisidec and is for FPU-less systems only
|
||||
myconf+="
|
||||
--disable-tremor
|
||||
$(use_enable network networking)
|
||||
$(use_enable joystick)
|
||||
"
|
||||
uses="bluray enca ftp libass rtc vcd"
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-${i}"
|
||||
done
|
||||
use ipv6 || myconf+=" --disable-inet6"
|
||||
use nut || myconf+=" --disable-libnut"
|
||||
use quvi || myconf+=" --disable-libquvi"
|
||||
use rar || myconf+=" --disable-unrarexec"
|
||||
use samba || myconf+=" --disable-smb"
|
||||
if ! use lirc; then
|
||||
myconf+="
|
||||
--disable-lirc
|
||||
--disable-lircc
|
||||
--disable-apple-ir
|
||||
"
|
||||
fi
|
||||
|
||||
########
|
||||
# CDDA #
|
||||
########
|
||||
use cddb || myconf+=" --disable-cddb"
|
||||
use cdio || myconf+=" --disable-libcdio"
|
||||
|
||||
################################
|
||||
# DVD read, navigation support #
|
||||
################################
|
||||
#
|
||||
# dvdread - accessing a DVD
|
||||
# dvdnav - navigation of menus
|
||||
#
|
||||
# use external libdvdcss, dvdread and dvdnav
|
||||
myconf+=" --disable-dvdread-internal --disable-libdvdcss-internal"
|
||||
use dvd || myconf+=" --disable-dvdread"
|
||||
use dvdnav || myconf+=" --disable-dvdnav"
|
||||
|
||||
#############
|
||||
# Subtitles #
|
||||
#############
|
||||
#
|
||||
# iconv optionally can use unicode
|
||||
use iconv || myconf+=" --disable-iconv --charset=noconv"
|
||||
use iconv && use unicode && myconf+=" --charset=UTF-8"
|
||||
|
||||
#####################################
|
||||
# DVB / Video4Linux / Radio support #
|
||||
#####################################
|
||||
myconf+=" --disable-tv-bsdbt848"
|
||||
# v4l1 is gone since linux-headers-2.6.38
|
||||
myconf+=" --disable-tv-v4l1"
|
||||
if { use dvb || use v4l || use pvr || use radio; }; then
|
||||
use dvb || myconf+=" --disable-dvb"
|
||||
use pvr || myconf+=" --disable-pvr"
|
||||
use v4l || myconf+=" --disable-tv-v4l2"
|
||||
if use radio && { use dvb || use v4l; }; then
|
||||
myconf+="
|
||||
--enable-radio
|
||||
--disable-radio-capture
|
||||
"
|
||||
else
|
||||
myconf+="
|
||||
--disable-radio-v4l2
|
||||
--disable-radio-bsdbt848
|
||||
"
|
||||
fi
|
||||
else
|
||||
myconf+="
|
||||
--disable-tv
|
||||
--disable-tv-v4l2
|
||||
--disable-radio
|
||||
--disable-radio-v4l2
|
||||
--disable-radio-bsdbt848
|
||||
--disable-dvb
|
||||
--disable-v4l2
|
||||
--disable-pvr"
|
||||
fi
|
||||
|
||||
##########
|
||||
# Codecs #
|
||||
##########
|
||||
myconf+=" --disable-musepack" # deprecated, libavcodec Musepack decoder is preferred
|
||||
use dts || myconf+=" --disable-libdca"
|
||||
use mp3 || myconf+=" --disable-mpg123"
|
||||
uses="a52 bs2b dv vorbis"
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-lib${i}"
|
||||
done
|
||||
uses="faad gif jpeg mad mng png pnm speex tga theora xanim xvid"
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-${i}"
|
||||
done
|
||||
|
||||
#################
|
||||
# Binary codecs #
|
||||
#################
|
||||
# bug 213836
|
||||
use quicktime || myconf+=" --disable-qtx"
|
||||
|
||||
######################
|
||||
# RealPlayer support #
|
||||
######################
|
||||
# Realplayer support shows up in four places:
|
||||
# - libavcodec (internal)
|
||||
# - win32codecs
|
||||
# - realcodecs (win32codecs libs)
|
||||
# - realcodecs (realplayer libs)
|
||||
|
||||
# internal
|
||||
use real || myconf+=" --disable-real"
|
||||
|
||||
# Real binary codec support only available on x86, amd64
|
||||
if use real; then
|
||||
use x86 && myconf+=" --codecsdir=/opt/RealPlayer/codecs"
|
||||
use amd64 && myconf+=" --codecsdir=/usr/$(get_libdir)/codecs"
|
||||
fi
|
||||
myconf+=" --disable-win32dll"
|
||||
|
||||
################
|
||||
# Video Output #
|
||||
################
|
||||
uses="directfb md5sum sdl yuv4mpeg"
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-${i}"
|
||||
done
|
||||
use libcaca || myconf+=" --disable-caca"
|
||||
use postproc || myconf+=" --disable-libpostproc"
|
||||
|
||||
################
|
||||
# Audio Output #
|
||||
################
|
||||
myconf+=" --disable-rsound" # media-sound/rsound is in pro-audio overlay only
|
||||
uses="alsa jack ladspa portaudio"
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-${i}"
|
||||
done
|
||||
#use openal && myconf+=" --enable-openal" # build fails
|
||||
use pulseaudio || myconf+=" --disable-pulse"
|
||||
if ! use radio; then
|
||||
use oss || myconf+=" --disable-ossaudio"
|
||||
fi
|
||||
|
||||
####################
|
||||
# Advanced Options #
|
||||
####################
|
||||
# Platform specific flags, hardcoded on amd64 (see below)
|
||||
use cpudetection && myconf+=" --enable-runtime-cpudetection"
|
||||
|
||||
for i in ${CPU_FEATURES//+/}; do
|
||||
myconf+=" $(use_enable ${i})"
|
||||
done
|
||||
|
||||
use debug && myconf+=" --enable-debug=3"
|
||||
|
||||
if use x86 && gcc-specs-pie; then
|
||||
filter-flags -fPIC -fPIE
|
||||
append-ldflags -nopie
|
||||
fi
|
||||
|
||||
###########################
|
||||
# X enabled configuration #
|
||||
###########################
|
||||
use X || myconf+=" --disable-x11"
|
||||
uses="vdpau xinerama xv"
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-${i}"
|
||||
done
|
||||
use opengl || myconf+=" --disable-gl"
|
||||
use lcms || myconf+=" --disable-lcms2"
|
||||
use xscreensaver || myconf+=" --disable-xss"
|
||||
|
||||
############################
|
||||
# OSX (aqua) configuration #
|
||||
############################
|
||||
if use aqua; then
|
||||
myconf+="
|
||||
--enable-macosx-finder
|
||||
--enable-macosx-bundle
|
||||
"
|
||||
fi
|
||||
|
||||
./configure \
|
||||
--cc="$(tc-getCC)" \
|
||||
--pkg-config="$(tc-getPKG_CONFIG)" \
|
||||
--prefix="${EPREFIX}"/usr \
|
||||
--bindir="${EPREFIX}"/usr/bin \
|
||||
--libdir="${EPREFIX}"/usr/$(get_libdir) \
|
||||
--confdir="${EPREFIX}"/etc/${PN} \
|
||||
--datadir="${EPREFIX}"/usr/share/${PN} \
|
||||
--mandir="${EPREFIX}"/usr/share/man \
|
||||
--localedir="${EPREFIX}"/usr/share/locale \
|
||||
--enable-translation \
|
||||
${myconf} || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# enable verbose build, bug #448196
|
||||
base_src_compile V=1
|
||||
use doc && emake -C DOCS/xml html-chunked
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local i
|
||||
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
INSTALLSTRIP="" \
|
||||
install
|
||||
|
||||
dodoc AUTHORS Copyright README etc/codecs.conf
|
||||
|
||||
docinto tech/
|
||||
dodoc DOCS/tech/{*.txt,mpsub.sub,playtree}
|
||||
docinto TOOLS/
|
||||
dodoc -r TOOLS
|
||||
if use real; then
|
||||
docinto tech/realcodecs/
|
||||
dodoc DOCS/tech/realcodecs/*
|
||||
fi
|
||||
|
||||
if use doc; then
|
||||
docinto html/
|
||||
dohtml -r "${S}"/DOCS/HTML/*
|
||||
fi
|
||||
|
||||
insinto /etc/${PN}
|
||||
newins "${S}/etc/example.conf" mplayer.conf
|
||||
cat >> "${ED}/etc/${PN}/mplayer.conf" << _EOF_
|
||||
# Config options can be section specific, global
|
||||
# options should go in the default section
|
||||
[default]
|
||||
_EOF_
|
||||
doins "${S}/etc/input.conf"
|
||||
|
||||
# set unrar path when required
|
||||
if use rar; then
|
||||
cat >> "${ED}/etc/${PN}/mplayer.conf" << _EOF_
|
||||
unrarexec=${EPREFIX}/usr/bin/unrar
|
||||
_EOF_
|
||||
fi
|
||||
dosym ../../../etc/${PN}/mplayer.conf /usr/share/${PN}/mplayer.conf
|
||||
|
||||
newbin "${S}/TOOLS/midentify.sh" midentify${NAMESUF}
|
||||
|
||||
if [[ -n ${NAMESUF} ]]; then
|
||||
mv "${ED}/usr/share/man/man1/mplayer.1" "${ED}/usr/share/man/man1/mplayer${NAMESUF}.1" || die
|
||||
|
||||
if use symlink; then
|
||||
dosym "${PN}" /usr/bin/mplayer
|
||||
dosym "midentify${NAMESUF}" /usr/bin/midentify
|
||||
fi
|
||||
fi
|
||||
}
|
@ -1 +1 @@
|
||||
Thu, 13 Jun 2013 16:06:59 +0000
|
||||
Fri, 14 Jun 2013 04:07:01 +0000
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue