parent
56defce4e4
commit
ee3d1677c8
@ -0,0 +1 @@
|
||||
DIST eselect-awk-0.2.tar.gz 1541 RMD160 6ff0f471498f18e52a36c092aefa876da04c353d SHA1 dc7c741b24e2b7f6cfcf0676d0903479ff7c7ee5 SHA256 e126c0d04bad2d374c92725e54184e78b8e60f3922440186096d333148cebcf0
|
@ -0,0 +1,19 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-awk/eselect-awk-0.2.ebuild,v 1.1 2012/06/04 03:07:33 ottxor Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
DESCRIPTION="Manages the {,/usr}/bin/awk symlink"
|
||||
HOMEPAGE="http://www.gentoo.org"
|
||||
SRC_URI="http://dev.gentoo.org/~ottxor/distfiles/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~x86"
|
||||
IUSE=""
|
||||
|
||||
src_install() {
|
||||
insinto /usr/share/eselect/modules
|
||||
doins awk.eselect
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer>
|
||||
<email>ottxor@gentoo.org</email>
|
||||
<name>Christoph Junghans</name>
|
||||
</maintainer>
|
||||
<herd>base-system</herd>
|
||||
</pkgmetadata>
|
@ -1,4 +1,5 @@
|
||||
DIST libvirt-0.9.10-bp-1.tar.bz2 4359 RMD160 1b064c56007001f509cd0e940ec337d6281b19bb SHA1 ba11fd52aec15fb80e461a1fbc49c142e58ed3b5 SHA256 038791b47489a831718f98ba9cdf77cff88a6e26003f81a0c2f11581f0bde4a3
|
||||
DIST libvirt-0.9.10.tar.gz 19085438 RMD160 8f103b176fc7b943a88cf7196709865edc5db5e8 SHA1 cf32d6bea295cb30461901d987f049c9547ff1e8 SHA256 5b81d9f054ee4b395b0ab4f59845d082baaa6d6c2a038c966309156dde16e11d
|
||||
DIST libvirt-0.9.11.3.tar.gz 19615688 RMD160 dcfb5c7e9bd5a35d08c8940f3e24164f71a04276 SHA1 2bcb00a901113f53fb5eb3fd2d2a3b3e68dcc0f4 SHA256 aa73b329d2f6eb200991b9dc378d4636c15cd2f95ca224995d01b45257584fa2
|
||||
DIST libvirt-0.9.12.tar.gz 20054618 RMD160 16b38dc2e2f5df9b427ca89ab8c1fb25b63e17e1 SHA1 3743dc4f3e58d5912a98f568c3e854d97d81f216 SHA256 298ffc7f2a6d6e78aae46f11a0980f4bc17fa2928f5de6cd9e8abaf5990336e7
|
||||
DIST libvirt-0.9.8.tar.gz 18403525 RMD160 51bfb25dbd11a7cb5529c692d843f8ac2b1c9101 SHA1 09df699513af63b73444d776c2d02945dc9cee43 SHA256 31b20864e44bb18a2d01b7ac6569f114cbe1007689219bf24a07ddb7528abe0e
|
||||
|
@ -0,0 +1,321 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/libvirt-0.9.12.ebuild,v 1.1 2012/06/04 07:59:24 cardoe Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
#BACKPORTS=1
|
||||
#AUTOTOOLIZE=yes
|
||||
|
||||
MY_P="${P/_rc/-rc}"
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
EGIT_REPO_URI="git://libvirt.org/libvirt.git"
|
||||
AUTOTOOLIZE=yes
|
||||
fi
|
||||
|
||||
PYTHON_DEPEND="python? 2:2.5"
|
||||
#RESTRICT_PYTHON_ABIS="3.*"
|
||||
#SUPPORT_PYTHON_ABIS="1"
|
||||
|
||||
inherit eutils python user autotools
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
inherit git-2
|
||||
SRC_URI=""
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="http://libvirt.org/sources/${MY_P}.tar.gz
|
||||
ftp://libvirt.org/libvirt/${MY_P}.tar.gz
|
||||
${BACKPORTS:+
|
||||
http://dev.gentoo.org/~cardoe/distfiles/${MY_P}-bp-${BACKPORTS}.tar.bz2}"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
S="${WORKDIR}/${P%_rc*}"
|
||||
|
||||
DESCRIPTION="C toolkit to manipulate virtual machines"
|
||||
HOMEPAGE="http://www.libvirt.org/"
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
IUSE="avahi +caps debug iscsi +libvirtd lvm +lxc macvtap nfs \
|
||||
nls numa openvz parted pcap phyp policykit python qemu sasl selinux +udev \
|
||||
uml virtualbox virt-network xen elibc_glibc"
|
||||
# IUSE=one : bug #293416 & bug #299011
|
||||
REQUIRED_USE="libvirtd? ( || ( lxc openvz qemu uml virtualbox xen ) )
|
||||
lxc? ( caps libvirtd ) openvz? ( libvirtd ) qemu? ( libvirtd ) uml? ( libvirtd )
|
||||
virtualbox? ( libvirtd ) xen? ( libvirtd )"
|
||||
|
||||
# gettext.sh command is used by the libvirt command wrappers, and it's
|
||||
# non-optional, so put it into RDEPEND.
|
||||
RDEPEND="sys-libs/readline
|
||||
sys-libs/ncurses
|
||||
>=net-misc/curl-7.18.0
|
||||
dev-libs/libgcrypt
|
||||
>=dev-libs/libxml2-2.7.6
|
||||
dev-libs/libnl:3
|
||||
>=net-libs/gnutls-1.0.25
|
||||
sys-apps/dmidecode
|
||||
>=sys-apps/util-linux-2.17
|
||||
sys-devel/gettext
|
||||
>=net-analyzer/netcat6-1.0-r2
|
||||
app-misc/scrub
|
||||
avahi? ( >=net-dns/avahi-0.6[dbus] )
|
||||
caps? ( sys-libs/libcap-ng )
|
||||
iscsi? ( sys-block/open-iscsi )
|
||||
lxc? ( sys-power/pm-utils )
|
||||
lvm? ( >=sys-fs/lvm2-2.02.48-r2 )
|
||||
nfs? ( net-fs/nfs-utils )
|
||||
numa? ( >sys-process/numactl-2.0.2 )
|
||||
openvz? ( sys-kernel/openvz-sources )
|
||||
parted? (
|
||||
>=sys-block/parted-1.8[device-mapper]
|
||||
sys-fs/lvm2
|
||||
)
|
||||
pcap? ( >=net-libs/libpcap-1.0.0 )
|
||||
phyp? ( net-libs/libssh2 )
|
||||
policykit? ( >=sys-auth/polkit-0.9 )
|
||||
qemu? (
|
||||
|| ( app-emulation/qemu-kvm >=app-emulation/qemu-0.10.0 )
|
||||
dev-libs/yajl
|
||||
sys-power/pm-utils
|
||||
)
|
||||
sasl? ( dev-libs/cyrus-sasl )
|
||||
selinux? ( >=sys-libs/libselinux-2.0.85 )
|
||||
virtualbox? ( || ( app-emulation/virtualbox >=app-emulation/virtualbox-bin-2.2.0 ) )
|
||||
xen? ( app-emulation/xen-tools app-emulation/xen )
|
||||
udev? ( >=sys-fs/udev-145 >=x11-libs/libpciaccess-0.10.9 )
|
||||
virt-network? ( net-dns/dnsmasq
|
||||
>=net-firewall/iptables-1.4.10
|
||||
net-firewall/ebtables
|
||||
sys-apps/iproute2[-minimal] )
|
||||
elibc_glibc? ( || ( >=net-libs/libtirpc-0.2.2-r1 <sys-libs/glibc-2.14 ) )"
|
||||
# one? ( dev-libs/xmlrpc-c )
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
app-text/xhtml1"
|
||||
|
||||
pkg_setup() {
|
||||
use python && python_set_active_version 2
|
||||
python_pkg_setup
|
||||
|
||||
enewgroup qemu 77
|
||||
enewuser qemu 77 -1 -1 qemu
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
[[ -n ${BACKPORTS} ]] && \
|
||||
EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" \
|
||||
epatch
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
|
||||
# git checkouts require bootstrapping to create the configure script.
|
||||
# Additionally the submodules must be cloned to the right locations
|
||||
# bug #377279
|
||||
./bootstrap || die "bootstrap failed"
|
||||
(
|
||||
git submodule status | sed 's/^[ +-]//;s/ .*//'
|
||||
git hash-object bootstrap.conf
|
||||
) >.git-module-status
|
||||
fi
|
||||
|
||||
epatch_user
|
||||
|
||||
[[ -n ${AUTOTOOLIZE} ]] && eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=""
|
||||
|
||||
myconf="${myconf} $(use_enable debug)"
|
||||
|
||||
## enable/disable daemon, otherwise client only utils
|
||||
myconf="${myconf} $(use_with libvirtd)"
|
||||
|
||||
## enable/disable the daemon using avahi to find VMs
|
||||
myconf="${myconf} $(use_with avahi)"
|
||||
|
||||
## hypervisors on the local host
|
||||
myconf="${myconf} $(use_with xen) $(use_with xen xen-inotify)"
|
||||
# leave it automagic as it depends on the version of xen used.
|
||||
use xen || myconf+=" --without-libxl"
|
||||
|
||||
myconf="${myconf} $(use_with openvz)"
|
||||
myconf="${myconf} $(use_with lxc)"
|
||||
if use virtualbox && has_version app-emulation/virtualbox-ose; then
|
||||
myconf="${myconf} --with-vbox=/usr/lib/virtualbox-ose/"
|
||||
else
|
||||
myconf="${myconf} $(use_with virtualbox vbox)"
|
||||
fi
|
||||
myconf="${myconf} $(use_with uml)"
|
||||
myconf="${myconf} $(use_with qemu)"
|
||||
myconf="${myconf} $(use_with qemu yajl)" # Use QMP over HMP
|
||||
# doesn't belong with hypervisors but links to libvirtd for some reason
|
||||
#myconf="${myconf} $(use_with one)"
|
||||
|
||||
## hypervisor protocols
|
||||
myconf="${myconf} $(use_with phyp)"
|
||||
myconf="${myconf} --with-esx"
|
||||
|
||||
## additional host drivers
|
||||
myconf="${myconf} $(use_with virt-network network)"
|
||||
myconf="${myconf} --with-storage-fs"
|
||||
myconf="${myconf} $(use_with lvm storage-lvm)"
|
||||
myconf="${myconf} $(use_with iscsi storage-iscsi)"
|
||||
myconf="${myconf} $(use_with parted storage-disk)"
|
||||
myconf="${myconf} $(use_with lvm storage-mpath)"
|
||||
#myconf="${myconf} --without-storage-rbd"
|
||||
myconf="${myconf} $(use_with numa numactl)"
|
||||
myconf="${myconf} --without-numad"
|
||||
myconf="${myconf} $(use_with selinux)"
|
||||
|
||||
# udev for device support details
|
||||
myconf="${myconf} $(use_with udev)"
|
||||
|
||||
# linux capability support so we don't need privileged accounts
|
||||
myconf="${myconf} $(use_with caps capng)"
|
||||
|
||||
## auth stuff
|
||||
myconf="${myconf} $(use_with policykit polkit)"
|
||||
myconf="${myconf} $(use_with sasl)"
|
||||
|
||||
# network bits
|
||||
myconf="${myconf} $(use_with macvtap)"
|
||||
myconf="${myconf} $(use_with pcap libpcap)"
|
||||
|
||||
## other
|
||||
myconf="${myconf} $(use_enable nls)"
|
||||
myconf="${myconf} $(use_with python)"
|
||||
|
||||
# user privilege bits fir qemu/kvm
|
||||
if use caps; then
|
||||
myconf="${myconf} --with-qemu-user=qemu"
|
||||
myconf="${myconf} --with-qemu-group=qemu"
|
||||
else
|
||||
myconf="${myconf} --with-qemu-user=root"
|
||||
myconf="${myconf} --with-qemu-group=root"
|
||||
fi
|
||||
|
||||
## stuff we don't yet support
|
||||
myconf="${myconf} --without-netcf --without-audit"
|
||||
|
||||
# we use udev over hal
|
||||
myconf="${myconf} --without-hal"
|
||||
|
||||
# locking support
|
||||
myconf="${myconf} --without-sanlock"
|
||||
|
||||
# this is a nasty trick to work around the problem in bug
|
||||
# #275073. The reason why we don't solve this properly is that
|
||||
# it'll require us to rebuild autotools (and we don't really want
|
||||
# to do that right now). The proper solution has been sent
|
||||
# upstream and should hopefully land in 0.7.7, in the mean time,
|
||||
# mime the same functionality with this.
|
||||
case ${CHOST} in
|
||||
*cygwin* | *mingw* )
|
||||
;;
|
||||
*)
|
||||
ac_cv_prog_WINDRES=no
|
||||
;;
|
||||
esac
|
||||
|
||||
econf \
|
||||
${myconf} \
|
||||
--disable-static \
|
||||
--docdir=/usr/share/doc/${PF} \
|
||||
--with-remote \
|
||||
--localstatedir=/var
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
# Restore gnulib's config.sub and config.guess
|
||||
# bug #377279
|
||||
(cd .gnulib && git reset --hard > /dev/null)
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# Explicitly allow parallel build of tests
|
||||
HOME="${T}" emake check || die "tests failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake install \
|
||||
DESTDIR="${D}" \
|
||||
HTML_DIR=/usr/share/doc/${PF}/html \
|
||||
DOCS_DIR=/usr/share/doc/${PF}/python \
|
||||
EXAMPLE_DIR=/usr/share/doc/${PF}/python/examples \
|
||||
|| die "emake install failed"
|
||||
|
||||
find "${D}" -name '*.la' -delete || die
|
||||
|
||||
use libvirtd || return 0
|
||||
# From here, only libvirtd-related instructions, be warned!
|
||||
|
||||
newinitd "${FILESDIR}/libvirtd.init-r8" libvirtd || die
|
||||
newconfd "${FILESDIR}/libvirtd.confd-r3" libvirtd || die
|
||||
|
||||
keepdir /var/lib/libvirt/images
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# we only ever want to generate this once
|
||||
if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then
|
||||
rm -rf "${D}"/etc/libvirt/qemu/networks/default.xml
|
||||
fi
|
||||
|
||||
# We really don't want to use or support old PolicyKit cause it
|
||||
# screws with the new polkit integration
|
||||
if has_version sys-auth/policykit; then
|
||||
rm -rf "${D}"/usr/share/PolicyKit/policy/org.libvirt.unix.policy
|
||||
fi
|
||||
|
||||
# Only sysctl files ending in .conf work
|
||||
mv "${D}"/etc/sysctl.d/libvirtd "${D}"/etc/sysctl.d/libvirtd.conf
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use python && python_mod_optimize libvirt.py
|
||||
|
||||
# support for dropped privileges
|
||||
fperms 0750 "${EROOT}/var/lib/libvirt/qemu"
|
||||
fperms 0750 "${EROOT}/var/cache/libvirt/qemu"
|
||||
if use caps && use qemu; then
|
||||
fowners -R qemu:qemu "${EROOT}/var/lib/libvirt/qemu"
|
||||
fowners -R qemu:qemu "${EROOT}/var/cache/libvirt/qemu"
|
||||
else
|
||||
fowners -R root:root "${EROOT}/var/lib/libvirt/qemu"
|
||||
fowners -R root:root "${EROOT}/var/cache/libvirt/qemu"
|
||||
fi
|
||||
|
||||
if ! use policykit; then
|
||||
elog "To allow normal users to connect to libvirtd you must change the"
|
||||
elog "unix sock group and/or perms in /etc/libvirt/libvirtd.conf"
|
||||
fi
|
||||
|
||||
use libvirtd || return 0
|
||||
# From here, only libvirtd-related instructions, be warned!
|
||||
|
||||
elog
|
||||
elog "For the basic networking support (bridged and routed networks)"
|
||||
elog "you don't need any extra software. For more complex network modes"
|
||||
elog "including but not limited to NATed network, you can enable the"
|
||||
elog "'virt-network' USE flag."
|
||||
elog
|
||||
if has_version net-dns/dnsmasq; then
|
||||
ewarn "If you have a DNS server setup on your machine, you will have"
|
||||
ewarn "to configure /etc/dnsmasq.conf to enable the following settings: "
|
||||
ewarn " bind-interfaces"
|
||||
ewarn " interface or except-interface"
|
||||
ewarn
|
||||
ewarn "Otherwise you might have issues with your existing DNS server."
|
||||
fi
|
||||
|
||||
if use caps && use qemu; then
|
||||
elog "libvirt will now start qemu/kvm VMs with non-root privileges."
|
||||
elog "Ensure any resources your VMs use are accessible by qemu:qemu"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use python && python_mod_cleanup libvirt.py
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST q4wine-0.121.tar.bz2 665208 RMD160 283af7d244c46827159d3a01cf8db8ed5463b605 SHA1 f7e3d2a166dac561330259e51cb9c355fa8908c0 SHA256 fc5a1a8c09d133a17a997a2b020ad03eaf06c81357863d9f69fd7206d86e3edc
|
||||
DIST q4wine-0.999-rc7.tar.bz2 865925 RMD160 77c0c1f715b8dce0f9b83cc5abed6f887069ac6e SHA1 9133c7d0e3dd54a38e7b64edf22389aeac16a056 SHA256 7e6c87e088a9f8b07e105e49b7ed46fd431a26ae379ff9f58571e8318c7abf69
|
||||
|
@ -0,0 +1,61 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/q4wine/q4wine-0.999_rc7.ebuild,v 1.1 2012/06/03 18:57:02 hwoarang Exp $
|
||||
|
||||
EAPI="4"
|
||||
LANGS="cs de en es he it ru uk pl pt"
|
||||
|
||||
inherit cmake-utils
|
||||
|
||||
MY_PV="${PV/_/-}"
|
||||
MY_P="${PN}-${MY_PV}"
|
||||
DESCRIPTION="Qt4 GUI configuration tool for Wine"
|
||||
HOMEPAGE="http://q4wine.brezblock.org.ua/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${PN}/${PN}%20${MY_PV}/${MY_P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="debug +icoutils +wineappdb -dbus gnome kde"
|
||||
|
||||
for x in ${LANGS}; do
|
||||
IUSE+=" linguas_${x}"
|
||||
done
|
||||
|
||||
DEPEND="x11-libs/qt-gui:4
|
||||
x11-libs/qt-sql:4[sqlite]
|
||||
dev-util/cmake"
|
||||
|
||||
RDEPEND="x11-libs/qt-gui:4
|
||||
x11-libs/qt-sql:4[sqlite]
|
||||
app-admin/sudo
|
||||
app-emulation/wine
|
||||
>=sys-apps/which-2.19
|
||||
icoutils? ( >=media-gfx/icoutils-0.26.0 )
|
||||
sys-fs/fuseiso
|
||||
kde? ( kde-base/kdesu )
|
||||
gnome? ( x11-libs/gksu )
|
||||
dbus? ( x11-libs/qt-dbus:4 )"
|
||||
|
||||
DOCS="README AUTHORS ChangeLog"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_configure() {
|
||||
mycmakeargs="${mycmakeargs} \
|
||||
$(cmake-utils_use debug DEBUG) \
|
||||
$(cmake-utils_use_with icoutils ICOUTILS) \
|
||||
$(cmake-utils_use_with wineappdb WINEAPPDB) \
|
||||
$(cmake-utils_use_with dbus DBUS)"
|
||||
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
for x in ${LANGS}; do
|
||||
if ! has ${x} ${LINGUAS}; then
|
||||
find "${D}" -name "${PN}_${x}*.qm" -exec rm {} \;
|
||||
fi
|
||||
done
|
||||
}
|
@ -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/app-misc/ktoblzcheck/ktoblzcheck-1.39.ebuild,v 1.1 2012/06/03 17:48:45 hanno Exp $
|
||||
|
||||
EAPI=4
|
||||
PYTHON_DEPEND="python? 2:2.6"
|
||||
inherit python
|
||||
|
||||
DESCRIPTION="Library to check account numbers and bank codes of German banks"
|
||||
HOMEPAGE="http://ktoblzcheck.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE="python"
|
||||
|
||||
RDEPEND="app-text/recode
|
||||
sys-apps/gawk
|
||||
sys-apps/grep
|
||||
sys-apps/sed
|
||||
|| ( net-misc/wget www-client/lynx )"
|
||||
DEPEND="${RDEPEND}
|
||||
>=sys-devel/libtool-2.2.6b"
|
||||
|
||||
DOCS="AUTHORS ChangeLog NEWS README"
|
||||
|
||||
pkg_setup() {
|
||||
if use python; then
|
||||
python_set_active_version 2
|
||||
python_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
>py-compile
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf $(use_enable python)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
find "${ED}" -name '*.la' -exec rm -f {} +
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use python && python_mod_optimize ktoblzcheck.py
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use python && python_mod_cleanup ktoblzcheck.py
|
||||
}
|
@ -0,0 +1,293 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/acroread/acroread-9.5.1-r1.ebuild,v 1.2 2012/06/03 20:30:59 dilfridge Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit eutils gnome2-utils nsplugins
|
||||
|
||||
DESCRIPTION="Adobe's PDF reader"
|
||||
HOMEPAGE="http://www.adobe.com/products/reader/"
|
||||
IUSE="cups ldap minimal nsplugin"
|
||||
|
||||
SRC_HEAD="http://ardownload.adobe.com/pub/adobe/reader/unix/9.x/${PV}"
|
||||
SRC_FOOT=".tar.bz2"
|
||||
|
||||
# languages not available yet: it:ita es:esp pt:ptb sv:sve zh_CN:chs zh_TW:cht fi:suo nb:nor nl:nld ko:kor da:dan de:deu fr:fra ja:jpn
|
||||
# asian fonts are handled separately
|
||||
LINGUA_LIST="en:enu"
|
||||
DEFAULT_URI="${SRC_HEAD}/enu/AdbeRdr${PV}-1_i486linux_enu${SRC_FOOT}"
|
||||
for ll in ${LINGUA_LIST} ; do
|
||||
iuse_l="linguas_${ll/:*}"
|
||||
src_l=${ll/*:}
|
||||
IUSE="${IUSE} ${iuse_l}"
|
||||
DEFAULT_URI="!${iuse_l}? ( ${DEFAULT_URI} )"
|
||||
SRC_URI="${SRC_URI}
|
||||
${iuse_l}? ( ${SRC_HEAD}/${src_l}/AdbeRdr${PV}-1_i486linux_${src_l}${SRC_FOOT} )"
|
||||
done
|
||||
|
||||
# asian fonts from separate package:
|
||||
IUSE="${IUSE} linguas_zh_CN linguas_zh_TW linguas_ja linguas_ko"
|
||||
|
||||
SRC_URI="${SRC_URI}
|
||||
${DEFAULT_URI}"
|
||||
|
||||
LICENSE="Adobe"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* ~amd64 ~x86"
|
||||
RESTRICT="strip mirror"
|
||||
|
||||
DEPEND="dev-util/bsdiff"
|
||||
|
||||
# mozilla-firefox-bin won't work because it doesn't have gtkembedmoz.so
|
||||
RDEPEND="media-libs/fontconfig
|
||||
x86? ( =dev-libs/openssl-0.9.8* )
|
||||
cups? ( net-print/cups )
|
||||
x86? ( x11-libs/gtk+:2 net-dns/libidn
|
||||
ldap? ( net-nds/openldap )
|
||||
!minimal? ( || ( www-client/firefox
|
||||
www-client/firefox-bin
|
||||
www-client/seamonkey ) ) )
|
||||
amd64? ( app-emulation/emul-linux-x86-gtklibs app-emulation/emul-linux-x86-baselibs )
|
||||
linguas_zh_CN? ( media-fonts/acroread-asianfonts[linguas_zh_CN] )
|
||||
linguas_ja? ( media-fonts/acroread-asianfonts[linguas_ja] )
|
||||
linguas_zh_TW? ( media-fonts/acroread-asianfonts[linguas_zh_TW] )
|
||||
linguas_ko? ( media-fonts/acroread-asianfonts[linguas_ko] )"
|
||||
|
||||
QA_EXECSTACK="opt/Adobe/Reader9/Reader/intellinux/bin/acroread
|
||||
opt/Adobe/Reader9/Reader/intellinux/lib/libauthplay.so.0.0.0
|
||||
opt/Adobe/Reader9/Reader/intellinux/lib/libsccore.so
|
||||
opt/Adobe/Reader9/Reader/intellinux/lib/libcrypto.so.0.9.8
|
||||
opt/Adobe/Reader9/Reader/intellinux/plug_ins/PPKLite.api"
|
||||
|
||||
QA_DT_HASH="opt/Adobe/Reader9/Reader/intellinux/plug_ins3d/.*.x3d
|
||||
opt/Adobe/Reader9/Reader/intellinux/lib/lib.*
|
||||
opt/Adobe/Reader9/Reader/intellinux/bin/SynchronizerApp-binary
|
||||
opt/Adobe/Reader9/Reader/intellinux/bin/acroread
|
||||
opt/Adobe/Reader9/Reader/intellinux/bin/xdg-user-dirs-update
|
||||
opt/Adobe/Reader9/Reader/intellinux/SPPlugins/ADMPlugin.apl
|
||||
opt/Adobe/Reader9/Reader/intellinux/plug_ins/AcroForm/PMP/.*.pmp
|
||||
opt/Adobe/Reader9/Reader/intellinux/plug_ins/Multimedia/MPP/.*.mpp
|
||||
opt/Adobe/Reader9/Reader/intellinux/plug_ins/.*.api
|
||||
opt/Adobe/Reader9/Reader/intellinux/sidecars/.*.DEU
|
||||
opt/Adobe/Reader9/Browser/intellinux/nppdf.so
|
||||
opt/netscape/plugins/nppdf.so"
|
||||
|
||||
QA_TEXTRELS="opt/Adobe/Reader9/Reader/intellinux/lib/libsccore.so"
|
||||
|
||||
INSTALLDIR=/opt
|
||||
|
||||
S="${WORKDIR}/AdobeReader"
|
||||
|
||||
# Actually, ahv segfaults when run standalone so presumably
|
||||
# it isn't intended for direct use - so the only launcher is
|
||||
# acroread after all.
|
||||
LAUNCHERS="Adobe/Reader9/bin/acroread"
|
||||
# Adobe/HelpViewer/1.0/intellinux/bin/ahv"
|
||||
|
||||
# remove bundled libs to force use of system version, bug 340527
|
||||
REMOVELIBS="libcrypto libssl"
|
||||
|
||||
pkg_setup() {
|
||||
# x86 binary package, ABI=x86
|
||||
has_multilib_profile && ABI="x86"
|
||||
}
|
||||
|
||||
# Determine lingua from filename
|
||||
acroread_get_ll() {
|
||||
local f_src_l ll lingua src_l
|
||||
f_src_l=${1/${SRC_FOOT}}
|
||||
f_src_l=${f_src_l/*_}
|
||||
for ll in ${LINGUA_LIST} ; do
|
||||
lingua=${ll/:*}
|
||||
src_l=${ll/*:}
|
||||
if [[ ${src_l} == ${f_src_l} ]] ; then
|
||||
echo ${lingua}
|
||||
return
|
||||
fi
|
||||
done
|
||||
die "Failed to match file $1 to a LINGUA; please report."
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
local ll linguas fl launcher
|
||||
# Unpack all into the same place; overwrite common files.
|
||||
fl=""
|
||||
for pkg in ${A} ; do
|
||||
cd "${WORKDIR}"
|
||||
unpack ${pkg}
|
||||
cd "${S}"
|
||||
tar xf ILINXR.TAR || die "Failed to unpack ILINXR.TAR."
|
||||
tar xf COMMON.TAR || die "Failed to unpack COMMON.TAR."
|
||||
ll=$(acroread_get_ll ${pkg})
|
||||
for launcher in ${LAUNCHERS} ; do
|
||||
mv ${launcher} ${launcher}.${ll}
|
||||
done
|
||||
if [[ -z ${fl} ]] ; then
|
||||
fl=${ll}
|
||||
linguas="${ll}"
|
||||
else
|
||||
linguas="${linguas} ${ll}"
|
||||
fi
|
||||
done
|
||||
if [[ ${linguas} == ${fl} ]] ; then
|
||||
# Only one lingua selected - skip building the wrappers
|
||||
for launcher in ${LAUNCHERS} ; do
|
||||
mv ${launcher}.${fl} ${launcher} ||
|
||||
die "Failed to put ${launcher}.${fl} back to ${launcher}; please report."
|
||||
done
|
||||
else
|
||||
# Build wrappers. Launch the acroread for the environment variable
|
||||
# LANG (matched with a trailing * so that for example 'de_DE' matches
|
||||
# 'de', 'en_GB' matches 'en' etc).
|
||||
#
|
||||
# HelpViewer is new - We don't know if Adobe are likely to
|
||||
# internationalize it or not.
|
||||
for launcher in ${LAUNCHERS} ; do
|
||||
cat > ${launcher} <<-EOF
|
||||
#!/bin/bash
|
||||
# Copyright 1999-2009 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
#
|
||||
# Automatically generated by ${CATEGORY}/${PF}
|
||||
|
||||
# Exec the acroread script for the language chosen in
|
||||
# LC_ALL/LC_MESSAGES/LANG (first found takes precedence, as in glibc)
|
||||
L=\${LC_ALL}
|
||||
L=\${L:-\${LC_MESSAGES}}
|
||||
L=\${L:-\${LANG}}
|
||||
case \${L} in
|
||||
EOF
|
||||
for ll in ${linguas} ; do
|
||||
echo "${ll}*) exec ${INSTALLDIR}/${launcher}.${ll} \"\$@\";;" >> ${launcher}
|
||||
done
|
||||
# default to English (in particular for LANG=C)
|
||||
cat >> ${launcher} <<-EOF
|
||||
*) exec ${INSTALLDIR}/${launcher}.${fl} "\$@";;
|
||||
esac
|
||||
EOF
|
||||
chmod 755 ${launcher}
|
||||
done
|
||||
fi
|
||||
|
||||
# remove cruft
|
||||
rm "${S}"/Adobe/Reader9/bin/UNINSTALL
|
||||
rm "${S}"/Adobe/Reader9/Browser/install_browser_plugin
|
||||
rm "${S}"/Adobe/Reader9/Resource/Support/vnd.*.desktop
|
||||
|
||||
# replace some configuration sections
|
||||
for binfile in "${S}"/Adobe/Reader9/bin/* ; do
|
||||
sed -i -e '/Font-config/,+9d' \
|
||||
-e "/acrogre.conf/r ${FILESDIR}/gentoo_config" -e //N \
|
||||
"${binfile}" || die "sed configuration settings failed."
|
||||
done
|
||||
|
||||
# fix erroneous Exec entry in .desktop
|
||||
sed -i -e 's/^Exec=acroread[[:space:]]*$/Exec=acroread %U/' \
|
||||
"${S}"/Adobe/Reader9/Resource/Support/AdobeReader.desktop \
|
||||
||die "sed .desktop fix failed"
|
||||
|
||||
# fix braindead error in nppdf.so (bug 412051)
|
||||
base64 -d > "${WORKDIR}/nppdf.so.patch" << ENDOFFILE
|
||||
QlNESUZGNDBIAAAAAAAAAC8AAAAAAAAAYL0CAAAAAABCWmg5MUFZJlNZFBL6EAAAFvBh+DwgDAgQ
|
||||
QAAAEABAIAAgACICaGjJtQoaaYAFPzpGDIjiUXSFYEuGy1ix8XckU4UJAUEvoQBCWmg5MUFZJlNZ
|
||||
jrYrlQABYGAAwAAIAAAIIAAwzAUppgKbECni7kinChIR1sVyoEJaaDkxQVkmU1kzGPRGAAAAEYAA
|
||||
AIYFAwAgACIHqbUIYAdBF8XckU4UJAzGPRGA
|
||||
ENDOFFILE
|
||||
einfo "Patching nppdf.so"
|
||||
mv Adobe/Reader9/Browser/intellinux/nppdf.so Adobe/Reader9/Browser/intellinux/nppdf.so.orig || die
|
||||
bspatch Adobe/Reader9/Browser/intellinux/nppdf.so.orig Adobe/Reader9/Browser/intellinux/nppdf.so "${WORKDIR}/nppdf.so.patch" || die
|
||||
rm Adobe/Reader9/Browser/intellinux/nppdf.so.orig || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Install desktop files
|
||||
domenu Adobe/Reader9/Resource/Support/AdobeReader.desktop
|
||||
|
||||
# Install commonly used icon sizes
|
||||
for res in 16x16 22x22 32x32 48x48 64x64 128x128 ; do
|
||||
insinto /usr/share/icons/hicolor/${res}/apps
|
||||
doins Adobe/Reader9/Resource/Icons/${res}/*
|
||||
done
|
||||
|
||||
dodir /opt
|
||||
chown -R --dereference -L root:0 Adobe
|
||||
cp -dpR Adobe "${D}"opt/ || die
|
||||
|
||||
# remove some bundled libs
|
||||
for mylib in ${REMOVELIBS} ; do
|
||||
einfo Removing bundled ${mylib}
|
||||
rm -v "${D}"/opt/Adobe/Reader9/Reader/intellinux/lib/${mylib}*
|
||||
done
|
||||
|
||||
doman Adobe/Reader9/Resource/Shell/acroread.1.gz
|
||||
|
||||
if use nsplugin ; then
|
||||
exeinto /opt/netscape/plugins
|
||||
doexe Adobe/Reader9/Browser/intellinux/nppdf.so
|
||||
inst_plugin /opt/netscape/plugins/nppdf.so
|
||||
fi
|
||||
|
||||
dodir /opt/bin
|
||||
for launcher in ${LAUNCHERS} ; do
|
||||
dosym /opt/${launcher} /opt/bin/${launcher/*bin\/}
|
||||
done
|
||||
|
||||
# We need to set a MOZILLA_COMP_PATH for seamonkey and firefox since
|
||||
# they don't install a configuration file for libgtkembedmoz.so
|
||||
# detection in /etc/gre.d/ like xulrunner did.
|
||||
if ! use minimal ; then
|
||||
if use x86 ; then
|
||||
for lib in /opt/seamonkey /usr/lib/seamonkey /usr/lib/mozilla-firefox ; do
|
||||
if [[ -f ${lib}/libgtkembedmoz.so ]] ; then
|
||||
echo "MOZILLA_COMP_PATH=${lib}" >> "${D}"${INSTALLDIR}/Adobe/Reader9/Reader/GlobalPrefs/mozilla_config
|
||||
elog "Adobe Reader depends on libgtkembedmoz.so, which I've found on"
|
||||
elog "your system in ${lib}, and configured in ${INSTALLDIR}/Adobe/Reader9/Reader/GlobalPrefs/mozilla_config."
|
||||
break # don't search any more libraries
|
||||
fi
|
||||
done
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
gnome2_icon_savelist
|
||||
}
|
||||
|
||||
pkg_postinst () {
|
||||
local ll lc
|
||||
lc=0
|
||||
for ll in ${LINGUA_LIST} ; do
|
||||
use linguas_${ll/:*} && (( lc = ${lc} + 1 ))
|
||||
done
|
||||
if [[ ${lc} > 1 ]] ; then
|
||||
echo
|
||||
elog "Multiple languages have been installed, selected via a wrapper script."
|
||||
elog "The language is selected according to the LANG environment variable"
|
||||
elog "(defaulting to English if LANG is not set, or no matching language"
|
||||
elog "version is installed). Users may need to remove their preferences in"
|
||||
elog "~/.adobe to switch languages."
|
||||
echo
|
||||
fi
|
||||
|
||||
if use minimal ; then
|
||||
echo
|
||||
ewarn "If you want html support and/or view the Adobe Reader help you have"
|
||||
ewarn "to re-emerge acroread with USE=\"-minimal\"."
|
||||
echo
|
||||
fi
|
||||
|
||||
if use nsplugin ; then
|
||||
echo
|
||||
elog "If you're running a 64bit browser you may also want to install"
|
||||
elog "\"www-plugins/nspluginwrapper\" to be able to use the Adobe Reader"
|
||||
elog "browser plugin."
|
||||
echo
|
||||
fi
|
||||
|
||||
gnome2_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_icon_cache_update
|
||||
}
|
@ -1,15 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>proxy-maintainers</herd>
|
||||
<maintainer>
|
||||
<email>jan.bednar@gmail.com</email>
|
||||
<name>Ján Bednár</name>
|
||||
<description>Maintainer</description>
|
||||
</maintainer>
|
||||
<herd>proxy-maintainers</herd>
|
||||
<maintainer>
|
||||
<email>hwoarang@gentoo.org</email>
|
||||
<name>Markos Chandras</name>
|
||||
<description>Proxy maintainer</description>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue