parent
b3c73e076a
commit
8ecb16f560
@ -1,30 +0,0 @@
|
|||||||
# Copyright 1999-2011 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-ecj/eselect-ecj-0.6-r1.ebuild,v 1.2 2011/12/31 14:30:00 sera Exp $
|
|
||||||
|
|
||||||
EAPI=1
|
|
||||||
|
|
||||||
DESCRIPTION="Manages ECJ symlinks"
|
|
||||||
HOMEPAGE="http://www.gentoo.org/"
|
|
||||||
SRC_URI=""
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~sparc-solaris ~x86-solaris"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
RDEPEND=">=app-admin/eselect-1.2.3"
|
|
||||||
PDEPEND="
|
|
||||||
|| (
|
|
||||||
dev-java/eclipse-ecj:3.7
|
|
||||||
dev-java/eclipse-ecj:3.6
|
|
||||||
dev-java/eclipse-ecj:3.5
|
|
||||||
dev-java/eclipse-ecj:3.4
|
|
||||||
>=dev-java/eclipse-ecj-3.3.0-r2:3.3
|
|
||||||
dev-java/ecj-gcj:3.5
|
|
||||||
)"
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
insinto /usr/share/eselect/modules
|
|
||||||
newins "${FILESDIR}/ecj-${PV}.eselect" ecj.eselect || die "newins failed"
|
|
||||||
}
|
|
@ -1,28 +0,0 @@
|
|||||||
# Copyright 1999-2011 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-ecj/eselect-ecj-0.6.ebuild,v 1.5 2011/12/31 14:30:00 sera Exp $
|
|
||||||
|
|
||||||
EAPI=1
|
|
||||||
|
|
||||||
DESCRIPTION="Manages ECJ symlinks"
|
|
||||||
HOMEPAGE="http://www.gentoo.org/"
|
|
||||||
SRC_URI=""
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 ppc ppc64 x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~sparc-solaris ~x86-solaris"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
RDEPEND=">=app-admin/eselect-1.2.3"
|
|
||||||
PDEPEND="
|
|
||||||
|| (
|
|
||||||
dev-java/eclipse-ecj:3.5
|
|
||||||
dev-java/eclipse-ecj:3.4
|
|
||||||
>=dev-java/eclipse-ecj-3.3.0-r2:3.3
|
|
||||||
dev-java/ecj-gcj:3.5
|
|
||||||
)"
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
insinto /usr/share/eselect/modules
|
|
||||||
newins "${FILESDIR}/ecj-${PV}.eselect" ecj.eselect || die "newins failed"
|
|
||||||
}
|
|
@ -1,188 +0,0 @@
|
|||||||
# -*-eselect-*- vim: ft=eselect
|
|
||||||
# Copyright 1999-2010 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id: ecj-0.6.eselect,v 1.1 2010/10/31 17:17:43 caster Exp $
|
|
||||||
|
|
||||||
DESCRIPTION="Manage ECJ targets"
|
|
||||||
MAINTAINER="java@gentoo.org"
|
|
||||||
VERSION="0.6"
|
|
||||||
|
|
||||||
ECJ="${EROOT}/usr/bin/ecj"
|
|
||||||
ECJ_JAR="${EROOT}/usr/share/eclipse-ecj/ecj.jar"
|
|
||||||
|
|
||||||
# find a list of ecj symlink targets, best first.
|
|
||||||
find_targets() {
|
|
||||||
for f in $(ls -r "${ECJ}"-[0-9]* "${ECJ}"-gcj-[0-9]* 2> /dev/null) ; do
|
|
||||||
if [[ -f "${f}" ]] ; then
|
|
||||||
echo $(basename "${f}")
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
# get a named or numbered target.
|
|
||||||
find_target() {
|
|
||||||
local target=${1}
|
|
||||||
|
|
||||||
if is_number "${target}" && [[ ${target} -ge 1 ]] ; then
|
|
||||||
targets=( $(find_targets ) )
|
|
||||||
[[ -z "${targets}" ]] && die -q "No targets found!"
|
|
||||||
target=${targets[target-1]}
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ "${target}" = ecj-[0-9]* || "${target}" = ecj-gcj-[0-9]* ]] \
|
|
||||||
&& [[ -f "${EROOT}/usr/bin/${target}" ]] ; then
|
|
||||||
echo ${target}
|
|
||||||
else
|
|
||||||
die -q "Target \"${1}\" doesn't appear to be valid!"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
# try to remove the ecj symlink.
|
|
||||||
remove_symlink() {
|
|
||||||
rm "${ECJ}" &>/dev/null
|
|
||||||
if [[ -e ${ECJ_JAR} ]] ; then
|
|
||||||
rm "${ECJ_JAR}"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
# determine the current target.
|
|
||||||
get_target() {
|
|
||||||
local canonicalised=$(canonicalise "${ECJ}")
|
|
||||||
echo $(basename "${canonicalised}")
|
|
||||||
}
|
|
||||||
|
|
||||||
# set the ecj symlink.
|
|
||||||
set_symlink() {
|
|
||||||
local target=$(find_target "${1}")
|
|
||||||
remove_symlink
|
|
||||||
ln -s "${target}" "${ECJ}" || die "Couldn't set ${target} symlink."
|
|
||||||
mkdir -p $(dirname ${ECJ_JAR})
|
|
||||||
if [[ "${target}" = ecj-gcj* ]] ; then
|
|
||||||
ln -sf /usr/share/${target}/lib/ecj.jar ${ECJ_JAR}
|
|
||||||
else
|
|
||||||
ln -sf /usr/share/eclipse-${target}/lib/ecj.jar ${ECJ_JAR}
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
### show action ###
|
|
||||||
|
|
||||||
describe_show() {
|
|
||||||
echo "Show current ECJ target"
|
|
||||||
}
|
|
||||||
|
|
||||||
do_show() {
|
|
||||||
if [[ ${#} -gt 0 ]]; then
|
|
||||||
die -q "No parameters allowed."
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -L "${ECJ}" ]] ; then
|
|
||||||
get_target
|
|
||||||
return 0
|
|
||||||
elif [[ -e "${ECJ}" ]] ; then
|
|
||||||
echo "(not a symlink)" >&2
|
|
||||||
return 1
|
|
||||||
else
|
|
||||||
echo "(unset)" >&2
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
### list action ###
|
|
||||||
|
|
||||||
describe_list() {
|
|
||||||
echo "List available ECJ targets"
|
|
||||||
}
|
|
||||||
|
|
||||||
do_list() {
|
|
||||||
if [[ ${#} -gt 0 ]]; then
|
|
||||||
die -q "Usage error: no parameters allowed."
|
|
||||||
fi
|
|
||||||
|
|
||||||
local i targets
|
|
||||||
targets=( $(find_targets) )
|
|
||||||
|
|
||||||
for (( i = 0; i < ${#targets[@]}; i++ )); do
|
|
||||||
[[ ${targets[i]} = $(basename "$(canonicalise "${ECJ}")") ]] \
|
|
||||||
&& targets[i]=$(highlight_marker "${targets[i]}")
|
|
||||||
done
|
|
||||||
|
|
||||||
write_list_start "Available ECJ targets:"
|
|
||||||
write_numbered_list -m "(none found)" "${targets[@]}"
|
|
||||||
}
|
|
||||||
|
|
||||||
### set action ###
|
|
||||||
|
|
||||||
describe_set() {
|
|
||||||
echo "Set a new ECJ target"
|
|
||||||
}
|
|
||||||
|
|
||||||
describe_set_options() {
|
|
||||||
echo "target : Target name or number (from 'list' action)"
|
|
||||||
}
|
|
||||||
|
|
||||||
describe_set_parameters() {
|
|
||||||
echo "<target>"
|
|
||||||
}
|
|
||||||
|
|
||||||
do_set() {
|
|
||||||
if [[ $# -gt 1 ]]; then
|
|
||||||
die -q "Too many parameters. Expected only one."
|
|
||||||
fi
|
|
||||||
|
|
||||||
local target=${1}
|
|
||||||
|
|
||||||
if [[ -z "${target}" ]] ; then
|
|
||||||
die -q "You didn't give me a target name or number."
|
|
||||||
elif [[ -L "${ECJ}" ]] ; then
|
|
||||||
if ! remove_symlink ; then
|
|
||||||
die -q "Can't remove existing ecj provider."
|
|
||||||
elif ! set_symlink "${1}" ; then
|
|
||||||
die -q "Can't set new ecj provider."
|
|
||||||
fi
|
|
||||||
elif [[ -e "${ECJ}" ]] ; then
|
|
||||||
write_warning_msg "Can't set a new ecj provider. There's a file in the way at ${ECJ}. You can try removing it manually, and then re-running this command."
|
|
||||||
elif [[ -e "${ECJ_JAR}" ]] ; then
|
|
||||||
write_warning_msg "Can't set a new ecj provider. There's a file in the way at ${ECJ_JAR}. You can try removing it manually, and then re-running this command."
|
|
||||||
else
|
|
||||||
set_symlink "${target}" || die -q "Wasn't able to set a new provider."
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
### update action ###
|
|
||||||
|
|
||||||
describe_update() {
|
|
||||||
echo "Set the ECJ target to the latest if the current target is invalid or if the given target is the latest"
|
|
||||||
}
|
|
||||||
|
|
||||||
describe_update_options() {
|
|
||||||
echo "target (optional) : Target name (from 'list' action)"
|
|
||||||
}
|
|
||||||
|
|
||||||
describe_update_parameters() {
|
|
||||||
echo "<target>"
|
|
||||||
}
|
|
||||||
|
|
||||||
do_update() {
|
|
||||||
if [[ $# -gt 1 ]] ; then
|
|
||||||
die -q "Too many parameters. Expected only one."
|
|
||||||
fi
|
|
||||||
|
|
||||||
# For pkg_postrm
|
|
||||||
if [[ ! $(find_targets) ]]; then
|
|
||||||
remove_symlink
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
|
|
||||||
local canonicalised=$(canonicalise "${ECJ}")
|
|
||||||
|
|
||||||
if [[ ! -L "${ECJ}" ]] || [[ ! -f "${canonicalised}" ]] ; then
|
|
||||||
do_set 1
|
|
||||||
elif [[ -n "${1}" ]] ; then
|
|
||||||
# Check whether target name is valid.
|
|
||||||
find_target "${1}" > /dev/null
|
|
||||||
|
|
||||||
if [[ "${1}" == "$(find_target 1)" ]] ; then
|
|
||||||
do_set 1
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,5 +1,25 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
<pkgmetadata>
|
<pkgmetadata>
|
||||||
<maintainer><email>maintainer-needed@gentoo.org</email></maintainer>
|
<maintainer>
|
||||||
|
<email>nimiux@gentoo.org</email>
|
||||||
|
<name>Chema Alonso</name>
|
||||||
|
</maintainer>
|
||||||
|
<longdescription lang="en">
|
||||||
|
Logrotate allows for the automatic rotation compression, removal
|
||||||
|
and mailing of log files. Logrotate can be set to handle a log
|
||||||
|
file daily, weekly, monthly or when the log file gets to a certain
|
||||||
|
size.
|
||||||
|
</longdescription>
|
||||||
|
<longdescription lang="es">
|
||||||
|
Logrotate permite la rotación, compresión, eliminación y
|
||||||
|
notificación por correo electrónico de forma automática de ficheros
|
||||||
|
de registro (logs). Logrotate se puede configurar para gestionar
|
||||||
|
estos ficheros diariamente, semanalmente, mensualmente o cuando
|
||||||
|
su tamaño alcanza cierto valor.
|
||||||
|
</longdescription>
|
||||||
|
<use>
|
||||||
|
<flag name="acl">Installs acl support</flag>
|
||||||
|
<flag name="selinux">Installs Security Enhanced Linux support</flag>
|
||||||
|
</use>
|
||||||
</pkgmetadata>
|
</pkgmetadata>
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
DIST alien_8.74.tar.gz 75158 RMD160 732c6199a3170409a60de48fb05afba170fb9768 SHA1 6bbc48d45213b15db9a6887c401a8363d102e8fa SHA256 91ddb623f6696b6fcdf4dd1924de1c360b124669e65d12495f5460c16c413b50
|
DIST alien_8.74.tar.gz 75158 RMD160 732c6199a3170409a60de48fb05afba170fb9768 SHA1 6bbc48d45213b15db9a6887c401a8363d102e8fa SHA256 91ddb623f6696b6fcdf4dd1924de1c360b124669e65d12495f5460c16c413b50
|
||||||
DIST alien_8.86.tar.gz 64267 RMD160 66a949a6c1765e0bdfd6a4dd734c4714d17b3dc8 SHA1 35c62f2aec9abe98be6978daf67d38281fa30595 SHA256 d81a046a122133d823cb5bd55a85c0cfa8f77916cee0ac95765c25b9cf5abd8d
|
DIST alien_8.86.tar.gz 64267 RMD160 66a949a6c1765e0bdfd6a4dd734c4714d17b3dc8 SHA1 35c62f2aec9abe98be6978daf67d38281fa30595 SHA256 d81a046a122133d823cb5bd55a85c0cfa8f77916cee0ac95765c25b9cf5abd8d
|
||||||
|
DIST alien_8.87.tar.gz 64336 RMD160 391db47725b130b907bd3b86cb8fff05e62c7050 SHA1 58efcee3cfe839baef8160d85b7a48abc7f7a3d8 SHA256 3f7c752eb2f949491708f8027ec846e3910d3b0c7012036b37a2681f01d99098
|
||||||
|
@ -0,0 +1,33 @@
|
|||||||
|
# Copyright 1999-2012 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/app-arch/alien/alien-8.87.ebuild,v 1.1 2012/06/10 15:12:19 lordvan Exp $
|
||||||
|
|
||||||
|
EAPI=1
|
||||||
|
|
||||||
|
inherit perl-app
|
||||||
|
|
||||||
|
DESCRIPTION="Converts between the rpm, dpkg, stampede slp, and slackware tgz file formats"
|
||||||
|
HOMEPAGE="http://kitenet.net/programs/alien"
|
||||||
|
SRC_URI="mirror://debian/pool/main/a/${PN}/${PN}_${PV}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="LGPL-2.1"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~x86"
|
||||||
|
IUSE="+bzip2"
|
||||||
|
|
||||||
|
RDEPEND="app-arch/rpm
|
||||||
|
app-arch/dpkg
|
||||||
|
bzip2? ( app-arch/bzip2 )
|
||||||
|
dev-util/debhelper
|
||||||
|
>=app-arch/tar-1.14.91"
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
|
||||||
|
S=${WORKDIR}/${PN}
|
||||||
|
|
||||||
|
mydoc="TODO"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
perl-module_src_unpack
|
||||||
|
sed -e s%'$(VARPREFIX)'%${D}% -e s%'$(PREFIX)'%${D}/usr%g \
|
||||||
|
-i "${S}"/Makefile.PL || die "sed failed."
|
||||||
|
}
|
@ -0,0 +1,246 @@
|
|||||||
|
# Copyright 1999-2012 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs/emacs-22.3-r10.ebuild,v 1.1 2012/06/10 15:13:09 ulm Exp $
|
||||||
|
|
||||||
|
EAPI=4
|
||||||
|
WANT_AUTOMAKE="none"
|
||||||
|
|
||||||
|
inherit autotools elisp-common eutils flag-o-matic
|
||||||
|
|
||||||
|
DESCRIPTION="The extensible, customizable, self-documenting real-time display editor"
|
||||||
|
HOMEPAGE="http://www.gnu.org/software/emacs/"
|
||||||
|
SRC_URI="mirror://gnu/emacs/${P}.tar.gz
|
||||||
|
mirror://gentoo/${P}-patches-8.tar.bz2"
|
||||||
|
|
||||||
|
LICENSE="GPL-3 FDL-1.2 BSD as-is MIT"
|
||||||
|
SLOT="22"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
|
||||||
|
IUSE="alsa gif gtk gzip-el hesiod jpeg kerberos motif png sound source tiff toolkit-scroll-bars X Xaw3d +xpm"
|
||||||
|
|
||||||
|
RDEPEND="sys-libs/ncurses
|
||||||
|
>=app-admin/eselect-emacs-1.2
|
||||||
|
>=app-emacs/emacs-common-gentoo-1.3-r3[X?]
|
||||||
|
net-libs/liblockfile
|
||||||
|
hesiod? ( net-dns/hesiod )
|
||||||
|
kerberos? ( virtual/krb5 )
|
||||||
|
alsa? ( media-libs/alsa-lib )
|
||||||
|
X? (
|
||||||
|
x11-libs/libXmu
|
||||||
|
x11-libs/libXt
|
||||||
|
x11-misc/xbitmaps
|
||||||
|
gif? ( media-libs/giflib )
|
||||||
|
jpeg? ( virtual/jpeg )
|
||||||
|
png? ( >=media-libs/libpng-1.4:0 )
|
||||||
|
tiff? ( media-libs/tiff )
|
||||||
|
xpm? ( x11-libs/libXpm )
|
||||||
|
gtk? ( x11-libs/gtk+:2 )
|
||||||
|
!gtk? (
|
||||||
|
Xaw3d? ( x11-libs/libXaw3d )
|
||||||
|
!Xaw3d? ( motif? ( >=x11-libs/openmotif-2.3:0 ) )
|
||||||
|
)
|
||||||
|
)"
|
||||||
|
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
alsa? ( virtual/pkgconfig )
|
||||||
|
X? ( gtk? ( virtual/pkgconfig ) )
|
||||||
|
gzip-el? ( app-arch/gzip )"
|
||||||
|
|
||||||
|
# FULL_VERSION keeps the full version number, which is needed in order to
|
||||||
|
# determine some path information correctly for copy/move operations later on
|
||||||
|
FULL_VERSION="${PV}"
|
||||||
|
EMACS_SUFFIX="emacs-${SLOT}"
|
||||||
|
SITEFILE="20${PN}-${SLOT}-gentoo.el"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
EPATCH_SUFFIX=patch epatch
|
||||||
|
|
||||||
|
sed -i \
|
||||||
|
-e "s:/usr/lib/crtbegin.o:$(`tc-getCC` -print-file-name=crtbegin.o):g" \
|
||||||
|
-e "s:/usr/lib/crtend.o:$(`tc-getCC` -print-file-name=crtend.o):g" \
|
||||||
|
"${S}"/src/s/freebsd.h || die "unable to sed freebsd.h settings"
|
||||||
|
|
||||||
|
if ! use alsa; then
|
||||||
|
# ALSA is detected even if not requested by its USE flag.
|
||||||
|
# Suppress it by supplying pkg-config with a wrong library name.
|
||||||
|
sed -i -e "/ALSA_MODULES=/s/alsa/DiSaBlEaLsA/" configure.in \
|
||||||
|
|| die "unable to sed configure.in"
|
||||||
|
fi
|
||||||
|
if ! use gzip-el; then
|
||||||
|
# Emacs' build system automatically detects the gzip binary and
|
||||||
|
# compresses el files. We don't want that so confuse it with a
|
||||||
|
# wrong binary name
|
||||||
|
sed -i -e "s/ gzip/ PrEvEnTcOmPrEsSiOn/" configure.in \
|
||||||
|
|| die "unable to sed configure.in"
|
||||||
|
fi
|
||||||
|
|
||||||
|
eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
strip-flags
|
||||||
|
filter-flags -fstack-protector -fstack-protector-all #285778
|
||||||
|
replace-flags "-O[3-9]" -O2
|
||||||
|
sed -i -e "s/-lungif/-lgif/g" configure* src/Makefile* || die
|
||||||
|
|
||||||
|
local myconf
|
||||||
|
|
||||||
|
if use alsa && ! use sound; then
|
||||||
|
einfo "Although sound USE flag is disabled you chose to have alsa,"
|
||||||
|
einfo "so sound is switched on anyway."
|
||||||
|
myconf="${myconf} --with-sound"
|
||||||
|
else
|
||||||
|
myconf="${myconf} $(use_with sound)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use X; then
|
||||||
|
myconf="${myconf} --with-x"
|
||||||
|
myconf="${myconf} $(use_with toolkit-scroll-bars)"
|
||||||
|
myconf="${myconf} $(use_with gif) $(use_with jpeg)"
|
||||||
|
myconf="${myconf} $(use_with png) $(use_with tiff)"
|
||||||
|
myconf="${myconf} $(use_with xpm)"
|
||||||
|
|
||||||
|
# GTK+ is the default toolkit if USE=gtk is chosen with other
|
||||||
|
# possibilities. Emacs upstream thinks this should be standard
|
||||||
|
# policy on all distributions
|
||||||
|
if use gtk; then
|
||||||
|
einfo "Configuring to build with GIMP Toolkit (GTK+)"
|
||||||
|
myconf="${myconf} --with-x-toolkit=gtk"
|
||||||
|
elif use Xaw3d; then
|
||||||
|
einfo "Configuring to build with Xaw3d (Athena/Lucid) toolkit"
|
||||||
|
myconf="${myconf} --with-x-toolkit=athena"
|
||||||
|
myconf="${myconf} --without-gtk"
|
||||||
|
elif use motif; then
|
||||||
|
einfo "Configuring to build with Motif toolkit"
|
||||||
|
myconf="${myconf} --with-x-toolkit=motif"
|
||||||
|
myconf="${myconf} --without-gtk"
|
||||||
|
else
|
||||||
|
einfo "Configuring to build with no toolkit"
|
||||||
|
myconf="${myconf} --with-x-toolkit=no"
|
||||||
|
myconf="${myconf} --without-gtk"
|
||||||
|
fi
|
||||||
|
|
||||||
|
local f tk=
|
||||||
|
for f in gtk Xaw3d motif; do
|
||||||
|
use ${f} || continue
|
||||||
|
[ "${tk}" ] \
|
||||||
|
&& ewarn "USE flag \"${f}\" ignored (superseded by \"${tk}\")"
|
||||||
|
tk="${tk}${tk:+ }${f}"
|
||||||
|
done
|
||||||
|
else
|
||||||
|
myconf="${myconf} --without-x"
|
||||||
|
fi
|
||||||
|
|
||||||
|
econf \
|
||||||
|
--program-suffix=-${EMACS_SUFFIX} \
|
||||||
|
--infodir=/usr/share/info/${EMACS_SUFFIX} \
|
||||||
|
--enable-locallisppath="/etc/emacs:${SITELISP}" \
|
||||||
|
--without-carbon \
|
||||||
|
--with-gameuser="${GAMES_USER_DED:-games}" \
|
||||||
|
$(use_with hesiod) \
|
||||||
|
$(use_with kerberos) $(use_with kerberos kerberos5) \
|
||||||
|
${myconf}
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
export SANDBOX_ON=0 # for the unbelievers, see Bug #131505
|
||||||
|
emake CC="$(tc-getCC)"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install () {
|
||||||
|
emake install DESTDIR="${D}"
|
||||||
|
|
||||||
|
rm "${D}"/usr/bin/emacs-${FULL_VERSION}-${EMACS_SUFFIX} \
|
||||||
|
|| die "removing duplicate emacs executable failed"
|
||||||
|
mv "${D}"/usr/bin/emacs-${EMACS_SUFFIX} "${D}"/usr/bin/${EMACS_SUFFIX} \
|
||||||
|
|| die "moving Emacs executable failed"
|
||||||
|
|
||||||
|
# move man pages to the correct place
|
||||||
|
local m
|
||||||
|
for m in "${D}"/usr/share/man/man1/* ; do
|
||||||
|
mv "${m}" "${m%.1}-${EMACS_SUFFIX}.1" || die "mv man failed"
|
||||||
|
done
|
||||||
|
|
||||||
|
# move info dir to avoid collisions with the dir file generated by portage
|
||||||
|
mv "${D}"/usr/share/info/${EMACS_SUFFIX}/dir{,.orig} \
|
||||||
|
|| die "moving info dir failed"
|
||||||
|
touch "${D}"/usr/share/info/${EMACS_SUFFIX}/.keepinfodir
|
||||||
|
docompress -x /usr/share/info/${EMACS_SUFFIX}/dir.orig
|
||||||
|
|
||||||
|
# avoid collision between slots, see bug #169033 e.g.
|
||||||
|
rm "${D}"/usr/share/emacs/site-lisp/subdirs.el
|
||||||
|
rm -rf "${D}"/var
|
||||||
|
|
||||||
|
# remove unused <version>/site-lisp dir
|
||||||
|
rm -rf "${D}"/usr/share/emacs/${FULL_VERSION}/site-lisp
|
||||||
|
|
||||||
|
local c=";;"
|
||||||
|
if use source; then
|
||||||
|
insinto /usr/share/emacs/${FULL_VERSION}/src
|
||||||
|
# This is not meant to install all the source -- just the
|
||||||
|
# C source you might find via find-function
|
||||||
|
doins src/*.[ch]
|
||||||
|
c=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
sed 's/^X//' >"${T}/${SITEFILE}" <<-EOF
|
||||||
|
X
|
||||||
|
;;; ${PN}-${SLOT} site-lisp configuration
|
||||||
|
X
|
||||||
|
(when (string-match "\\\\\`${FULL_VERSION//./\\\\.}\\\\>" emacs-version)
|
||||||
|
X ${c}(setq find-function-C-source-directory
|
||||||
|
X ${c} "/usr/share/emacs/${FULL_VERSION}/src")
|
||||||
|
X (let ((path (getenv "INFOPATH"))
|
||||||
|
X (dir "/usr/share/info/${EMACS_SUFFIX}")
|
||||||
|
X (re "\\\\\`/usr/share/info\\\\>"))
|
||||||
|
X (and path
|
||||||
|
X ;; move Emacs Info dir before anything else in /usr/share/info
|
||||||
|
X (let* ((p (cons nil (split-string path ":" t))) (q p))
|
||||||
|
X (while (and (cdr q) (not (string-match re (cadr q))))
|
||||||
|
X (setq q (cdr q)))
|
||||||
|
X (setcdr q (cons dir (delete dir (cdr q))))
|
||||||
|
X (setq Info-directory-list (prune-directory-list (cdr p)))))))
|
||||||
|
EOF
|
||||||
|
elisp-site-file-install "${T}/${SITEFILE}" || die
|
||||||
|
|
||||||
|
dodoc AUTHORS BUGS CONTRIBUTE README
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_preinst() {
|
||||||
|
# move Info dir file to correct name
|
||||||
|
local infodir=/usr/share/info/${EMACS_SUFFIX} f
|
||||||
|
if [ -f "${D}"${infodir}/dir.orig ]; then
|
||||||
|
mv "${D}"${infodir}/dir{.orig,} || die "moving info dir failed"
|
||||||
|
elif [[ -d "${D}"${infodir} ]]; then
|
||||||
|
# this should not happen in EAPI 4
|
||||||
|
ewarn "Regenerating Info directory index in ${infodir} ..."
|
||||||
|
rm -f "${D}"${infodir}/dir{,.*}
|
||||||
|
for f in "${D}"${infodir}/*; do
|
||||||
|
if [[ ${f##*/} != *-[0-9]* && -e ${f} ]]; then
|
||||||
|
install-info --info-dir="${D}"${infodir} "${f}" \
|
||||||
|
|| die "install-info failed"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
elisp-site-regen
|
||||||
|
eselect emacs update ifunset
|
||||||
|
|
||||||
|
if use X; then
|
||||||
|
elog "You need to install some fonts for Emacs."
|
||||||
|
elog "Installing media-fonts/font-adobe-{75,100}dpi on the X server's"
|
||||||
|
elog "machine would satisfy basic Emacs requirements under X11."
|
||||||
|
elog
|
||||||
|
fi
|
||||||
|
|
||||||
|
elog "You can set the version to be started by /usr/bin/emacs through"
|
||||||
|
elog "the Emacs eselect module, which also redirects man and info pages."
|
||||||
|
elog "Therefore, several Emacs versions can be installed at the same time."
|
||||||
|
elog "\"man emacs.eselect\" for details."
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
elisp-site-regen
|
||||||
|
eselect emacs update ifunset
|
||||||
|
}
|
@ -0,0 +1,327 @@
|
|||||||
|
# Copyright 1999-2012 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs/emacs-23.4-r3.ebuild,v 1.1 2012/06/10 15:13:09 ulm Exp $
|
||||||
|
|
||||||
|
EAPI=4
|
||||||
|
WANT_AUTOMAKE="none"
|
||||||
|
|
||||||
|
inherit autotools elisp-common eutils flag-o-matic multilib
|
||||||
|
|
||||||
|
DESCRIPTION="The extensible, customizable, self-documenting real-time display editor"
|
||||||
|
HOMEPAGE="http://www.gnu.org/software/emacs/"
|
||||||
|
SRC_URI="mirror://gnu/emacs/${P}.tar.bz2
|
||||||
|
mirror://gentoo/${P}-patches-3.tar.bz2"
|
||||||
|
|
||||||
|
LICENSE="GPL-3 FDL-1.3 BSD as-is MIT W3C unicode PSF-2"
|
||||||
|
SLOT="23"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
|
||||||
|
IUSE="alsa aqua athena dbus gconf gif gpm gtk gzip-el hesiod jpeg kerberos livecd m17n-lib motif pax_kernel png sound source svg tiff toolkit-scroll-bars X Xaw3d xft +xpm"
|
||||||
|
REQUIRED_USE="aqua? ( !X )"
|
||||||
|
|
||||||
|
RDEPEND="sys-libs/ncurses
|
||||||
|
>=app-admin/eselect-emacs-1.2
|
||||||
|
>=app-emacs/emacs-common-gentoo-1.3-r3[X?]
|
||||||
|
net-libs/liblockfile
|
||||||
|
hesiod? ( net-dns/hesiod )
|
||||||
|
kerberos? ( virtual/krb5 )
|
||||||
|
alsa? ( media-libs/alsa-lib )
|
||||||
|
gpm? ( sys-libs/gpm )
|
||||||
|
dbus? ( sys-apps/dbus )
|
||||||
|
X? (
|
||||||
|
x11-libs/libXmu
|
||||||
|
x11-libs/libXt
|
||||||
|
x11-misc/xbitmaps
|
||||||
|
gconf? ( >=gnome-base/gconf-2.26.2 )
|
||||||
|
gif? ( media-libs/giflib )
|
||||||
|
jpeg? ( virtual/jpeg )
|
||||||
|
png? ( >=media-libs/libpng-1.4:0 )
|
||||||
|
svg? ( >=gnome-base/librsvg-2.0 )
|
||||||
|
tiff? ( media-libs/tiff )
|
||||||
|
xpm? ( x11-libs/libXpm )
|
||||||
|
xft? (
|
||||||
|
media-libs/fontconfig
|
||||||
|
media-libs/freetype
|
||||||
|
x11-libs/libXft
|
||||||
|
m17n-lib? (
|
||||||
|
>=dev-libs/libotf-0.9.4
|
||||||
|
>=dev-libs/m17n-lib-1.5.1
|
||||||
|
)
|
||||||
|
)
|
||||||
|
gtk? ( x11-libs/gtk+:2 )
|
||||||
|
!gtk? (
|
||||||
|
Xaw3d? ( x11-libs/libXaw3d )
|
||||||
|
!Xaw3d? (
|
||||||
|
athena? ( x11-libs/libXaw )
|
||||||
|
!athena? ( motif? ( >=x11-libs/openmotif-2.3:0 ) )
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)"
|
||||||
|
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
alsa? ( virtual/pkgconfig )
|
||||||
|
dbus? ( virtual/pkgconfig )
|
||||||
|
X? ( virtual/pkgconfig )
|
||||||
|
gzip-el? ( app-arch/gzip )
|
||||||
|
pax_kernel? ( sys-apps/paxctl )"
|
||||||
|
|
||||||
|
RDEPEND="${RDEPEND}
|
||||||
|
!<app-editors/emacs-vcs-${PV}"
|
||||||
|
|
||||||
|
EMACS_SUFFIX="emacs-${SLOT}"
|
||||||
|
SITEFILE="20${PN}-${SLOT}-gentoo.el"
|
||||||
|
# FULL_VERSION keeps the full version number, which is needed in
|
||||||
|
# order to determine some path information correctly for copy/move
|
||||||
|
# operations later on
|
||||||
|
FULL_VERSION="${PV%%_*}"
|
||||||
|
S="${WORKDIR}/emacs-${FULL_VERSION}"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
EPATCH_SUFFIX=patch epatch
|
||||||
|
epatch_user
|
||||||
|
|
||||||
|
sed -i \
|
||||||
|
-e "s:/usr/lib/crtbegin.o:$(`tc-getCC` -print-file-name=crtbegin.o):g" \
|
||||||
|
-e "s:/usr/lib/crtend.o:$(`tc-getCC` -print-file-name=crtend.o):g" \
|
||||||
|
"${S}"/src/s/freebsd.h || die "unable to sed freebsd.h settings"
|
||||||
|
|
||||||
|
if ! use alsa; then
|
||||||
|
# ALSA is detected even if not requested by its USE flag.
|
||||||
|
# Suppress it by supplying pkg-config with a wrong library name.
|
||||||
|
sed -i -e "/ALSA_MODULES=/s/alsa/DiSaBlEaLsA/" configure.in \
|
||||||
|
|| die "unable to sed configure.in"
|
||||||
|
fi
|
||||||
|
if ! use gzip-el; then
|
||||||
|
# Emacs' build system automatically detects the gzip binary and
|
||||||
|
# compresses el files. We don't want that so confuse it with a
|
||||||
|
# wrong binary name
|
||||||
|
sed -i -e "s/ gzip/ PrEvEnTcOmPrEsSiOn/" configure.in \
|
||||||
|
|| die "unable to sed configure.in"
|
||||||
|
fi
|
||||||
|
|
||||||
|
eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
strip-flags
|
||||||
|
filter-flags -fstrict-aliasing
|
||||||
|
append-flags $(test-flags -fno-strict-aliasing)
|
||||||
|
|
||||||
|
if use sh; then
|
||||||
|
replace-flags "-O[1-9]" -O0 #262359
|
||||||
|
elif use ia64; then
|
||||||
|
replace-flags "-O[2-9]" -O1 #325373
|
||||||
|
else
|
||||||
|
replace-flags "-O[3-9]" -O2
|
||||||
|
fi
|
||||||
|
|
||||||
|
local myconf
|
||||||
|
|
||||||
|
if use alsa && ! use sound; then
|
||||||
|
einfo "Although sound USE flag is disabled you chose to have alsa,"
|
||||||
|
einfo "so sound is switched on anyway."
|
||||||
|
myconf="${myconf} --with-sound"
|
||||||
|
else
|
||||||
|
myconf="${myconf} $(use_with sound)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use X; then
|
||||||
|
myconf="${myconf} --with-x --without-ns"
|
||||||
|
myconf="${myconf} $(use_with gconf)"
|
||||||
|
myconf="${myconf} $(use_with toolkit-scroll-bars)"
|
||||||
|
myconf="${myconf} $(use_with gif) $(use_with jpeg)"
|
||||||
|
myconf="${myconf} $(use_with png) $(use_with svg rsvg)"
|
||||||
|
myconf="${myconf} $(use_with tiff) $(use_with xpm)"
|
||||||
|
|
||||||
|
if use xft; then
|
||||||
|
myconf="${myconf} --with-xft"
|
||||||
|
myconf="${myconf} $(use_with m17n-lib libotf)"
|
||||||
|
myconf="${myconf} $(use_with m17n-lib m17n-flt)"
|
||||||
|
else
|
||||||
|
myconf="${myconf} --without-xft"
|
||||||
|
myconf="${myconf} --without-libotf --without-m17n-flt"
|
||||||
|
use m17n-lib && ewarn \
|
||||||
|
"USE flag \"m17n-lib\" has no effect if \"xft\" is not set."
|
||||||
|
fi
|
||||||
|
|
||||||
|
# GTK+ is the default toolkit if USE=gtk is chosen with other
|
||||||
|
# possibilities. Emacs upstream thinks this should be standard
|
||||||
|
# policy on all distributions
|
||||||
|
if use gtk; then
|
||||||
|
einfo "Configuring to build with GIMP Toolkit (GTK+)"
|
||||||
|
myconf="${myconf} --with-x-toolkit=gtk"
|
||||||
|
local f
|
||||||
|
for f in athena Xaw3d motif; do
|
||||||
|
use ${f} && ewarn "USE flag \"${f}\" ignored" \
|
||||||
|
"(superseded by \"gtk\")"
|
||||||
|
done
|
||||||
|
elif use athena || use Xaw3d; then
|
||||||
|
einfo "Configuring to build with Athena/Lucid toolkit"
|
||||||
|
myconf="${myconf} --with-x-toolkit=lucid $(use_with Xaw3d xaw3d)"
|
||||||
|
use motif && ewarn "USE flag \"motif\" ignored" \
|
||||||
|
"(superseded by \"athena\" or \"Xaw3d\")"
|
||||||
|
elif use motif; then
|
||||||
|
einfo "Configuring to build with Motif toolkit"
|
||||||
|
myconf="${myconf} --with-x-toolkit=motif"
|
||||||
|
else
|
||||||
|
einfo "Configuring to build with no toolkit"
|
||||||
|
myconf="${myconf} --with-x-toolkit=no"
|
||||||
|
fi
|
||||||
|
elif use aqua; then
|
||||||
|
einfo "Configuring to build with Cocoa support"
|
||||||
|
myconf="${myconf} --with-ns --disable-ns-self-contained"
|
||||||
|
myconf="${myconf} --without-x"
|
||||||
|
else
|
||||||
|
myconf="${myconf} --without-x --without-ns"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# According to configure, this option is only used for GNU/Linux
|
||||||
|
# (x86_64 and s390). For Gentoo Prefix we have to explicitly spell
|
||||||
|
# out the location because $(get_libdir) does not necessarily return
|
||||||
|
# something that matches the host OS's libdir naming (e.g. RHEL).
|
||||||
|
local crtdir=$($(tc-getCC) -print-file-name=crt1.o)
|
||||||
|
crtdir=${crtdir%/*}
|
||||||
|
|
||||||
|
econf \
|
||||||
|
--program-suffix=-${EMACS_SUFFIX} \
|
||||||
|
--infodir="${EPREFIX}"/usr/share/info/${EMACS_SUFFIX} \
|
||||||
|
--enable-locallisppath="${EPREFIX}/etc/emacs:${EPREFIX}${SITELISP}" \
|
||||||
|
--with-crt-dir="${crtdir}" \
|
||||||
|
--with-gameuser="${GAMES_USER_DED:-games}" \
|
||||||
|
$(use_with hesiod) \
|
||||||
|
$(use_with kerberos) $(use_with kerberos kerberos5) \
|
||||||
|
$(use_with gpm) \
|
||||||
|
$(use_with dbus) \
|
||||||
|
${myconf}
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
export SANDBOX_ON=0 # for the unbelievers, see Bug #131505
|
||||||
|
# set last component of emacs-version to (package revision + 1)
|
||||||
|
touch src/emacs-${FULL_VERSION}.${PR#r}
|
||||||
|
emake CC="$(tc-getCC)"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install () {
|
||||||
|
emake install DESTDIR="${D}"
|
||||||
|
|
||||||
|
rm "${ED}"/usr/bin/emacs-${FULL_VERSION}-${EMACS_SUFFIX} \
|
||||||
|
|| die "removing duplicate emacs executable failed"
|
||||||
|
mv "${ED}"/usr/bin/emacs-${EMACS_SUFFIX} "${ED}"/usr/bin/${EMACS_SUFFIX} \
|
||||||
|
|| die "moving Emacs executable failed"
|
||||||
|
|
||||||
|
# move man pages to the correct place
|
||||||
|
local m
|
||||||
|
for m in "${ED}"/usr/share/man/man1/* ; do
|
||||||
|
mv "${m}" "${m%.1}-${EMACS_SUFFIX}.1" || die "mv man failed"
|
||||||
|
done
|
||||||
|
|
||||||
|
# move info dir to avoid collisions with the dir file generated by portage
|
||||||
|
mv "${ED}"/usr/share/info/${EMACS_SUFFIX}/dir{,.orig} \
|
||||||
|
|| die "moving info dir failed"
|
||||||
|
touch "${ED}"/usr/share/info/${EMACS_SUFFIX}/.keepinfodir
|
||||||
|
docompress -x /usr/share/info/${EMACS_SUFFIX}/dir.orig
|
||||||
|
|
||||||
|
# avoid collision between slots, see bug #169033 e.g.
|
||||||
|
rm "${ED}"/usr/share/emacs/site-lisp/subdirs.el
|
||||||
|
rm -rf "${ED}"/usr/share/{applications,icons}
|
||||||
|
rm -rf "${ED}"/var
|
||||||
|
|
||||||
|
# remove unused <version>/site-lisp dir
|
||||||
|
rm -rf "${ED}"/usr/share/emacs/${FULL_VERSION}/site-lisp
|
||||||
|
|
||||||
|
local c=";;"
|
||||||
|
if use source; then
|
||||||
|
insinto /usr/share/emacs/${FULL_VERSION}/src
|
||||||
|
# This is not meant to install all the source -- just the
|
||||||
|
# C source you might find via find-function
|
||||||
|
doins src/*.{c,h,m}
|
||||||
|
doins -r src/{m,s}
|
||||||
|
rm "${ED}"/usr/share/emacs/${FULL_VERSION}/src/Makefile.c
|
||||||
|
rm "${ED}"/usr/share/emacs/${FULL_VERSION}/src/{m,s}/README
|
||||||
|
c=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
sed 's/^X//' >"${T}/${SITEFILE}" <<-EOF
|
||||||
|
X
|
||||||
|
;;; ${PN}-${SLOT} site-lisp configuration
|
||||||
|
X
|
||||||
|
(when (string-match "\\\\\`${FULL_VERSION//./\\\\.}\\\\>" emacs-version)
|
||||||
|
X ${c}(setq find-function-C-source-directory
|
||||||
|
X ${c} "${EPREFIX}/usr/share/emacs/${FULL_VERSION}/src")
|
||||||
|
X (let ((path (getenv "INFOPATH"))
|
||||||
|
X (dir "${EPREFIX}/usr/share/info/${EMACS_SUFFIX}")
|
||||||
|
X (re "\\\\\`${EPREFIX}/usr/share/info\\\\>"))
|
||||||
|
X (and path
|
||||||
|
X ;; move Emacs Info dir before anything else in /usr/share/info
|
||||||
|
X (let* ((p (cons nil (split-string path ":" t))) (q p))
|
||||||
|
X (while (and (cdr q) (not (string-match re (cadr q))))
|
||||||
|
X (setq q (cdr q)))
|
||||||
|
X (setcdr q (cons dir (delete dir (cdr q))))
|
||||||
|
X (setq Info-directory-list (prune-directory-list (cdr p)))))))
|
||||||
|
EOF
|
||||||
|
elisp-site-file-install "${T}/${SITEFILE}" || die
|
||||||
|
|
||||||
|
dodoc README BUGS
|
||||||
|
|
||||||
|
if use aqua; then
|
||||||
|
dodir /Applications/Gentoo
|
||||||
|
rm -rf "${ED}"/Applications/Gentoo/Emacs${EMACS_SUFFIX#emacs}.app
|
||||||
|
mv nextstep/Emacs.app \
|
||||||
|
"${ED}"/Applications/Gentoo/Emacs${EMACS_SUFFIX#emacs}.app || die
|
||||||
|
elog "Emacs${EMACS_SUFFIX#emacs}.app is in ${EPREFIX}/Applications/Gentoo."
|
||||||
|
elog "You may want to copy or symlink it into /Applications by yourself."
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_preinst() {
|
||||||
|
# move Info dir file to correct name
|
||||||
|
local infodir=/usr/share/info/${EMACS_SUFFIX} f
|
||||||
|
if [[ -f ${ED}${infodir}/dir.orig ]]; then
|
||||||
|
mv "${ED}"${infodir}/dir{.orig,} || die "moving info dir failed"
|
||||||
|
elif [[ -d "${ED}"${infodir} ]]; then
|
||||||
|
# this should not happen in EAPI 4
|
||||||
|
ewarn "Regenerating Info directory index in ${infodir} ..."
|
||||||
|
rm -f "${ED}"${infodir}/dir{,.*}
|
||||||
|
for f in "${ED}"${infodir}/*; do
|
||||||
|
if [[ ${f##*/} != *-[0-9]* && -e ${f} ]]; then
|
||||||
|
install-info --info-dir="${ED}"${infodir} "${f}" \
|
||||||
|
|| die "install-info failed"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
elisp-site-regen
|
||||||
|
|
||||||
|
if use livecd; then
|
||||||
|
# force an update of the emacs symlink for the livecd/dvd,
|
||||||
|
# because some microemacs packages set it with USE=livecd
|
||||||
|
eselect emacs update
|
||||||
|
else
|
||||||
|
eselect emacs update ifunset
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use X; then
|
||||||
|
elog "You need to install some fonts for Emacs."
|
||||||
|
elog "Installing media-fonts/font-adobe-{75,100}dpi on the X server's"
|
||||||
|
elog "machine would satisfy basic Emacs requirements under X11."
|
||||||
|
elog "See also http://www.gentoo.org/proj/en/lisp/emacs/xft.xml"
|
||||||
|
elog "for how to enable anti-aliased fonts."
|
||||||
|
elog
|
||||||
|
fi
|
||||||
|
|
||||||
|
elog "You can set the version to be started by /usr/bin/emacs through"
|
||||||
|
elog "the Emacs eselect module, which also redirects man and info pages."
|
||||||
|
elog "Therefore, several Emacs versions can be installed at the same time."
|
||||||
|
elog "\"man emacs.eselect\" for details."
|
||||||
|
elog
|
||||||
|
elog "If you upgrade from a previous major version of Emacs, then it is"
|
||||||
|
elog "strongly recommended that you use app-admin/emacs-updater to rebuild"
|
||||||
|
elog "all byte-compiled elisp files of the installed Emacs packages."
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
elisp-site-regen
|
||||||
|
eselect emacs update ifunset
|
||||||
|
}
|
@ -0,0 +1,336 @@
|
|||||||
|
# Copyright 1999-2012 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs/emacs-24.1.ebuild,v 1.2 2012/06/10 18:12:08 ulm Exp $
|
||||||
|
|
||||||
|
EAPI=4
|
||||||
|
|
||||||
|
inherit autotools elisp-common eutils flag-o-matic multilib
|
||||||
|
|
||||||
|
DESCRIPTION="The extensible, customizable, self-documenting real-time display editor"
|
||||||
|
HOMEPAGE="http://www.gnu.org/software/emacs/"
|
||||||
|
SRC_URI="mirror://gnu/emacs/${P}.tar.bz2
|
||||||
|
mirror://gentoo/${P}-patches-1.tar.bz2"
|
||||||
|
|
||||||
|
LICENSE="GPL-3 FDL-1.3 BSD as-is MIT W3C unicode PSF-2"
|
||||||
|
SLOT="24"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
|
||||||
|
IUSE="alsa aqua athena dbus gconf gif gnutls gpm gsettings gtk gtk3 gzip-el hesiod imagemagick jpeg kerberos libxml2 livecd m17n-lib motif pax_kernel png selinux sound source svg tiff toolkit-scroll-bars wide-int X Xaw3d xft +xpm"
|
||||||
|
REQUIRED_USE="aqua? ( !X )"
|
||||||
|
|
||||||
|
RDEPEND="sys-libs/ncurses
|
||||||
|
>=app-admin/eselect-emacs-1.2
|
||||||
|
>=app-emacs/emacs-common-gentoo-1.3-r3[X?]
|
||||||
|
net-libs/liblockfile
|
||||||
|
hesiod? ( net-dns/hesiod )
|
||||||
|
kerberos? ( virtual/krb5 )
|
||||||
|
alsa? ( media-libs/alsa-lib )
|
||||||
|
gpm? ( sys-libs/gpm )
|
||||||
|
dbus? ( sys-apps/dbus )
|
||||||
|
gnutls? ( net-libs/gnutls )
|
||||||
|
libxml2? ( >=dev-libs/libxml2-2.2.0 )
|
||||||
|
selinux? ( sys-libs/libselinux )
|
||||||
|
X? (
|
||||||
|
x11-libs/libXmu
|
||||||
|
x11-libs/libXt
|
||||||
|
x11-misc/xbitmaps
|
||||||
|
gconf? ( >=gnome-base/gconf-2.26.2 )
|
||||||
|
gsettings? ( >=dev-libs/glib-2.28.6 )
|
||||||
|
gif? ( media-libs/giflib )
|
||||||
|
jpeg? ( virtual/jpeg )
|
||||||
|
png? ( >=media-libs/libpng-1.4:0 )
|
||||||
|
svg? ( >=gnome-base/librsvg-2.0 )
|
||||||
|
tiff? ( media-libs/tiff )
|
||||||
|
xpm? ( x11-libs/libXpm )
|
||||||
|
imagemagick? ( >=media-gfx/imagemagick-6.6.2 )
|
||||||
|
xft? (
|
||||||
|
media-libs/fontconfig
|
||||||
|
media-libs/freetype
|
||||||
|
x11-libs/libXft
|
||||||
|
m17n-lib? (
|
||||||
|
>=dev-libs/libotf-0.9.4
|
||||||
|
>=dev-libs/m17n-lib-1.5.1
|
||||||
|
)
|
||||||
|
)
|
||||||
|
gtk? (
|
||||||
|
gtk3? ( x11-libs/gtk+:3 )
|
||||||
|
!gtk3? ( x11-libs/gtk+:2 )
|
||||||
|
)
|
||||||
|
!gtk? (
|
||||||
|
Xaw3d? ( x11-libs/libXaw3d )
|
||||||
|
!Xaw3d? (
|
||||||
|
athena? ( x11-libs/libXaw )
|
||||||
|
!athena? ( motif? ( >=x11-libs/openmotif-2.3:0 ) )
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)"
|
||||||
|
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
alsa? ( virtual/pkgconfig )
|
||||||
|
dbus? ( virtual/pkgconfig )
|
||||||
|
gnutls? ( virtual/pkgconfig )
|
||||||
|
libxml2? ( virtual/pkgconfig )
|
||||||
|
X? ( virtual/pkgconfig )
|
||||||
|
gzip-el? ( app-arch/gzip )
|
||||||
|
pax_kernel? ( sys-apps/paxctl )"
|
||||||
|
|
||||||
|
RDEPEND="${RDEPEND}
|
||||||
|
!<app-editors/emacs-vcs-24.1.9999-r1"
|
||||||
|
|
||||||
|
EMACS_SUFFIX="emacs-${SLOT}"
|
||||||
|
SITEFILE="20${PN}-${SLOT}-gentoo.el"
|
||||||
|
# FULL_VERSION keeps the full version number, which is needed in
|
||||||
|
# order to determine some path information correctly for copy/move
|
||||||
|
# operations later on
|
||||||
|
FULL_VERSION="${PV%%_*}"
|
||||||
|
S="${WORKDIR}/emacs-${FULL_VERSION}"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
EPATCH_SUFFIX=patch epatch
|
||||||
|
epatch_user
|
||||||
|
|
||||||
|
if ! use alsa; then
|
||||||
|
# ALSA is detected even if not requested by its USE flag.
|
||||||
|
# Suppress it by supplying pkg-config with a wrong library name.
|
||||||
|
sed -i -e "/ALSA_MODULES=/s/alsa/DiSaBlEaLsA/" configure.in \
|
||||||
|
|| die "unable to sed configure.in"
|
||||||
|
fi
|
||||||
|
if ! use gzip-el; then
|
||||||
|
# Emacs' build system automatically detects the gzip binary and
|
||||||
|
# compresses el files. We don't want that so confuse it with a
|
||||||
|
# wrong binary name
|
||||||
|
sed -i -e "s/ gzip/ PrEvEnTcOmPrEsSiOn/" configure.in \
|
||||||
|
|| die "unable to sed configure.in"
|
||||||
|
fi
|
||||||
|
|
||||||
|
AT_M4DIR=m4 eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
strip-flags
|
||||||
|
|
||||||
|
if use sh; then
|
||||||
|
replace-flags "-O[1-9]" -O0 #262359
|
||||||
|
elif use ia64; then
|
||||||
|
replace-flags "-O[2-9]" -O1 #325373
|
||||||
|
else
|
||||||
|
replace-flags "-O[3-9]" -O2
|
||||||
|
fi
|
||||||
|
|
||||||
|
local myconf
|
||||||
|
|
||||||
|
if use alsa && ! use sound; then
|
||||||
|
einfo "Although sound USE flag is disabled you chose to have alsa,"
|
||||||
|
einfo "so sound is switched on anyway."
|
||||||
|
myconf="${myconf} --with-sound"
|
||||||
|
else
|
||||||
|
myconf="${myconf} $(use_with sound)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use X; then
|
||||||
|
myconf="${myconf} --with-x --without-ns"
|
||||||
|
myconf="${myconf} $(use_with gconf)"
|
||||||
|
myconf="${myconf} $(use_with gsettings)"
|
||||||
|
myconf="${myconf} $(use_with toolkit-scroll-bars)"
|
||||||
|
myconf="${myconf} $(use_with gif) $(use_with jpeg)"
|
||||||
|
myconf="${myconf} $(use_with png) $(use_with svg rsvg)"
|
||||||
|
myconf="${myconf} $(use_with tiff) $(use_with xpm)"
|
||||||
|
myconf="${myconf} $(use_with imagemagick)"
|
||||||
|
|
||||||
|
if use xft; then
|
||||||
|
myconf="${myconf} --with-xft"
|
||||||
|
myconf="${myconf} $(use_with m17n-lib libotf)"
|
||||||
|
myconf="${myconf} $(use_with m17n-lib m17n-flt)"
|
||||||
|
else
|
||||||
|
myconf="${myconf} --without-xft"
|
||||||
|
myconf="${myconf} --without-libotf --without-m17n-flt"
|
||||||
|
use m17n-lib && ewarn \
|
||||||
|
"USE flag \"m17n-lib\" has no effect if \"xft\" is not set."
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use gtk; then
|
||||||
|
einfo "Configuring to build with GIMP Toolkit (GTK+)"
|
||||||
|
myconf="${myconf} --with-x-toolkit=$(usev gtk3 || echo gtk)"
|
||||||
|
local f
|
||||||
|
for f in athena Xaw3d motif; do
|
||||||
|
use ${f} && ewarn "USE flag \"${f}\" ignored" \
|
||||||
|
"(superseded by \"gtk\")"
|
||||||
|
done
|
||||||
|
elif use athena || use Xaw3d; then
|
||||||
|
einfo "Configuring to build with Athena/Lucid toolkit"
|
||||||
|
myconf="${myconf} --with-x-toolkit=lucid $(use_with Xaw3d xaw3d)"
|
||||||
|
use motif && ewarn "USE flag \"motif\" ignored" \
|
||||||
|
"(superseded by \"athena\" or \"Xaw3d\")"
|
||||||
|
elif use motif; then
|
||||||
|
einfo "Configuring to build with Motif toolkit"
|
||||||
|
myconf="${myconf} --with-x-toolkit=motif"
|
||||||
|
else
|
||||||
|
einfo "Configuring to build with no toolkit"
|
||||||
|
myconf="${myconf} --with-x-toolkit=no"
|
||||||
|
fi
|
||||||
|
|
||||||
|
! use gtk && use gtk3 \
|
||||||
|
&& ewarn "USE flag \"gtk3\" has no effect if \"gtk\" is not set."
|
||||||
|
elif use aqua; then
|
||||||
|
einfo "Configuring to build with Cocoa support"
|
||||||
|
myconf="${myconf} --with-ns --disable-ns-self-contained"
|
||||||
|
myconf="${myconf} --without-x"
|
||||||
|
else
|
||||||
|
myconf="${myconf} --without-x --without-ns"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# According to configure, this option is only used for GNU/Linux
|
||||||
|
# (x86_64 and s390). For Gentoo Prefix we have to explicitly spell
|
||||||
|
# out the location because $(get_libdir) does not necessarily return
|
||||||
|
# something that matches the host OS's libdir naming (e.g. RHEL).
|
||||||
|
local crtdir=$($(tc-getCC) -print-file-name=crt1.o)
|
||||||
|
crtdir=${crtdir%/*}
|
||||||
|
|
||||||
|
econf \
|
||||||
|
--program-suffix=-${EMACS_SUFFIX} \
|
||||||
|
--infodir="${EPREFIX}"/usr/share/info/${EMACS_SUFFIX} \
|
||||||
|
--enable-locallisppath="${EPREFIX}/etc/emacs:${EPREFIX}${SITELISP}" \
|
||||||
|
--with-crt-dir="${crtdir}" \
|
||||||
|
--with-gameuser="${GAMES_USER_DED:-games}" \
|
||||||
|
--without-compress-info \
|
||||||
|
--disable-maintainer-mode \
|
||||||
|
$(use_with hesiod) \
|
||||||
|
$(use_with kerberos) $(use_with kerberos kerberos5) \
|
||||||
|
$(use_with gpm) \
|
||||||
|
$(use_with dbus) \
|
||||||
|
$(use_with gnutls) \
|
||||||
|
$(use_with libxml2 xml2) \
|
||||||
|
$(use_with selinux) \
|
||||||
|
$(use_with wide-int) \
|
||||||
|
${myconf}
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
export SANDBOX_ON=0 # for the unbelievers, see Bug #131505
|
||||||
|
# set last component of emacs-version to (package revision + 1)
|
||||||
|
touch src/emacs-${FULL_VERSION}.${PR#r}
|
||||||
|
emake CC="$(tc-getCC)"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install () {
|
||||||
|
emake install DESTDIR="${D}"
|
||||||
|
|
||||||
|
rm "${ED}"/usr/bin/emacs-${FULL_VERSION}-${EMACS_SUFFIX} \
|
||||||
|
|| die "removing duplicate emacs executable failed"
|
||||||
|
mv "${ED}"/usr/bin/emacs-${EMACS_SUFFIX} "${ED}"/usr/bin/${EMACS_SUFFIX} \
|
||||||
|
|| die "moving Emacs executable failed"
|
||||||
|
|
||||||
|
# move man pages to the correct place
|
||||||
|
local m
|
||||||
|
for m in "${ED}"/usr/share/man/man1/* ; do
|
||||||
|
mv "${m}" "${m%.1}-${EMACS_SUFFIX}.1" || die "mv man failed"
|
||||||
|
done
|
||||||
|
|
||||||
|
# move info dir to avoid collisions with the dir file generated by portage
|
||||||
|
mv "${ED}"/usr/share/info/${EMACS_SUFFIX}/dir{,.orig} \
|
||||||
|
|| die "moving info dir failed"
|
||||||
|
touch "${ED}"/usr/share/info/${EMACS_SUFFIX}/.keepinfodir
|
||||||
|
docompress -x /usr/share/info/${EMACS_SUFFIX}/dir.orig
|
||||||
|
|
||||||
|
# avoid collision between slots, see bug #169033 e.g.
|
||||||
|
rm "${ED}"/usr/share/emacs/site-lisp/subdirs.el
|
||||||
|
rm -rf "${ED}"/usr/share/{applications,icons}
|
||||||
|
rm -rf "${ED}"/var
|
||||||
|
|
||||||
|
# remove unused <version>/site-lisp dir
|
||||||
|
rm -rf "${ED}"/usr/share/emacs/${FULL_VERSION}/site-lisp
|
||||||
|
|
||||||
|
local c=";;"
|
||||||
|
if use source; then
|
||||||
|
insinto /usr/share/emacs/${FULL_VERSION}/src
|
||||||
|
# This is not meant to install all the source -- just the
|
||||||
|
# C source you might find via find-function
|
||||||
|
doins src/*.{c,h,m}
|
||||||
|
doins -r src/{m,s}
|
||||||
|
rm "${ED}"/usr/share/emacs/${FULL_VERSION}/src/{m,s}/README
|
||||||
|
c=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
sed 's/^X//' >"${T}/${SITEFILE}" <<-EOF
|
||||||
|
X
|
||||||
|
;;; ${PN}-${SLOT} site-lisp configuration
|
||||||
|
X
|
||||||
|
(when (string-match "\\\\\`${FULL_VERSION//./\\\\.}\\\\>" emacs-version)
|
||||||
|
X ${c}(setq find-function-C-source-directory
|
||||||
|
X ${c} "${EPREFIX}/usr/share/emacs/${FULL_VERSION}/src")
|
||||||
|
X (let ((path (getenv "INFOPATH"))
|
||||||
|
X (dir "${EPREFIX}/usr/share/info/${EMACS_SUFFIX}")
|
||||||
|
X (re "\\\\\`${EPREFIX}/usr/share/info\\\\>"))
|
||||||
|
X (and path
|
||||||
|
X ;; move Emacs Info dir before anything else in /usr/share/info
|
||||||
|
X (let* ((p (cons nil (split-string path ":" t))) (q p))
|
||||||
|
X (while (and (cdr q) (not (string-match re (cadr q))))
|
||||||
|
X (setq q (cdr q)))
|
||||||
|
X (setcdr q (cons dir (delete dir (cdr q))))
|
||||||
|
X (setq Info-directory-list (prune-directory-list (cdr p)))))))
|
||||||
|
EOF
|
||||||
|
elisp-site-file-install "${T}/${SITEFILE}" || die
|
||||||
|
|
||||||
|
dodoc README BUGS
|
||||||
|
|
||||||
|
if use aqua; then
|
||||||
|
dodir /Applications/Gentoo
|
||||||
|
rm -rf "${ED}"/Applications/Gentoo/Emacs${EMACS_SUFFIX#emacs}.app
|
||||||
|
mv nextstep/Emacs.app \
|
||||||
|
"${ED}"/Applications/Gentoo/Emacs${EMACS_SUFFIX#emacs}.app || die
|
||||||
|
elog "Emacs${EMACS_SUFFIX#emacs}.app is in ${EPREFIX}/Applications/Gentoo."
|
||||||
|
elog "You may want to copy or symlink it into /Applications by yourself."
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_preinst() {
|
||||||
|
# move Info dir file to correct name
|
||||||
|
local infodir=/usr/share/info/${EMACS_SUFFIX} f
|
||||||
|
if [[ -f ${ED}${infodir}/dir.orig ]]; then
|
||||||
|
mv "${ED}"${infodir}/dir{.orig,} || die "moving info dir failed"
|
||||||
|
elif [[ -d "${ED}"${infodir} ]]; then
|
||||||
|
# this should not happen in EAPI 4
|
||||||
|
ewarn "Regenerating Info directory index in ${infodir} ..."
|
||||||
|
rm -f "${ED}"${infodir}/dir{,.*}
|
||||||
|
for f in "${ED}"${infodir}/*; do
|
||||||
|
if [[ ${f##*/} != *-[0-9]* && -e ${f} ]]; then
|
||||||
|
install-info --info-dir="${ED}"${infodir} "${f}" \
|
||||||
|
|| die "install-info failed"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
elisp-site-regen
|
||||||
|
|
||||||
|
if use livecd; then
|
||||||
|
# force an update of the emacs symlink for the livecd/dvd,
|
||||||
|
# because some microemacs packages set it with USE=livecd
|
||||||
|
eselect emacs update
|
||||||
|
else
|
||||||
|
eselect emacs update ifunset
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use X; then
|
||||||
|
elog "You need to install some fonts for Emacs."
|
||||||
|
elog "Installing media-fonts/font-adobe-{75,100}dpi on the X server's"
|
||||||
|
elog "machine would satisfy basic Emacs requirements under X11."
|
||||||
|
elog "See also http://www.gentoo.org/proj/en/lisp/emacs/xft.xml"
|
||||||
|
elog "for how to enable anti-aliased fonts."
|
||||||
|
elog
|
||||||
|
fi
|
||||||
|
|
||||||
|
elog "You can set the version to be started by /usr/bin/emacs through"
|
||||||
|
elog "the Emacs eselect module, which also redirects man and info pages."
|
||||||
|
elog "Therefore, several Emacs versions can be installed at the same time."
|
||||||
|
elog "\"man emacs.eselect\" for details."
|
||||||
|
elog
|
||||||
|
elog "If you upgrade from a previous major version of Emacs, then it is"
|
||||||
|
elog "strongly recommended that you use app-admin/emacs-updater to rebuild"
|
||||||
|
elog "all byte-compiled elisp files of the installed Emacs packages."
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
elisp-site-regen
|
||||||
|
eselect emacs update ifunset
|
||||||
|
}
|
@ -0,0 +1,136 @@
|
|||||||
|
# Copyright 1999-2012 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/app-emacs/emacs-common-gentoo/emacs-common-gentoo-1.3-r3.ebuild,v 1.1 2012/06/10 14:24:55 ulm Exp $
|
||||||
|
|
||||||
|
EAPI=4
|
||||||
|
|
||||||
|
inherit elisp-common eutils fdo-mime gnome2-utils user
|
||||||
|
|
||||||
|
DESCRIPTION="Common files needed by all GNU Emacs versions"
|
||||||
|
HOMEPAGE="http://www.gentoo.org/proj/en/lisp/emacs/"
|
||||||
|
SRC_URI="mirror://gentoo/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="GPL-3"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
|
||||||
|
IUSE="games X"
|
||||||
|
|
||||||
|
PDEPEND="virtual/emacs"
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
if use games && [[ -z $(egetent passwd "${GAMES_USER_DED:-games}") ]]
|
||||||
|
then
|
||||||
|
enewgroup "${GAMES_GROUP:-games}" 35
|
||||||
|
enewuser "${GAMES_USER_DED:-games}" 36 /bin/bash \
|
||||||
|
"${GAMES_PREFIX:-/usr/games}" "${GAMES_GROUP:-games}"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
insinto "${SITELISP}"
|
||||||
|
doins subdirs.el
|
||||||
|
|
||||||
|
keepdir /etc/emacs
|
||||||
|
insinto /etc/emacs
|
||||||
|
doins site-start.el
|
||||||
|
|
||||||
|
if use games; then
|
||||||
|
keepdir /var/lib/games/emacs
|
||||||
|
fowners "${GAMES_USER_DED:-games}" /var/lib/games/emacs
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use X; then
|
||||||
|
local i
|
||||||
|
domenu emacs.desktop emacsclient.desktop || die
|
||||||
|
|
||||||
|
pushd icons
|
||||||
|
newicon sink.png emacs-sink.png || die
|
||||||
|
newicon emacs_48.png emacs.png || die
|
||||||
|
newicon emacs22_48.png emacs22.png || die
|
||||||
|
for i in 16 24 32 48 128; do
|
||||||
|
insinto /usr/share/icons/hicolor/${i}x${i}/apps
|
||||||
|
newins emacs_${i}.png emacs.png
|
||||||
|
[[ ${i} -ne 128 ]] && newins emacs22_${i}.png emacs22.png
|
||||||
|
done
|
||||||
|
insinto /usr/share/icons/hicolor/scalable/apps
|
||||||
|
doins emacs.svg
|
||||||
|
popd
|
||||||
|
|
||||||
|
gnome2_icon_savelist
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
site-start-modified-p() {
|
||||||
|
case $(cksum <"${EROOT}${SITELISP}/site-start.el") in
|
||||||
|
# checksums of auto-generated site-start.el files
|
||||||
|
"2098727038 349") return 1 ;; # elisp-common.eclass
|
||||||
|
"3626264063 355") return 1 ;; # emacs-common-gentoo-1.0 (cvs rev 1.1)
|
||||||
|
"3738455534 394") return 1 ;; # emacs-common-gentoo-1.0 (cvs rev 1.6)
|
||||||
|
"4199862847 394") return 1 ;; # emacs-common-gentoo-1.1
|
||||||
|
"2547348044 394") return 1 ;; # emacs-common-gentoo-1.2
|
||||||
|
"2214952934 397") return 1 ;; # emacs-common-gentoo-1.2-r1
|
||||||
|
"3917799317 397") return 1 ;; # emacs-common-gentoo-1.2-r2
|
||||||
|
*) return 0 ;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_preinst() {
|
||||||
|
if use games; then
|
||||||
|
local f
|
||||||
|
for f in /var/lib/games/emacs/{snake,tetris}-scores; do
|
||||||
|
if [[ -e ${EROOT}${f} ]]; then
|
||||||
|
cp "${EROOT}${f}" "${ED}${f}" || die
|
||||||
|
fi
|
||||||
|
touch "${ED}${f}" || die
|
||||||
|
chown "${GAMES_USER_DED:-games}" "${ED}${f}" || die
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
if use X; then
|
||||||
|
fdo-mime_desktop_database_update
|
||||||
|
gnome2_icon_cache_update
|
||||||
|
fi
|
||||||
|
|
||||||
|
# make sure that site-gentoo.el exists since site-start.el requires it
|
||||||
|
elisp-site-regen
|
||||||
|
|
||||||
|
local line
|
||||||
|
while read line; do elog "${line:- }"; done <<-EOF
|
||||||
|
All site initialisation for Gentoo-installed packages is added to
|
||||||
|
${SITELISP}/site-gentoo.el. In order for this site
|
||||||
|
initialisation to be loaded for all users automatically, a default
|
||||||
|
site startup file /etc/emacs/site-start.el is installed. You are
|
||||||
|
responsible for maintenance of this file.
|
||||||
|
|
||||||
|
Alternatively, individual users can add the following command:
|
||||||
|
|
||||||
|
(require 'site-gentoo)
|
||||||
|
|
||||||
|
to their ~/.emacs initialisation files, or, for greater flexibility,
|
||||||
|
users may load single package-specific initialisation files from
|
||||||
|
${SITELISP}/site-gentoo.d/.
|
||||||
|
EOF
|
||||||
|
|
||||||
|
if [[ -e ${EROOT}${SITELISP}/site-start.el ]]; then
|
||||||
|
elog
|
||||||
|
ewarn "The location of the site startup file for Emacs has changed to"
|
||||||
|
ewarn "/etc/emacs/site-start.el."
|
||||||
|
if site-start-modified-p; then
|
||||||
|
ewarn "If your site-start.el file contains your own customisation,"
|
||||||
|
ewarn "you should move it to the new file. In any case, you should"
|
||||||
|
ewarn "remove the old ${SITELISP}/site-start.el file."
|
||||||
|
else
|
||||||
|
ewarn "Removing the old ${SITELISP}/site-start.el file."
|
||||||
|
rm -f "${EROOT}${SITELISP}/site-start.el"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
if use X; then
|
||||||
|
fdo-mime_desktop_database_update
|
||||||
|
gnome2_icon_cache_update
|
||||||
|
fi
|
||||||
|
}
|
@ -1 +1,2 @@
|
|||||||
DIST gtk-sunlight_0.2.1.orig.tar.gz 1474955 RMD160 7cb638195421b2077cc9a2ddcec34189d0a26411 SHA1 484173cb60590e58d88ffbd402d903b9a8da75c1 SHA256 536a28adf9665ac77c9af4d2afb37bf64c09023dd475d5f6d8ad844908457be4
|
DIST gtk-sunlight_0.2.1.orig.tar.gz 1474955 RMD160 7cb638195421b2077cc9a2ddcec34189d0a26411 SHA1 484173cb60590e58d88ffbd402d903b9a8da75c1 SHA256 536a28adf9665ac77c9af4d2afb37bf64c09023dd475d5f6d8ad844908457be4
|
||||||
|
DIST gtk-sunlight_0.4.2.orig.tar.gz 562581 RMD160 89908837fbd89555e0b83c217911e694bc61491d SHA1 3c0cb3e06f12ea2b22d7bebe29cb8b066071153e SHA256 b661fb74b93b194fec9761ffb64594c3b4bf02fced1a51348e3ff64959883f45
|
||||||
|
@ -0,0 +1,26 @@
|
|||||||
|
# Copyright 1999-2012 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/app-misc/gtk-sunlight/gtk-sunlight-0.4.2.ebuild,v 1.1 2012/06/11 08:28:29 xmw Exp $
|
||||||
|
|
||||||
|
EAPI=4
|
||||||
|
|
||||||
|
inherit toolchain-funcs
|
||||||
|
|
||||||
|
DESCRIPTION="Real-time Sunlight Wallpaper"
|
||||||
|
HOMEPAGE="http://realtimesunlightwallpaper.weebly.com/"
|
||||||
|
SRC_URI="http://ppa.launchpad.net/realtime.sunlight.wallpaper/rsw/ubuntu/pool/main/g/${PN}/${PN}_${PV}.orig.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="GPL-1"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
RDEPEND="dev-libs/glib:2
|
||||||
|
x11-libs/gtk+:2"
|
||||||
|
DEPEND="${REPEND}
|
||||||
|
virtual/pkgconfig"
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
tc-export CC
|
||||||
|
default
|
||||||
|
}
|
@ -1 +1,2 @@
|
|||||||
DIST repo-commit-0.3.2.tar.bz2 52948 RMD160 2f36c56598e6633a5bf7bc487ae4e7fd947ac080 SHA1 5fd5a53b3ab200c6f78350882500a2e552f62f38 SHA256 567862bd7f66a1e874420102f8701facf7e0b58f7afddb9d8937b359b0c5d15b
|
DIST repo-commit-0.3.2.tar.bz2 52948 RMD160 2f36c56598e6633a5bf7bc487ae4e7fd947ac080 SHA1 5fd5a53b3ab200c6f78350882500a2e552f62f38 SHA256 567862bd7f66a1e874420102f8701facf7e0b58f7afddb9d8937b359b0c5d15b
|
||||||
|
DIST repo-commit-0.4.tar.bz2 54122 RMD160 3b8cbb0265bfa1f97f98161f1b52ebbfe8c32925 SHA1 74e6d44ea4adef9407781d4cc33cab6ac449fd91 SHA256 63dc29d7f485df0966ed0b73cf61f40a1892953f5b3355aa11859b395b736d60
|
||||||
|
@ -0,0 +1,25 @@
|
|||||||
|
# Copyright 1999-2012 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/app-portage/repo-commit/repo-commit-0.4.ebuild,v 1.1 2012/06/10 14:04:29 mgorny Exp $
|
||||||
|
|
||||||
|
EAPI=4
|
||||||
|
|
||||||
|
inherit autotools-utils
|
||||||
|
|
||||||
|
DESCRIPTION="A repository commit helper"
|
||||||
|
HOMEPAGE="https://github.com/mgorny/repo-commit/"
|
||||||
|
SRC_URI="mirror://github/mgorny/${PN}/${P}.tar.bz2"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
|| (
|
||||||
|
>=sys-apps/portage-2.2.0_alpha86
|
||||||
|
( >=sys-apps/portage-2.1.10.30
|
||||||
|
<sys-apps/portage-2.2.0_alpha )
|
||||||
|
app-portage/gentoolkit-dev
|
||||||
|
)
|
||||||
|
sys-apps/portage"
|
@ -1,2 +1,2 @@
|
|||||||
DIST autojump_v13.tar.gz 22723 RMD160 cbcc847672b29f7d59fd4e5785105595eeb29e1b SHA1 c8efd7057de7550287872769821ceba5f9e7c398 SHA256 020ef781b30f8cbe4f183f2ccadac720e3f747e82924aaa4b95da01d76cc2153
|
DIST autojump-20.9.tar.gz 32146 RMD160 cad4650a97c38af3dc1d8b857413473de252f248 SHA1 d96ad28d11eee6a8c8e9b4f06948f38b1f15d965 SHA256 678182dcd2854f096e3e468dfb9006ffedb2a178ae927dbc822789eb8107f5aa
|
||||||
DIST autojump_v14.tar.gz 23425 RMD160 374baa11bc379d42733e281d3fae56517219468e SHA1 a80f0d81e88c0a286def5aa8365db5c2c1b39f2e SHA256 8b60351667f12ae2cd8bb7fb20f2871542d3b27e42bf0fbf9428a5f6b2ba3543
|
DIST autojump_v14.tar.gz 23425 RMD160 374baa11bc379d42733e281d3fae56517219468e SHA1 a80f0d81e88c0a286def5aa8365db5c2c1b39f2e SHA256 8b60351667f12ae2cd8bb7fb20f2871542d3b27e42bf0fbf9428a5f6b2ba3543
|
||||||
|
@ -1,55 +0,0 @@
|
|||||||
# Copyright 1999-2010 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/app-shells/autojump/autojump-13.ebuild,v 1.1 2010/10/26 22:15:00 xmw Exp $
|
|
||||||
|
|
||||||
EAPI=3
|
|
||||||
|
|
||||||
PYTHON_DEPEND="2"
|
|
||||||
|
|
||||||
inherit python
|
|
||||||
|
|
||||||
DESCRIPTION="change directory command that learns"
|
|
||||||
HOMEPAGE="http://github.com/joelthelion/autojump"
|
|
||||||
MY_P=${PN}_v${PV}
|
|
||||||
SRC_URI="http://github.com/downloads/joelthelion/${PN}/${MY_P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="GPL-3"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
IUSE="bash-completion gtk zsh-completion"
|
|
||||||
|
|
||||||
RDEPEND="gtk? ( dev-python/pygtk:2 )
|
|
||||||
bash-completion? ( >=app-shells/bash-4 )
|
|
||||||
zsh-completion? ( app-shells/zsh app-shells/zsh-completion )"
|
|
||||||
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
python_convert_shebangs -r 2 .
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dobin autojump || die
|
|
||||||
|
|
||||||
if use gtk ; then
|
|
||||||
dobin jumpapplet || die
|
|
||||||
insinto /usr/share/${PN}
|
|
||||||
doins icon.png || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
insinto /etc/profile.d
|
|
||||||
doins ${PN}.sh || die
|
|
||||||
|
|
||||||
if use bash-completion ; then
|
|
||||||
doins ${PN}.bash || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use zsh-completion ; then
|
|
||||||
doins ${PN}.zsh || die
|
|
||||||
insinto /usr/share/zsh/site-functions
|
|
||||||
doins _j || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
doman ${PN}.1 || die
|
|
||||||
dodoc README.rst || die
|
|
||||||
}
|
|
@ -0,0 +1,81 @@
|
|||||||
|
# Copyright 1999-2012 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/app-shells/autojump/autojump-20.9.ebuild,v 1.1 2012/06/11 06:54:34 xmw Exp $
|
||||||
|
|
||||||
|
EAPI=4
|
||||||
|
|
||||||
|
PYTHON_DEPEND="python? *"
|
||||||
|
SUPPORT_PYTHON_ABIS="1"
|
||||||
|
|
||||||
|
inherit python
|
||||||
|
|
||||||
|
DESCRIPTION="change directory command that learns"
|
||||||
|
HOMEPAGE="http://github.com/joelthelion/autojump"
|
||||||
|
SRC_URI="https://github.com/joelthelion/${PN}/tarball/release-v${PV/./-} -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="GPL-3"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE="bash-completion gtk python test zsh-completion"
|
||||||
|
|
||||||
|
RDEPEND="gtk? ( dev-python/pygtk:2 )
|
||||||
|
bash-completion? ( >=app-shells/bash-4 )
|
||||||
|
zsh-completion? ( app-shells/zsh app-shells/zsh-completion )"
|
||||||
|
DEPEND="test? ( dev-lang/python )"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
default
|
||||||
|
mv *-${PN}-* ${P} || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
#https://github.com/joelthelion/autojump/issues/129
|
||||||
|
sed -e '/def test_db_load_migrate/,/autojump.CONFIG_DIR = ORIG_CONFIG_DIR/d' \
|
||||||
|
-i tests/runtests.py || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
#https://github.com/joelthelion/autojump/issues/130
|
||||||
|
mkdir -p "${HOME}"/.local/share/autojump || die
|
||||||
|
|
||||||
|
${PYTHON} ./tests/runtests.py
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() { :; }
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dobin bin/autojump
|
||||||
|
|
||||||
|
if use gtk ; then
|
||||||
|
dobin bin/jumpapplet
|
||||||
|
insinto /usr/share/${PN}
|
||||||
|
doins bin/icon.png
|
||||||
|
fi
|
||||||
|
|
||||||
|
insinto /etc/profile.d
|
||||||
|
doins bin/${PN}.sh
|
||||||
|
|
||||||
|
if use bash-completion ; then
|
||||||
|
doins bin/${PN}.bash
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use zsh-completion ; then
|
||||||
|
doins bin/${PN}.zsh
|
||||||
|
insinto /usr/share/zsh/site-functions
|
||||||
|
doins bin/_j
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use python ; then
|
||||||
|
install_python() {
|
||||||
|
insinto "$(python_get_sitedir)"
|
||||||
|
doins tools/autojump_ipython.py
|
||||||
|
}
|
||||||
|
python_execute_function -q install_python
|
||||||
|
|
||||||
|
einfo "This tool provides \"j\" for ipython, please add"
|
||||||
|
einfo "\"imporrt autojump_ipython\" to your ipy_user_conf.py."
|
||||||
|
fi
|
||||||
|
|
||||||
|
doman docs/${PN}.1
|
||||||
|
dodoc README.md
|
||||||
|
}
|
@ -1 +1,2 @@
|
|||||||
DIST libwps-0.2.6.tar.xz 288712 RMD160 bda88ef9de4e6e710efa745c20434fda63601120 SHA1 89696592cfe51b89fecabb3b64fe6c6a8b4ecb39 SHA256 622813b89755603a13b8e39ce5e0ff013193b7b9610081e58bdd282ef7f42162
|
DIST libwps-0.2.6.tar.xz 288712 RMD160 bda88ef9de4e6e710efa745c20434fda63601120 SHA1 89696592cfe51b89fecabb3b64fe6c6a8b4ecb39 SHA256 622813b89755603a13b8e39ce5e0ff013193b7b9610081e58bdd282ef7f42162
|
||||||
|
DIST libwps-0.2.7.tar.xz 345148 RMD160 1025c875035e446191e6e5b0200326bdf6902eb6 SHA1 d26cbec758be1b555ef48fc73ef87186126c8d74 SHA256 07b8e6ba6dd327996638cef886d3d510b1438ab0a374dfeeda168244f630b304
|
||||||
|
@ -0,0 +1,39 @@
|
|||||||
|
# Copyright 1999-2012 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/app-text/libwps/libwps-0.2.7.ebuild,v 1.3 2012/06/11 08:41:15 scarabeus Exp $
|
||||||
|
|
||||||
|
EAPI=4
|
||||||
|
|
||||||
|
inherit base
|
||||||
|
|
||||||
|
DESCRIPTION="Microsoft Works file word processor format import filter library"
|
||||||
|
HOMEPAGE="http://libwps.sourceforge.net/"
|
||||||
|
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz"
|
||||||
|
|
||||||
|
LICENSE="LGPL-2.1"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
IUSE="doc debug static-libs"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
app-text/libwpd:0.9
|
||||||
|
dev-libs/boost
|
||||||
|
"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
virtual/pkgconfig
|
||||||
|
doc? ( app-doc/doxygen )
|
||||||
|
"
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
econf \
|
||||||
|
--disable-werror \
|
||||||
|
$(use_enable static-libs static) \
|
||||||
|
--docdir=/usr/share/doc/${PF} \
|
||||||
|
$(use_with doc docs) \
|
||||||
|
$(use_enable debug)
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
default
|
||||||
|
find "${ED}" -name '*.la' -delete
|
||||||
|
}
|
@ -0,0 +1,25 @@
|
|||||||
|
# HG changeset patch
|
||||||
|
# User Andrew John Hughes <ahughes@redhat.com>
|
||||||
|
# Date 1338297380 -3600
|
||||||
|
# Node ID fb4e64ae06a31c878cc711579fe87a6f626f73fb
|
||||||
|
# Parent 2c3c929e038c6c64d79ecf98005f5fd2f4d0f37d
|
||||||
|
Don't add a suffix for building the default, IcedTea.
|
||||||
|
|
||||||
|
2012-05-25 Andrew John Hughes <ahughes@redhat.com>
|
||||||
|
|
||||||
|
* Makefile.am:
|
||||||
|
(versioning): Don't add a suffix if building
|
||||||
|
the default project, 'icedtea'.
|
||||||
|
|
||||||
|
diff --git a/Makefile.am b/Makefile.am
|
||||||
|
--- a/Makefile.am
|
||||||
|
+++ b/Makefile.am
|
||||||
|
@@ -1435,7 +1435,7 @@
|
||||||
|
echo "DISTRO_PACKAGE_VERSION=$(PKGVERSION)" \
|
||||||
|
>>openjdk/jdk/make/common/shared/Defs.gmk ;
|
||||||
|
endif
|
||||||
|
- if test x"$(PROJECT_NAME)" != "xjdk7"; then \
|
||||||
|
+ if test x"$(PROJECT_NAME)" != "xjdk7" && test x"$(PROJECT_NAME)" != "xicedtea"; then \
|
||||||
|
proj_suffix="-$(PROJECT_NAME)"; \
|
||||||
|
fi ; \
|
||||||
|
if test x"$(VERSION_SUFFIX)" != "x"; then \
|
@ -0,0 +1,334 @@
|
|||||||
|
# Copyright 1999-2012 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/dev-java/icedtea/icedtea-7.2.2.ebuild,v 1.1 2012/06/10 13:56:19 sera Exp $
|
||||||
|
# Build written by Andrew John Hughes (gnu_andrew@member.fsf.org)
|
||||||
|
|
||||||
|
# *********************************************************
|
||||||
|
# * IF YOU CHANGE THIS EBUILD, CHANGE ICEDTEA-6.* AS WELL *
|
||||||
|
# *********************************************************
|
||||||
|
|
||||||
|
EAPI="4"
|
||||||
|
|
||||||
|
inherit autotools java-pkg-2 java-vm-2 pax-utils prefix versionator virtualx
|
||||||
|
|
||||||
|
ICEDTEA_VER=$(get_version_component_range 2-)
|
||||||
|
ICEDTEA_PKG=icedtea-${ICEDTEA_VER}
|
||||||
|
OPENJDK_TARBALL="49a6fc8f712f.tar.gz"
|
||||||
|
CORBA_TARBALL="3231f3e9c517.tar.gz"
|
||||||
|
HOTSPOT_TARBALL="bfe5efd70bce.tar.gz"
|
||||||
|
JAXP_TARBALL="0036fe6fe7dc.tar.gz"
|
||||||
|
JAXWS_TARBALL="abfb890c262a.tar.gz"
|
||||||
|
JDK_TARBALL="839d0155f7cc.tar.gz"
|
||||||
|
LANGTOOLS_TARBALL="f855bdb37537.tar.gz"
|
||||||
|
JAMVM_TARBALL="jamvm-4617da717ecb05654ea5bb9572338061106a414d.tar.gz"
|
||||||
|
|
||||||
|
DESCRIPTION="A harness to build OpenJDK using Free Software build tools and dependencies"
|
||||||
|
HOMEPAGE="http://icedtea.classpath.org"
|
||||||
|
SRC_URI="
|
||||||
|
http://icedtea.classpath.org/download/source/${ICEDTEA_PKG}.tar.gz
|
||||||
|
http://icedtea.classpath.org/hg/release/icedtea7-forest-${ICEDTEA_VER}/archive/${OPENJDK_TARBALL}
|
||||||
|
http://icedtea.classpath.org/hg/release/icedtea7-forest-${ICEDTEA_VER}/corba/archive/${CORBA_TARBALL}
|
||||||
|
http://icedtea.classpath.org/hg/release/icedtea7-forest-${ICEDTEA_VER}/jaxp/archive/${JAXP_TARBALL}
|
||||||
|
http://icedtea.classpath.org/hg/release/icedtea7-forest-${ICEDTEA_VER}/jaxws/archive/${JAXWS_TARBALL}
|
||||||
|
http://icedtea.classpath.org/hg/release/icedtea7-forest-${ICEDTEA_VER}/jdk/archive/${JDK_TARBALL}
|
||||||
|
http://icedtea.classpath.org/hg/release/icedtea7-forest-${ICEDTEA_VER}/hotspot/archive/${HOTSPOT_TARBALL}
|
||||||
|
http://icedtea.classpath.org/hg/release/icedtea7-forest-${ICEDTEA_VER}/langtools/archive/${LANGTOOLS_TARBALL}
|
||||||
|
!amd64? ( !sparc? ( !x86? (
|
||||||
|
http://icedtea.classpath.org/download/drops/jamvm/${JAMVM_TARBALL}
|
||||||
|
) ) )"
|
||||||
|
|
||||||
|
LICENSE="Apache-1.1 Apache-2.0 GPL-1 GPL-2 GPL-2-with-linking-exception LGPL-2 MPL-1.0 MPL-1.1 public-domain W3C"
|
||||||
|
SLOT="7"
|
||||||
|
KEYWORDS="~amd64 ~ia64 ~x86"
|
||||||
|
|
||||||
|
IUSE="+X +alsa cjk +cups debug doc examples javascript +jbootstrap +nsplugin
|
||||||
|
+nss pax_kernel pulseaudio +source systemtap test +webstart"
|
||||||
|
|
||||||
|
# Ideally the following were optional at build time.
|
||||||
|
ALSA_COMMON_DEP="
|
||||||
|
>=media-libs/alsa-lib-1.0"
|
||||||
|
CUPS_COMMON_DEP="
|
||||||
|
>=net-print/cups-1.2.12"
|
||||||
|
X_COMMON_DEP="
|
||||||
|
>=dev-libs/atk-1.30.0
|
||||||
|
>=dev-libs/glib-2.26
|
||||||
|
media-libs/fontconfig
|
||||||
|
>=media-libs/freetype-2.3.5
|
||||||
|
>=x11-libs/cairo-1.8.8
|
||||||
|
x11-libs/gdk-pixbuf:2
|
||||||
|
>=x11-libs/gtk+-2.8:2
|
||||||
|
>=x11-libs/libX11-1.1.3
|
||||||
|
>=x11-libs/libXext-1.1.1
|
||||||
|
>=x11-libs/libXi-1.1.3
|
||||||
|
>=x11-libs/libXrender-0.9.4
|
||||||
|
>=x11-libs/libXtst-1.0.3
|
||||||
|
>=x11-libs/pango-1.24.5"
|
||||||
|
X_DEPEND="
|
||||||
|
>=x11-libs/libXau-1.0.3
|
||||||
|
>=x11-libs/libXdmcp-1.0.2
|
||||||
|
>=x11-libs/libXinerama-1.0.2
|
||||||
|
>=x11-libs/libXp-1.0.0
|
||||||
|
x11-proto/inputproto
|
||||||
|
>=x11-proto/xextproto-7.1.1
|
||||||
|
x11-proto/xineramaproto
|
||||||
|
x11-proto/xproto"
|
||||||
|
|
||||||
|
COMMON_DEP="
|
||||||
|
>=media-libs/giflib-4.1.6
|
||||||
|
media-libs/lcms:2
|
||||||
|
>=media-libs/libpng-1.2
|
||||||
|
>=sys-libs/zlib-1.2.3
|
||||||
|
virtual/jpeg
|
||||||
|
javascript? ( dev-java/rhino:1.6 )
|
||||||
|
nss? ( >=dev-libs/nss-3.12.5-r1 )
|
||||||
|
pulseaudio? ( >=media-sound/pulseaudio-0.9.11 )
|
||||||
|
systemtap? ( >=dev-util/systemtap-1 )"
|
||||||
|
|
||||||
|
# cups is needed for X. #390945 #390975
|
||||||
|
RDEPEND="${COMMON_DEP}
|
||||||
|
!dev-java/icedtea:0
|
||||||
|
X? (
|
||||||
|
${CUPS_COMMON_DEP}
|
||||||
|
${X_COMMON_DEP}
|
||||||
|
media-fonts/dejavu
|
||||||
|
cjk? (
|
||||||
|
media-fonts/arphicfonts
|
||||||
|
media-fonts/baekmuk-fonts
|
||||||
|
media-fonts/lklug
|
||||||
|
media-fonts/lohit-fonts
|
||||||
|
media-fonts/sazanami
|
||||||
|
)
|
||||||
|
)
|
||||||
|
alsa? ( ${ALSA_COMMON_DEP} )
|
||||||
|
cups? ( ${CUPS_COMMON_DEP} )"
|
||||||
|
|
||||||
|
# Only ant-core-1.8.1 has fixed ant -diagnostics when xerces+xalan are not present.
|
||||||
|
# ca-certificates, perl and openssl are used for the cacerts keystore generation
|
||||||
|
# xext headers have two variants depending on version - bug #288855
|
||||||
|
# autoconf - as long as we use eautoreconf, version restrictions for bug #294918
|
||||||
|
DEPEND="${COMMON_DEP} ${ALSA_COMMON_DEP} ${CUPS_COMMON_DEP} ${X_COMMON_DEP}
|
||||||
|
|| (
|
||||||
|
>=dev-java/gcj-jdk-4.3
|
||||||
|
dev-java/icedtea-bin:7
|
||||||
|
dev-java/icedtea-bin:6
|
||||||
|
dev-java/icedtea:7
|
||||||
|
dev-java/icedtea:6
|
||||||
|
)
|
||||||
|
app-arch/cpio
|
||||||
|
app-arch/unzip
|
||||||
|
app-arch/zip
|
||||||
|
app-misc/ca-certificates
|
||||||
|
>=dev-java/ant-core-1.8.1
|
||||||
|
dev-java/ant-nodeps
|
||||||
|
dev-lang/perl
|
||||||
|
>=dev-libs/libxslt-1.1.26
|
||||||
|
dev-libs/openssl
|
||||||
|
virtual/pkgconfig
|
||||||
|
sys-apps/attr
|
||||||
|
sys-apps/lsb-release
|
||||||
|
${X_DEPEND}
|
||||||
|
pax_kernel? ( sys-apps/paxctl )"
|
||||||
|
|
||||||
|
PDEPEND="webstart? ( dev-java/icedtea-web:7 )
|
||||||
|
nsplugin? ( dev-java/icedtea-web:7[nsplugin] )"
|
||||||
|
|
||||||
|
S="${WORKDIR}"/${ICEDTEA_PKG}
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
JAVA_PKG_WANT_BUILD_VM="
|
||||||
|
icedtea-7 icedtea-bin-7 icedtea7
|
||||||
|
icedtea-6 icedtea-bin-6 icedtea6 icedtea6-bin
|
||||||
|
gcj-jdk"
|
||||||
|
JAVA_PKG_WANT_SOURCE="1.5"
|
||||||
|
JAVA_PKG_WANT_TARGET="1.5"
|
||||||
|
|
||||||
|
java-vm-2_pkg_setup
|
||||||
|
java-pkg-2_pkg_setup
|
||||||
|
}
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
unpack ${ICEDTEA_PKG}.tar.gz
|
||||||
|
}
|
||||||
|
|
||||||
|
java_prepare() {
|
||||||
|
# For bootstrap builds as the sandbox control file might not yet exist.
|
||||||
|
addpredict /proc/self/coredump_filter
|
||||||
|
|
||||||
|
# icedtea doesn't like some locales. #330433 #389717
|
||||||
|
export LANG="C" LC_ALL="C"
|
||||||
|
|
||||||
|
epatch "${FILESDIR}"/${P}-no_suffix.patch
|
||||||
|
eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
|
bootstrap_impossible() {
|
||||||
|
# Fill this according to testing what works and what not
|
||||||
|
has "${1}" icedtea6 icedtea-6 icedtea6-bin icedtea-bin-6 icedtea-7 icedtea-bin-7 icedtea7
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local config bootstrap
|
||||||
|
local vm=$(java-pkg_get-current-vm)
|
||||||
|
|
||||||
|
# Whether to bootstrap
|
||||||
|
bootstrap="disable"
|
||||||
|
if use jbootstrap; then
|
||||||
|
if bootstrap_impossible "${vm}"; then
|
||||||
|
einfo "Bootstrap with ${vm} is currently not possible and thus disabled, ignoring USE=jbootstrap"
|
||||||
|
else
|
||||||
|
bootstrap="enable"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if has "${vm}" gcj-jdk; then
|
||||||
|
# gcj-jdk ensures ecj is present.
|
||||||
|
use jbootstrap || einfo "bootstrap is necessary when building with ${vm}, ignoring USE=\"-jbootstrap\""
|
||||||
|
bootstrap="enable"
|
||||||
|
local ecj_jar="$(readlink "${EPREFIX}"/usr/share/eclipse-ecj/ecj.jar)"
|
||||||
|
config="${config} --with-ecj-jar=${ecj_jar}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
config="${config} --${bootstrap}-bootstrap"
|
||||||
|
|
||||||
|
# Always use HotSpot as the primary VM if available. #389521 #368669 #357633 ...
|
||||||
|
# Otherwise use JamVM as it's the only possibility right now
|
||||||
|
if ! has "${ARCH}" amd64 sparc x86; then
|
||||||
|
config="${config} --enable-jamvm --with-jamvm-src-zip=${DISTDIR}/${JAMVM_TARBALL}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# OpenJDK-specific parallelism support. Bug #389791, #337827
|
||||||
|
# Implementation modified from waf-utils.eclass
|
||||||
|
# Note that "-j" is converted to "-j1" as the system doesn't support --load-average
|
||||||
|
local procs=$(echo -j1 ${MAKEOPTS} | sed -r "s/.*(-j\s*|--jobs=)([0-9]+).*/\2/" )
|
||||||
|
config="${config} --with-parallel-jobs=${procs}";
|
||||||
|
einfo "Configuring using --with-parallel-jobs=${procs}"
|
||||||
|
|
||||||
|
if use javascript ; then
|
||||||
|
config="${config} --with-rhino=$(java-pkg_getjar rhino:1.6 js.jar)"
|
||||||
|
else
|
||||||
|
config="${config} --without-rhino"
|
||||||
|
fi
|
||||||
|
|
||||||
|
unset JAVA_HOME JDK_HOME CLASSPATH JAVAC JAVACFLAGS
|
||||||
|
|
||||||
|
econf ${config} \
|
||||||
|
--with-openjdk-src-zip="${DISTDIR}/${OPENJDK_TARBALL}" \
|
||||||
|
--with-corba-src-zip="${DISTDIR}/${CORBA_TARBALL}" \
|
||||||
|
--with-jaxp-src-zip="${DISTDIR}/${JAXP_TARBALL}" \
|
||||||
|
--with-jaxws-src-zip="${DISTDIR}/${JAXWS_TARBALL}" \
|
||||||
|
--with-jdk-src-zip="${DISTDIR}/${JDK_TARBALL}" \
|
||||||
|
--with-hotspot-src-zip="${DISTDIR}/${HOTSPOT_TARBALL}" \
|
||||||
|
--with-langtools-src-zip="${DISTDIR}/${LANGTOOLS_TARBALL}" \
|
||||||
|
--with-jdk-home="$(java-config -O)" \
|
||||||
|
--with-abs-install-dir=/usr/$(get_libdir)/icedtea${SLOT} \
|
||||||
|
--disable-downloading \
|
||||||
|
$(use_enable !debug optimizations) \
|
||||||
|
$(use_enable doc docs) \
|
||||||
|
$(use_enable nss) \
|
||||||
|
$(use_enable pulseaudio pulse-java) \
|
||||||
|
$(use_enable systemtap) \
|
||||||
|
$(use_with pax_kernel pax paxctl)
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
# Would use GENTOO_VM otherwise.
|
||||||
|
export ANT_RESPECT_JAVA_HOME=TRUE
|
||||||
|
|
||||||
|
# Load the least that's needed to avoid possible classpath collisions.
|
||||||
|
export ANT_TASKS="ant-nodeps"
|
||||||
|
|
||||||
|
emake
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
# Use Xvfb for tests
|
||||||
|
unset DISPLAY
|
||||||
|
|
||||||
|
Xemake check
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
local dest="/usr/$(get_libdir)/icedtea${SLOT}"
|
||||||
|
local ddest="${ED}/${dest}"
|
||||||
|
dodir "${dest}"
|
||||||
|
|
||||||
|
dodoc README NEWS AUTHORS
|
||||||
|
dosym /usr/share/doc/${PF} /usr/share/doc/${PN}${SLOT}
|
||||||
|
docompress -x /usr/share/doc/${PN}${SLOT}
|
||||||
|
|
||||||
|
cd openjdk.build/j2sdk-image || die
|
||||||
|
|
||||||
|
# Ensures HeadlessGraphicsEnvironment is used.
|
||||||
|
if ! use X; then
|
||||||
|
rm -r jre/lib/$(get_system_arch)/xawt || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Don't hide classes
|
||||||
|
rm lib/ct.sym || die
|
||||||
|
|
||||||
|
#402507
|
||||||
|
mkdir jre/.systemPrefs || die
|
||||||
|
touch jre/.systemPrefs/.system.lock || die
|
||||||
|
touch jre/.systemPrefs/.systemRootModFile || die
|
||||||
|
|
||||||
|
# doins can't handle symlinks.
|
||||||
|
cp -vRP bin include jre lib man "${ddest}" || die
|
||||||
|
|
||||||
|
dodoc ASSEMBLY_EXCEPTION THIRD_PARTY_README
|
||||||
|
|
||||||
|
if use doc; then
|
||||||
|
# java-pkg_dohtml needed for package-list #302654
|
||||||
|
java-pkg_dohtml -r ../docs/* || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use examples; then
|
||||||
|
dodir "${dest}/share";
|
||||||
|
cp -vRP demo sample "${ddest}/share/" || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use source; then
|
||||||
|
cp src.zip "${ddest}" || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Fix the permissions.
|
||||||
|
find "${ddest}" \! -type l \( -perm /111 -exec chmod 755 {} \; -o -exec chmod 644 {} \; \) || die
|
||||||
|
|
||||||
|
# Needs to be done before generating cacerts
|
||||||
|
java-vm_set-pax-markings "${ddest}"
|
||||||
|
|
||||||
|
# We need to generate keystore - bug #273306
|
||||||
|
einfo "Generating cacerts file from certificates in ${EPREFIX}/usr/share/ca-certificates/"
|
||||||
|
mkdir "${T}/certgen" && cd "${T}/certgen" || die
|
||||||
|
cp "${FILESDIR}/generate-cacerts.pl" . && chmod +x generate-cacerts.pl || die
|
||||||
|
for c in "${EPREFIX}"/usr/share/ca-certificates/*/*.crt; do
|
||||||
|
openssl x509 -text -in "${c}" >> all.crt || die
|
||||||
|
done
|
||||||
|
./generate-cacerts.pl "${ddest}/bin/keytool" all.crt || die
|
||||||
|
cp -vRP cacerts "${ddest}/jre/lib/security/" || die
|
||||||
|
chmod 644 "${ddest}/jre/lib/security/cacerts" || die
|
||||||
|
|
||||||
|
# OpenJDK7 should be able to use fontconfig instead, but wont hurt to
|
||||||
|
# install it anyway. Bug 390663
|
||||||
|
cp "${FILESDIR}"/fontconfig.Gentoo.properties.src "${T}"/fontconfig.Gentoo.properties || die
|
||||||
|
eprefixify "${T}"/fontconfig.Gentoo.properties
|
||||||
|
insinto "${dest}"/jre/lib
|
||||||
|
doins "${T}"/fontconfig.Gentoo.properties
|
||||||
|
|
||||||
|
set_java_env "${FILESDIR}/icedtea.env"
|
||||||
|
if ! use X || ! use alsa || ! use cups; then
|
||||||
|
java-vm_revdep-mask "${dest}"
|
||||||
|
fi
|
||||||
|
java-vm_sandbox-predict /proc/self/coredump_filter
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_preinst() {
|
||||||
|
if has_version "<=dev-java/icedtea-7.2.0:7"; then
|
||||||
|
# portage would preserve the symlink otherwise, related to bug #384397
|
||||||
|
rm -f "${EROOT}/usr/lib/jvm/icedtea7"
|
||||||
|
elog "To unify the layout and simplify scripts, the identifier of Icedtea-7*"
|
||||||
|
elog "has changed from 'icedtea7' to 'icedtea-7' starting from version 7.2.0-r1"
|
||||||
|
elog "If you had icedtea7 as system VM, the change should be automatic, however"
|
||||||
|
elog "build VM settings in /etc/java-config-2/build/jdk.conf are not changed"
|
||||||
|
elog "and the same holds for any user VM settings. Sorry for the inconvenience."
|
||||||
|
fi
|
||||||
|
}
|
@ -1,4 +1,6 @@
|
|||||||
DIST ocaml-3.11.2.tar.bz2 2346284 RMD160 a407e579b7fa134fc8126c5c5b544dd60cedecb1 SHA1 59053ce0078da2367f4ce61da886d22c6e86a46d SHA256 86f3387a0d7e7c8be2a3c53af083a5a726e333686208d5ea0dd6bb5ac3f58143
|
DIST ocaml-3.11.2.tar.bz2 2346284 RMD160 a407e579b7fa134fc8126c5c5b544dd60cedecb1 SHA1 59053ce0078da2367f4ce61da886d22c6e86a46d SHA256 86f3387a0d7e7c8be2a3c53af083a5a726e333686208d5ea0dd6bb5ac3f58143
|
||||||
DIST ocaml-3.12.1.tar.bz2 2949124 RMD160 61d38c0785491c8790ac02ab78fb2f26ea490fc1 SHA1 29b44117b116b1a5bc54a8b4514af483793a769f SHA256 edcf563da75e0b91f09765649caa98ab1535e0c7498f0737b5591b7de084958d
|
DIST ocaml-3.12.1.tar.bz2 2949124 RMD160 61d38c0785491c8790ac02ab78fb2f26ea490fc1 SHA1 29b44117b116b1a5bc54a8b4514af483793a769f SHA256 edcf563da75e0b91f09765649caa98ab1535e0c7498f0737b5591b7de084958d
|
||||||
|
DIST ocaml-4.00.0+beta2.tar.bz2 2745117 RMD160 345a2ce3a3f163aac402d4e6b56d4f07e70f39d4 SHA1 75fedc849cc1cbfe620f0258c0f6c8214467efb7 SHA256 dde859f626ab62104e7238a882be8866c31a943c4f548bbebce14f16a1b20663
|
||||||
DIST ocaml-patches-1.tar.bz2 3108 RMD160 ad56f8be4b15347794f3167be82124fcdbf6f6dc SHA1 542ae4c2b1515730fe0c9050b6658106ef69ad19 SHA256 ad1c252cba7cc50f70d19049fcd78aa359672e436ab9906424548229a04afa49
|
DIST ocaml-patches-1.tar.bz2 3108 RMD160 ad56f8be4b15347794f3167be82124fcdbf6f6dc SHA1 542ae4c2b1515730fe0c9050b6658106ef69ad19 SHA256 ad1c252cba7cc50f70d19049fcd78aa359672e436ab9906424548229a04afa49
|
||||||
DIST ocaml-patches-3.tar.bz2 4101 RMD160 f830b0be28a96f8892776d0372fa10fb56a605ee SHA1 f165b9fce29cc4d96a81abbc7edbde35e33b4c0c SHA256 c4ceb604f4480c78d1cf4f848b0903c8d37798d9761f582d8d1643d4e38b8658
|
DIST ocaml-patches-3.tar.bz2 4101 RMD160 f830b0be28a96f8892776d0372fa10fb56a605ee SHA1 f165b9fce29cc4d96a81abbc7edbde35e33b4c0c SHA256 c4ceb604f4480c78d1cf4f848b0903c8d37798d9761f582d8d1643d4e38b8658
|
||||||
|
DIST ocaml-patches-4.tar.bz2 2429 RMD160 e558861a837f7e2fa088d0e7826eeb3a4306f6ac SHA1 e26d584486026d48a21c12a2ef2cfe6b72e33164 SHA256 42e7120e8b682dfbef9e5f5cc95adfc67f0ca7289c067f67dc28562d3cca6cc5
|
||||||
|
@ -0,0 +1,127 @@
|
|||||||
|
# Copyright 1999-2012 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/dev-lang/ocaml/ocaml-4.00.0_beta2.ebuild,v 1.1 2012/06/10 20:12:21 aballier Exp $
|
||||||
|
|
||||||
|
EAPI="1"
|
||||||
|
|
||||||
|
inherit flag-o-matic eutils multilib versionator toolchain-funcs
|
||||||
|
|
||||||
|
PATCHLEVEL="4"
|
||||||
|
MY_P="${P/_/+}"
|
||||||
|
DESCRIPTION="Fast modern type-inferring functional programming language descended from the ML family"
|
||||||
|
HOMEPAGE="http://www.ocaml.org/"
|
||||||
|
SRC_URI="ftp://ftp.inria.fr/INRIA/Projects/cristal/ocaml/ocaml-$(get_version_component_range 1-2)/${MY_P}.tar.bz2
|
||||||
|
mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.bz2"
|
||||||
|
|
||||||
|
LICENSE="QPL-1.0 LGPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
|
||||||
|
IUSE="emacs latex ncurses +ocamlopt tk X xemacs"
|
||||||
|
|
||||||
|
DEPEND="tk? ( >=dev-lang/tk-3.3.3 )
|
||||||
|
ncurses? ( sys-libs/ncurses )
|
||||||
|
X? ( x11-libs/libX11 x11-proto/xproto )"
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
|
||||||
|
PDEPEND="emacs? ( app-emacs/ocaml-mode )
|
||||||
|
xemacs? ( app-xemacs/ocaml )"
|
||||||
|
|
||||||
|
S="${WORKDIR}/${MY_P}"
|
||||||
|
pkg_setup() {
|
||||||
|
# dev-lang/ocaml creates its own objects but calls gcc for linking, which will
|
||||||
|
# results in relocations if gcc wants to create a PIE executable
|
||||||
|
if gcc-specs-pie ; then
|
||||||
|
append-ldflags -nopie
|
||||||
|
ewarn "Ocaml generates its own native asm, you're using a PIE compiler"
|
||||||
|
ewarn "We have appended -nopie to ocaml build options"
|
||||||
|
ewarn "because linking an executable with pie while the objects are not pic will not work"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
unpack ${A}
|
||||||
|
cd "${S}"
|
||||||
|
EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
export LC_ALL=C
|
||||||
|
local myconf=""
|
||||||
|
|
||||||
|
# Causes build failures because it builds some programs with -pg,
|
||||||
|
# bug #270920
|
||||||
|
filter-flags -fomit-frame-pointer
|
||||||
|
# Bug #285993
|
||||||
|
filter-mfpmath sse
|
||||||
|
|
||||||
|
# It doesn't compile on alpha without this LDFLAGS
|
||||||
|
use alpha && append-ldflags "-Wl,--no-relax"
|
||||||
|
|
||||||
|
use tk || myconf="${myconf} -no-tk"
|
||||||
|
use ncurses || myconf="${myconf} -no-curses"
|
||||||
|
use X || myconf="${myconf} -no-graph"
|
||||||
|
|
||||||
|
# ocaml uses a home-brewn configure script, preventing it to use econf.
|
||||||
|
RAW_LDFLAGS="$(raw-ldflags)" ./configure -prefix /usr \
|
||||||
|
--bindir /usr/bin \
|
||||||
|
--libdir /usr/$(get_libdir)/ocaml \
|
||||||
|
--mandir /usr/share/man \
|
||||||
|
-host "${CHOST}" \
|
||||||
|
-cc "$(tc-getCC)" \
|
||||||
|
-as "$(tc-getAS)" \
|
||||||
|
-aspp "$(tc-getCC) -c" \
|
||||||
|
-partialld "$(tc-getLD) -r" \
|
||||||
|
--with-pthread ${myconf} || die "configure failed!"
|
||||||
|
|
||||||
|
emake -j1 world || die "make world failed!"
|
||||||
|
|
||||||
|
# Native code generation can be disabled now
|
||||||
|
if use ocamlopt ; then
|
||||||
|
# bug #279968
|
||||||
|
emake -j1 opt || die "make opt failed!"
|
||||||
|
emake -j1 opt.opt || die "make opt.opt failed!"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
make BINDIR="${D}"/usr/bin \
|
||||||
|
LIBDIR="${D}"/usr/$(get_libdir)/ocaml \
|
||||||
|
MANDIR="${D}"/usr/share/man \
|
||||||
|
install || die "make install failed!"
|
||||||
|
|
||||||
|
# Install the compiler libs
|
||||||
|
dodir /usr/$(get_libdir)/ocaml/compiler-libs
|
||||||
|
insinto /usr/$(get_libdir)/ocaml/compiler-libs
|
||||||
|
doins {utils,typing,parsing}/*.{mli,cmi,cmo}
|
||||||
|
use ocamlopt && doins {utils,typing,parsing}/*.{cmx,o}
|
||||||
|
|
||||||
|
# Symlink the headers to the right place
|
||||||
|
dodir /usr/include
|
||||||
|
dosym /usr/$(get_libdir)/ocaml/caml /usr/include/
|
||||||
|
|
||||||
|
# Remove ${D} from ld.conf, as the buildsystem isn't $(DESTDIR) aware
|
||||||
|
dosed "s:${D}::g" /usr/$(get_libdir)/ocaml/ld.conf
|
||||||
|
|
||||||
|
dodoc Changes INSTALL README Upgrading
|
||||||
|
|
||||||
|
# Create and envd entry for latex input files (this definitely belongs into
|
||||||
|
# CONTENT and not in pkg_postinst.
|
||||||
|
if use latex ; then
|
||||||
|
echo "TEXINPUTS=/usr/$(get_libdir)/ocaml/ocamldoc:" > "${T}"/99ocamldoc
|
||||||
|
doenvd "${T}"/99ocamldoc
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Install ocaml-rebuild portage set
|
||||||
|
insinto /usr/share/portage/config/sets
|
||||||
|
doins "${FILESDIR}/ocaml.conf" || die
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
echo
|
||||||
|
ewarn "OCaml is not binary compatible from version to version, so you"
|
||||||
|
ewarn "need to rebuild all packages depending on it, that are actually"
|
||||||
|
ewarn "installed on your system. To do so, you can run:"
|
||||||
|
ewarn "emerge @ocaml-rebuild"
|
||||||
|
ewarn "Or, (almost) equivalently: emerge -1 /usr/$(get_libdir)/ocaml"
|
||||||
|
echo
|
||||||
|
}
|
@ -0,0 +1,62 @@
|
|||||||
|
diff --git a/libpcc/bitcnt.c b/libpcc/bitcnt.c
|
||||||
|
index 26ecc01..c3bd54e 100644
|
||||||
|
--- a/libpcc/bitcnt.c
|
||||||
|
+++ b/libpcc/bitcnt.c
|
||||||
|
@@ -1,9 +1,22 @@
|
||||||
|
+// Only use __has_builtin in compilers that support it.
|
||||||
|
+#ifndef __has_builtin
|
||||||
|
+ #define __has_builtin(x) 0
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
+#if !__has_builtin(__builtin_clz)
|
||||||
|
int __builtin_clz(unsigned int);
|
||||||
|
+#endif
|
||||||
|
+#if !__has_builtin(__builtin_ctz)
|
||||||
|
int __builtin_ctz(unsigned int);
|
||||||
|
+#endif
|
||||||
|
+#if !__has_builtin(__builtin_clzl)
|
||||||
|
int __builtin_clzl(unsigned long);
|
||||||
|
+#endif
|
||||||
|
+#if !__has_builtin(__builtin_ctzl)
|
||||||
|
int __builtin_ctzl(unsigned long);
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
+#if !__has_builtin(__builtin_clz)
|
||||||
|
int
|
||||||
|
__builtin_clz(unsigned int v)
|
||||||
|
{
|
||||||
|
@@ -14,7 +27,9 @@ __builtin_clz(unsigned int v)
|
||||||
|
break;
|
||||||
|
return i;
|
||||||
|
}
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
+#if !__has_builtin(__builtin_ctz)
|
||||||
|
int
|
||||||
|
__builtin_ctz(unsigned int v)
|
||||||
|
{
|
||||||
|
@@ -25,7 +40,9 @@ __builtin_ctz(unsigned int v)
|
||||||
|
break;
|
||||||
|
return i;
|
||||||
|
}
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
+#if !__has_builtin(__builtin_clzl)
|
||||||
|
int
|
||||||
|
__builtin_clzl(unsigned long v)
|
||||||
|
{
|
||||||
|
@@ -37,7 +54,9 @@ __builtin_clzl(unsigned long v)
|
||||||
|
break;
|
||||||
|
return i;
|
||||||
|
}
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
+#if !__has_builtin(__builtin_ctzl)
|
||||||
|
int
|
||||||
|
__builtin_ctzl(unsigned long v)
|
||||||
|
{
|
||||||
|
@@ -48,3 +67,4 @@ __builtin_ctzl(unsigned long v)
|
||||||
|
break;
|
||||||
|
return i;
|
||||||
|
}
|
||||||
|
+#endif
|
@ -1,2 +1,3 @@
|
|||||||
DIST findlib-1.2.7.tar.gz 163452 RMD160 d374a9dcfee69e2428e904a77882616dd4fe61e7 SHA1 bb99da86a454ec755c9c5e4a464013be5c766801 SHA256 c920b129e48b3b313e67b915a078ab06a9ddd2e072f3353edfa74144f256029b
|
DIST findlib-1.2.7.tar.gz 163452 RMD160 d374a9dcfee69e2428e904a77882616dd4fe61e7 SHA1 bb99da86a454ec755c9c5e4a464013be5c766801 SHA256 c920b129e48b3b313e67b915a078ab06a9ddd2e072f3353edfa74144f256029b
|
||||||
DIST findlib-1.3.1.tar.gz 229719 RMD160 c8a609d74df7dd87850ae34c88307af3636b20bc SHA1 996d8ff4372e178a9fb18b690bb9746847763d82 SHA256 9e4b063c3b10f36006521fb4ef457d87c2a0684a55e76c1776fbce707422b978
|
DIST findlib-1.3.1.tar.gz 229719 RMD160 c8a609d74df7dd87850ae34c88307af3636b20bc SHA1 996d8ff4372e178a9fb18b690bb9746847763d82 SHA256 9e4b063c3b10f36006521fb4ef457d87c2a0684a55e76c1776fbce707422b978
|
||||||
|
DIST findlib-1.3.2.tar.gz 230556 RMD160 74045383f9e1f46c56dd2596199f8f7071705960 SHA1 3850c6732fd3b50b935806859dc7fe481112c810 SHA256 056450c2449aee2a61335cfa1d96f2fb1a14ad50bcd99d7ddf9308307ba90bc3
|
||||||
|
@ -0,0 +1,77 @@
|
|||||||
|
# Copyright 1999-2012 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/dev-ml/findlib/findlib-1.3.2.ebuild,v 1.1 2012/06/10 20:17:01 aballier Exp $
|
||||||
|
|
||||||
|
EAPI=2
|
||||||
|
|
||||||
|
inherit multilib
|
||||||
|
|
||||||
|
RESTRICT="installsources"
|
||||||
|
|
||||||
|
DESCRIPTION="OCaml tool to find/use non-standard packages."
|
||||||
|
HOMEPAGE="http://projects.camlcity.org/projects/findlib.html"
|
||||||
|
SRC_URI="http://download.camlcity.org/download/${P}.tar.gz"
|
||||||
|
IUSE="doc +ocamlopt tk"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
|
||||||
|
|
||||||
|
DEPEND=">=dev-lang/ocaml-4.00.0_alpha[ocamlopt?,tk?]"
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
|
||||||
|
ocamlfind_destdir="/usr/$(get_libdir)/ocaml"
|
||||||
|
stublibs="${ocamlfind_destdir}/stublibs"
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local myconf
|
||||||
|
use tk && myconf="-with-toolbox"
|
||||||
|
./configure -bindir /usr/bin -mandir /usr/share/man \
|
||||||
|
-sitelib ${ocamlfind_destdir} \
|
||||||
|
-config ${ocamlfind_destdir}/findlib/findlib.conf \
|
||||||
|
${myconf} || die "configure failed"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
emake all || die
|
||||||
|
if use ocamlopt; then
|
||||||
|
emake opt || die # optimized code
|
||||||
|
else
|
||||||
|
# If using bytecode we dont want to strip the binary as it would remove the
|
||||||
|
# bytecode and only leave ocamlrun...
|
||||||
|
export STRIP_MASK="*/bin/*"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dodir `ocamlc -where`
|
||||||
|
|
||||||
|
emake prefix="${D}" install || die
|
||||||
|
|
||||||
|
dodir "${stublibs}"
|
||||||
|
|
||||||
|
cd "${S}/doc"
|
||||||
|
dodoc QUICKSTART README DOCINFO
|
||||||
|
use doc && dohtml -r ref-html guide-html
|
||||||
|
}
|
||||||
|
|
||||||
|
check_stublibs() {
|
||||||
|
local ocaml_stdlib=`ocamlc -where`
|
||||||
|
local ldconf="${ocaml_stdlib}/ld.conf"
|
||||||
|
|
||||||
|
if [ ! -e ${ldconf} ]
|
||||||
|
then
|
||||||
|
echo "${ocaml_stdlib}" > ${ldconf}
|
||||||
|
echo "${ocaml_stdlib}/stublibs" >> ${ldconf}
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z `grep -e ${stublibs} ${ldconf}` ]
|
||||||
|
then
|
||||||
|
echo ${stublibs} >> ${ldconf}
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
check_stublibs
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
# Copyright 1999-2012 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Convert-ASN1/Convert-ASN1-0.260.0.ebuild,v 1.1 2012/06/10 16:18:18 tove Exp $
|
||||||
|
|
||||||
|
EAPI=4
|
||||||
|
|
||||||
|
MODULE_AUTHOR=GBARR
|
||||||
|
MODULE_VERSION=0.26
|
||||||
|
inherit perl-module
|
||||||
|
|
||||||
|
DESCRIPTION="Standard en/decode of ASN.1 structures"
|
||||||
|
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
SRC_TEST="do"
|
@ -1,3 +1,4 @@
|
|||||||
DIST Convert-ASN1-0.22.tar.gz 74625 RMD160 e858666b024ca8953d73ff545f1ac972714aed6d SHA1 ca5fc9f1f9640807b564b7394667fe7e9bcc1c80 SHA256 be63d5cc715d7306e54b41d3c68c3617ca306289cff619a2ca43505e35f2f6ee
|
DIST Convert-ASN1-0.22.tar.gz 74625 RMD160 e858666b024ca8953d73ff545f1ac972714aed6d SHA1 ca5fc9f1f9640807b564b7394667fe7e9bcc1c80 SHA256 be63d5cc715d7306e54b41d3c68c3617ca306289cff619a2ca43505e35f2f6ee
|
||||||
DIST Convert-ASN1-0.23.tar.gz 56220 RMD160 f51bb6f989e8c586e5cf3bd8ed322d035214cb73 SHA1 69e3348b717ff2cca2bbc3696a5c45eb16647605 SHA256 686514c9025e89aa64d7377e0511185e2a51c9f75ff54436cf38f835830fbde5
|
DIST Convert-ASN1-0.23.tar.gz 56220 RMD160 f51bb6f989e8c586e5cf3bd8ed322d035214cb73 SHA1 69e3348b717ff2cca2bbc3696a5c45eb16647605 SHA256 686514c9025e89aa64d7377e0511185e2a51c9f75ff54436cf38f835830fbde5
|
||||||
DIST Convert-ASN1-0.25.tar.gz 59926 RMD160 1bc95f3383c57a6a71477295fd3d2ab071007ac3 SHA1 de43ad15f7add682064b4dd7a454c2ecd3d4594e SHA256 31f342441e1f8d52a711041c84b792a4c189b5a4cf2fc4fc4d9c2b9eec085b29
|
DIST Convert-ASN1-0.25.tar.gz 59926 RMD160 1bc95f3383c57a6a71477295fd3d2ab071007ac3 SHA1 de43ad15f7add682064b4dd7a454c2ecd3d4594e SHA256 31f342441e1f8d52a711041c84b792a4c189b5a4cf2fc4fc4d9c2b9eec085b29
|
||||||
|
DIST Convert-ASN1-0.26.tar.gz 72623 RMD160 8966ebb6d2f71007c245d6474334057fbd3e6099 SHA1 44117ad491b4cf3a7bd0f913f179a147f9b97c9b SHA256 5db8b62fa0d036bd0cabc869ffe17941ad587d9a2af1ff030d554872adbc1ca1
|
||||||
|
@ -0,0 +1,40 @@
|
|||||||
|
# Copyright 1999-2012 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/dev-perl/DBD-SQLite/DBD-SQLite-1.370.0.ebuild,v 1.1 2012/06/10 16:33:37 tove Exp $
|
||||||
|
|
||||||
|
EAPI=4
|
||||||
|
|
||||||
|
MODULE_AUTHOR=ADAMK
|
||||||
|
MODULE_VERSION=1.37
|
||||||
|
inherit perl-module
|
||||||
|
|
||||||
|
DESCRIPTION="Self Contained RDBMS in a DBI Driver"
|
||||||
|
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris"
|
||||||
|
IUSE="test"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-db/sqlite-3.6.22[extensions]
|
||||||
|
>=dev-perl/DBI-1.57
|
||||||
|
!<dev-perl/DBD-SQLite-1
|
||||||
|
"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
test? (
|
||||||
|
>=virtual/perl-Test-Simple-0.86
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
SRC_TEST="do"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
perl-module_src_prepare
|
||||||
|
sed -i 's/^if ( 0 )/if ( 1 )/' "${S}"/Makefile.PL || die
|
||||||
|
# remove bundled sqlite (rt.cpan#61361)
|
||||||
|
for i in sqlite3{.c,.h,ext.h} ; do
|
||||||
|
rm ${i} || die
|
||||||
|
sed -i -e "/^${i}\$/d" MANIFEST || die
|
||||||
|
done
|
||||||
|
|
||||||
|
myconf="SQLITE_LOCATION=${EPREFIX}/usr"
|
||||||
|
}
|
@ -1 +1,2 @@
|
|||||||
DIST XML-RSS-Feed-2.32.tar.gz 36578 RMD160 6674298a07a7020bac214a1908b9cb23134e5b49 SHA1 ff2833d9a9b32799747fc8b14072c671d897f21b SHA256 59d32c1132a46fc4320ea9534993003af3a685a5f8c9f8286282c8d64aa79c49
|
DIST XML-RSS-Feed-2.32.tar.gz 36578 RMD160 6674298a07a7020bac214a1908b9cb23134e5b49 SHA1 ff2833d9a9b32799747fc8b14072c671d897f21b SHA256 59d32c1132a46fc4320ea9534993003af3a685a5f8c9f8286282c8d64aa79c49
|
||||||
|
DIST XML-RSS-Feed-2.320.0-patch.tar.bz2 315 RMD160 ada17c1e9839ee2686f6d1709d3e8e5134f1c1c4 SHA1 5431cf0361ede167f62b338b809f86bfbbd2b46f SHA256 201b4f3439f3d808e8958964ec00fa43372b1826263c0bd88f8b358a897f64fc
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
DIST python-gnupg-0.3.0.tar.gz 16647 RMD160 05a4fcee022636fcb3ae0170e67035b90b660351 SHA1 a867632138734df83e1ecf93b853605c37c5c805 SHA256 dbe4f6ad6c33bacffab94cd34063c05ff8f08014e4e215b3934e46c5cc031deb
|
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<herd>python</herd>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="google-code">python-gnupg</remote-id>
|
||||||
|
</upstream>
|
||||||
|
</pkgmetadata>
|
@ -0,0 +1,22 @@
|
|||||||
|
# Copyright 1999-2012 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/dev-python/python-gnupg/python-gnupg-0.3.0.ebuild,v 1.1 2012/06/10 14:24:58 floppym Exp $
|
||||||
|
|
||||||
|
EAPI=4
|
||||||
|
|
||||||
|
inherit python-distutils-ng
|
||||||
|
|
||||||
|
DESCRIPTION="Python wrapper for GNU Privacy Guard"
|
||||||
|
HOMEPAGE="http://code.google.com/p/python-gnupg/"
|
||||||
|
SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
RDEPEND="app-crypt/gnupg"
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
"${PYTHON}" test_gnupg.py || die "Testing failed with ${PYTHON}"
|
||||||
|
}
|
@ -1,5 +1,6 @@
|
|||||||
DIST dcraw-9.05.tar.gz 161390 RMD160 5301db44b1d5905d8cf1dd3bb4d76877b626ee17 SHA1 ff797acb2a93761d158f547c733968938b31f865 SHA256 f3ab302255662f30bc2c75f16a5c37a28f404358e9e94a197addc42ae2e3f469
|
DIST dcraw-9.05.tar.gz 161390 RMD160 5301db44b1d5905d8cf1dd3bb4d76877b626ee17 SHA1 ff797acb2a93761d158f547c733968938b31f865 SHA256 f3ab302255662f30bc2c75f16a5c37a28f404358e9e94a197addc42ae2e3f469
|
||||||
DIST dcraw-9.10.tar.gz 163860 RMD160 8784cfb0046d8509adddf9dbd35c88bcd3254f21 SHA1 c43f8f760845a70f2ddb85979574c0705dbcb319 SHA256 4ff3c0bb59593a29d5846e5e6f2fd979588382255fe38d11537c9e63143759ca
|
DIST dcraw-9.10.tar.gz 163860 RMD160 8784cfb0046d8509adddf9dbd35c88bcd3254f21 SHA1 c43f8f760845a70f2ddb85979574c0705dbcb319 SHA256 4ff3c0bb59593a29d5846e5e6f2fd979588382255fe38d11537c9e63143759ca
|
||||||
|
DIST dcraw-9.12.tar.gz 164386 RMD160 2e9a42ce7ddb5a62c551f2b49f61c33e34970e9e SHA1 b0110f83692b14940a8e43759d7ccefa77103cc6 SHA256 9892b013d2190b858dea380a94e7f5c30318a068237e7bef8eb6a8aefc6bd691
|
||||||
DIST parse-1.71.tar.bz2 8129 RMD160 bc7732b2b52cdda69b9a39d7e30cc02aff371a6b SHA1 96e74cb9e366ae17897852e231e1c764fd36d96f SHA256 58d91d4ce8533b84e6933d9cfa505b7a1b3c228e34b7e3aeae438948a42a454a
|
DIST parse-1.71.tar.bz2 8129 RMD160 bc7732b2b52cdda69b9a39d7e30cc02aff371a6b SHA1 96e74cb9e366ae17897852e231e1c764fd36d96f SHA256 58d91d4ce8533b84e6933d9cfa505b7a1b3c228e34b7e3aeae438948a42a454a
|
||||||
DIST parse-1.73.tar.bz2 8186 RMD160 134e3bf152d145fedd1f137f82b3f8791804310c SHA1 efdc722f858d730cf45af1417d2f6ed8ae3fe281 SHA256 51f75837b7fa7f6389f43c875ad8320c41a44c4213922dc767e16dc424462c3c
|
DIST parse-1.73.tar.bz2 8186 RMD160 134e3bf152d145fedd1f137f82b3f8791804310c SHA1 efdc722f858d730cf45af1417d2f6ed8ae3fe281 SHA256 51f75837b7fa7f6389f43c875ad8320c41a44c4213922dc767e16dc424462c3c
|
||||||
DIST rawphoto-1.32.tar.bz2 3841 RMD160 11c6c0fd621170ec5657c8803300ade7c3c21f99 SHA1 6952d39556c3b83e1c790c6ccd34f8233cf2dd53 SHA256 3348a83a44fa941924a4e743f88d993b71d28ba995f80e6765d6c19b6eeaea4c
|
DIST rawphoto-1.32.tar.bz2 3841 RMD160 11c6c0fd621170ec5657c8803300ade7c3c21f99 SHA1 6952d39556c3b83e1c790c6ccd34f8233cf2dd53 SHA256 3348a83a44fa941924a4e743f88d993b71d28ba995f80e6765d6c19b6eeaea4c
|
||||||
|
@ -0,0 +1,125 @@
|
|||||||
|
# Copyright 1999-2012 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/media-gfx/dcraw/dcraw-9.12.ebuild,v 1.1 2012/06/11 08:56:10 xmw Exp $
|
||||||
|
|
||||||
|
EAPI="2"
|
||||||
|
|
||||||
|
inherit eutils toolchain-funcs
|
||||||
|
|
||||||
|
DESCRIPTION="Converts the native (RAW) format of various digital cameras into netpbm portable pixmap (.ppm) image"
|
||||||
|
HOMEPAGE="http://www.cybercom.net/~dcoffin/dcraw/"
|
||||||
|
SRC_URI="http://www.cybercom.net/~dcoffin/dcraw/archive/${P}.tar.gz
|
||||||
|
mirror://gentoo/parse-1.73.tar.bz2
|
||||||
|
gimp? ( mirror://gentoo/rawphoto-1.32.tar.bz2 )"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-solaris"
|
||||||
|
IUSE="nls gimp jpeg jpeg2k lcms"
|
||||||
|
|
||||||
|
COMMON_DEPEND="jpeg? ( virtual/jpeg )
|
||||||
|
lcms? ( =media-libs/lcms-1* )
|
||||||
|
jpeg2k? ( media-libs/jasper )
|
||||||
|
gimp? ( media-gfx/gimp )"
|
||||||
|
DEPEND="${COMMON_DEPEND}
|
||||||
|
nls? ( sys-devel/gettext )
|
||||||
|
gimp? ( virtual/pkgconfig )"
|
||||||
|
RDEPEND="${COMMON_DEPEND}
|
||||||
|
media-libs/netpbm"
|
||||||
|
|
||||||
|
S=${WORKDIR}/dcraw
|
||||||
|
|
||||||
|
LANGS="ca cs de da eo es fr hu it nl pl pt ru sv zh_CN zh_TW"
|
||||||
|
|
||||||
|
for lng in ${LANGS}; do
|
||||||
|
IUSE+=" linguas_${lng}"
|
||||||
|
done
|
||||||
|
|
||||||
|
# Helper function to list only langs listed in LANGS or
|
||||||
|
linguas_list() {
|
||||||
|
local nolangs=true
|
||||||
|
for lng in ${LANGS}; do
|
||||||
|
if use linguas_${lng}; then
|
||||||
|
nolangs=false
|
||||||
|
echo " ${lng}"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
if ${nolangs}; then
|
||||||
|
echo ${LANGS}
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
run_build() {
|
||||||
|
einfo "${@}"
|
||||||
|
${@} || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
rename dcraw_ dcraw. dcraw_*.1 || die "Failed to rename"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
local ECFLAGS="-O2" # Without optimisation build fails
|
||||||
|
local ELIBS="-lm"
|
||||||
|
|
||||||
|
use lcms && ELIBS="-llcms ${ELIBS}" || ECFLAGS+=" -DNO_LCMS=yes"
|
||||||
|
use jpeg && ELIBS="-ljpeg ${ELIBS}" || ECFLAGS+=" -DNO_JPEG=yes"
|
||||||
|
use jpeg2k && ELIBS="-ljasper ${ELIBS}" || ECFLAGS+=" -DNO_JASPER=yes"
|
||||||
|
use nls && ECFLAGS+=" -DLOCALEDIR=\"/usr/share/locale/\""
|
||||||
|
|
||||||
|
run_build $(tc-getCC) ${ECFLAGS} ${CFLAGS} ${LDFLAGS} \
|
||||||
|
-o dcraw dcraw.c ${ELIBS}
|
||||||
|
|
||||||
|
run_build $(tc-getCC) -O2 ${CFLAGS} ${LDFLAGS} \
|
||||||
|
-o dcparse parse.c
|
||||||
|
|
||||||
|
# rawphoto gimp plugin
|
||||||
|
if use gimp; then
|
||||||
|
run_build $(tc-getCC) ${CFLAGS} ${LDFLAGS} \
|
||||||
|
$(pkg-config --cflags gimpui-2.0) rawphoto.c -o rawphoto \
|
||||||
|
$(pkg-config --libs gimpui-2.0)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use nls; then
|
||||||
|
for lng in $(linguas_list); do
|
||||||
|
run_build msgfmt -c -o dcraw_${lng}.mo dcraw_${lng}.po
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dobin dcraw dcparse || die
|
||||||
|
dodoc "${FILESDIR}"/{conversion-examples.txt,dcwrap} || die
|
||||||
|
|
||||||
|
# rawphoto gimp plugin
|
||||||
|
if use gimp; then
|
||||||
|
insinto "$(pkg-config --variable=gimplibdir gimp-2.0)/plug-ins"
|
||||||
|
insopts -m0755
|
||||||
|
doins rawphoto || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
doman dcraw.1 || die
|
||||||
|
if use nls; then
|
||||||
|
for lng in $(linguas_list); do
|
||||||
|
[[ -f dcraw.${lng}.1 ]] && doman dcraw.${lng}.1
|
||||||
|
insinto /usr/share/locale/${lng}/LC_MESSAGES
|
||||||
|
newins dcraw_${lng}.mo dcraw.mo || die "failed to install dcraw_${lng}.mo"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
elog ""
|
||||||
|
elog "See conversion-examples.txt.gz on how to convert"
|
||||||
|
elog "the PPM files produced by dcraw to other image formats."
|
||||||
|
elog ""
|
||||||
|
ewarn "The functionality of the external program 'fujiturn' was"
|
||||||
|
ewarn "incorporated into dcraw and is automatically used now."
|
||||||
|
elog ""
|
||||||
|
elog "There's an example wrapper script included called 'dcwrap'."
|
||||||
|
elog ""
|
||||||
|
elog "This package also includes 'dcparse', which extracts"
|
||||||
|
elog "thumbnail images (preferably JPEGs) from any raw digital"
|
||||||
|
elog "camera formats that have them, and shows table contents."
|
||||||
|
elog ""
|
||||||
|
}
|
@ -1,2 +1,3 @@
|
|||||||
DIST libprojectM-1.2.0.tar.bz2 1348533 RMD160 bd6bfc6dcda7f8a48cbc5c7208bd30a039bedfe2 SHA1 e8264009e7c6c588e6f4f2e51a10498e0b1d07b7 SHA256 a80545611e6ab19bc671bc20ed87c90e79e2403bfe3d1f48abb2e01eaf2c84fd
|
DIST libprojectM-1.2.0.tar.bz2 1348533 RMD160 bd6bfc6dcda7f8a48cbc5c7208bd30a039bedfe2 SHA1 e8264009e7c6c588e6f4f2e51a10498e0b1d07b7 SHA256 a80545611e6ab19bc671bc20ed87c90e79e2403bfe3d1f48abb2e01eaf2c84fd
|
||||||
DIST projectM-2.0.1-Source.tar.gz 865784 RMD160 27510fd5cfab6feb8560edbee2fa8396aa17e1f6 SHA1 b35d3c8112531cae2abf8f298e762bd728575b6d SHA256 c305182dfc8b7f87b82a146af6cf50a982e7c9c647877a0559dfef4b11dacb93
|
DIST projectM-2.0.1-Source.tar.gz 865784 RMD160 27510fd5cfab6feb8560edbee2fa8396aa17e1f6 SHA1 b35d3c8112531cae2abf8f298e762bd728575b6d SHA256 c305182dfc8b7f87b82a146af6cf50a982e7c9c647877a0559dfef4b11dacb93
|
||||||
|
DIST projectM-complete-2.1.0-Source.tar.gz 31130351 RMD160 af031c4e8544594c77d501358cc509ddb719696d SHA1 a1a966a410360926fee88ff253f929f0290a2405 SHA256 513204f033006bd3dcdf8aada196d816d6b7187266ddcbb1594d0285cc9406ee
|
||||||
|
@ -0,0 +1,19 @@
|
|||||||
|
Index: projectM-complete-2.1.0-Source/src/libprojectM/CMakeLists.txt
|
||||||
|
===================================================================
|
||||||
|
--- projectM-complete-2.1.0-Source.orig/src/libprojectM/CMakeLists.txt
|
||||||
|
+++ projectM-complete-2.1.0-Source/src/libprojectM/CMakeLists.txt
|
||||||
|
@@ -35,7 +35,7 @@ set(PROJECTM_ABI_LEVEL 2)
|
||||||
|
|
||||||
|
ADD_DEFINITIONS(-DCMAKE_INSTALL_PREFIX="\\\"${CMAKE_INSTALL_PREFIX}\\\"")
|
||||||
|
|
||||||
|
-SET(LIB_INSTALL_DIR "\${exec_prefix}/lib"
|
||||||
|
+SET(LIB_INSTALL_DIR "\${exec_prefix}/lib${LIB_SUFFIX}"
|
||||||
|
CACHE PATH "The subdirectory relative to the install prefix where libraries will be installed (default is /lib)"
|
||||||
|
FORCE)
|
||||||
|
|
||||||
|
@@ -237,4 +237,4 @@ INSTALL(FILES ${Renderer_SOURCE_DIR}/pro
|
||||||
|
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/libprojectM.pc DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/pkgconfig)
|
||||||
|
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/config.inp DESTINATION ${CMAKE_INSTALL_PREFIX}/share/projectM)
|
||||||
|
INSTALL(FILES projectM.hpp event.h dlldefs.h fatal.h PCM.hpp Common.hpp DESTINATION include/libprojectM)
|
||||||
|
-INSTALL(TARGETS projectM DESTINATION lib)
|
||||||
|
+INSTALL(TARGETS projectM DESTINATION lib${LIB_SUFFIX})
|
@ -0,0 +1,13 @@
|
|||||||
|
Index: projectM-complete-2.1.0-Source/src/libprojectM/CMakeLists.txt
|
||||||
|
===================================================================
|
||||||
|
--- projectM-complete-2.1.0-Source.orig/src/libprojectM/CMakeLists.txt
|
||||||
|
+++ projectM-complete-2.1.0-Source/src/libprojectM/CMakeLists.txt
|
||||||
|
@@ -33,7 +33,7 @@ set(PROJECTM_VERSION 2.1.0)
|
||||||
|
set(PROJECTM_ABI_LEVEL 2)
|
||||||
|
#
|
||||||
|
|
||||||
|
-ADD_DEFINITIONS(-DCMAKE_INSTALL_PREFIX="\\\"${CMAKE_INSTALL_PREFIX}\\\"")
|
||||||
|
+ADD_DEFINITIONS(-DCMAKE_INSTALL_PREFIX="${CMAKE_INSTALL_PREFIX}")
|
||||||
|
|
||||||
|
SET(LIB_INSTALL_DIR "\${exec_prefix}/lib${LIB_SUFFIX}"
|
||||||
|
CACHE PATH "The subdirectory relative to the install prefix where libraries will be installed (default is /lib)"
|
@ -0,0 +1,54 @@
|
|||||||
|
# Copyright 1999-2012 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/media-libs/libprojectm/libprojectm-2.1.0.ebuild,v 1.1 2012/06/10 22:08:12 aballier Exp $
|
||||||
|
|
||||||
|
EAPI=4
|
||||||
|
|
||||||
|
inherit cmake-utils flag-o-matic eutils toolchain-funcs multilib
|
||||||
|
|
||||||
|
MY_P=${PN/m/M}-complete-${PV}-Source ; MY_P=${MY_P/lib}
|
||||||
|
|
||||||
|
DESCRIPTION="A graphical music visualization plugin similar to milkdrop"
|
||||||
|
HOMEPAGE="http://projectm.sourceforge.net"
|
||||||
|
SRC_URI="mirror://sourceforge/projectm/${MY_P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="LGPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
|
||||||
|
IUSE="debug openmp video_cards_nvidia"
|
||||||
|
|
||||||
|
RDEPEND=">=media-libs/ftgl-2.1.3_rc5
|
||||||
|
media-libs/freetype:2
|
||||||
|
media-libs/mesa
|
||||||
|
media-libs/glew
|
||||||
|
sys-libs/zlib
|
||||||
|
video_cards_nvidia? ( media-gfx/nvidia-cg-toolkit )"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
virtual/pkgconfig"
|
||||||
|
|
||||||
|
S=${WORKDIR}/${MY_P}/src/libprojectM
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/${P}-libsuffix.patch
|
||||||
|
"${FILESDIR}"/${P}-path.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
if use video_cards_nvidia; then
|
||||||
|
append-ldflags -L/opt/nvidia-cg-toolkit/lib
|
||||||
|
append-cppflags -I/opt/nvidia-cg-toolkit/include
|
||||||
|
fi
|
||||||
|
|
||||||
|
local mycmakeargs=(
|
||||||
|
$(cmake-utils_use_use video_cards_nvidia CG)
|
||||||
|
"-DUSE_OPENMP=OFF"
|
||||||
|
)
|
||||||
|
|
||||||
|
if use openmp && tc-has-openmp; then
|
||||||
|
mycmakeargs+=(
|
||||||
|
$(cmake-utils_use_use openmp)
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
|
cmake-utils_src_configure
|
||||||
|
}
|
@ -1,2 +1,2 @@
|
|||||||
DIST 29024-soundkonverter-1.4.0.tar.gz 421410 RMD160 62856251ec6d865a8f8c13f5f0861ec880af0989 SHA1 f1a4b076ff863a73f674e7a4e6254cb405c126a4 SHA256 186fe22f1786b50e3163f3d992abf956f25dce16ba7b4d6e324ecb5bfb2b1f96
|
|
||||||
DIST 29024-soundkonverter-1.5.0.tar.gz 451519 RMD160 b8d128b30c1ee9ffe34915625cb27c47f16aaed5 SHA1 3217a84f2ea6fef353ed95c3ff8dc7ef0ba451ce SHA256 da5d048b7518f791ee542535c5c201e35993b26a057e8a9cfd9f0a7a5abaa0db
|
DIST 29024-soundkonverter-1.5.0.tar.gz 451519 RMD160 b8d128b30c1ee9ffe34915625cb27c47f16aaed5 SHA1 3217a84f2ea6fef353ed95c3ff8dc7ef0ba451ce SHA256 da5d048b7518f791ee542535c5c201e35993b26a057e8a9cfd9f0a7a5abaa0db
|
||||||
|
DIST 29024-soundkonverter-1.6.1.tar.gz 458304 RMD160 ab21a4e7b65abd5ce20c2cf9c449bf974107a4d1 SHA1 e9f07931215b23ad85dad6a5bed4c6d02a393862 SHA256 24f06d778ee3450b4058a6b5b98ee77274eb15e6732362318a5e32c333350a1c
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
QTDIR=/usr/qt/3
|
|
||||||
/usr/bin/mythfilldatabase --no-delete --quiet
|
|
@ -1,13 +0,0 @@
|
|||||||
diff -ruN a/programs/mythfrontend/mythfrontend.pro b/mythtv.new/programs/mythfrontend/mythfrontend.pro
|
|
||||||
--- a/programs/mythfrontend/mythfrontend.pro 2009-06-07 12:32:17.000000000 -0700
|
|
||||||
+++ b/programs/mythfrontend/mythfrontend.pro 2009-06-07 12:34:45.000000000 -0700
|
|
||||||
@@ -16,6 +16,9 @@
|
|
||||||
setting.files += MFEXML_scpd.xml
|
|
||||||
setting.extra = -ldconfig
|
|
||||||
|
|
||||||
+# Gentoo sandbox-2.0:
|
|
||||||
+setting.extra -= -ldconfig
|
|
||||||
+
|
|
||||||
INSTALLS += setting
|
|
||||||
|
|
||||||
QMAKE_CLEAN += $(TARGET)
|
|
@ -1,30 +0,0 @@
|
|||||||
Index: libs/libswscale/libswscale.pro
|
|
||||||
===================================================================
|
|
||||||
--- libs/libswscale/libswscale.pro (revision 22859)
|
|
||||||
+++ libs/libswscale/libswscale.pro (working copy)
|
|
||||||
@@ -14,6 +14,11 @@
|
|
||||||
QMAKE_CFLAGS_DEBUG += -fomit-frame-pointer
|
|
||||||
}
|
|
||||||
|
|
||||||
+# gcc-4.2 and newer can not compile with PIC on x86
|
|
||||||
+contains(ARCH_X86_32, yes) {
|
|
||||||
+ QMAKE_CFLAGS_SHLIB =
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
!profile:QMAKE_CFLAGS_DEBUG += -O
|
|
||||||
|
|
||||||
INCLUDEPATH = .. ../..
|
|
||||||
Index: libs/libavcodec/libavcodec.pro
|
|
||||||
===================================================================
|
|
||||||
--- libs/libavcodec/libavcodec.pro (revision 22859)
|
|
||||||
+++ libs/libavcodec/libavcodec.pro (working copy)
|
|
||||||
@@ -25,7 +25,8 @@
|
|
||||||
QMAKE_CFLAGS_DEBUG += -fomit-frame-pointer
|
|
||||||
}
|
|
||||||
# "-Os" can not compiled with PIC
|
|
||||||
-contains(CONFIG_SMALL, yes):contains(ARCH_X86_32, yes) {
|
|
||||||
+# gcc-4.2 and newer can not compile with PIC on x86
|
|
||||||
+contains(ARCH_X86_32, yes) {
|
|
||||||
QMAKE_CFLAGS_SHLIB =
|
|
||||||
}
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
|||||||
# Copyright 1999-2006 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/files/mythtv.logrotate.d,v 1.2 2007/03/19 04:24:12 cardoe Exp $
|
|
||||||
|
|
||||||
/var/log/mythtv/mythbackend.log /var/log/mythtv/mythfrontend.log {
|
|
||||||
rotate 5
|
|
||||||
weekly
|
|
||||||
create 660 mythtv video
|
|
||||||
notifempty
|
|
||||||
sharedscripts
|
|
||||||
missingok
|
|
||||||
postrotate
|
|
||||||
/bin/kill -HUP `cat /var/run/mythbackend.pid`
|
|
||||||
endscript
|
|
||||||
}
|
|
Before Width: | Height: | Size: 2.6 KiB |
@ -0,0 +1,658 @@
|
|||||||
|
# Copyright 1999-2012 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer/mplayer-1.1.ebuild,v 1.1 2012/06/10 16:40:09 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 +ass 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
|
||||||
|
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 +real +rtc rtmp samba +shm sdl +speex sse sse2 ssse3
|
||||||
|
tga +theora +tremor +truetype +toolame +twolame +unicode v4l vdpau vidix
|
||||||
|
+vorbis win32codecs +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
|
||||||
|
>=media-video/ffmpeg-0.10.3
|
||||||
|
!bindist? (
|
||||||
|
x86? (
|
||||||
|
win32codecs? ( media-libs/win32codecs )
|
||||||
|
)
|
||||||
|
)
|
||||||
|
a52? ( media-libs/a52dec )
|
||||||
|
aalib? ( media-libs/aalib )
|
||||||
|
alsa? ( media-libs/alsa-lib )
|
||||||
|
ass? ( >=media-libs/libass-0.9.10[enca?] )
|
||||||
|
bidi? ( dev-libs/fribidi )
|
||||||
|
bluray? ( >=media-libs/libbluray-0.2.1 )
|
||||||
|
bs2b? ( media-libs/libbs2b )
|
||||||
|
cdio? ( dev-libs/libcdio )
|
||||||
|
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 )
|
||||||
|
ladspa? ( media-libs/ladspa-sdk )
|
||||||
|
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 ~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 !win32codecs )
|
||||||
|
dvdnav? ( dvd )
|
||||||
|
ass? ( truetype )
|
||||||
|
truetype? ( iconv )
|
||||||
|
dxr3? ( X )
|
||||||
|
ggi? ( X )
|
||||||
|
xinerama? ( X )
|
||||||
|
dga? ( X )
|
||||||
|
opengl? ( X )
|
||||||
|
osdmenu? ( X )
|
||||||
|
vdpau? ( X )
|
||||||
|
vidix? ( X )
|
||||||
|
xscreensaver? ( X )
|
||||||
|
xv? ( X )
|
||||||
|
xvmc? ( xv )"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}/${PN}-1.0_rc4-pkg-config.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 )
|
||||||
|
cd "${S}"
|
||||||
|
cp "${FILESDIR}/dump_ffmpeg.sh" . || die
|
||||||
|
chmod +x dump_ffmpeg.sh
|
||||||
|
./dump_ffmpeg.sh || die
|
||||||
|
else
|
||||||
|
unpack ${A}
|
||||||
|
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
|
||||||
|
|
||||||
|
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
|
||||||
|
# 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="ass 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 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
|
||||||
|
if ! use x86 || ! use win32codecs; then
|
||||||
|
use quicktime || myconf+=" --disable-qtx"
|
||||||
|
fi
|
||||||
|
|
||||||
|
######################
|
||||||
|
# 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+=" $(use_enable win32codecs 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
|
||||||
|
if use real; then
|
||||||
|
docinto tech/realcodecs/
|
||||||
|
dodoc DOCS/tech/realcodecs/*
|
||||||
|
fi
|
||||||
|
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"
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
Fix building with gcc-4.7
|
||||||
|
|
||||||
|
https://bugs.gentoo.org/show_bug.cgi?id=419165
|
||||||
|
signed-of-by: Joerg Bornkessel <hd_brummy@gentoo.org> 2012/06/10
|
||||||
|
|
||||||
|
diff -Naur vdr-1.6.0.orig/config.h vdr-1.6.0/config.h
|
||||||
|
--- vdr-1.6.0.orig/config.h 2012-06-10 17:41:26.000000000 +0200
|
||||||
|
+++ vdr-1.6.0/config.h 2012-06-10 17:42:19.000000000 +0200
|
||||||
|
@@ -182,7 +182,7 @@
|
||||||
|
#ifdef USE_CMDSUBMENU
|
||||||
|
AddConfig(l);
|
||||||
|
#else
|
||||||
|
- Add(l);
|
||||||
|
+ this->Add(l);
|
||||||
|
#endif /* CMDSUBMENU */
|
||||||
|
else {
|
||||||
|
esyslog("ERROR: error in %s, line %d", fileName, line);
|
@ -1,24 +0,0 @@
|
|||||||
install only the given value in LINGUAS
|
|
||||||
signed-of: Joerg Bornkessel <hd_brummy@gentoo.org> ( 2012/04/15 )
|
|
||||||
|
|
||||||
diff -Naur vdr-1.7.27.orig/Makefile vdr-1.7.27/Makefile
|
|
||||||
--- vdr-1.7.27.orig/Makefile 2012-04-15 15:45:18.000000000 +0200
|
|
||||||
+++ vdr-1.7.27/Makefile 2012-04-15 15:46:21.000000000 +0200
|
|
||||||
@@ -144,7 +144,7 @@
|
|
||||||
|
|
||||||
PODIR = po
|
|
||||||
LOCALEDIR = locale
|
|
||||||
-I18Npo = $(wildcard $(PODIR)/*.po)
|
|
||||||
+I18Npo = $(foreach dir,$(LINGUAS),$(wildcard $(PODIR)/$(dir)*.po))
|
|
||||||
I18Nmsgs = $(addprefix $(LOCALEDIR)/, $(addsuffix /LC_MESSAGES/vdr.mo, $(notdir $(foreach file, $(I18Npo), $(basename $(file))))))
|
|
||||||
I18Npot = $(PODIR)/vdr.pot
|
|
||||||
|
|
||||||
@@ -167,7 +167,7 @@
|
|
||||||
|
|
||||||
install-i18n:
|
|
||||||
@mkdir -p $(DESTDIR)$(LOCDIR)
|
|
||||||
- @(cd $(LOCALEDIR); cp -r --parents * $(DESTDIR)$(LOCDIR))
|
|
||||||
+ @(cd $(LOCALEDIR); for linguas in $(LINGUAS); do [ "$$linguas" = "en" ] && continue; cp -r --parents $$linguas* $(DESTDIR)$(LOCDIR); done)
|
|
||||||
|
|
||||||
# The 'include' directory (for plugins):
|
|
||||||
|
|
@ -1,448 +0,0 @@
|
|||||||
# Copyright 1999-2012 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/media-video/vdr/vdr-1.6.0_p2-r9.ebuild,v 1.3 2012/05/06 11:07:10 hd_brummy Exp $
|
|
||||||
|
|
||||||
EAPI="4"
|
|
||||||
|
|
||||||
inherit eutils flag-o-matic multilib
|
|
||||||
|
|
||||||
# Switches supported by extensions-patch
|
|
||||||
EXT_PATCH_FLAGS="analogtv atsc cmdsubmenu cutterlimit cutterqueue cuttime ddepgentry
|
|
||||||
dolbyinrec dvbplayer dvbsetup dvdarchive dvdchapjump graphtft hardlinkcutter
|
|
||||||
jumpplay lnbshare mainmenuhooks menuorg noepg osdmaxitems pinplugin
|
|
||||||
rotor settime setup sortrecords sourcecaps livebuffer
|
|
||||||
ttxtsubs timercmd timerinfo validinput yaepg
|
|
||||||
syncearly dvlfriendlyfnames dvlrecscriptaddon dvlvidprefer
|
|
||||||
volctrl wareagleicon lircsettings deltimeshiftrec em84xx
|
|
||||||
cmdreccmdi18n softosd parentalrating"
|
|
||||||
|
|
||||||
# names of the use-flags
|
|
||||||
EXT_PATCH_FLAGS_RENAMED="iptv liemikuutio"
|
|
||||||
|
|
||||||
# names ext-patch uses internally, here only used for maintainer checks
|
|
||||||
EXT_PATCH_FLAGS_RENAMED_EXT_NAME="pluginparam liemiext"
|
|
||||||
|
|
||||||
IUSE="debug vanilla dxr3 ${EXT_PATCH_FLAGS} ${EXT_PATCH_FLAGS_RENAMED}"
|
|
||||||
|
|
||||||
MY_PV="${PV%_p*}"
|
|
||||||
MY_P="${PN}-${MY_PV}"
|
|
||||||
S="${WORKDIR}/${MY_P}"
|
|
||||||
|
|
||||||
EXT_V="72"
|
|
||||||
EXT_P=VDR-Extensions-Patch-${EXT_V}
|
|
||||||
EXT_DIR=${WORKDIR}/${EXT_P}/
|
|
||||||
EXT_VDR_PV="${PV/_p/-}"
|
|
||||||
|
|
||||||
DESCRIPTION="Video Disk Recorder - turns a pc into a powerful set top box for DVB"
|
|
||||||
HOMEPAGE="http://www.tvdr.de/"
|
|
||||||
SRC_URI="ftp://ftp.tvdr.de/vdr/${MY_P}.tar.bz2
|
|
||||||
ftp://ftp.tvdr.de/vdr/Developer/${MY_P}-1.diff
|
|
||||||
ftp://ftp.tvdr.de/vdr/Developer/${MY_P}-2.diff
|
|
||||||
http://www.zulu-entertainment.de/files/patches/${EXT_P}.tar.bz2"
|
|
||||||
|
|
||||||
KEYWORDS="~arm ~amd64 ~ppc ~x86"
|
|
||||||
SLOT="0"
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
|
|
||||||
REQUIRED_USE="setup? ( !menuorg )
|
|
||||||
menuorg? ( !setup )"
|
|
||||||
|
|
||||||
COMMON_DEPEND="virtual/jpeg
|
|
||||||
sys-libs/libcap
|
|
||||||
>=media-libs/fontconfig-2.4.2
|
|
||||||
>=media-libs/freetype-2
|
|
||||||
sys-devel/gettext
|
|
||||||
dvdarchive? ( dvdchapjump? ( >=media-libs/libdvdread-4.1.3_p1168 ) )"
|
|
||||||
|
|
||||||
DEPEND="${COMMON_DEPEND}
|
|
||||||
>=virtual/linuxtv-dvb-headers-5
|
|
||||||
dev-util/unifdef
|
|
||||||
setup? ( >=dev-libs/tinyxml-2.6.1[stl] )"
|
|
||||||
|
|
||||||
RDEPEND="${COMMON_DEPEND}
|
|
||||||
dev-lang/perl
|
|
||||||
>=media-tv/gentoo-vdr-scripts-0.4.5
|
|
||||||
media-fonts/corefonts"
|
|
||||||
|
|
||||||
# pull in vdr-setup to get the xml files, else menu will not work
|
|
||||||
PDEPEND="setup? ( >=media-plugins/vdr-setup-0.3.1-r4 )
|
|
||||||
dxr3? ( >=media-plugins/vdr-dxr3-0.2.13 )"
|
|
||||||
|
|
||||||
CONF_DIR=/etc/vdr
|
|
||||||
CAP_FILE=${S}/capabilities.sh
|
|
||||||
CAPS="# Capabilities of the vdr-executable for use by startscript etc."
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
if [ -n "${VDR_LOCAL_PATCHES_DIR}" ]; then
|
|
||||||
eerror "Using VDR_LOCAL_PATCHES_DIR is deprecated!"
|
|
||||||
eerror "Please move all your patches into"
|
|
||||||
eerror "${EROOT}/etc/portage/patches/${CATEGORY}/${P}"
|
|
||||||
eerror "and remove or unset the VDR_LOCAL_PATCHES_DIR variable."
|
|
||||||
einfo "Note: all patches must have extension .patch"
|
|
||||||
die || "found obselet local patch handling"
|
|
||||||
fi
|
|
||||||
|
|
||||||
use debug && append-flags -g
|
|
||||||
PLUGIN_LIBDIR="/usr/$(get_libdir)/vdr/plugins"
|
|
||||||
}
|
|
||||||
|
|
||||||
add_cap() {
|
|
||||||
local arg
|
|
||||||
for arg; do
|
|
||||||
CAPS="${CAPS}\n${arg}=1"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
enable_patch() {
|
|
||||||
local arg ARG_UPPER
|
|
||||||
for arg; do
|
|
||||||
ARG_UPPER=$(echo $arg|tr '[:lower:]' '[:upper:]')
|
|
||||||
echo "${ARG_UPPER} = 1" >> Make.config
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
extensions_add_make_conf()
|
|
||||||
{
|
|
||||||
# copy all ifdef for extensions-patch to Make.config
|
|
||||||
sed -e '1,/need to touch the following:/d' \
|
|
||||||
-e '/ifdef DVBDIR/,/^$/d' \
|
|
||||||
Make.config.template >> Make.config
|
|
||||||
}
|
|
||||||
|
|
||||||
extensions_all_defines() {
|
|
||||||
# extract all possible settings for extensions-patch
|
|
||||||
sed -e '/^#\?[A-Z].*= 1/!d' -e 's/^#\?//' -e 's/ .*//' \
|
|
||||||
Make.config.template \
|
|
||||||
| sort \
|
|
||||||
| tr '[:upper:]' '[:lower:]'
|
|
||||||
}
|
|
||||||
|
|
||||||
extensions_all_defines_unset() {
|
|
||||||
# extract all possible settings for extensions-patch
|
|
||||||
# and convert them to -U... for unifdef
|
|
||||||
sed -e '/^#\?[A-Z].*= 1/!d' -e 's/^#\?/-UUSE_/' -e 's/ .*//' \
|
|
||||||
Make.config.template \
|
|
||||||
| tr '\n' ' '
|
|
||||||
}
|
|
||||||
|
|
||||||
do_unifdef() {
|
|
||||||
ebegin "Unifdef sources"
|
|
||||||
local mf="Makefile.get"
|
|
||||||
cat <<'EOT' > $mf
|
|
||||||
include Makefile
|
|
||||||
show_def:
|
|
||||||
@echo $(DEFINES)
|
|
||||||
show_src_files:
|
|
||||||
@echo $(OBJS:%.o=%.c)
|
|
||||||
EOT
|
|
||||||
|
|
||||||
local DEFINES=$(extensions_all_defines_unset)
|
|
||||||
|
|
||||||
local RAW_DEFINES=$(make -f "$mf" show_def)
|
|
||||||
local VDR_SRC_FILES=$(make -f "$mf" show_src_files)
|
|
||||||
local KEEP_FILES=""
|
|
||||||
rm "$mf"
|
|
||||||
|
|
||||||
local def
|
|
||||||
for def in $RAW_DEFINES; do
|
|
||||||
case "${def}" in
|
|
||||||
-DUSE*)
|
|
||||||
DEFINES="${DEFINES} ${def}"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
local f
|
|
||||||
for f in *.c; do
|
|
||||||
|
|
||||||
# Removing the src files the Makefile does not use for compiling vdr
|
|
||||||
if ! has $f ${VDR_SRC_FILES} ${KEEP_FILES}; then
|
|
||||||
rm -f ${f} ${f%.c}.h
|
|
||||||
continue
|
|
||||||
fi
|
|
||||||
|
|
||||||
unifdef ${DEFINES} "$f" > "tmp.$f"
|
|
||||||
mv "tmp.$f" "$f"
|
|
||||||
done
|
|
||||||
for f in *.h; do
|
|
||||||
unifdef ${DEFINES} "$f" > "tmp.$f"
|
|
||||||
mv "tmp.$f" "$f"
|
|
||||||
[[ -s $f ]] || rm "$f"
|
|
||||||
done
|
|
||||||
eend 0
|
|
||||||
}
|
|
||||||
|
|
||||||
lang_linguas() {
|
|
||||||
LING1=$( cat /etc/make.conf | grep LINGUAS | sed -e "s:LINGUAS=::" -e "s:\"::g" )
|
|
||||||
}
|
|
||||||
|
|
||||||
lang_po() {
|
|
||||||
LING2=$( ls ${S}/po | tr \\\012 ' ' | sed -e "s:_::g" -e "s:[A-Z]::g" -e "s:.po::g" )
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
#applying maintainace-patches
|
|
||||||
epatch "${DISTDIR}/${MY_P}-1.diff"
|
|
||||||
epatch "${DISTDIR}/${MY_P}-2.diff"
|
|
||||||
epatch "${FILESDIR}"/vdr-dvb-api-5-is-fine.diff
|
|
||||||
epatch "${FILESDIR}"/vdr-1.6.0-ldflags.patch
|
|
||||||
epatch "${FILESDIR}"/vdr-1.6.0-use-v4l2.patch
|
|
||||||
|
|
||||||
ebegin "Changing pathes for gentoo"
|
|
||||||
|
|
||||||
sed \
|
|
||||||
-e 's-ConfigDirectory = VideoDirectory;-ConfigDirectory = CONFDIR;-' \
|
|
||||||
-i vdr.c
|
|
||||||
|
|
||||||
local DVBDIR=/usr/include
|
|
||||||
|
|
||||||
cat > Make.config <<-EOT
|
|
||||||
#
|
|
||||||
# Generated by ebuild ${PF}
|
|
||||||
#
|
|
||||||
PREFIX = /usr
|
|
||||||
DVBDIR = ${DVBDIR}
|
|
||||||
PLUGINLIBDIR = ${PLUGIN_LIBDIR}
|
|
||||||
CONFDIR = ${CONF_DIR}
|
|
||||||
VIDEODIR = /var/vdr/video
|
|
||||||
LOCDIR = \$(PREFIX)/share/locale
|
|
||||||
|
|
||||||
DEFINES += -DCONFDIR=\"\$(CONFDIR)\"
|
|
||||||
INCLUDES += -I\$(DVBDIR)
|
|
||||||
|
|
||||||
EOT
|
|
||||||
eend 0
|
|
||||||
|
|
||||||
epatch "${FILESDIR}"/vdr-1.6.0-makefile-install-header.diff
|
|
||||||
|
|
||||||
sed -i i18n-to-gettext.pl \
|
|
||||||
-e '/MSGIDBUGS/s/""/"automatically created from i18n.c by vdr-plugin.eclass <vdr\\@gentoo.org>"/'
|
|
||||||
|
|
||||||
# Do not install runvdr script and plugins
|
|
||||||
sed -i Makefile \
|
|
||||||
-e 's/runvdr//' \
|
|
||||||
-e 's/ install-plugins//'
|
|
||||||
|
|
||||||
if use vanilla; then
|
|
||||||
epatch "${FILESDIR}"/vdr-1.6.0-gcc-4.4.diff
|
|
||||||
else
|
|
||||||
|
|
||||||
cd "${S}"
|
|
||||||
# Now apply extensions patch
|
|
||||||
local fname="${EXT_DIR}/${PN}-${EXT_VDR_PV:-${PV}}_extensions.diff"
|
|
||||||
|
|
||||||
epatch "${fname}"
|
|
||||||
|
|
||||||
# Fix typo in Make.config.template
|
|
||||||
sed -e 's/CMDRECMDI18N/CMDRECCMDI18N/' -i Make.config.template
|
|
||||||
|
|
||||||
# other gentoo patches
|
|
||||||
# epatch "${FILESDIR}/..."
|
|
||||||
epatch "${FILESDIR}"/vdr-1.6.0-gcc-4.4.diff
|
|
||||||
epatch "${FILESDIR}"/vdr-1.6.0-extensions-72-gcc-4.4.diff
|
|
||||||
epatch "${FILESDIR}"/vdr-1.6.0-shared-tinyxml.diff
|
|
||||||
epatch "${FILESDIR}"/vdr-1.6.0_p2_linguas.diff
|
|
||||||
epatch "${FILESDIR}/vdr-1.6.0_p2_fontconfig_fontsort.patch"
|
|
||||||
|
|
||||||
# This allows us to start even if some plugin does not exist
|
|
||||||
# or is not loadable.
|
|
||||||
enable_patch PLUGINMISSING
|
|
||||||
|
|
||||||
# Patch necessary for media-plugins/vdr-reelchannelscan
|
|
||||||
# it does not change anything when plugin is not used
|
|
||||||
enable_patch CHANNELSCAN
|
|
||||||
|
|
||||||
if [[ -n ${VDR_MAINTAINER_MODE} ]]; then
|
|
||||||
einfo "Doing maintainer checks:"
|
|
||||||
|
|
||||||
# these patches we do not support
|
|
||||||
# (or have them already hard enabled)
|
|
||||||
local IGNORE_PATCHES="channelscan pluginapi pluginmissing streamdevext"
|
|
||||||
|
|
||||||
extensions_all_defines > "${T}"/new.IUSE
|
|
||||||
echo $EXT_PATCH_FLAGS $EXT_PATCH_FLAGS_RENAMED_EXT_NAME \
|
|
||||||
$IGNORE_PATCHES | \
|
|
||||||
tr ' ' '\n' |sort > "${T}"/old.IUSE
|
|
||||||
local DIFFS=$(diff -u "${T}"/old.IUSE "${T}"/new.IUSE|grep '^[+-][^+-]')
|
|
||||||
if [[ -z ${DIFFS} ]]; then
|
|
||||||
einfo "EXT_PATCH_FLAGS is up to date."
|
|
||||||
else
|
|
||||||
ewarn "IUSE differences!"
|
|
||||||
local diff
|
|
||||||
for diff in $DIFFS; do
|
|
||||||
ewarn "$diff"
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
ebegin "Enabling selected patches"
|
|
||||||
local flag
|
|
||||||
for flag in $EXT_PATCH_FLAGS; do
|
|
||||||
use $flag && enable_patch ${flag}
|
|
||||||
done
|
|
||||||
|
|
||||||
# patches that got renamed
|
|
||||||
use iptv && enable_patch pluginparam
|
|
||||||
use liemikuutio && enable_patch liemiext
|
|
||||||
eend 0
|
|
||||||
|
|
||||||
extensions_add_make_conf
|
|
||||||
|
|
||||||
ebegin "Make depend"
|
|
||||||
emake .dependencies >/dev/null
|
|
||||||
eend $? "make depend failed"
|
|
||||||
|
|
||||||
[[ -z "$NO_UNIFDEF" ]] && do_unifdef
|
|
||||||
|
|
||||||
use iptv && sed -i sources.conf -e 's/^#P/P/'
|
|
||||||
fi
|
|
||||||
|
|
||||||
epatch_user
|
|
||||||
|
|
||||||
add_cap CAP_UTF8
|
|
||||||
|
|
||||||
add_cap CAP_IRCTRL_RUNTIME_PARAM \
|
|
||||||
CAP_VFAT_RUNTIME_PARAM \
|
|
||||||
CAP_CHUID \
|
|
||||||
CAP_SHUTDOWN_AUTO_RETRY
|
|
||||||
|
|
||||||
echo -e ${CAPS} > "${CAP_FILE}"
|
|
||||||
|
|
||||||
# LINGUAS handling
|
|
||||||
einfo "\n \t VDR supports now the LINGUAS values"
|
|
||||||
|
|
||||||
lang_po
|
|
||||||
lang_linguas
|
|
||||||
|
|
||||||
einfo "\t Please set one of this values in /etc/make.conf"
|
|
||||||
einfo "\t LINGUAS=\"${LING2}\"\n"
|
|
||||||
|
|
||||||
if [[ -z ${LINGUAS} ]]; then
|
|
||||||
eerror "\n \t No values in LINGUAS="
|
|
||||||
eerror "\t you will get only english text on OSD \n"
|
|
||||||
else
|
|
||||||
einfo "\t Language for ${LING1} will installed \n"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
# trick makefile not to create a videodir by supplying it with an existing
|
|
||||||
# directory
|
|
||||||
emake install DESTDIR="${D}" VIDEODIR="/" || die "emake install failed"
|
|
||||||
|
|
||||||
keepdir "${CONF_DIR}"/plugins
|
|
||||||
keepdir "${CONF_DIR}"/themes
|
|
||||||
|
|
||||||
keepdir "${PLUGIN_LIBDIR}"
|
|
||||||
|
|
||||||
exeinto /usr/share/vdr/bin
|
|
||||||
doexe i18n-to-gettext.pl
|
|
||||||
|
|
||||||
dohtml *.html
|
|
||||||
dodoc MANUAL INSTALL README* HISTORY* CONTRIBUTORS
|
|
||||||
|
|
||||||
cd "${EXT_DIR}/docs" || die "Could not cd into extensions-patch doc dir."
|
|
||||||
|
|
||||||
local f
|
|
||||||
rm *vdr-1.4* 2>/dev/null
|
|
||||||
for f in *; do
|
|
||||||
[[ -f ${f} ]] || continue
|
|
||||||
newdoc "${f}" "${f}".ExtensionsPatch || die "Could not install extensions-patch doc ${f}"
|
|
||||||
done
|
|
||||||
|
|
||||||
cd "${S}"
|
|
||||||
|
|
||||||
insinto /usr/share/vdr
|
|
||||||
doins "${CAP_FILE}"
|
|
||||||
|
|
||||||
if [[ -n "${VDRSOURCE_DIR}" ]]; then
|
|
||||||
local SOURCES_DEST="${VDRSOURCE_DIR}/${P/_p/-}"
|
|
||||||
einfo "Installing sources"
|
|
||||||
insinto "${SOURCES_DEST}"
|
|
||||||
doins -r "${T}"/source-tree/*
|
|
||||||
keepdir "${SOURCES_DEST}"/PLUGINS/lib
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use setup; then
|
|
||||||
insinto /usr/share/vdr/setup
|
|
||||||
doins "${S}"/menu.c
|
|
||||||
fi
|
|
||||||
chown -R vdr:vdr "${D}/${CONF_DIR}"
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_preinst() {
|
|
||||||
has_version "<${CATEGORY}/${PN}-1.3.36-r3"
|
|
||||||
previous_less_than_1_3_36_r3=$?
|
|
||||||
|
|
||||||
has_version "<${CATEGORY}/${PN}-1.6.0"
|
|
||||||
previous_less_than_1_6_0=$?
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
elog "It is a good idea to run vdrplugin-rebuild now."
|
|
||||||
if [[ $previous_less_than_1_3_36_r3 = 0 ]] ; then
|
|
||||||
ewarn "Upgrade Info:"
|
|
||||||
ewarn
|
|
||||||
ewarn "If you had used the use-flags lirc, rcu or vfat"
|
|
||||||
ewarn "then, you now have to enable the associated functionality"
|
|
||||||
ewarn "in /etc/conf.d/vdr"
|
|
||||||
ewarn
|
|
||||||
ewarn "vfat is now set with VFAT_FILENAMES."
|
|
||||||
ewarn "lirc/rcu are now set with IR_CTRL."
|
|
||||||
ebeep
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use setup; then
|
|
||||||
if ! has_version media-plugins/vdr-setup || \
|
|
||||||
! egrep -q '^setup$' "${ROOT}/etc/conf.d/vdr.plugins"; then
|
|
||||||
|
|
||||||
echo
|
|
||||||
ewarn "You have compiled media-video/vdr with USE=\"setup\""
|
|
||||||
ewarn "It is very important to emerge media-plugins/vdr-setup now!"
|
|
||||||
ewarn "and you have to loaded it in /etc/conf.d/vdr.plugins"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
local keysfound=0
|
|
||||||
local key
|
|
||||||
local warn_keys="JumpFwd JumpRew JumpFwdSlow JumpRewSlow"
|
|
||||||
local remote_file="${ROOT}"/etc/vdr/remote.conf
|
|
||||||
|
|
||||||
if [[ -e ${remote_file} ]]; then
|
|
||||||
for key in ${warn_keys}; do
|
|
||||||
if grep -q -i "\.${key} " "${remote_file}"; then
|
|
||||||
keysfound=1
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
if [[ ${keysfound} == 1 ]]; then
|
|
||||||
ewarn "Your /etc/vdr/remote.conf contains keys which are no longer usable"
|
|
||||||
ewarn "Please remove these keys or vdr will not start:"
|
|
||||||
ewarn "# ${warn_keys}"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use atsc; then
|
|
||||||
ewarn "ATSC is only supported by a rudimentary patch"
|
|
||||||
einfo "and need at least this patch and a plugin installed"
|
|
||||||
einfo "emerge media-plugins/vdr-atscepg"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ $previous_less_than_1_6_0 = 0 ]]; then
|
|
||||||
elog "By default vdr is now started with utf8 character encoding"
|
|
||||||
elog
|
|
||||||
elog "To rename the old recordings to utf8 conforming names, do this:"
|
|
||||||
elog "\temerge app-text/convmv"
|
|
||||||
elog "\tconvmv -f latin1 -t utf8 -r --notest -i /var/vdr/video/"
|
|
||||||
elog
|
|
||||||
elog "To fix the descriptions of your recordings do this:"
|
|
||||||
elog "\tfind /var/vdr/video/ -name "info.vdr" -print0|xargs -0 recode latin1..utf8"
|
|
||||||
fi
|
|
||||||
|
|
||||||
elog "To get nice symbols in OSD we recommend to install"
|
|
||||||
elog "\t1. emerge media-fonts/vdrsymbols-ttf"
|
|
||||||
elog "\t2. select font VDRSymbolsSans in Setup"
|
|
||||||
elog ""
|
|
||||||
elog "To get an idea how to proceed now, have a look at our vdr-guide:"
|
|
||||||
elog "\thttp://www.gentoo.org/doc/en/vdr-guide.xml"
|
|
||||||
}
|
|
@ -1,22 +0,0 @@
|
|||||||
|
|
||||||
>=app-admin/eselect-1.2.3
|
|
||||||
0
|
|
||||||
|
|
||||||
|
|
||||||
http://www.gentoo.org/
|
|
||||||
GPL-2
|
|
||||||
Manages ECJ symlinks
|
|
||||||
amd64 ppc ppc64 x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~sparc-solaris ~x86-solaris
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|| ( dev-java/eclipse-ecj:3.5 dev-java/eclipse-ecj:3.4 >=dev-java/eclipse-ecj-3.3.0-r2:3.3 dev-java/ecj-gcj:3.5 )
|
|
||||||
|
|
||||||
1
|
|
||||||
|
|
||||||
install
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,22 +0,0 @@
|
|||||||
|
|
||||||
>=app-admin/eselect-1.2.3
|
|
||||||
0
|
|
||||||
|
|
||||||
|
|
||||||
http://www.gentoo.org/
|
|
||||||
GPL-2
|
|
||||||
Manages ECJ symlinks
|
|
||||||
~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~sparc-solaris ~x86-solaris
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|| ( dev-java/eclipse-ecj:3.7 dev-java/eclipse-ecj:3.6 dev-java/eclipse-ecj:3.5 dev-java/eclipse-ecj:3.4 >=dev-java/eclipse-ecj-3.3.0-r2:3.3 dev-java/ecj-gcj:3.5 )
|
|
||||||
|
|
||||||
1
|
|
||||||
|
|
||||||
install
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,22 @@
|
|||||||
|
app-arch/rpm app-arch/dpkg bzip2? ( app-arch/bzip2 ) dev-util/debhelper >=app-arch/tar-1.14.91
|
||||||
|
app-arch/rpm app-arch/dpkg bzip2? ( app-arch/bzip2 ) dev-util/debhelper >=app-arch/tar-1.14.91
|
||||||
|
0
|
||||||
|
mirror://debian/pool/main/a/alien/alien_8.87.tar.gz
|
||||||
|
|
||||||
|
http://kitenet.net/programs/alien
|
||||||
|
LGPL-2.1
|
||||||
|
Converts between the rpm, dpkg, stampede slp, and slackware tgz file formats
|
||||||
|
~alpha ~amd64 ~hppa ~ppc ~x86
|
||||||
|
base eutils multilib multiprocessing perl-app perl-module toolchain-funcs user
|
||||||
|
+bzip2
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
1
|
||||||
|
|
||||||
|
compile install postinst postrm preinst prerm setup test unpack
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
>=dev-lang/perl-5.6.0 dev-perl/TimeDate >=sys-libs/ncurses-5.2-r7 zlib? ( >=sys-libs/zlib-1.1.4 ) bzip2? ( app-arch/bzip2 ) sys-devel/flex virtual/pkgconfig nls? ( app-text/po4a ) test? ( dev-perl/DateTime-Format-DateParse dev-perl/IO-String dev-perl/Test-Pod ) || ( >=sys-devel/automake-1.11.1:1.11 >=sys-devel/automake-1.12:1.12 ) >=sys-devel/autoconf-2.68 sys-devel/libtool
|
>=dev-lang/perl-5.6.0 dev-perl/TimeDate >=sys-libs/ncurses-5.2-r7 zlib? ( >=sys-libs/zlib-1.1.4 ) bzip2? ( app-arch/bzip2 ) sys-devel/flex virtual/pkgconfig nls? ( app-text/po4a ) test? ( dev-perl/DateTime-Format-DateParse dev-perl/IO-String dev-perl/Test-Pod ) || ( >=sys-devel/automake-1.11.1:1.11 >=sys-devel/automake-1.12:1.12 ) >=sys-devel/autoconf-2.68 sys-devel/libtool
|
||||||
>=dev-lang/perl-5.6.0 dev-perl/TimeDate >=sys-libs/ncurses-5.2-r7 zlib? ( >=sys-libs/zlib-1.1.4 ) bzip2? ( app-arch/bzip2 )
|
>=dev-lang/perl-5.6.0 dev-perl/TimeDate >=sys-libs/ncurses-5.2-r7 zlib? ( >=sys-libs/zlib-1.1.4 ) bzip2? ( app-arch/bzip2 )
|
||||||
0
|
0
|
||||||
mirror://debian/pool/main/d/dpkg/dpkg_1.16.4.1.tar.bz2
|
mirror://debian/pool/main/d/dpkg/dpkg_1.16.4.2.tar.bz2
|
||||||
|
|
||||||
http://packages.qa.debian.org/dpkg
|
http://packages.qa.debian.org/dpkg
|
||||||
GPL-2
|
GPL-2
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue