parent
144d712a46
commit
51d7a0de15
@ -1,3 +1,4 @@
|
||||
DIST QXmlEdit-0.4.9-sources.tgz 1177149 RMD160 2bf0ec2c87c1a7c3bfd2fcc6a7a52ed0e24dc0d4 SHA1 668e099a1f23ef21b2114eaa1da6810668e2bf58 SHA256 3a25d7b4e62d7f41787d41ed7c448fdc4689fff0aac1b90488d3dd7a3d97e7d2
|
||||
DIST qxmledit-0.6.1-src.tgz 8783111 RMD160 50a5ad34777f17271a2ea3825530ade7b6595158 SHA1 f9d3b39181205a73cf166b2e027b959874aad57b SHA256 8d51d45bc165d0491aad18dfa049eb0183ce27eb78636f220c0a78b77868aedc
|
||||
DIST qxmledit-0.7.0-src.tgz 8986963 RMD160 0aa40d5e141679124b574209c4a014d37b766b7d SHA1 df40993d68a6aa29b282d2ba39f7978ca4443023 SHA256 d06ea67a154df0e964aa82fca14127e60d1db4b4759891eb0443c2887aaf8b33
|
||||
DIST qxmledit-0.7.2-src.tgz 8987006 RMD160 03517caf51cd5cdd142993339c7ad9e5f151e1b7 SHA1 875e8efbb9ad3284d5d96600f7280eb14b32287d SHA256 72beac6994fd1fedb57148c05853cdaef8dde9f51a9706de900b00d7ac079b38
|
||||
|
@ -0,0 +1,49 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-editors/qxmledit/qxmledit-0.7.2.ebuild,v 1.1 2012/02/20 22:06:18 hwoarang Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit multilib qt4-r2
|
||||
|
||||
MY_P="qxmledit-${PV}-src"
|
||||
|
||||
DESCRIPTION="Qt4 XML Editor"
|
||||
HOMEPAGE="http://code.google.com/p/qxmledit/"
|
||||
SRC_URI="http://${PN}.googlecode.com/files/${MY_P}.tgz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="debug"
|
||||
|
||||
DEPEND="x11-libs/qt-core:4
|
||||
x11-libs/qt-gui:4
|
||||
x11-libs/qt-svg:4
|
||||
x11-libs/qt-xmlpatterns:4"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
DOCS="AUTHORS NEWS README TODO"
|
||||
DOCSDIR="${WORKDIR}/${P}/"
|
||||
|
||||
src_prepare() {
|
||||
# fix doc dir
|
||||
sed -i "/^INST_DOC_DIR/ s|/opt/${PN}|/usr/share/doc/${PF}|" src/QXmlEdit.pro || \
|
||||
die "failed to fix installation path"
|
||||
# fix installation path
|
||||
sed -i "/^INST_DIR/ s|/opt/${PN}|/usr/bin|" src/QXmlEdit.pro || \
|
||||
die "failed to fix installation path"
|
||||
# fix widget library
|
||||
sed -i "/^INST_DIR/ s|/opt/${PN}|/usr/$(get_libdir)|" \
|
||||
src/QXmlEditWidget.pro || die "failed to fix library installation path"
|
||||
# fix translations
|
||||
sed -i "/^INST_DATA_DIR/ s|/opt|/usr/share|" src/QXmlEdit{,Widget}.pro || \
|
||||
die "failed to fix translations"
|
||||
qt4-r2_src_prepare
|
||||
}
|
||||
|
||||
src_install() {
|
||||
qt4-r2_src_install
|
||||
newicon src/images/icon.png ${PN}.png
|
||||
make_desktop_entry QXmlEdit QXmlEdit ${PN} "Qt;Utility;TextEditor"
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST qemu-0.11.1.tar.gz 3830070 RMD160 4da00fa6c01d7ff6af0ee781bc9260da577ea7d3 SHA1 7b983cd18f44c6e7627532b662f010389d3bcdff SHA256 2ecd2fc0af2ce5d96067ae82cc98a08275c596de53fc929484bedee1d6e7893a
|
||||
DIST qemu-1.0-patches.tar.xz 43540 RMD160 79a39d5a8050fe8eedd5e0becb828d2ae0b465c3 SHA1 423880fb32f27e05d1382ed341e6cc4bee840dc3 SHA256 32a8b98cd5fd661268328d71efbfafd65972102b10da363193f3da98bd9b2d72
|
||||
DIST qemu-1.0.tar.gz 10848714 RMD160 3a60aef6cfebba6896bdb12c99525da5456172fd SHA1 7dcb1b3516554d6d899d7488cd444dbb7721fcee SHA256 47674b7da559d5e1b44cc401af9ac5ad962d14e9eede12567b13e4b841989737
|
||||
|
@ -0,0 +1,257 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu/qemu-1.0-r3.ebuild,v 1.1 2012/02/21 08:04:00 lu_zero Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
EGIT_REPO_URI="git://git.qemu.org/qemu.git
|
||||
http://git.qemu.org/git/qemu.git"
|
||||
GIT_ECLASS="git-2"
|
||||
fi
|
||||
|
||||
inherit eutils flag-o-matic ${GIT_ECLASS} linux-info toolchain-funcs
|
||||
|
||||
if [[ ${PV} != *9999* ]]; then
|
||||
SRC_URI="http://wiki.qemu.org/download/${P}.tar.gz
|
||||
http://dev.gentoo.org/~lu_zero/distfiles/${P}-patches.tar.xz"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="QEMU emulator and ABI wrapper"
|
||||
HOMEPAGE="http://www.qemu.org"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="+aio alsa bluetooth brltty curl esd fdt hardened jpeg ncurses nss
|
||||
opengl png pulseaudio qemu-ifup rbd sasl sdl spice ssl static threads usbredir vde
|
||||
+vhost-net xattr xen"
|
||||
|
||||
COMMON_TARGETS="i386 x86_64 alpha arm cris m68k microblaze microblazeel mips mipsel ppc ppc64 sh4 sh4eb sparc sparc64 s390x"
|
||||
IUSE_SOFTMMU_TARGETS="${COMMON_TARGETS} lm32 mips64 mips64el ppcemb xtensa xtensaeb"
|
||||
IUSE_USER_TARGETS="${COMMON_TARGETS} armeb ppc64abi32 sparc32plus unicore32"
|
||||
|
||||
for target in ${IUSE_SOFTMMU_TARGETS}; do
|
||||
IUSE="${IUSE} +qemu_softmmu_targets_${target}"
|
||||
done
|
||||
|
||||
for target in ${IUSE_USER_TARGETS}; do
|
||||
IUSE="${IUSE} +qemu_user_targets_${target}"
|
||||
RDEPEND="${RDEPEND}
|
||||
!app-emulation/qemu-user[qemu_user_targets_${target}?]"
|
||||
done
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="${RDEPEND}
|
||||
!app-emulation/qemu-kvm
|
||||
>=dev-libs/glib-2.0
|
||||
sys-apps/pciutils
|
||||
>=sys-apps/util-linux-2.16.0
|
||||
sys-libs/zlib
|
||||
aio? ( dev-libs/libaio )
|
||||
alsa? ( >=media-libs/alsa-lib-1.0.13 )
|
||||
bluetooth? ( net-wireless/bluez )
|
||||
brltty? ( app-accessibility/brltty )
|
||||
curl? ( net-misc/curl )
|
||||
esd? ( media-sound/esound )
|
||||
fdt? ( >=sys-apps/dtc-1.2.0 )
|
||||
jpeg? ( virtual/jpeg )
|
||||
ncurses? ( sys-libs/ncurses )
|
||||
nss? ( dev-libs/nss )
|
||||
opengl? (
|
||||
virtual/opengl
|
||||
x11-libs/libX11
|
||||
)
|
||||
png? ( media-libs/libpng )
|
||||
pulseaudio? ( media-sound/pulseaudio )
|
||||
qemu-ifup? (
|
||||
sys-apps/iproute2
|
||||
net-misc/bridge-utils
|
||||
)
|
||||
rbd? ( sys-cluster/ceph )
|
||||
sasl? ( dev-libs/cyrus-sasl )
|
||||
sdl? ( >=media-libs/libsdl-1.2.11[X] )
|
||||
spice? (
|
||||
>=app-emulation/spice-0.9.0
|
||||
>=app-emulation/spice-protocol-0.8.1
|
||||
)
|
||||
ssl? ( net-libs/gnutls )
|
||||
usbredir? ( sys-apps/usbredir )
|
||||
vde? ( net-misc/vde )
|
||||
xattr? ( sys-apps/attr )
|
||||
xen? ( app-emulation/xen-tools )
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
app-text/texi2html
|
||||
dev-util/pkgconfig
|
||||
>=sys-kernel/linux-headers-2.6.35
|
||||
"
|
||||
|
||||
# alpha ELF binary. don't let portage mess with it
|
||||
STRIP_MASK="usr/share/qemu/palcode-clipper"
|
||||
|
||||
QA_PRESTRIPPED="
|
||||
usr/share/qemu/openbios-ppc
|
||||
usr/share/qemu/openbios-sparc64
|
||||
usr/share/qemu/openbios-sparc32
|
||||
usr/share/qemu/palcode-clipper
|
||||
"
|
||||
# keep sorted
|
||||
QA_WX_LOAD="${QA_PRESTRIPPED}
|
||||
usr/bin/qemu-alpha
|
||||
usr/bin/qemu-arm
|
||||
usr/bin/qemu-armeb
|
||||
usr/bin/qemu-cris
|
||||
usr/bin/qemu-i386
|
||||
usr/bin/qemu-m68k
|
||||
usr/bin/qemu-microblaze
|
||||
usr/bin/qemu-microblazeel
|
||||
usr/bin/qemu-mips
|
||||
usr/bin/qemu-mipsel
|
||||
usr/bin/qemu-ppc
|
||||
usr/bin/qemu-ppc64
|
||||
usr/bin/qemu-ppc64abi32
|
||||
usr/bin/qemu-sh4
|
||||
usr/bin/qemu-sh4eb
|
||||
usr/bin/qemu-sparc
|
||||
usr/bin/qemu-sparc32plus
|
||||
usr/bin/qemu-sparc64
|
||||
usr/bin/qemu-s390x
|
||||
usr/bin/qemu-unicore32
|
||||
usr/bin/qemu-x86_64
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
use qemu_softmmu_targets_x86_64 || ewarn "You disabled default target QEMU_SOFTMMU_TARGETS=x86_64"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# bug #400595 / CVE-2012-0029
|
||||
epatch "${FILESDIR}"/qemu-kvm-1.0-e1000-bounds-packet-size-against-buffer-size.patch
|
||||
|
||||
EPATCH_SOURCE="${WORKDIR}/patches" EPATCH_SUFFIX="patch" \
|
||||
EPATCH_FORCE="yes" epatch
|
||||
|
||||
# prevent docs to get automatically installed
|
||||
sed -i '/$(DESTDIR)$(docdir)/d' Makefile || die
|
||||
# Alter target makefiles to accept CFLAGS set via flag-o
|
||||
sed -i 's/^\(C\|OP_C\|HELPER_C\)FLAGS=/\1FLAGS+=/' \
|
||||
Makefile Makefile.target || die
|
||||
# append CFLAGS while linking
|
||||
sed -i 's/$(LDFLAGS)/$(QEMU_CFLAGS) $(CFLAGS) $(LDFLAGS)/' rules.mak || die
|
||||
|
||||
# Fix underlinking.
|
||||
# Fault reproducer: USE=nss QEMU_SOFTMMU_TARGETS=lm32 QEMU_USER_TARGETS=
|
||||
sed -i 's/opengl_libs="-lGL"/opengl_libs="-lGL -lX11"/' configure || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local conf_opts audio_opts user_targets
|
||||
|
||||
for target in ${IUSE_SOFTMMU_TARGETS} ; do
|
||||
use "qemu_softmmu_targets_${target}" && \
|
||||
softmmu_targets="${softmmu_targets} ${target}-softmmu"
|
||||
done
|
||||
|
||||
for target in ${IUSE_USER_TARGETS} ; do
|
||||
use "qemu_user_targets_${target}" && \
|
||||
user_targets="${user_targets} ${target}-linux-user"
|
||||
done
|
||||
|
||||
if [[ -z ${softmmu_targets} ]]; then
|
||||
conf_opts="${conf_opts} --disable-system"
|
||||
else
|
||||
einfo "Building the following softmmu targets: ${softmmu_targets}"
|
||||
fi
|
||||
|
||||
if [[ -n ${user_targets} ]]; then
|
||||
einfo "Building the following user targets: ${user_targets}"
|
||||
conf_opts="${conf_opts} --enable-linux-user"
|
||||
else
|
||||
conf_opts="${conf_opts} --disable-linux-user"
|
||||
fi
|
||||
|
||||
# Fix QA issues. QEMU needs executable heaps and we need to mark it as such
|
||||
conf_opts="${conf_opts} --extra-ldflags=-Wl,-z,execheap"
|
||||
|
||||
# Add support for static builds
|
||||
use static && conf_opts="${conf_opts} --static"
|
||||
|
||||
#config options
|
||||
conf_opts="${conf_opts}
|
||||
$(use_enable aio linux-aio)
|
||||
$(use_enable bluetooth bluez)
|
||||
$(use_enable brltty brlapi)
|
||||
$(use_enable curl)
|
||||
$(use_enable fdt)
|
||||
$(use_enable hardened pie)
|
||||
$(use_enable jpeg vnc-jpeg)
|
||||
$(use_enable ncurses curses)
|
||||
$(use_enable nss smartcard-nss)
|
||||
$(use_enable opengl)
|
||||
$(use_enable png vnc-png)
|
||||
$(use_enable rbd)
|
||||
$(use_enable sasl vnc-sasl)
|
||||
$(use_enable sdl)
|
||||
$(use_enable spice)
|
||||
$(use_enable ssl vnc-tls)
|
||||
$(use_enable threads vnc-thread)
|
||||
$(use_enable vde)
|
||||
$(use_enable vhost-net)
|
||||
$(use_enable xen)
|
||||
$(use_enable xattr attr)
|
||||
--disable-darwin-user --disable-bsd-user
|
||||
"
|
||||
|
||||
# audio options
|
||||
audio_opts="oss"
|
||||
use alsa && audio_opts="alsa ${audio_opts}"
|
||||
use esd && audio_opts="esd ${audio_opts}"
|
||||
use pulseaudio && audio_opts="pa ${audio_opts}"
|
||||
use sdl && audio_opts="sdl ${audio_opts}"
|
||||
|
||||
set -- --prefix="${EPREFIX}"/usr \
|
||||
--sysconfdir="${EPREFIX}"/etc \
|
||||
--disable-strip \
|
||||
--disable-werror \
|
||||
--disable-kvm \
|
||||
--disable-libiscsi \
|
||||
--enable-nptl \
|
||||
--enable-uuid \
|
||||
${conf_opts} \
|
||||
--audio-card-list="ac97 es1370 sb16 cs4231a adlib gus hda" \
|
||||
--audio-drv-list="${audio_opts}" \
|
||||
--target-list="${softmmu_targets} ${user_targets}" \
|
||||
--cc="$(tc-getCC)" \
|
||||
--host-cc="$(tc-getBUILD_CC)"
|
||||
|
||||
echo ./configure "$@" # show actual options
|
||||
./configure "$@" || die "configure failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die "make install failed"
|
||||
|
||||
if [[ -n ${softmmu_targets} ]]; then
|
||||
if use qemu-ifup; then
|
||||
exeinto /etc/qemu
|
||||
doexe "${FILESDIR}"/qemu-if{up,down}
|
||||
fi
|
||||
fi
|
||||
|
||||
dodoc Changelog MAINTAINERS TODO pci-ids.txt || die
|
||||
newdoc pc-bios/README README.pc-bios || die
|
||||
dohtml qemu-doc.html qemu-tech.html || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use qemu-ifup || return
|
||||
elog "You will need the Universal TUN/TAP driver compiled into your"
|
||||
elog "kernel or loaded as a module to use the virtual network device"
|
||||
elog "if using -net tap. You will also need support for 802.1d"
|
||||
elog "Ethernet Bridging and a configured bridge if using the provided"
|
||||
elog "qemu-ifup script from /etc/qemu."
|
||||
echo
|
||||
}
|
@ -0,0 +1,226 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.4_rc4.ebuild,v 1.1 2012/02/21 04:17:24 tetromino Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit autotools eutils flag-o-matic multilib pax-utils
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
|
||||
inherit git-2
|
||||
SRC_URI=""
|
||||
#KEYWORDS=""
|
||||
else
|
||||
MY_P="${PN}-${PV/_/-}"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
|
||||
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
fi
|
||||
|
||||
GV="1.4"
|
||||
DESCRIPTION="free implementation of Windows(tm) on Unix"
|
||||
HOMEPAGE="http://www.winehq.org/"
|
||||
SRC_URI="${SRC_URI}
|
||||
gecko? (
|
||||
mirror://sourceforge/wine/wine_gecko-${GV}-x86.msi
|
||||
win64? ( mirror://sourceforge/wine/wine_gecko-${GV}-x86_64.msi )
|
||||
)"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gnutls gphoto2 gsm gstreamer hardened jpeg lcms ldap mp3 ncurses nls odbc openal opencl +opengl +oss +perl png samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml"
|
||||
REQUIRED_USE="elibc_glibc? ( threads )" #286560
|
||||
RESTRICT="test" #72375
|
||||
|
||||
MLIB_DEPS="amd64? (
|
||||
truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 )
|
||||
X? (
|
||||
>=app-emulation/emul-linux-x86-xlibs-2.1
|
||||
>=app-emulation/emul-linux-x86-soundlibs-2.1
|
||||
)
|
||||
mp3? ( app-emulation/emul-linux-x86-soundlibs )
|
||||
odbc? ( app-emulation/emul-linux-x86-db )
|
||||
openal? ( app-emulation/emul-linux-x86-sdl )
|
||||
opengl? ( app-emulation/emul-linux-x86-opengl )
|
||||
scanner? ( app-emulation/emul-linux-x86-medialibs )
|
||||
v4l? ( app-emulation/emul-linux-x86-medialibs )
|
||||
app-emulation/emul-linux-x86-baselibs
|
||||
>=sys-kernel/linux-headers-2.6
|
||||
)"
|
||||
RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 media-fonts/corefonts )
|
||||
perl? ( dev-lang/perl dev-perl/XML-Simple )
|
||||
capi? ( net-dialup/capi4k-utils )
|
||||
ncurses? ( >=sys-libs/ncurses-5.2 )
|
||||
fontconfig? ( media-libs/fontconfig )
|
||||
gphoto2? ( media-libs/libgphoto2 )
|
||||
openal? ( media-libs/openal )
|
||||
udisks? (
|
||||
sys-apps/dbus
|
||||
sys-fs/udisks
|
||||
)
|
||||
gnutls? ( net-libs/gnutls )
|
||||
gstreamer? ( media-libs/gstreamer media-libs/gst-plugins-base )
|
||||
X? (
|
||||
x11-libs/libXcursor
|
||||
x11-libs/libXrandr
|
||||
x11-libs/libXi
|
||||
x11-libs/libXmu
|
||||
x11-libs/libXxf86vm
|
||||
x11-apps/xmessage
|
||||
)
|
||||
xinerama? ( x11-libs/libXinerama )
|
||||
alsa? ( media-libs/alsa-lib )
|
||||
cups? ( net-print/cups )
|
||||
opencl? ( virtual/opencl )
|
||||
opengl? ( virtual/opengl )
|
||||
gsm? ( media-sound/gsm )
|
||||
jpeg? ( virtual/jpeg )
|
||||
ldap? ( net-nds/openldap )
|
||||
lcms? ( =media-libs/lcms-1* )
|
||||
mp3? ( >=media-sound/mpg123-1.5.0 )
|
||||
nls? ( sys-devel/gettext )
|
||||
odbc? ( dev-db/unixODBC )
|
||||
samba? ( >=net-fs/samba-3.0.25 )
|
||||
selinux? ( sec-policy/selinux-wine )
|
||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
||||
scanner? ( media-gfx/sane-backends )
|
||||
ssl? ( dev-libs/openssl )
|
||||
png? ( media-libs/libpng )
|
||||
v4l? ( media-libs/libv4l )
|
||||
!win64? ( ${MLIB_DEPS} )
|
||||
win32? ( ${MLIB_DEPS} )
|
||||
xcomposite? ( x11-libs/libXcomposite )"
|
||||
DEPEND="${RDEPEND}
|
||||
X? (
|
||||
x11-proto/inputproto
|
||||
x11-proto/xextproto
|
||||
x11-proto/xf86vidmodeproto
|
||||
)
|
||||
xinerama? ( x11-proto/xineramaproto )
|
||||
!hardened? ( sys-devel/prelink )
|
||||
virtual/yacc
|
||||
sys-devel/flex"
|
||||
|
||||
src_unpack() {
|
||||
if use win64 ; then
|
||||
[[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]] \
|
||||
&& die "you need gcc-4.4+ to build 64bit wine"
|
||||
fi
|
||||
|
||||
if use win32 && use opencl; then
|
||||
[[ x$(eselect opencl show) = "xintel" ]] &&
|
||||
die "Cannot build wine[opencl,win32]: intel-ocl-sdk is 64-bit only" # 403947
|
||||
fi
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
git-2_src_unpack
|
||||
else
|
||||
unpack ${MY_P}.tar.bz2
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726
|
||||
epatch "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
|
||||
epatch_user #282735
|
||||
eautoreconf
|
||||
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
|
||||
sed -i '/^MimeType/d' tools/wine.desktop || die #117785
|
||||
}
|
||||
|
||||
do_configure() {
|
||||
local builddir="${WORKDIR}/wine$1"
|
||||
mkdir -p "${builddir}"
|
||||
pushd "${builddir}" >/dev/null
|
||||
|
||||
ECONF_SOURCE=${S} \
|
||||
econf \
|
||||
--sysconfdir=/etc/wine \
|
||||
$(use_with alsa) \
|
||||
$(use_with capi) \
|
||||
$(use_with lcms cms) \
|
||||
$(use_with cups) \
|
||||
$(use_with ncurses curses) \
|
||||
$(use_with udisks dbus) \
|
||||
$(use_with fontconfig) \
|
||||
$(use_with gnutls) \
|
||||
$(use_with gphoto2 gphoto) \
|
||||
$(use_with gsm) \
|
||||
$(use_with gstreamer) \
|
||||
--without-hal \
|
||||
$(use_with jpeg) \
|
||||
$(use_with ldap) \
|
||||
$(use_with mp3 mpg123) \
|
||||
$(use_with nls gettext) \
|
||||
$(use_with openal) \
|
||||
$(use_with opencl) \
|
||||
$(use_with opengl) \
|
||||
$(use_with ssl openssl) \
|
||||
$(use_with oss) \
|
||||
$(use_with png) \
|
||||
$(use_with threads pthread) \
|
||||
$(use_with scanner sane) \
|
||||
$(use_enable test tests) \
|
||||
$(use_with truetype freetype) \
|
||||
$(use_with v4l) \
|
||||
$(use_with X x) \
|
||||
$(use_with xcomposite) \
|
||||
$(use_with xinerama) \
|
||||
$(use_with xml) \
|
||||
$(use_with xml xslt) \
|
||||
$2
|
||||
|
||||
emake -j1 depend
|
||||
|
||||
popd >/dev/null
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
export LDCONFIG=/bin/true
|
||||
use custom-cflags || strip-flags
|
||||
|
||||
if use win64 ; then
|
||||
do_configure 64 --enable-win64
|
||||
use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64
|
||||
else
|
||||
ABI=x86 do_configure 32 --disable-win64
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local b
|
||||
for b in 64 32 ; do
|
||||
local builddir="${WORKDIR}/wine${b}"
|
||||
[[ -d ${builddir} ]] || continue
|
||||
emake -C "${builddir}" all
|
||||
done
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local b
|
||||
for b in 64 32 ; do
|
||||
local builddir="${WORKDIR}/wine${b}"
|
||||
[[ -d ${builddir} ]] || continue
|
||||
emake -C "${builddir}" install DESTDIR="${D}"
|
||||
done
|
||||
dodoc ANNOUNCE AUTHORS README
|
||||
if use gecko ; then
|
||||
insinto /usr/share/wine/gecko
|
||||
doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
|
||||
use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
|
||||
fi
|
||||
if ! use perl ; then
|
||||
rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
|
||||
fi
|
||||
|
||||
if use win32 || ! use win64; then
|
||||
pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
|
||||
fi
|
||||
use win64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
|
||||
|
||||
if use win64 && ! use win32; then
|
||||
dosym /usr/bin/wine{64,} # 404331
|
||||
dosym /usr/bin/wine{64,}-preloader
|
||||
fi
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
--- tdl-1.5.2.orig/list.c
|
||||
+++ tdl-1.5.2/list.c
|
||||
@@ -75,14 +75,15 @@
|
||||
static void print_timestamp(int timestamp, char *leader, int indent, int monochrome)/*{{{*/
|
||||
{
|
||||
char buffer[32];
|
||||
- time_t now;
|
||||
+ time_t now, timestamp2;
|
||||
long diff, days_ago, days_ahead;
|
||||
|
||||
now = time(NULL);
|
||||
diff = now - timestamp;
|
||||
days_ago = (diff + ((diff > 0) ? 43200 : -43200)) / 86400;
|
||||
+ timestamp2 = (time_t) timestamp;
|
||||
strftime(buffer, sizeof(buffer), "%a %d %b %Y %H:%M",
|
||||
- localtime((time_t *)×tamp));
|
||||
+ localtime(×tamp2));
|
||||
do_indent(indent+2);
|
||||
if (days_ago < 0) {
|
||||
days_ahead = - days_ago;
|
||||
@@ -524,6 +525,13 @@
|
||||
* Otherwise, use the priority from the specified node, _except_ when
|
||||
* that is higher than normal, in which case use normal. */
|
||||
prio_to_use = (prio_set) ? prio : ((node_prio > prio) ? prio : node_prio);
|
||||
+ /* if listing up-to-some-depth (option -N) and also
|
||||
+ * beginning at some top-level (option NNN) then depth must be
|
||||
+ * decremented by 1
|
||||
+ * see: http://bugs.debian.org/364083 */
|
||||
+ if (options.depth > 0) {
|
||||
+ options.depth--;
|
||||
+ }
|
||||
list_chain(&n->kids, INDENT_TAB, 0, &options, index_buffer, prio_to_use, now, hits);
|
||||
}
|
||||
} else if ((y[0] == '-') && (y[1] == '-')) {
|
@ -0,0 +1,178 @@
|
||||
--- tdl-1.5.2.orig/main.c
|
||||
+++ tdl-1.5.2/main.c
|
||||
@@ -80,7 +80,7 @@
|
||||
return;
|
||||
}
|
||||
/*}}}*/
|
||||
-static volatile void unlock_and_exit(int code)/*{{{*/
|
||||
+static void unlock_and_exit(int code)/*{{{*/
|
||||
{
|
||||
unlock_database();
|
||||
exit(code);
|
||||
@@ -237,22 +237,91 @@
|
||||
|
||||
}
|
||||
/*}}}*/
|
||||
-static void rename_database(char *path)/*{{{*/
|
||||
+static mode_t get_mode(const char *path); /* prototype */
|
||||
+/*}}}*/
|
||||
+static int copy_file_contents(char *pathsrc, char *pathdest) {
|
||||
+ int src, dest;
|
||||
+ ssize_t rdsize = 1;
|
||||
+ char buf[4096];
|
||||
+
|
||||
+ src = open(pathsrc, O_RDONLY);
|
||||
+ if (src == -1) {
|
||||
+ perror("warning, couldn't open database");
|
||||
+ return 0;
|
||||
+ }
|
||||
+ dest = open(pathdest, O_WRONLY | O_CREAT, get_mode(pathsrc));
|
||||
+ if (dest == -1) {
|
||||
+ perror("warning, couldn't open/create backup database");
|
||||
+ close(src);
|
||||
+ return 0;
|
||||
+ }
|
||||
+ if (ftruncate(dest,0) != 0) {
|
||||
+ perror("warning, couldn't truncate backup database");
|
||||
+ close(src);
|
||||
+ close(dest);
|
||||
+ return 0;
|
||||
+ }
|
||||
+ lseek(src,0,SEEK_SET);
|
||||
+ lseek(dest,0,SEEK_SET);
|
||||
+ while (rdsize > 0) {
|
||||
+ rdsize = read(src, buf, 4096);
|
||||
+ if (rdsize == -1) {
|
||||
+ perror("warning, error reading database");
|
||||
+ close(src);
|
||||
+ close(dest);
|
||||
+ return 0;
|
||||
+ }
|
||||
+ if (rdsize > 0) {
|
||||
+ if (write(dest, buf, rdsize) != rdsize) {
|
||||
+ perror("warning, error writing to backup database");
|
||||
+ close(src);
|
||||
+ close(dest);
|
||||
+ return 0;
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
+ close(src);
|
||||
+ close(dest);
|
||||
+ return 1;
|
||||
+}
|
||||
+/*}}}*/
|
||||
+static int path_is_symlink(char *path) {
|
||||
+ int i;
|
||||
+ struct stat s;
|
||||
+ i = lstat(path, &s);
|
||||
+ if ((i == 0) && (S_ISLNK(s.st_mode))) {
|
||||
+ return 1; /* is a symlink */
|
||||
+ }
|
||||
+ return 0; /* not a symlink */
|
||||
+}
|
||||
+/*}}}*/
|
||||
+static int rename_database(char *path)/*{{{*/
|
||||
{
|
||||
- int len;
|
||||
+ /* the rename_database function returns 1 if database or/and
|
||||
+ * database backup file are symlinks; otherwise returns 0 */
|
||||
+ int len, symlinks;
|
||||
char *pathbak;
|
||||
-
|
||||
+
|
||||
len = strlen(path);
|
||||
pathbak = new_array(char, len + 5);
|
||||
strcpy(pathbak, path);
|
||||
strcat(pathbak, ".bak");
|
||||
- if (rename(path, pathbak) < 0) {
|
||||
- if (is_noisy) {
|
||||
- perror("warning, couldn't save backup database:");
|
||||
+
|
||||
+ symlinks = path_is_symlink(path) | path_is_symlink(pathbak);
|
||||
+
|
||||
+ if (symlinks) {
|
||||
+ if (access(path,F_OK) == 0) {
|
||||
+ copy_file_contents(path, pathbak);
|
||||
+ }
|
||||
+ } else {
|
||||
+ if (rename(path, pathbak) < 0) {
|
||||
+ if (is_noisy) {
|
||||
+ perror("warning, couldn't save backup database:");
|
||||
+ }
|
||||
}
|
||||
}
|
||||
free(pathbak);
|
||||
- return;
|
||||
+ return symlinks;
|
||||
}
|
||||
/*}}}*/
|
||||
static char *executable_name(char *argv0)/*{{{*/
|
||||
@@ -315,7 +384,7 @@
|
||||
/*}}}*/
|
||||
static void save_database(char *path)/*{{{*/
|
||||
{
|
||||
- FILE *out;
|
||||
+ FILE *out = NULL;
|
||||
int out_fd;
|
||||
mode_t database_mode;
|
||||
if (is_loaded && currently_dirty) {
|
||||
@@ -324,20 +393,34 @@
|
||||
/* The next line only used to happen if the command wasn't 'create'.
|
||||
* However, it should quietly fail for create, where the existing database
|
||||
* doesn't exist */
|
||||
- rename_database(path);
|
||||
-
|
||||
- /* Open database this way so that the permissions from the existing
|
||||
- database can be duplicated onto the new one in way free of race
|
||||
- conditions. */
|
||||
- out_fd = open(path, O_WRONLY | O_CREAT | O_EXCL, database_mode);
|
||||
- if (out_fd < 0) {
|
||||
- fprintf(stderr, "Could not open new database %s for writing : %s\n",
|
||||
- path, strerror(errno));
|
||||
- unlock_and_exit(1);
|
||||
+ if (rename_database(path) == 0) {
|
||||
+ /* database is a regular file */
|
||||
+ /* Open database this way so that the permissions from the existing
|
||||
+ database can be duplicated onto the new one in way free of race
|
||||
+ conditions. */
|
||||
+ out_fd = open(path, O_WRONLY | O_CREAT | O_EXCL, database_mode);
|
||||
+ if (out_fd < 0) {
|
||||
+ fprintf(stderr, "Could not open new database %s for writing : %s\n",
|
||||
+ path, strerror(errno));
|
||||
+ unlock_and_exit(1);
|
||||
+ }
|
||||
} else {
|
||||
- /* Normal case */
|
||||
- out = fdopen(out_fd, "wb");
|
||||
+ /* database and/or backup database are symlinks */
|
||||
+ /* we should truncate existing file and write its contents */
|
||||
+ out_fd = open(path, O_WRONLY | O_CREAT, database_mode);
|
||||
+ if (out_fd < 0) {
|
||||
+ fprintf(stderr, "Could not open database %s for writing : %s\n",
|
||||
+ path, strerror(errno));
|
||||
+ unlock_and_exit(1);
|
||||
+ } else {
|
||||
+ /* Normal case */
|
||||
+ if (ftruncate(out_fd, 0) != 0) {
|
||||
+ perror("warning, couldn't truncate database:");
|
||||
+ unlock_and_exit(1);
|
||||
+ }
|
||||
+ }
|
||||
}
|
||||
+ out = fdopen(out_fd, "wb");
|
||||
if (!out) {
|
||||
fprintf(stderr, "Cannot open database %s for writing\n", path);
|
||||
unlock_and_exit(1);
|
||||
@@ -728,6 +811,11 @@
|
||||
|
||||
if (!is_loaded && cmds[index].load_db) {
|
||||
load_database(current_database_path);
|
||||
+ if (is_interactive && (!is_loaded)) {
|
||||
+ fprintf(stderr, "error: could not open database. please create a "
|
||||
+ "database with 'tdl create' before using this tdl command\n");
|
||||
+ unlock_and_exit(-1);
|
||||
+ }
|
||||
}
|
||||
|
||||
pp = is_tdl ? (p + 1) : p;
|
@ -0,0 +1,507 @@
|
||||
--- tdl-1.5.2.orig/tdl.1
|
||||
+++ tdl-1.5.2/tdl.1
|
||||
@@ -2,25 +2,25 @@
|
||||
.SH NAME
|
||||
tdl \- To do list manager
|
||||
.SH SYNOPSIS
|
||||
-tdl [-q]
|
||||
+tdl [\-q]
|
||||
.br
|
||||
-tdl [-q] add|edit|defer|log
|
||||
+tdl [\-q] add|edit|defer|log
|
||||
.br
|
||||
-tdl [-q] list|done|undo|report
|
||||
+tdl [\-q] list|done|undo|report
|
||||
.br
|
||||
-tdl [-q] remove|above|below|into|clone|copyto
|
||||
+tdl [\-q] remove|above|below|into|clone|copyto
|
||||
.br
|
||||
-tdl [-q] postpone|ignore|open
|
||||
+tdl [\-q] postpone|ignore|open
|
||||
.br
|
||||
-tdl [-q] which|version|help
|
||||
+tdl [\-q] which|version|help
|
||||
.br
|
||||
-tdla [-q]
|
||||
+tdla [\-q]
|
||||
.br
|
||||
-tdll [-q]
|
||||
+tdll [\-q]
|
||||
.br
|
||||
-tdld [-q]
|
||||
+tdld [\-q]
|
||||
.br
|
||||
-tdlg [-q]
|
||||
+tdlg [\-q]
|
||||
|
||||
.SH DESCRIPTION
|
||||
A program for managing a to-do list.
|
||||
@@ -68,9 +68,9 @@
|
||||
modified database back to the disk. Only use it if you want to discard
|
||||
all changes made in this tdl run.
|
||||
|
||||
-.pp
|
||||
+.PP
|
||||
All forms may take
|
||||
-.I -q
|
||||
+.I \-q
|
||||
as the first command line argument. Currently, this suppresses the warning
|
||||
message if no existing database can be found. The intended use is for using
|
||||
.B tdll
|
||||
@@ -104,7 +104,7 @@
|
||||
appear as the last children of the parent node afterwards.
|
||||
.P
|
||||
.ce 1
|
||||
---ooOOoo--
|
||||
+\-\-ooOOoo-\-
|
||||
.PP
|
||||
.B tdl add
|
||||
.I [@datespec]
|
||||
@@ -156,7 +156,7 @@
|
||||
environment is set, in which case this specifies the path to use).
|
||||
.P
|
||||
.ce 1
|
||||
---ooOOoo--
|
||||
+\-\-ooOOoo-\-
|
||||
.PP
|
||||
.B tdl below
|
||||
.I index_to_insert_below
|
||||
@@ -173,7 +173,7 @@
|
||||
appear as the first children of the parent node afterwards.
|
||||
.P
|
||||
.ce 1
|
||||
---ooOOoo--
|
||||
+\-\-ooOOoo-\-
|
||||
.PP
|
||||
.B tdl clone
|
||||
.I index_to_clone ...
|
||||
@@ -185,7 +185,7 @@
|
||||
to change its text.
|
||||
.P
|
||||
.ce 1
|
||||
---ooOOoo--
|
||||
+\-\-ooOOoo-\-
|
||||
.PP
|
||||
.B tdl copyto
|
||||
.I new_parent_index
|
||||
@@ -197,7 +197,7 @@
|
||||
children of an existing entry, rather than making them new top level entries.
|
||||
.P
|
||||
.ce 1
|
||||
---ooOOoo--
|
||||
+\-\-ooOOoo-\-
|
||||
.PP
|
||||
.B tdl create
|
||||
.PP
|
||||
@@ -217,7 +217,7 @@
|
||||
TDL_DATABASE.
|
||||
.P
|
||||
.ce 1
|
||||
---ooOOoo--
|
||||
+\-\-ooOOoo-\-
|
||||
.PP
|
||||
.B tdl defer
|
||||
.I [@datespec]
|
||||
@@ -233,7 +233,7 @@
|
||||
.P
|
||||
which defers entries 1, 2.1 and all its children, and 5 until the following Friday.
|
||||
To list deferred entries, use
|
||||
-.I list -p
|
||||
+.I list \-p
|
||||
, to defer entries indefinitely, see
|
||||
.I postpone
|
||||
command.
|
||||
@@ -242,7 +242,7 @@
|
||||
command.
|
||||
.P
|
||||
.ce 1
|
||||
---ooOOoo--
|
||||
+\-\-ooOOoo-\-
|
||||
.PP
|
||||
.B tdl done
|
||||
.I @datespec
|
||||
@@ -278,7 +278,7 @@
|
||||
section later in this page.
|
||||
.P
|
||||
.ce 1
|
||||
---ooOOoo--
|
||||
+\-\-ooOOoo-\-
|
||||
.PP
|
||||
.B tdl edit
|
||||
.I index_to_change
|
||||
@@ -294,7 +294,7 @@
|
||||
command.
|
||||
.P
|
||||
.ce 1
|
||||
---ooOOoo--
|
||||
+\-\-ooOOoo-\-
|
||||
.PP
|
||||
.B exit
|
||||
.PP
|
||||
@@ -308,7 +308,7 @@
|
||||
command, which loses all updates made during the current tdl run.
|
||||
.P
|
||||
.ce 1
|
||||
---ooOOoo--
|
||||
+\-\-ooOOoo-\-
|
||||
.PP
|
||||
.B tdl export
|
||||
.I filename
|
||||
@@ -322,14 +322,14 @@
|
||||
the original database.
|
||||
.P
|
||||
.ce 1
|
||||
---ooOOoo--
|
||||
+\-\-ooOOoo-\-
|
||||
.PP
|
||||
.B tdl help
|
||||
.PP
|
||||
This command displays a summary of use of each of the commands.
|
||||
.P
|
||||
.ce 1
|
||||
---ooOOoo--
|
||||
+\-\-ooOOoo-\-
|
||||
.PP
|
||||
.B tdl ignore
|
||||
.I index_to_ignore ...
|
||||
@@ -353,7 +353,7 @@
|
||||
it
|
||||
.P
|
||||
.ce 1
|
||||
---ooOOoo--
|
||||
+\-\-ooOOoo-\-
|
||||
.PP
|
||||
.B tdl import
|
||||
.I filename
|
||||
@@ -367,7 +367,7 @@
|
||||
wanted to merge their entries to form one combo database.
|
||||
.P
|
||||
.ce 1
|
||||
---ooOOoo--
|
||||
+\-\-ooOOoo-\-
|
||||
.PP
|
||||
.B tdl into
|
||||
.I new_parent_index
|
||||
@@ -381,23 +381,23 @@
|
||||
argument has ".0" appended to it.
|
||||
.P
|
||||
.ce 1
|
||||
---ooOOoo--
|
||||
+\-\-ooOOoo-\-
|
||||
.PP
|
||||
.B tdl list
|
||||
-.I [-v]
|
||||
-.I [-a]
|
||||
-.I [-p]
|
||||
-.I [-m]
|
||||
-.I [-1...9]
|
||||
+.I [\-v]
|
||||
+.I [\-a]
|
||||
+.I [\-p]
|
||||
+.I [\-m]
|
||||
+.I [\-1...9]
|
||||
.I [<min-priority>]
|
||||
.I [<parent_index>|<search_conditions>...]
|
||||
.br
|
||||
.B tdll
|
||||
-.I [-v]
|
||||
-.I [-a]
|
||||
-.I [-p]
|
||||
-.I [-m]
|
||||
-.I [-1...9]
|
||||
+.I [\-v]
|
||||
+.I [\-a]
|
||||
+.I [\-p]
|
||||
+.I [\-m]
|
||||
+.I [\-1...9]
|
||||
.I [<min-priority>]
|
||||
.I [<parent_index>|<search_conditions...]
|
||||
.PP
|
||||
@@ -410,13 +410,13 @@
|
||||
.B done
|
||||
and which don't have start times deferred into the future are shown. If you
|
||||
want to display all entries, include the
|
||||
-.B -a
|
||||
+.B \-a
|
||||
option (which means 'all'). If you want to display the dates and times when
|
||||
the entries were added and/or done, include the
|
||||
-.B -v
|
||||
+.B \-v
|
||||
option (which means 'verbose').
|
||||
The
|
||||
-.B -p
|
||||
+.B \-p
|
||||
option stands for postponed. It means that tasks which are 'deferred' or 'postponed'
|
||||
are shown as well as open tasks.
|
||||
.PP
|
||||
@@ -431,14 +431,14 @@
|
||||
top node of each part of the database you want to show. So if your database
|
||||
contains entries with indices 1, 2, 2.1, 2.2, 2.2.1, 3 and 4, the command
|
||||
.PP
|
||||
-tdl list -a 2
|
||||
+tdl list \-a 2
|
||||
.PP
|
||||
will show all entries 2, 2.1, 2.2 and 2.2.1, whether or not they are completed.
|
||||
.PP
|
||||
Also by default, all entries in the database, at any depth, will be shown. If
|
||||
you only wish to show 'top-level' entries, for example, you can use
|
||||
.PP
|
||||
-tdl list -1
|
||||
+tdl list \-1
|
||||
.PP
|
||||
This lists level-1 entries. Any level-1 entry with hidden child entries
|
||||
underneath it will show a summary of how many such children there are. For
|
||||
@@ -454,11 +454,11 @@
|
||||
the normal 'negative index' method can't be used to specify an entry a certain
|
||||
distance from the end of the list. If you want to do this, use a syntax like
|
||||
.PP
|
||||
-tdl list -- -1
|
||||
+tdl list \-\- \-1
|
||||
.PP
|
||||
to show the last index in the array, or
|
||||
.PP
|
||||
-tdl list -2 -- -3 -2 -1
|
||||
+tdl list \-2 \-\- \-3 \-2 \-1
|
||||
.PP
|
||||
to show level-1 and level-2 entries within the last 3 level-1 entries in the
|
||||
list.
|
||||
@@ -489,7 +489,7 @@
|
||||
approximate matches with keys up to 31 characters.
|
||||
.PP
|
||||
By default, the listing is produced with colour highlighting. The
|
||||
-.B -m
|
||||
+.B \-m
|
||||
option can be used to produce a monochrome listing instead. Alternatively, the
|
||||
.B TDL_LIST_MONOCHROME
|
||||
enviroment variable can be set (to any value) to achieve the same effect.
|
||||
@@ -512,7 +512,7 @@
|
||||
.TE
|
||||
.P
|
||||
.ce 1
|
||||
---ooOOoo--
|
||||
+\-\-ooOOoo-\-
|
||||
.PP
|
||||
.B tdl log
|
||||
.br
|
||||
@@ -530,7 +530,7 @@
|
||||
command.
|
||||
.P
|
||||
.ce 1
|
||||
---ooOOoo--
|
||||
+\-\-ooOOoo-\-
|
||||
.PP
|
||||
.B narrow
|
||||
.I new_root_index
|
||||
@@ -562,7 +562,7 @@
|
||||
wouldn't make much sense).
|
||||
.P
|
||||
.ce 1
|
||||
---ooOOoo--
|
||||
+\-\-ooOOoo-\-
|
||||
.PP
|
||||
.B tdl open
|
||||
.I index_to_reopen[...] ...
|
||||
@@ -573,7 +573,7 @@
|
||||
current time.
|
||||
.P
|
||||
.ce 1
|
||||
---ooOOoo--
|
||||
+\-\-ooOOoo-\-
|
||||
.PP
|
||||
.B tdl postpone
|
||||
.I index_to_postpone[...] ...
|
||||
@@ -586,7 +586,7 @@
|
||||
command.
|
||||
.P
|
||||
.ce 1
|
||||
---ooOOoo--
|
||||
+\-\-ooOOoo-\-
|
||||
.PP
|
||||
.B tdl pri
|
||||
.I new_priority
|
||||
@@ -602,7 +602,7 @@
|
||||
command.
|
||||
.P
|
||||
.ce 1
|
||||
---ooOOoo--
|
||||
+\-\-ooOOoo-\-
|
||||
.PP
|
||||
.B tdl purge
|
||||
.I since_epoch
|
||||
@@ -626,7 +626,7 @@
|
||||
descendents. The default is to purge the entire database.
|
||||
.P
|
||||
.ce 1
|
||||
---ooOOoo--
|
||||
+\-\-ooOOoo-\-
|
||||
.PP
|
||||
.B quit
|
||||
.PP
|
||||
@@ -642,7 +642,7 @@
|
||||
The main use for the quit command would be to avoid damaging the database if a serious error had been made.
|
||||
.P
|
||||
.ce 1
|
||||
---ooOOoo--
|
||||
+\-\-ooOOoo-\-
|
||||
.PP
|
||||
.B tdl remove
|
||||
.I index_to_remove ...
|
||||
@@ -659,7 +659,7 @@
|
||||
descendents. This provides a quick way to remove a whole sub-tree of tasks.
|
||||
.P
|
||||
.ce 1
|
||||
---ooOOoo--
|
||||
+\-\-ooOOoo-\-
|
||||
.PP
|
||||
.B tdl report
|
||||
.I start_time
|
||||
@@ -688,12 +688,12 @@
|
||||
will list all tasks completed between 2 and 1 weeks ago.
|
||||
.PP
|
||||
Where a child entry has been completed in the reporting period, but its parent
|
||||
-has not been completed, the parent text in the report will be surrounded by
|
||||
-'[[' and ']]'. To give one example, this will happen if the parent has other
|
||||
+has not been completed, the parent text in the report will be surrounded by '[['
|
||||
+and ']]'. To give one example, this will happen if the parent has other
|
||||
child entries that haven't been completed yet.
|
||||
.P
|
||||
.ce 1
|
||||
---ooOOoo--
|
||||
+\-\-ooOOoo-\-
|
||||
.PP
|
||||
.B revert
|
||||
.PP
|
||||
@@ -706,7 +706,7 @@
|
||||
The revert command does not take any arguments.
|
||||
.P
|
||||
.ce 1
|
||||
---ooOOoo--
|
||||
+\-\-ooOOoo-\-
|
||||
.PP
|
||||
.B save
|
||||
.PP
|
||||
@@ -728,7 +728,7 @@
|
||||
The save command does not take any arguments.
|
||||
.P
|
||||
.ce 1
|
||||
---ooOOoo--
|
||||
+\-\-ooOOoo-\-
|
||||
.PP
|
||||
.B tdl undo
|
||||
.I index_of_entry_to_undo ...
|
||||
@@ -742,7 +742,7 @@
|
||||
descendents. This provides a quick way to re-open a whole sub-tree of tasks.
|
||||
.P
|
||||
.ce 1
|
||||
---ooOOoo--
|
||||
+\-\-ooOOoo-\-
|
||||
.PP
|
||||
.B tdl usage
|
||||
.PP
|
||||
@@ -751,21 +751,21 @@
|
||||
(q.v.)
|
||||
.P
|
||||
.ce 1
|
||||
---ooOOoo--
|
||||
+\-\-ooOOoo-\-
|
||||
.PP
|
||||
.B tdl version
|
||||
.PP
|
||||
Show the version number of the software.
|
||||
.P
|
||||
.ce 1
|
||||
---ooOOoo--
|
||||
+\-\-ooOOoo-\-
|
||||
.PP
|
||||
.B tdl which
|
||||
.PP
|
||||
Show the filename of the database that tdl accesses in the current context.
|
||||
.P
|
||||
.ce 1
|
||||
---ooOOoo--
|
||||
+\-\-ooOOoo-\-
|
||||
.PP
|
||||
.B widen
|
||||
.I n_level
|
||||
@@ -831,30 +831,30 @@
|
||||
.TS
|
||||
tab(&);
|
||||
l l.
|
||||
--1h & exactly 1 hour ago
|
||||
--2d & exactly 2 days ago
|
||||
+\-1h & exactly 1 hour ago
|
||||
+\-2d & exactly 2 days ago
|
||||
+1w & exactly 1 week in the future
|
||||
+1m & exactly 1 month (30 days) in the future
|
||||
+2y & exactly 2 years in the future
|
||||
--1d-0815 & 08:15am yesterday
|
||||
+\-1d-0815 & 08:15am yesterday
|
||||
+1d-08 & 8am tomorrow
|
||||
+1w-08 & 8am on the same day as today next week
|
||||
+6h-08 & 8am on the day containing the time 6 hours ahead of now
|
||||
-\.-08 & 8am today
|
||||
-\.-20 & 8pm today
|
||||
+\.\-08 & 8am today
|
||||
+\.\-20 & 8pm today
|
||||
20011020 & absolute : 12 noon on 20th October 2001
|
||||
011020 & absolute : 12 noon on 20th October 2001 (current century)
|
||||
1020 & absolute : 12 noon on 20th October 2001 (current century and year)
|
||||
20 & absolute : 12 noon on 20th October 2001 (current century, year and month)
|
||||
-20011020-081500 & absolute : 08:15am on 20th October 2001
|
||||
-20011020-0815 & absolute : 08:15am on 20th October 2001 (seconds=0)
|
||||
-20011020-08 & absolute : 08:00am on 20th October 2001 (minutes=seconds=0)
|
||||
-011020-08 & absolute : 08:00am on 20th October 2001 (minutes=seconds=0, current century)
|
||||
+20011020\-081500 & absolute : 08:15am on 20th October 2001
|
||||
+20011020\-0815 & absolute : 08:15am on 20th October 2001 (seconds=0)
|
||||
+20011020\-08 & absolute : 08:00am on 20th October 2001 (minutes=seconds=0)
|
||||
+011020\-08 & absolute : 08:00am on 20th October 2001 (minutes=seconds=0, current century)
|
||||
etc & (see below)
|
||||
--sun & 12 noon on the previous Sunday
|
||||
+\-sun & 12 noon on the previous Sunday
|
||||
+sat & 12 noon on the following Saturday
|
||||
+sat-08 & 8am on the following Saturday
|
||||
--tue-0815 & 08:15am on the previous Tuesday
|
||||
+\-tue-0815 & 08:15am on the previous Tuesday
|
||||
etc & (see below)
|
||||
.TE
|
||||
.PP
|
||||
@@ -876,7 +876,7 @@
|
||||
of the more uses of this mode are rather far-fetched.
|
||||
.PP
|
||||
For the weekday and relative formats, the sign is actually optional. The
|
||||
-default sign (implying past (-) or future (+)) will then be assumed depending on
|
||||
+default sign (implying past (\-) or future (+)) will then be assumed depending on
|
||||
the command as shown below:
|
||||
|
||||
.PP
|
||||
@@ -886,9 +886,9 @@
|
||||
Command & Default & Reason
|
||||
_
|
||||
add & + & Add entries with deferred start times
|
||||
-done & - & Entries have been completed at some time in the past
|
||||
-report & - & Reporting on earlier completed tasks not future ones
|
||||
-purge & - & Tasks won't be completed in the future, so no need to purge future ones
|
||||
+done & \- & Entries have been completed at some time in the past
|
||||
+report & \- & Reporting on earlier completed tasks not future ones
|
||||
+purge & \- & Tasks won't be completed in the future, so no need to purge future ones
|
||||
.TE
|
||||
|
||||
.SH HOMEPAGE
|
||||
@@ -943,16 +943,7 @@
|
||||
.IP
|
||||
cd project1
|
||||
.br
|
||||
-ln -s ../project2/.tdldb .
|
||||
+ln \-s ../project2/.tdldb .
|
||||
|
||||
.SH BUGS
|
||||
Please report them to the author.
|
||||
-
|
||||
-.SH SEE ALSO
|
||||
-The full documentation for tdl is maintained as a Texinfo manual. If the info and tdl
|
||||
-programs are properly installed at your site, the command
|
||||
-.IP
|
||||
-info tdl
|
||||
-.PP
|
||||
-should give you access to the complete manual.
|
||||
-
|
@ -0,0 +1,76 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/tdl/tdl-1.5.2-r2.ebuild,v 1.1 2012/02/21 07:54:56 jlec Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit eutils flag-o-matic toolchain-funcs
|
||||
|
||||
DESCRIPTION="Command line To Do List manager"
|
||||
HOMEPAGE="http://www.rc0.org.uk/tdl/"
|
||||
SRC_URI="
|
||||
http://www.rpcurnow.force9.co.uk/tdl/${P}.tar.gz
|
||||
http://dev.gentoo.org/~jlec/distfiles/${PN}-screenshot.png.tar"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~ppc ~x86"
|
||||
IUSE="doc readline"
|
||||
|
||||
RDEPEND="
|
||||
sys-libs/ncurses
|
||||
sys-libs/readline"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-apps/sed
|
||||
sys-apps/texinfo
|
||||
doc? ( virtual/texi2dvi )"
|
||||
|
||||
src_prepare() {
|
||||
epatch \
|
||||
"${FILESDIR}"/${PV}-ldflags.patch \
|
||||
"${FILESDIR}"/${P}-list.c.patch \
|
||||
"${FILESDIR}"/${P}-main.c.patch \
|
||||
"${FILESDIR}"/${P}-man.patch
|
||||
|
||||
tc-export CC
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf="--prefix=${EPREFIX}/usr"
|
||||
|
||||
if ! use readline; then
|
||||
myconf="${myconf} --without-readline"
|
||||
|
||||
sed -i 's#\($(LIB_READLINE)\)#\1 -lncurses##g' "${S}"/Makefile.in || die
|
||||
fi
|
||||
sed -i 's#-ltermcap#-lncurses#g' "${S}"/configure || die
|
||||
|
||||
# XXX: do not replace with econf.
|
||||
"${S}"/configure ${myconf} || die "configure failed, sorry!"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake all tdl.info tdl.html tdl.txt
|
||||
use doc && emake tdl.dvi tdl.ps tdl.pdf
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local i
|
||||
|
||||
dodoc README NEWS tdl.txt "${WORKDIR}"/screenshot.png
|
||||
doinfo tdl.info
|
||||
dohtml tdl.html
|
||||
|
||||
dobin tdl
|
||||
doman tdl.1
|
||||
|
||||
for i in tdl{a,l,d,g}
|
||||
do
|
||||
dosym tdl /usr/bin/${i}
|
||||
dosym tdl.1 /usr/share/man/man1/${i}.1
|
||||
done
|
||||
|
||||
if use doc; then
|
||||
dodoc tdl.dvi tdl.ps tdl.pdf
|
||||
fi
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST gtimelog-0.7.0.tar.gz 186292 RMD160 792a2a572e3f24b048fdc601d0edeb07e00d6383 SHA1 63fc77d60d701df5549a7c53d46f151f7cc5a494 SHA256 21c8a47a395581d444b0242adb9d9b229bffbe84685a5fd8ac33b7ac1ddf8779
|
@ -0,0 +1,69 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-office/gtimelog/gtimelog-0.7.0.ebuild,v 1.1 2012/02/21 04:40:54 tetromino Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
PYTHON_DEPEND="2"
|
||||
|
||||
inherit eutils distutils versionator virtualx
|
||||
|
||||
DESCRIPTION="A small Gtk+ application for keeping track of your time"
|
||||
HOMEPAGE="http://mg.pov.lt/gtimelog/"
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
|
||||
SRC_URI="https://launchpad.net/gtimelog/devel/$(get_version_component_range 1-2 ${PV})/+download/${P}.tar.gz"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
IUSE="ayatana test"
|
||||
|
||||
# gnome-base/gnome-desktop provides gnome-week.png
|
||||
RDEPEND="dev-libs/gobject-introspection
|
||||
dev-python/dbus-python
|
||||
dev-python/pygobject:3
|
||||
gnome-base/gnome-desktop:2
|
||||
x11-libs/gtk+:3[introspection]
|
||||
x11-libs/pango[introspection]
|
||||
|
||||
ayatana? ( dev-libs/libappindicator:3[introspection] )"
|
||||
DEPEND="test? (
|
||||
${RDEPEND}
|
||||
dev-libs/libappindicator:3[introspection] )"
|
||||
|
||||
DISTUTILS_SRC_TEST="setup.py"
|
||||
|
||||
pkg_setup() {
|
||||
python_set_active_version 2
|
||||
python_pkg_setup
|
||||
|
||||
DOCS="HACKING.txt NEWS.txt NOTES.txt README.txt"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
python_convert_shebangs -r 2 .
|
||||
# Support prefixed installation
|
||||
sed -e "s:\"/usr:\"${EPREFIX}/usr:g" \
|
||||
-i src/gtimelog/main.py || die "sed failed"
|
||||
distutils_src_prepare
|
||||
}
|
||||
|
||||
src_test() {
|
||||
VIRTUALX_COMMAND=distutils_src_test virtualmake
|
||||
}
|
||||
|
||||
src_install() {
|
||||
domenu gtimelog.desktop
|
||||
insinto /usr/share/pixmaps
|
||||
doins src/gtimelog/gtimelog-*.png
|
||||
insinto /usr/share/gtimelog
|
||||
doins src/gtimelog/*.ui src/gtimelog/gtimelog.png
|
||||
exeinto /usr/share/gtimelog/scripts
|
||||
doexe scripts/*.py
|
||||
|
||||
distutils_src_install
|
||||
|
||||
# Don't install icons in /usr/lib/python*
|
||||
find "${ED}/$(python_get_sitedir)" -regex '.*\(png\|ui\)$' -exec rm -f {} + || die
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>gnome</herd>
|
||||
</pkgmetadata>
|
@ -0,0 +1,75 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-portage/elogv/elogv-0.7.5-r1.ebuild,v 1.1 2012/02/20 22:22:05 fuzzyray Exp $
|
||||
|
||||
EAPI="3"
|
||||
PYTHON_DEPEND="2"
|
||||
PYTHON_USE_WITH="ncurses"
|
||||
|
||||
inherit distutils eutils prefix
|
||||
|
||||
DESCRIPTION="Curses based utility to parse the contents of elogs created by Portage"
|
||||
HOMEPAGE="http://gechi-overlay.sourceforge.net/?page=elogv"
|
||||
SRC_URI="mirror://sourceforge/gechi-overlay/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~ppc ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos"
|
||||
IUSE="linguas_de linguas_es linguas_it linguas_pl"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND=""
|
||||
|
||||
pkg_setup() {
|
||||
python_set_active_version 2
|
||||
python_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
distutils_src_prepare
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils_src_install
|
||||
dodoc README || die
|
||||
|
||||
# Remove unused man pages/LC_MESSAGES according to the linguas flags
|
||||
if ! use linguas_de ; then
|
||||
rm -rf "${ED}"/usr/share/locale/de
|
||||
rm -rf "${ED}"/usr/share/man/de
|
||||
fi
|
||||
|
||||
if ! use linguas_es ; then
|
||||
rm -rf "${ED}"/usr/share/locale/es
|
||||
rm -rf "${ED}"/usr/share/man/es
|
||||
fi
|
||||
|
||||
if ! use linguas_it ; then
|
||||
rm -rf "${ED}"/usr/share/locale/it
|
||||
rm -rf "${ED}"/usr/share/man/it
|
||||
fi
|
||||
|
||||
if ! use linguas_pl ; then
|
||||
rm -rf "${ED}"/usr/share/locale/pl
|
||||
rm -rf "${ED}"/usr/share/man/pl
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
distutils_pkg_postinst
|
||||
|
||||
elog
|
||||
elog "In order to use this software, you need to activate"
|
||||
elog "Portage's elog features. Required is"
|
||||
elog " PORTAGE_ELOG_SYSTEM=\"save\" "
|
||||
elog "and at least one out of "
|
||||
elog " PORTAGE_ELOG_CLASSES=\"warn error info log qa\""
|
||||
elog "More information on the elog system can be found"
|
||||
elog "in ${EPREFIX}/etc/make.conf.example"
|
||||
elog
|
||||
elog "To operate properly this software needs the directory"
|
||||
elog "${PORT_LOGDIR:-${EPREFIX}/var/log/portage}/elog created, belonging to group portage."
|
||||
elog "To start the software as a user, add yourself to the portage"
|
||||
elog "group."
|
||||
elog
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST convmv-1.10.tar.gz 21276 RMD160 e9faf9e698006b2faa24e65374819053cfa0b6a4 SHA1 44cee0c861ced92c5061a0e2287bfb9ef791d22f SHA256 e3ac03846617df4346eb7537289c5bac80d245c4768a53671c289c98d7bfb9c8
|
||||
DIST convmv-1.12.tar.gz 23059 RMD160 c805c6c7993e465ea94daa8fe9439c2a5e32ff77 SHA1 7fe095e54f03b2ad689d3e970906373c4214f753 SHA256 49a6576b68e986cf1f6c18a93e7bcef554cf614ccdc19dd117becb6624425e0f
|
||||
DIST convmv-1.14.tar.gz 26620 RMD160 3b9c2a89dccad4d0361241a71d588f37450338b0 SHA1 e6261eed4771014e84ffe68aac8041c02fb1834d SHA256 9695f5e24a17c9056f69479efc4c1b60174de1901ad83d8dbd6ecea2fdca7cef
|
||||
DIST convmv-1.15.tar.gz 27180 RMD160 f92c74f93ed02c1c817a6e899f9be910ce6b362e SHA1 7ca8599a37480a99058c4498fba7cfed64134de5 SHA256 c315aec78490b588000467d1c51081b36e629de0537c5a17fd48b1acaf8a5135
|
||||
|
@ -0,0 +1,34 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/convmv/convmv-1.15.ebuild,v 1.1 2012/02/21 08:35:47 robbat2 Exp $
|
||||
|
||||
EAPI=3
|
||||
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="convert filenames to utf8 or any other charset"
|
||||
HOMEPAGE="http://j3e.de/linux/convmv"
|
||||
SRC_URI="http://j3e.de/linux/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-lang/perl"
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e "1s|#!/usr|#!${EPREFIX}/usr|" convmv || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
einstall DESTDIR="${D}" PREFIX="${EPREFIX}"/usr || die "einstall failed"
|
||||
dodoc CREDITS Changes TODO VERSION
|
||||
}
|
||||
|
||||
src_test() {
|
||||
unpack ./testsuite.tar
|
||||
|
||||
cd "${S}"/suite
|
||||
./dotests.sh || die "Tests failed"
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST libdbi-0.8.1.tar.gz 1018608 RMD160 cfd1349ffd3b929465a6612244319bf0c5f163cb SHA1 69f9d4d1af904d2b6e8f8435e078a62d4ea83f2a SHA256 df940f1d98a0b2006a15e4d3a2f309a7f0fb3e1b0e357d21515cfc13287379c2
|
||||
DIST libdbi-0.8.3.tar.gz 1060714 RMD160 c264a9cf0ef85ccd823273a205a961b6e33773cf SHA1 bda606fa6628eed451e492182e1943bd1d824c33 SHA256 72e41856bebb1da7b1fd1e6369358c294913f329c5e594e338b3983e6369a5e3
|
||||
DIST libdbi-0.8.4.tar.gz 1045247 RMD160 0673c78a1411638db768b633d1df709da55779d0 SHA1 e86977d75150dde10c82ddb6193b9d4eb677d7ad SHA256 ef38db616f0752ccb09b8ba2eac471722369b8ded50b153c25e238cac2c8de99
|
||||
|
@ -0,0 +1,22 @@
|
||||
diff -Nuar libdbi-0.8.4.orig/configure.in libdbi-0.8.4/configure.in
|
||||
--- libdbi-0.8.4.orig/configure.in 2012-02-21 08:36:15.560231962 +0000
|
||||
+++ libdbi-0.8.4/configure.in 2012-02-21 08:39:07.910615238 +0000
|
||||
@@ -147,14 +147,13 @@
|
||||
dnl See whether to build the docs
|
||||
dnl ==============================
|
||||
|
||||
-ac_docs="YES"
|
||||
+ac_docs="yes"
|
||||
AC_ARG_ENABLE(docs,
|
||||
[ --disable-docs do not build and install the documentation.],
|
||||
- [ if test "$enable_docs" = "no"; then
|
||||
- ac_docs="NO"
|
||||
- fi ])
|
||||
+ [ ac_docs="$enableval" ],
|
||||
+ [ ac_docs="no" ])
|
||||
|
||||
-if test "$ac_docs" = "YES"; then
|
||||
+if test "$ac_docs" = "yes"; then
|
||||
dnl AC_PATH_PROGS(myjade, openjade jade)
|
||||
dnl if test "x$myjade" != "x"; then
|
||||
docs_subdirs="doc"
|
@ -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/dev-db/libdbi/libdbi-0.8.4.ebuild,v 1.1 2012/02/21 08:55:32 robbat2 Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit eutils autotools multilib
|
||||
|
||||
DESCRIPTION="libdbi implements a database-independent abstraction layer in C, similar to the DBI/DBD layer in Perl."
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||
HOMEPAGE="http://libdbi.sourceforge.net/"
|
||||
LICENSE="LGPL-2.1"
|
||||
RDEPEND=""
|
||||
DEPEND=">=sys-apps/sed-4
|
||||
dev-util/pkgconfig
|
||||
doc? ( app-text/openjade )
|
||||
${RDEPEND}"
|
||||
PDEPEND=">=dev-db/libdbi-drivers-0.8.3" # On purpose, libdbi-drivers 0.8.4 does not exist
|
||||
IUSE="doc"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
|
||||
SLOT=0
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
chown -R portage:portage "${S}"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/libdbi-0.8.1-pkg-config.patch
|
||||
cp -f "${FILESDIR}"/dbi.pc.in "${S}"/dbi.pc.in
|
||||
epatch "${FILESDIR}"/libdbi-0.8.4-doc-build-fix.patch
|
||||
|
||||
# configure.in has been changed
|
||||
eautoreconf || die "eautoreconf failed"
|
||||
# should append CFLAGS, not replace them
|
||||
sed -i.orig -e 's/^CFLAGS = /CFLAGS += /g' src/Makefile.in
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf $(use_enable doc docs) || die "econf failed"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake || die "emake failed"
|
||||
}
|
||||
|
||||
src_install () {
|
||||
emake install DESTDIR="${ED}" || die "make install failed"
|
||||
dodoc AUTHORS ChangeLog README README.osx TODO
|
||||
|
||||
# syslog-ng requires dbi.pc
|
||||
insinto /usr/$(get_libdir)/pkgconfig/
|
||||
doins dbi.pc
|
||||
}
|
@ -0,0 +1,129 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/mysql-5.5.21.ebuild,v 1.1 2012/02/21 08:55:34 robbat2 Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
MY_EXTRAS_VER="20111118-2347Z"
|
||||
MY_PV="${PV//_alpha_pre/-m}"
|
||||
MY_PV="${MY_PV//_/-}"
|
||||
|
||||
# Build type
|
||||
BUILD="cmake"
|
||||
|
||||
inherit toolchain-funcs mysql-v2
|
||||
# only to make repoman happy. it is really set in the eclass
|
||||
IUSE="$IUSE"
|
||||
|
||||
# Define the mysql-extras source
|
||||
EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/mysql-extras.git"
|
||||
|
||||
# REMEMBER: also update eclass/mysql*.eclass before committing!
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
|
||||
|
||||
# When MY_EXTRAS is bumped, the index should be revised to exclude these.
|
||||
EPATCH_EXCLUDE=''
|
||||
|
||||
DEPEND="|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )"
|
||||
RDEPEND="${RDEPEND}"
|
||||
|
||||
# Please do not add a naive src_unpack to this ebuild
|
||||
# If you want to add a single patch, copy the ebuild to an overlay
|
||||
# and create your own mysql-extras tarball, looking at 000_index.txt
|
||||
|
||||
# Official test instructions:
|
||||
# USE='berkdb -cluster embedded extraengine perl ssl community' \
|
||||
# FEATURES='test userpriv -usersandbox' \
|
||||
# ebuild mysql-X.X.XX.ebuild \
|
||||
# digest clean package
|
||||
src_test() {
|
||||
|
||||
local TESTDIR="${CMAKE_BUILD_DIR}/mysql-test"
|
||||
local retstatus_unit
|
||||
local retstatus_tests
|
||||
|
||||
# Bug #213475 - MySQL _will_ object strenously if your machine is named
|
||||
# localhost. Also causes weird failures.
|
||||
[[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
|
||||
|
||||
if ! use "minimal" ; then
|
||||
|
||||
if [[ $UID -eq 0 ]]; then
|
||||
die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
|
||||
fi
|
||||
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
|
||||
|
||||
einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
|
||||
addpredict /this-dir-does-not-exist/t9.MYI
|
||||
|
||||
# Run CTest (test-units)
|
||||
cmake-utils_src_test
|
||||
retstatus_unit=$?
|
||||
[[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed"
|
||||
|
||||
# Ensure that parallel runs don't die
|
||||
export MTR_BUILD_THREAD="$((${RANDOM} % 100))"
|
||||
|
||||
# create directories because mysqladmin might right out of order
|
||||
mkdir -p "${S}"/mysql-test/var-{tests}{,/log}
|
||||
|
||||
# These are failing in MySQL 5.5 for now and are believed to be
|
||||
# false positives:
|
||||
#
|
||||
# main.information_schema, binlog.binlog_statement_insert_delayed,
|
||||
# main.mysqld--help-notwin
|
||||
# fails due to USE=-latin1 / utf8 default
|
||||
#
|
||||
# main.mysql_client_test:
|
||||
# segfaults at random under Portage only, suspect resource limits.
|
||||
#
|
||||
# sys_vars.plugin_dir_basic
|
||||
# fails because PLUGIN_DIR is set to MYSQL_LIBDIR64/plugin
|
||||
# instead of MYSQL_LIBDIR/plugin
|
||||
#
|
||||
# main.flush_read_lock_kill
|
||||
# fails because of unknown system variable 'DEBUG_SYNC'
|
||||
#
|
||||
# main.openssl_1
|
||||
# error message changing
|
||||
# -mysqltest: Could not open connection 'default': 2026 SSL connection
|
||||
# error: ASN: bad other signature confirmation
|
||||
# +mysqltest: Could not open connection 'default': 2026 SSL connection
|
||||
# error: error:00000001:lib(0):func(0):reason(1)
|
||||
#
|
||||
|
||||
for t in main.mysql_client_test \
|
||||
binlog.binlog_statement_insert_delayed main.information_schema \
|
||||
main.mysqld--help-notwin main.flush_read_lock_kill \
|
||||
sys_vars.plugin_dir_basic main.openssl_1 ; do
|
||||
mysql-v2_disable_test "$t" "False positives in Gentoo"
|
||||
done
|
||||
|
||||
# Run mysql tests
|
||||
pushd "${TESTDIR}"
|
||||
|
||||
# run mysql-test tests
|
||||
perl mysql-test-run.pl --force --vardir="${S}/mysql-test/var-tests"
|
||||
retstatus_tests=$?
|
||||
[[ $retstatus_tests -eq 0 ]] || eerror "tests failed"
|
||||
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
|
||||
|
||||
popd
|
||||
|
||||
# Cleanup is important for these testcases.
|
||||
pkill -9 -f "${S}/ndb" 2>/dev/null
|
||||
pkill -9 -f "${S}/sql" 2>/dev/null
|
||||
|
||||
failures=""
|
||||
[[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit"
|
||||
[[ $retstatus_tests -eq 0 ]] || failures="${failures} tests"
|
||||
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
|
||||
|
||||
[[ -z "$failures" ]] || die "Test failures: $failures"
|
||||
einfo "Tests successfully completed"
|
||||
|
||||
else
|
||||
|
||||
einfo "Skipping server tests due to minimal build."
|
||||
fi
|
||||
}
|
@ -0,0 +1,68 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libmemcached/libmemcached-1.0.4.ebuild,v 1.1 2012/02/21 08:43:28 robbat2 Exp $
|
||||
|
||||
EAPI="3"
|
||||
|
||||
inherit eutils multilib
|
||||
|
||||
DESCRIPTION="a C client library to the memcached server"
|
||||
HOMEPAGE="http://tangent.org/552/libmemcached.html"
|
||||
SRC_URI="http://launchpad.net/${PN}/1.0/${PV}/+download/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~sparc-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
|
||||
IUSE="debug doc hsieh +libevent sasl static-libs tcmalloc"
|
||||
|
||||
DEPEND="net-misc/memcached
|
||||
virtual/perl-PodParser
|
||||
doc? ( dev-python/sphinx )
|
||||
libevent? ( dev-libs/libevent )
|
||||
tcmalloc? ( dev-util/google-perftools )
|
||||
sasl? ( virtual/gsasl )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
# These tests freezes for me
|
||||
sed -i \
|
||||
-e "/connectionpool/d" \
|
||||
-e "/lp:583031/d" \
|
||||
tests/${P%.*}/mem_functions.cc || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--disable-dtrace \
|
||||
--disable-libinnodb \
|
||||
$(use_enable debug assert) \
|
||||
$(use_with debug debug) \
|
||||
$(use_enable hsieh hsieh_hash) \
|
||||
$(use_enable libevent libevent) \
|
||||
$(use_enable tcmalloc tcmalloc) \
|
||||
$(use_with sasl libsasl-prefix) \
|
||||
$(use_with sasl libsasl2-prefix) \
|
||||
$(use_enable static-libs static)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake || die
|
||||
|
||||
if use doc; then
|
||||
emake html-local || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die "Install failed"
|
||||
|
||||
use static-libs || rm -f "${D}"/usr/$(get_libdir)/lib*.la
|
||||
|
||||
dodoc AUTHORS ChangeLog README THANKS TODO
|
||||
# remove manpage to avoid collision, see bug #299330
|
||||
rm -f "${D}"/usr/share/man/man1/memdump.* || die "Install failed"
|
||||
newman docs/man/memdump.1 memcached_memdump.1
|
||||
if use doc; then
|
||||
dohtml -r docs/html/* || die
|
||||
fi
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libmowgli/libmowgli-9999.ebuild,v 1.1 2012/02/20 19:00:47 jdhore Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit git-2
|
||||
|
||||
MY_P=${P/_/-}
|
||||
|
||||
DESCRIPTION="Useful set of performance and usability-oriented extensions to C"
|
||||
HOMEPAGE="http://www.atheme.org/project/mowgli"
|
||||
EGIT_REPO_URI="git://git.atheme.org/libmowgli-2.git"
|
||||
IUSE="ssl"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="2"
|
||||
KEYWORDS=""
|
||||
RDEPEND="ssl? ( dev-libs/openssl )"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_configure() {
|
||||
econf $(use_enable ssl openssl)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
dodoc AUTHORS README doc/BOOST
|
||||
}
|
@ -1,173 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/PyQt4-4.7.3.ebuild,v 1.14 2012/02/20 14:24:02 patrick Exp $
|
||||
|
||||
EAPI="2"
|
||||
PYTHON_EXPORT_PHASE_FUNCTIONS="1"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
RESTRICT_PYTHON_ABIS="*-jython"
|
||||
|
||||
inherit qt4-r2 python toolchain-funcs
|
||||
|
||||
MY_P="PyQt-x11-gpl-${PV/_pre/-snapshot-}"
|
||||
QTVER="4.6.2" # minimal Qt version this is supposed to work with
|
||||
|
||||
DESCRIPTION="A set of Python bindings for the Qt toolkit"
|
||||
HOMEPAGE="http://www.riverbankcomputing.co.uk/software/pyqt/intro/ http://pypi.python.org/pypi/PyQt"
|
||||
SRC_URI="http://www.riverbankcomputing.com/static/Downloads/${PN}/${MY_P}.tar.gz"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="|| ( GPL-2 GPL-3 )"
|
||||
KEYWORDS="alpha amd64 ~arm ia64 ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux"
|
||||
IUSE="X assistant +dbus debug doc examples kde multimedia opengl phonon sql svg webkit xmlpatterns"
|
||||
|
||||
DEPEND=">=dev-python/sip-4.10
|
||||
>=x11-libs/qt-core-${QTVER}:4
|
||||
>=x11-libs/qt-script-${QTVER}:4
|
||||
>=x11-libs/qt-test-${QTVER}:4
|
||||
X? ( >=x11-libs/qt-gui-${QTVER}:4[dbus?] )
|
||||
assistant? ( >=x11-libs/qt-assistant-${QTVER}:4 )
|
||||
dbus? (
|
||||
>=dev-python/dbus-python-0.80
|
||||
>=x11-libs/qt-dbus-${QTVER}:4
|
||||
)
|
||||
multimedia? ( >=x11-libs/qt-multimedia-${QTVER}:4 )
|
||||
opengl? ( >=x11-libs/qt-opengl-${QTVER}:4 )
|
||||
phonon? (
|
||||
!kde? ( || ( >=x11-libs/qt-phonon-${QTVER}:4 media-libs/phonon ) )
|
||||
kde? ( media-libs/phonon )
|
||||
)
|
||||
sql? ( >=x11-libs/qt-sql-${QTVER}:4 )
|
||||
svg? ( >=x11-libs/qt-svg-${QTVER}:4 )
|
||||
webkit? ( >=x11-libs/qt-webkit-${QTVER}:4 )
|
||||
xmlpatterns? ( >=x11-libs/qt-xmlpatterns-${QTVER}:4 )"
|
||||
RDEPEND="${DEPEND}"
|
||||
RESTRICT_PYTHON_ABIS="3.2" # doesn't build with python:3.2 (yet), bug 292419
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-4.6.1-configure-multilib.patch"
|
||||
"${FILESDIR}/${PN}-4.7.2-configure.py.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
use prefix || EPREFIX=
|
||||
|
||||
if ! use dbus; then
|
||||
sed -i -e 's,^\([[:blank:]]\+\)check_dbus(),\1pass,' \
|
||||
"${S}"/configure.py || die
|
||||
fi
|
||||
|
||||
# Patch to support qreal for arm architecture
|
||||
# wrt bug #322349
|
||||
use arm && epatch "${FILESDIR}/${P}-qreal_float_support.patch"
|
||||
|
||||
qt4-r2_src_prepare
|
||||
|
||||
# Use proper include dir
|
||||
sed -e "s|/usr/include|${EPREFIX}/usr/include|g" \
|
||||
-i configure.py
|
||||
|
||||
python_copy_sources
|
||||
|
||||
preparation() {
|
||||
if [[ "${PYTHON_ABI:0:1}" == "3" ]]; then
|
||||
rm -fr pyuic/uic/port_v2
|
||||
else
|
||||
rm -fr pyuic/uic/port_v3
|
||||
fi
|
||||
}
|
||||
python_execute_function -s preparation
|
||||
}
|
||||
|
||||
pyqt4_use_enable() {
|
||||
use $1 && echo "--enable=${2:-$1}"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
use prefix || EPREFIX=
|
||||
|
||||
configuration() {
|
||||
local myconf="$(PYTHON) configure.py
|
||||
--confirm-license
|
||||
--bindir=${EPREFIX}/usr/bin
|
||||
--destdir=${EPREFIX}$(python_get_sitedir)
|
||||
--sipdir=${EPREFIX}/usr/share/sip
|
||||
--qsci-api
|
||||
$(use debug && echo '--debug')
|
||||
--enable=QtCore
|
||||
--enable=QtNetwork
|
||||
--enable=QtScript
|
||||
--enable=QtTest
|
||||
--enable=QtXml
|
||||
$(pyqt4_use_enable X QtGui)
|
||||
$(pyqt4_use_enable X QtDesigner)
|
||||
$(pyqt4_use_enable X QtScriptTools)
|
||||
$(pyqt4_use_enable assistant QtAssistant)
|
||||
$(pyqt4_use_enable assistant QtHelp)
|
||||
$(pyqt4_use_enable multimedia QtMultimedia)
|
||||
$(pyqt4_use_enable opengl QtOpenGL)
|
||||
$(pyqt4_use_enable phonon)
|
||||
$(pyqt4_use_enable sql QtSql)
|
||||
$(pyqt4_use_enable svg QtSvg)
|
||||
$(pyqt4_use_enable webkit QtWebKit)
|
||||
$(pyqt4_use_enable xmlpatterns QtXmlPatterns)
|
||||
CC=$(tc-getCC) CXX=$(tc-getCXX)
|
||||
LINK=$(tc-getCXX) LINK_SHLIB=$(tc-getCXX)
|
||||
CFLAGS='${CFLAGS}' CXXFLAGS='${CXXFLAGS}' LFLAGS='${LDFLAGS}'"
|
||||
echo ${myconf}
|
||||
eval ${myconf} || return 1
|
||||
|
||||
for mod in QtCore $(use X && echo 'QtDesigner QtGui'); do
|
||||
# Run eqmake4 inside the qpy subdirs to prevent
|
||||
# stripping and many other QA issues
|
||||
pushd qpy/${mod} > /dev/null || die
|
||||
eqmake4 $(ls w_qpy*.pro)
|
||||
popd > /dev/null || die
|
||||
|
||||
# Fix insecure runpaths
|
||||
sed -i -e "/^LFLAGS/s:-Wl,-rpath,${BUILDDIR}/qpy/${mod}::" \
|
||||
${mod}/Makefile || die "failed to fix rpath issues"
|
||||
done
|
||||
|
||||
# Fix pre-stripping of libpythonplugin.so
|
||||
if use X; then
|
||||
cd "${BUILDDIR}"/designer
|
||||
eqmake4 python.pro
|
||||
fi
|
||||
}
|
||||
python_execute_function -s configuration
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
python_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
installation() {
|
||||
# INSTALL_ROOT is needed for the QtDesigner module,
|
||||
# the other Makefiles use DESTDIR.
|
||||
emake DESTDIR="${D}" INSTALL_ROOT="${D}" install
|
||||
}
|
||||
python_execute_function -s installation
|
||||
|
||||
dodoc doc/pyqt4ref.txt NEWS THANKS || die
|
||||
|
||||
if use doc; then
|
||||
dohtml -r doc/* || die
|
||||
fi
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}
|
||||
doins -r examples || die
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
python_mod_optimize PyQt4
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
python_mod_cleanup PyQt4
|
||||
}
|
@ -1,170 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/PyQt4-4.7.7-r1.ebuild,v 1.5 2012/02/20 14:24:02 patrick Exp $
|
||||
|
||||
EAPI="3"
|
||||
PYTHON_DEPEND="*"
|
||||
PYTHON_EXPORT_PHASE_FUNCTIONS="1"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
RESTRICT_PYTHON_ABIS="*-jython"
|
||||
|
||||
inherit qt4-r2 python toolchain-funcs
|
||||
|
||||
MY_P="PyQt-x11-gpl-${PV/_pre/-snapshot-}"
|
||||
QTVER="4.6.2" # minimal Qt version this is supposed to work with
|
||||
|
||||
DESCRIPTION="A set of Python bindings for the Qt toolkit"
|
||||
HOMEPAGE="http://www.riverbankcomputing.co.uk/software/pyqt/intro/ http://pypi.python.org/pypi/PyQt"
|
||||
SRC_URI="http://www.riverbankcomputing.com/static/Downloads/${PN}/${MY_P}.tar.gz"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="|| ( GPL-2 GPL-3 )"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
|
||||
IUSE="X assistant +dbus debug doc examples kde multimedia opengl phonon sql svg webkit xmlpatterns"
|
||||
|
||||
DEPEND=">=dev-python/sip-4.11
|
||||
>=x11-libs/qt-core-${QTVER}:4
|
||||
>=x11-libs/qt-script-${QTVER}:4
|
||||
>=x11-libs/qt-test-${QTVER}:4
|
||||
X? ( >=x11-libs/qt-gui-${QTVER}:4[dbus?] )
|
||||
assistant? ( >=x11-libs/qt-assistant-${QTVER}:4 )
|
||||
dbus? (
|
||||
>=dev-python/dbus-python-0.80
|
||||
>=x11-libs/qt-dbus-${QTVER}:4
|
||||
)
|
||||
multimedia? ( >=x11-libs/qt-multimedia-${QTVER}:4 )
|
||||
opengl? ( >=x11-libs/qt-opengl-${QTVER}:4 )
|
||||
phonon? (
|
||||
!kde? ( || ( >=x11-libs/qt-phonon-${QTVER}:4 media-libs/phonon ) )
|
||||
kde? ( media-libs/phonon )
|
||||
)
|
||||
sql? ( >=x11-libs/qt-sql-${QTVER}:4 )
|
||||
svg? ( >=x11-libs/qt-svg-${QTVER}:4 )
|
||||
webkit? ( >=x11-libs/qt-webkit-${QTVER}:4 )
|
||||
xmlpatterns? ( >=x11-libs/qt-xmlpatterns-${QTVER}:4 )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-4.6.1-configure-multilib.patch"
|
||||
"${FILESDIR}/${PN}-4.7.2-configure.py.patch"
|
||||
"${FILESDIR}/${P}-fix-scpk-and-flag-issue.diff"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
if ! use dbus; then
|
||||
sed -i -e 's,^\([[:blank:]]\+\)check_dbus(),\1pass,' \
|
||||
"${S}"/configure.py || die
|
||||
fi
|
||||
|
||||
# Patch to support qreal for arm architecture
|
||||
# wrt bug #322349
|
||||
use arm && epatch "${FILESDIR}/${PN}-4.7.3-qreal_float_support.patch"
|
||||
|
||||
qt4-r2_src_prepare
|
||||
|
||||
# Use proper include dir
|
||||
sed -e "s|/usr/include|${EPREFIX}/usr/include|g" \
|
||||
-i configure.py
|
||||
|
||||
python_copy_sources
|
||||
|
||||
preparation() {
|
||||
if [[ "$(python_get_version --major)" == "3" ]]; then
|
||||
rm -fr pyuic/uic/port_v2
|
||||
else
|
||||
rm -fr pyuic/uic/port_v3
|
||||
fi
|
||||
}
|
||||
python_execute_function -s preparation
|
||||
}
|
||||
|
||||
pyqt4_use_enable() {
|
||||
use $1 && echo "--enable=${2:-$1}"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
configuration() {
|
||||
local myconf="$(PYTHON) configure.py
|
||||
--confirm-license
|
||||
--bindir="${EPREFIX}"/usr/bin
|
||||
--destdir="${EPREFIX}"$(python_get_sitedir)
|
||||
--sipdir="${EPREFIX}"/usr/share/sip
|
||||
--qsci-api
|
||||
$(use debug && echo '--debug')
|
||||
--enable=QtCore
|
||||
--enable=QtNetwork
|
||||
--enable=QtScript
|
||||
--enable=QtTest
|
||||
--enable=QtXml
|
||||
$(pyqt4_use_enable X QtGui)
|
||||
$(pyqt4_use_enable X QtDesigner)
|
||||
$(pyqt4_use_enable X QtScriptTools)
|
||||
$(pyqt4_use_enable assistant QtAssistant)
|
||||
$(pyqt4_use_enable assistant QtHelp)
|
||||
$(pyqt4_use_enable multimedia QtMultimedia)
|
||||
$(pyqt4_use_enable opengl QtOpenGL)
|
||||
$(pyqt4_use_enable phonon)
|
||||
$(pyqt4_use_enable sql QtSql)
|
||||
$(pyqt4_use_enable svg QtSvg)
|
||||
$(pyqt4_use_enable webkit QtWebKit)
|
||||
$(pyqt4_use_enable xmlpatterns QtXmlPatterns)
|
||||
CC=$(tc-getCC) CXX=$(tc-getCXX)
|
||||
LINK=$(tc-getCXX) LINK_SHLIB=$(tc-getCXX)
|
||||
CFLAGS='${CFLAGS}' CXXFLAGS='${CXXFLAGS}' LFLAGS='${LDFLAGS}'"
|
||||
echo ${myconf}
|
||||
eval ${myconf} || return 1
|
||||
|
||||
for mod in QtCore $(use X && echo 'QtDesigner QtGui'); do
|
||||
# Run eqmake4 inside the qpy subdirs to prevent
|
||||
# stripping and many other QA issues
|
||||
pushd qpy/${mod} > /dev/null || die
|
||||
eqmake4 $(ls w_qpy*.pro)
|
||||
popd > /dev/null || die
|
||||
|
||||
# Fix insecure runpaths
|
||||
sed -i -e "/^LFLAGS/s:-Wl,-rpath,${BUILDDIR}/qpy/${mod}::" \
|
||||
${mod}/Makefile || die "failed to fix rpath issues"
|
||||
done
|
||||
|
||||
# Fix pre-stripping of libpythonplugin.so
|
||||
if use X; then
|
||||
cd "${BUILDDIR}"/designer
|
||||
eqmake4 python.pro
|
||||
fi
|
||||
}
|
||||
python_execute_function -s configuration
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
python_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
installation() {
|
||||
# INSTALL_ROOT is needed for the QtDesigner module,
|
||||
# the other Makefiles use DESTDIR.
|
||||
emake DESTDIR="${D}" INSTALL_ROOT="${D}" install
|
||||
}
|
||||
python_execute_function -s installation
|
||||
|
||||
dodoc doc/pyqt4ref.txt NEWS THANKS || die
|
||||
|
||||
if use doc; then
|
||||
dohtml -r doc/* || die
|
||||
fi
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}
|
||||
doins -r examples || die
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
python_mod_optimize PyQt4
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
python_mod_cleanup PyQt4
|
||||
}
|
@ -1,174 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/PyQt4-4.8.1-r1.ebuild,v 1.4 2012/02/20 14:24:02 patrick Exp $
|
||||
|
||||
EAPI="3"
|
||||
PYTHON_DEPEND="*"
|
||||
PYTHON_EXPORT_PHASE_FUNCTIONS="1"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
RESTRICT_PYTHON_ABIS="*-jython"
|
||||
|
||||
inherit python qt4-r2 toolchain-funcs
|
||||
|
||||
MY_P="PyQt-x11-gpl-${PV/_pre/-snapshot-}"
|
||||
|
||||
# Minimal supported version of Qt.
|
||||
QT_VER="4.6.2"
|
||||
|
||||
DESCRIPTION="Python bindings for the Qt toolkit"
|
||||
HOMEPAGE="http://www.riverbankcomputing.co.uk/software/pyqt/intro/ http://pypi.python.org/pypi/PyQt"
|
||||
SRC_URI="http://www.riverbankcomputing.com/static/Downloads/${PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="|| ( GPL-2 GPL-3 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
|
||||
IUSE="X assistant +dbus debug declarative doc examples kde multimedia opengl phonon sql svg webkit xmlpatterns"
|
||||
|
||||
DEPEND=">=dev-python/sip-4.11.2
|
||||
>=x11-libs/qt-core-${QT_VER}:4
|
||||
>=x11-libs/qt-script-${QT_VER}:4
|
||||
>=x11-libs/qt-test-${QT_VER}:4
|
||||
X? ( >=x11-libs/qt-gui-${QT_VER}:4[dbus?] )
|
||||
assistant? ( >=x11-libs/qt-assistant-${QT_VER}:4 )
|
||||
dbus? (
|
||||
>=dev-python/dbus-python-0.80
|
||||
>=x11-libs/qt-dbus-${QT_VER}:4
|
||||
)
|
||||
declarative? ( >=x11-libs/qt-declarative-${QT_VER}:4 )
|
||||
multimedia? ( >=x11-libs/qt-multimedia-${QT_VER}:4 )
|
||||
opengl? ( >=x11-libs/qt-opengl-${QT_VER}:4 || ( >=x11-libs/qt-opengl-4.7.0:4[-egl] <x11-libs/qt-opengl-4.7.0:4 ) )
|
||||
phonon? (
|
||||
!kde? ( || ( >=x11-libs/qt-phonon-${QT_VER}:4 media-libs/phonon ) )
|
||||
kde? ( media-libs/phonon )
|
||||
)
|
||||
sql? ( >=x11-libs/qt-sql-${QT_VER}:4 )
|
||||
svg? ( >=x11-libs/qt-svg-${QT_VER}:4 )
|
||||
webkit? ( >=x11-libs/qt-webkit-${QT_VER}:4 )
|
||||
xmlpatterns? ( >=x11-libs/qt-xmlpatterns-${QT_VER}:4 )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-4.6.1-configure-multilib.patch"
|
||||
"${FILESDIR}/${PN}-4.7.2-configure.py.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
if ! use dbus; then
|
||||
sed -e "s/^\([[:blank:]]\+\)check_dbus()/\1pass/" -i configure.py || die "sed configure.py failed"
|
||||
fi
|
||||
|
||||
# Support qreal for arm architecture (bug #322349).
|
||||
use arm && epatch "${FILESDIR}/${PN}-4.7.3-qreal_float_support.patch"
|
||||
|
||||
qt4-r2_src_prepare
|
||||
|
||||
# Use proper include directory.
|
||||
sed -e "s:/usr/include:${EPREFIX}/usr/include:g" -i configure.py || die "sed configure.py failed"
|
||||
|
||||
python_copy_sources
|
||||
|
||||
preparation() {
|
||||
if [[ "$(python_get_version --major)" == "3" ]]; then
|
||||
rm -fr pyuic/uic/port_v2
|
||||
else
|
||||
rm -fr pyuic/uic/port_v3
|
||||
fi
|
||||
}
|
||||
python_execute_function -s preparation
|
||||
}
|
||||
|
||||
pyqt4_use_enable() {
|
||||
use $1 && echo "--enable=${2:-$1}"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
configuration() {
|
||||
local myconf=("$(PYTHON)"
|
||||
configure.py
|
||||
--confirm-license
|
||||
--bindir="${EPREFIX}/usr/bin"
|
||||
--destdir="${EPREFIX}$(python_get_sitedir)"
|
||||
--sipdir="${EPREFIX}/usr/share/sip"
|
||||
--qsci-api
|
||||
$(use debug && echo --debug)
|
||||
--enable=QtCore
|
||||
--enable=QtNetwork
|
||||
--enable=QtScript
|
||||
--enable=QtTest
|
||||
--enable=QtXml
|
||||
$(pyqt4_use_enable X QtGui)
|
||||
$(pyqt4_use_enable X QtDesigner)
|
||||
$(pyqt4_use_enable X QtScriptTools)
|
||||
# QtAssistant module is not available with Qt >=4.7.0.
|
||||
$(pyqt4_use_enable assistant QtAssistant)
|
||||
$(pyqt4_use_enable assistant QtHelp)
|
||||
$(pyqt4_use_enable declarative QtDeclarative)
|
||||
$(pyqt4_use_enable multimedia QtMultimedia)
|
||||
$(pyqt4_use_enable opengl QtOpenGL)
|
||||
$(pyqt4_use_enable phonon)
|
||||
$(pyqt4_use_enable sql QtSql)
|
||||
$(pyqt4_use_enable svg QtSvg)
|
||||
$(pyqt4_use_enable webkit QtWebKit)
|
||||
$(pyqt4_use_enable xmlpatterns QtXmlPatterns)
|
||||
CC="$(tc-getCC)"
|
||||
CXX="$(tc-getCXX)"
|
||||
LINK="$(tc-getCXX)"
|
||||
LINK_SHLIB="$(tc-getCXX)"
|
||||
CFLAGS="${CFLAGS}"
|
||||
CXXFLAGS="${CXXFLAGS}"
|
||||
LFLAGS="${LDFLAGS}")
|
||||
echo "${myconf[@]}"
|
||||
"${myconf[@]}" || return 1
|
||||
|
||||
local mod
|
||||
for mod in QtCore $(use X && echo QtDesigner QtGui); do
|
||||
# Run eqmake4 inside the qpy subdirectories to avoid stripping and many other QA issues.
|
||||
pushd qpy/${mod} > /dev/null || return 1
|
||||
eqmake4 $(ls w_qpy*.pro)
|
||||
popd > /dev/null || return 1
|
||||
|
||||
# Fix insecure runpaths.
|
||||
sed -e "/^LFLAGS/s:-Wl,-rpath,${BUILDDIR}/qpy/${mod}::" -i ${mod}/Makefile || die "Fixing of rpaths failed"
|
||||
done
|
||||
|
||||
# Fix pre-stripping of libpythonplugin.so
|
||||
if use X; then
|
||||
cd "${BUILDDIR}/designer"
|
||||
eqmake4 python.pro
|
||||
fi
|
||||
}
|
||||
python_execute_function -s configuration
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
python_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
installation() {
|
||||
# INSTALL_ROOT is needed for the QtDesigner module, other Makefiles use DESTDIR.
|
||||
emake DESTDIR="${D}" INSTALL_ROOT="${D}" install
|
||||
}
|
||||
python_execute_function -s installation
|
||||
|
||||
dodoc doc/pyqt4ref.txt NEWS THANKS || die "dodoc failed"
|
||||
|
||||
if use doc; then
|
||||
dohtml -r doc/* || die "dohtml failed"
|
||||
fi
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}
|
||||
doins -r examples || die "doins failed"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
python_mod_optimize PyQt4
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
python_mod_cleanup PyQt4
|
||||
}
|
@ -1,174 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/PyQt4-4.8.2.ebuild,v 1.5 2012/02/20 14:24:02 patrick Exp $
|
||||
|
||||
EAPI="3"
|
||||
PYTHON_DEPEND="*"
|
||||
PYTHON_EXPORT_PHASE_FUNCTIONS="1"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
RESTRICT_PYTHON_ABIS="*-jython"
|
||||
|
||||
inherit python qt4-r2 toolchain-funcs
|
||||
|
||||
MY_P="PyQt-x11-gpl-${PV/_pre/-snapshot-}"
|
||||
|
||||
# Minimal supported version of Qt.
|
||||
QT_VER="4.6.2"
|
||||
|
||||
DESCRIPTION="Python bindings for the Qt toolkit"
|
||||
HOMEPAGE="http://www.riverbankcomputing.co.uk/software/pyqt/intro/ http://pypi.python.org/pypi/PyQt"
|
||||
SRC_URI="http://www.riverbankcomputing.com/static/Downloads/${PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="|| ( GPL-2 GPL-3 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
|
||||
IUSE="X assistant +dbus debug declarative doc examples kde multimedia opengl phonon sql svg webkit xmlpatterns"
|
||||
|
||||
DEPEND=">=dev-python/sip-4.12
|
||||
>=x11-libs/qt-core-${QT_VER}:4
|
||||
>=x11-libs/qt-script-${QT_VER}:4
|
||||
>=x11-libs/qt-test-${QT_VER}:4
|
||||
X? ( >=x11-libs/qt-gui-${QT_VER}:4[dbus?] )
|
||||
assistant? ( >=x11-libs/qt-assistant-${QT_VER}:4 )
|
||||
dbus? (
|
||||
>=dev-python/dbus-python-0.80
|
||||
>=x11-libs/qt-dbus-${QT_VER}:4
|
||||
)
|
||||
declarative? ( >=x11-libs/qt-declarative-${QT_VER}:4 )
|
||||
multimedia? ( >=x11-libs/qt-multimedia-${QT_VER}:4 )
|
||||
opengl? ( >=x11-libs/qt-opengl-${QT_VER}:4 || ( >=x11-libs/qt-opengl-4.7.0:4[-egl] <x11-libs/qt-opengl-4.7.0:4 ) )
|
||||
phonon? (
|
||||
!kde? ( || ( >=x11-libs/qt-phonon-${QT_VER}:4 media-libs/phonon ) )
|
||||
kde? ( media-libs/phonon )
|
||||
)
|
||||
sql? ( >=x11-libs/qt-sql-${QT_VER}:4 )
|
||||
svg? ( >=x11-libs/qt-svg-${QT_VER}:4 )
|
||||
webkit? ( >=x11-libs/qt-webkit-${QT_VER}:4 )
|
||||
xmlpatterns? ( >=x11-libs/qt-xmlpatterns-${QT_VER}:4 )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-4.6.1-configure-multilib.patch"
|
||||
"${FILESDIR}/${PN}-4.7.2-configure.py.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
if ! use dbus; then
|
||||
sed -e "s/^\([[:blank:]]\+\)check_dbus()/\1pass/" -i configure.py || die "sed configure.py failed"
|
||||
fi
|
||||
|
||||
# Support qreal for arm architecture (bug #322349).
|
||||
use arm && epatch "${FILESDIR}/${PN}-4.7.3-qreal_float_support.patch"
|
||||
|
||||
qt4-r2_src_prepare
|
||||
|
||||
# Use proper include directory.
|
||||
sed -e "s:/usr/include:${EPREFIX}/usr/include:g" -i configure.py || die "sed configure.py failed"
|
||||
|
||||
python_copy_sources
|
||||
|
||||
preparation() {
|
||||
if [[ "$(python_get_version --major)" == "3" ]]; then
|
||||
rm -fr pyuic/uic/port_v2
|
||||
else
|
||||
rm -fr pyuic/uic/port_v3
|
||||
fi
|
||||
}
|
||||
python_execute_function -s preparation
|
||||
}
|
||||
|
||||
pyqt4_use_enable() {
|
||||
use $1 && echo "--enable=${2:-$1}"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
configuration() {
|
||||
local myconf=("$(PYTHON)"
|
||||
configure.py
|
||||
--confirm-license
|
||||
--bindir="${EPREFIX}/usr/bin"
|
||||
--destdir="${EPREFIX}$(python_get_sitedir)"
|
||||
--sipdir="${EPREFIX}/usr/share/sip"
|
||||
--qsci-api
|
||||
$(use debug && echo --debug)
|
||||
--enable=QtCore
|
||||
--enable=QtNetwork
|
||||
--enable=QtScript
|
||||
--enable=QtTest
|
||||
--enable=QtXml
|
||||
$(pyqt4_use_enable X QtGui)
|
||||
$(pyqt4_use_enable X QtDesigner)
|
||||
$(pyqt4_use_enable X QtScriptTools)
|
||||
# QtAssistant module is not available with Qt >=4.7.0.
|
||||
$(pyqt4_use_enable assistant QtAssistant)
|
||||
$(pyqt4_use_enable assistant QtHelp)
|
||||
$(pyqt4_use_enable declarative QtDeclarative)
|
||||
$(pyqt4_use_enable multimedia QtMultimedia)
|
||||
$(pyqt4_use_enable opengl QtOpenGL)
|
||||
$(pyqt4_use_enable phonon)
|
||||
$(pyqt4_use_enable sql QtSql)
|
||||
$(pyqt4_use_enable svg QtSvg)
|
||||
$(pyqt4_use_enable webkit QtWebKit)
|
||||
$(pyqt4_use_enable xmlpatterns QtXmlPatterns)
|
||||
CC="$(tc-getCC)"
|
||||
CXX="$(tc-getCXX)"
|
||||
LINK="$(tc-getCXX)"
|
||||
LINK_SHLIB="$(tc-getCXX)"
|
||||
CFLAGS="${CFLAGS}"
|
||||
CXXFLAGS="${CXXFLAGS}"
|
||||
LFLAGS="${LDFLAGS}")
|
||||
echo "${myconf[@]}"
|
||||
"${myconf[@]}" || return 1
|
||||
|
||||
local mod
|
||||
for mod in QtCore $(use X && echo QtDesigner QtGui); do
|
||||
# Run eqmake4 inside the qpy subdirectories to avoid stripping and many other QA issues.
|
||||
pushd qpy/${mod} > /dev/null || return 1
|
||||
eqmake4 $(ls w_qpy*.pro)
|
||||
popd > /dev/null || return 1
|
||||
|
||||
# Fix insecure runpaths.
|
||||
sed -e "/^LFLAGS/s:-Wl,-rpath,${BUILDDIR}/qpy/${mod}::" -i ${mod}/Makefile || die "Fixing of rpaths failed"
|
||||
done
|
||||
|
||||
# Fix pre-stripping of libpythonplugin.so
|
||||
if use X; then
|
||||
cd "${BUILDDIR}/designer"
|
||||
eqmake4 python.pro
|
||||
fi
|
||||
}
|
||||
python_execute_function -s configuration
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
python_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
installation() {
|
||||
# INSTALL_ROOT is needed for the QtDesigner module, other Makefiles use DESTDIR.
|
||||
emake DESTDIR="${D}" INSTALL_ROOT="${D}" install
|
||||
}
|
||||
python_execute_function -s installation
|
||||
|
||||
dodoc doc/pyqt4ref.txt NEWS THANKS || die "dodoc failed"
|
||||
|
||||
if use doc; then
|
||||
dohtml -r doc/* || die "dohtml failed"
|
||||
fi
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}
|
||||
doins -r examples || die "doins failed"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
python_mod_optimize PyQt4
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
python_mod_cleanup PyQt4
|
||||
}
|
@ -1,175 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/PyQt4-4.8.3.ebuild,v 1.8 2012/02/20 14:24:02 patrick Exp $
|
||||
|
||||
EAPI="3"
|
||||
PYTHON_DEPEND="*"
|
||||
PYTHON_EXPORT_PHASE_FUNCTIONS="1"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
RESTRICT_PYTHON_ABIS="*-jython"
|
||||
|
||||
inherit python qt4-r2 toolchain-funcs
|
||||
|
||||
MY_P="PyQt-x11-gpl-${PV/_pre/-snapshot-}"
|
||||
|
||||
# Minimal supported version of Qt.
|
||||
QT_VER="4.6.2"
|
||||
|
||||
DESCRIPTION="Python bindings for the Qt toolkit"
|
||||
HOMEPAGE="http://www.riverbankcomputing.co.uk/software/pyqt/intro/ http://pypi.python.org/pypi/PyQt"
|
||||
SRC_URI="http://www.riverbankcomputing.com/static/Downloads/${PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="|| ( GPL-2 GPL-3 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 ~arm ~ia64 ppc ppc64 ~sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux"
|
||||
IUSE="X assistant +dbus debug declarative doc examples kde multimedia opengl phonon sql svg webkit xmlpatterns"
|
||||
|
||||
DEPEND=">=dev-python/sip-4.12.1
|
||||
>=x11-libs/qt-core-${QT_VER}:4
|
||||
>=x11-libs/qt-script-${QT_VER}:4
|
||||
>=x11-libs/qt-test-${QT_VER}:4
|
||||
X? ( >=x11-libs/qt-gui-${QT_VER}:4[dbus?] )
|
||||
assistant? ( >=x11-libs/qt-assistant-${QT_VER}:4 )
|
||||
dbus? (
|
||||
>=dev-python/dbus-python-0.80
|
||||
>=x11-libs/qt-dbus-${QT_VER}:4
|
||||
)
|
||||
declarative? ( >=x11-libs/qt-declarative-${QT_VER}:4 )
|
||||
multimedia? ( >=x11-libs/qt-multimedia-${QT_VER}:4 )
|
||||
opengl? ( >=x11-libs/qt-opengl-${QT_VER}:4 || ( >=x11-libs/qt-opengl-4.7.0:4[-egl] <x11-libs/qt-opengl-4.7.0:4 ) )
|
||||
phonon? (
|
||||
!kde? ( || ( >=x11-libs/qt-phonon-${QT_VER}:4 media-libs/phonon ) )
|
||||
kde? ( media-libs/phonon )
|
||||
)
|
||||
sql? ( >=x11-libs/qt-sql-${QT_VER}:4 )
|
||||
svg? ( >=x11-libs/qt-svg-${QT_VER}:4 )
|
||||
webkit? ( >=x11-libs/qt-webkit-${QT_VER}:4 )
|
||||
xmlpatterns? ( >=x11-libs/qt-xmlpatterns-${QT_VER}:4 )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-4.8.3-configure-multilib.patch"
|
||||
"${FILESDIR}/${PN}-4.7.2-configure.py.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
if ! use dbus; then
|
||||
sed -e "s/^\([[:blank:]]\+\)check_dbus()/\1pass/" -i configure.py || die "sed configure.py failed"
|
||||
fi
|
||||
|
||||
# Support qreal for arm architecture (bug #322349).
|
||||
use arm && epatch "${FILESDIR}/${PN}-4.7.3-qreal_float_support.patch"
|
||||
|
||||
qt4-r2_src_prepare
|
||||
|
||||
# Use proper include directory.
|
||||
sed -e "s:/usr/include:${EPREFIX}/usr/include:g" -i configure.py || die "sed configure.py failed"
|
||||
|
||||
python_copy_sources
|
||||
|
||||
preparation() {
|
||||
if [[ "$(python_get_version --major)" == "3" ]]; then
|
||||
rm -fr pyuic/uic/port_v2
|
||||
else
|
||||
rm -fr pyuic/uic/port_v3
|
||||
fi
|
||||
}
|
||||
python_execute_function -s preparation
|
||||
}
|
||||
|
||||
pyqt4_use_enable() {
|
||||
use $1 && echo "--enable=${2:-$1}"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
configuration() {
|
||||
local myconf=("$(PYTHON)"
|
||||
configure.py
|
||||
--confirm-license
|
||||
--bindir="${EPREFIX}/usr/bin"
|
||||
--destdir="${EPREFIX}$(python_get_sitedir)"
|
||||
--sipdir="${EPREFIX}/usr/share/sip"
|
||||
--qsci-api
|
||||
$(use debug && echo --debug)
|
||||
--enable=QtCore
|
||||
--enable=QtNetwork
|
||||
--enable=QtScript
|
||||
--enable=QtTest
|
||||
--enable=QtXml
|
||||
$(pyqt4_use_enable X QtDesigner)
|
||||
$(pyqt4_use_enable X QtGui)
|
||||
$(pyqt4_use_enable X QtScriptTools)
|
||||
# QtAssistant module is not available with Qt >=4.7.0.
|
||||
$(pyqt4_use_enable assistant QtAssistant)
|
||||
$(pyqt4_use_enable assistant QtHelp)
|
||||
$(pyqt4_use_enable declarative QtDeclarative)
|
||||
$(pyqt4_use_enable multimedia QtMultimedia)
|
||||
$(pyqt4_use_enable opengl QtOpenGL)
|
||||
$(pyqt4_use_enable phonon)
|
||||
$(pyqt4_use_enable sql QtSql)
|
||||
$(pyqt4_use_enable svg QtSvg)
|
||||
$(pyqt4_use_enable webkit QtWebKit)
|
||||
$(pyqt4_use_enable xmlpatterns QtXmlPatterns)
|
||||
CC="$(tc-getCC)"
|
||||
CXX="$(tc-getCXX)"
|
||||
LINK="$(tc-getCXX)"
|
||||
LINK_SHLIB="$(tc-getCXX)"
|
||||
CFLAGS="${CFLAGS}"
|
||||
CXXFLAGS="${CXXFLAGS}"
|
||||
LFLAGS="${LDFLAGS}")
|
||||
echo "${myconf[@]}"
|
||||
"${myconf[@]}" || return 1
|
||||
|
||||
local mod
|
||||
for mod in QtCore $(use X && echo QtDesigner QtGui) $(use declarative && echo QtDeclarative); do
|
||||
# Run eqmake4 inside the qpy subdirectories to respect CC, CXX, CFLAGS, CXXFLAGS and LDFLAGS and avoid stripping.
|
||||
pushd qpy/${mod} > /dev/null || return 1
|
||||
eqmake4 $(ls w_qpy*.pro)
|
||||
popd > /dev/null || return 1
|
||||
|
||||
# Fix insecure runpaths.
|
||||
sed -e "/^LFLAGS[[:space:]]*=/s:-Wl,-rpath,${BUILDDIR}/qpy/${mod}::" -i ${mod}/Makefile || die "Fixing of runpaths failed"
|
||||
done
|
||||
|
||||
# Avoid stripping of libpythonplugin.so.
|
||||
if use X; then
|
||||
pushd designer > /dev/null || return 1
|
||||
eqmake4 python.pro
|
||||
popd > /dev/null || return 1
|
||||
fi
|
||||
}
|
||||
python_execute_function -s configuration
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
python_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
installation() {
|
||||
# INSTALL_ROOT is needed for the QtDesigner module, other Makefiles use DESTDIR.
|
||||
emake DESTDIR="${D}" INSTALL_ROOT="${D}" install
|
||||
}
|
||||
python_execute_function -s installation
|
||||
|
||||
dodoc NEWS THANKS || die "dodoc failed"
|
||||
|
||||
if use doc; then
|
||||
dohtml -r doc/html/* || die "dohtml failed"
|
||||
fi
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}
|
||||
doins -r examples || die "doins failed"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
python_mod_optimize PyQt4
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
python_mod_cleanup PyQt4
|
||||
}
|
@ -1,178 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/PyQt4-4.8.5.ebuild,v 1.3 2012/02/20 14:24:02 patrick Exp $
|
||||
|
||||
EAPI="3"
|
||||
PYTHON_DEPEND="*"
|
||||
PYTHON_EXPORT_PHASE_FUNCTIONS="1"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
RESTRICT_PYTHON_ABIS="*-jython 2.7-pypy-**"
|
||||
|
||||
inherit python qt4-r2 toolchain-funcs
|
||||
|
||||
MY_P="PyQt-x11-gpl-${PV/_pre/-snapshot-}"
|
||||
|
||||
# Minimal supported version of Qt.
|
||||
QT_VER="4.6.2"
|
||||
|
||||
DESCRIPTION="Python bindings for the Qt toolkit"
|
||||
HOMEPAGE="http://www.riverbankcomputing.co.uk/software/pyqt/intro/ http://pypi.python.org/pypi/PyQt"
|
||||
SRC_URI="http://www.riverbankcomputing.com/static/Downloads/${PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="|| ( GPL-2 GPL-3 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
|
||||
IUSE="X assistant +dbus debug declarative doc examples kde multimedia opengl phonon sql svg webkit xmlpatterns"
|
||||
|
||||
DEPEND=">=dev-python/sip-4.12.2
|
||||
>=x11-libs/qt-core-${QT_VER}:4
|
||||
>=x11-libs/qt-script-${QT_VER}:4
|
||||
>=x11-libs/qt-test-${QT_VER}:4
|
||||
X? ( >=x11-libs/qt-gui-${QT_VER}:4[dbus?] )
|
||||
assistant? ( >=x11-libs/qt-assistant-${QT_VER}:4 )
|
||||
dbus? (
|
||||
>=dev-python/dbus-python-0.80
|
||||
>=x11-libs/qt-dbus-${QT_VER}:4
|
||||
)
|
||||
declarative? ( >=x11-libs/qt-declarative-${QT_VER}:4 )
|
||||
multimedia? ( >=x11-libs/qt-multimedia-${QT_VER}:4 )
|
||||
opengl? ( >=x11-libs/qt-opengl-${QT_VER}:4 || ( >=x11-libs/qt-opengl-4.7.0:4[-egl] <x11-libs/qt-opengl-4.7.0:4 ) )
|
||||
phonon? (
|
||||
!kde? ( || ( >=x11-libs/qt-phonon-${QT_VER}:4 media-libs/phonon ) )
|
||||
kde? ( media-libs/phonon )
|
||||
)
|
||||
sql? ( >=x11-libs/qt-sql-${QT_VER}:4 )
|
||||
svg? ( >=x11-libs/qt-svg-${QT_VER}:4 )
|
||||
webkit? ( >=x11-libs/qt-webkit-${QT_VER}:4 )
|
||||
xmlpatterns? ( >=x11-libs/qt-xmlpatterns-${QT_VER}:4 )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-4.7.2-configure.py.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
if ! use dbus; then
|
||||
sed -e "s/^\([[:blank:]]\+\)check_dbus()/\1pass/" -i configure.py || die "sed configure.py failed"
|
||||
fi
|
||||
|
||||
# Support qreal for arm architecture (bug #322349).
|
||||
use arm && epatch "${FILESDIR}/${PN}-4.7.3-qreal_float_support.patch"
|
||||
|
||||
qt4-r2_src_prepare
|
||||
|
||||
# Use proper include directory.
|
||||
sed -e "s:/usr/include:${EPREFIX}/usr/include:g" -i configure.py || die "sed configure.py failed"
|
||||
|
||||
python_copy_sources
|
||||
|
||||
preparation() {
|
||||
if [[ "$(python_get_version --major)" == "3" ]]; then
|
||||
rm -fr pyuic/uic/port_v2
|
||||
else
|
||||
rm -fr pyuic/uic/port_v3
|
||||
fi
|
||||
}
|
||||
python_execute_function -s preparation
|
||||
}
|
||||
|
||||
pyqt4_use_enable() {
|
||||
use $1 && echo "--enable=${2:-$1}"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
configuration() {
|
||||
local myconf=("$(PYTHON)"
|
||||
configure.py
|
||||
--confirm-license
|
||||
--bindir="${EPREFIX}/usr/bin"
|
||||
--destdir="${EPREFIX}$(python_get_sitedir)"
|
||||
--sipdir="${EPREFIX}/usr/share/sip"
|
||||
--qsci-api
|
||||
$(use debug && echo --debug)
|
||||
--enable=QtCore
|
||||
--enable=QtNetwork
|
||||
--enable=QtScript
|
||||
--enable=QtTest
|
||||
--enable=QtXml
|
||||
$(pyqt4_use_enable X QtDesigner)
|
||||
$(pyqt4_use_enable X QtGui)
|
||||
$(pyqt4_use_enable X QtScriptTools)
|
||||
# QtAssistant module is not available with Qt >=4.7.0.
|
||||
$(pyqt4_use_enable assistant QtAssistant)
|
||||
$(pyqt4_use_enable assistant QtHelp)
|
||||
$(pyqt4_use_enable declarative QtDeclarative)
|
||||
$(pyqt4_use_enable multimedia QtMultimedia)
|
||||
$(pyqt4_use_enable opengl QtOpenGL)
|
||||
$(pyqt4_use_enable phonon)
|
||||
$(pyqt4_use_enable sql QtSql)
|
||||
$(pyqt4_use_enable svg QtSvg)
|
||||
$(pyqt4_use_enable webkit QtWebKit)
|
||||
$(pyqt4_use_enable xmlpatterns QtXmlPatterns)
|
||||
CC="$(tc-getCC)"
|
||||
CXX="$(tc-getCXX)"
|
||||
LINK="$(tc-getCXX)"
|
||||
LINK_SHLIB="$(tc-getCXX)"
|
||||
CFLAGS="${CFLAGS}"
|
||||
CXXFLAGS="${CXXFLAGS}"
|
||||
LFLAGS="${LDFLAGS}")
|
||||
echo "${myconf[@]}"
|
||||
"${myconf[@]}" || return 1
|
||||
|
||||
local mod
|
||||
for mod in QtCore $(use X && echo QtDesigner QtGui) $(use declarative && echo QtDeclarative) $(use opengl && echo QtOpenGL); do
|
||||
# Run eqmake4 inside the qpy subdirectories to respect CC, CXX, CFLAGS, CXXFLAGS and LDFLAGS and avoid stripping.
|
||||
pushd qpy/${mod} > /dev/null || return 1
|
||||
eqmake4 $(ls w_qpy*.pro)
|
||||
popd > /dev/null || return 1
|
||||
|
||||
# Fix insecure runpaths.
|
||||
sed -e "/^LFLAGS[[:space:]]*=/s:-Wl,-rpath,${BUILDDIR}/qpy/${mod}::" -i ${mod}/Makefile || die "Fixing of runpaths failed"
|
||||
done
|
||||
|
||||
# Avoid stripping of libpythonplugin.so.
|
||||
if use X; then
|
||||
pushd designer > /dev/null || return 1
|
||||
eqmake4 python.pro
|
||||
popd > /dev/null || return 1
|
||||
fi
|
||||
}
|
||||
python_execute_function -s configuration
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
python_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
installation() {
|
||||
# INSTALL_ROOT is needed for the QtDesigner module, other Makefiles use DESTDIR.
|
||||
emake DESTDIR="${D}" INSTALL_ROOT="${D}" install
|
||||
}
|
||||
python_execute_function -s installation
|
||||
|
||||
dodoc NEWS THANKS || die "dodoc failed"
|
||||
|
||||
if use doc; then
|
||||
dohtml -r doc/html/* || die "dohtml failed"
|
||||
fi
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}
|
||||
doins -r examples || die "doins failed"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
python_mod_optimize PyQt4
|
||||
|
||||
ewarn "When updating dev-python/PyQt4, you usually need to rebuild packages, which depend on"
|
||||
ewarn "dev-python/PyQt4, such as dev-python/qscintilla-python. If you have app-portage/gentoolkit"
|
||||
ewarn "installed, you can find these packages with \`equery d dev-python/PyQt4\`."
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
python_mod_cleanup PyQt4
|
||||
}
|
@ -1,178 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/PyQt4-4.8.6.ebuild,v 1.2 2012/02/20 14:24:02 patrick Exp $
|
||||
|
||||
EAPI="3"
|
||||
PYTHON_DEPEND="*"
|
||||
PYTHON_EXPORT_PHASE_FUNCTIONS="1"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
RESTRICT_PYTHON_ABIS="*-jython 2.7-pypy-**"
|
||||
|
||||
inherit python qt4-r2 toolchain-funcs
|
||||
|
||||
MY_P="PyQt-x11-gpl-${PV/_pre/-snapshot-}"
|
||||
|
||||
# Minimal supported version of Qt.
|
||||
QT_VER="4.6.2"
|
||||
|
||||
DESCRIPTION="Python bindings for the Qt toolkit"
|
||||
HOMEPAGE="http://www.riverbankcomputing.co.uk/software/pyqt/intro/ http://pypi.python.org/pypi/PyQt"
|
||||
SRC_URI="http://www.riverbankcomputing.com/static/Downloads/${PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="|| ( GPL-2 GPL-3 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
|
||||
IUSE="X assistant +dbus debug declarative doc examples kde multimedia opengl phonon sql svg webkit xmlpatterns"
|
||||
|
||||
DEPEND=">=dev-python/sip-4.12.2
|
||||
>=x11-libs/qt-core-${QT_VER}:4
|
||||
>=x11-libs/qt-script-${QT_VER}:4
|
||||
>=x11-libs/qt-test-${QT_VER}:4
|
||||
X? ( >=x11-libs/qt-gui-${QT_VER}:4[dbus?] )
|
||||
assistant? ( >=x11-libs/qt-assistant-${QT_VER}:4 )
|
||||
dbus? (
|
||||
>=dev-python/dbus-python-0.80
|
||||
>=x11-libs/qt-dbus-${QT_VER}:4
|
||||
)
|
||||
declarative? ( >=x11-libs/qt-declarative-${QT_VER}:4 )
|
||||
multimedia? ( >=x11-libs/qt-multimedia-${QT_VER}:4 )
|
||||
opengl? ( >=x11-libs/qt-opengl-${QT_VER}:4 || ( >=x11-libs/qt-opengl-4.7.0:4[-egl] <x11-libs/qt-opengl-4.7.0:4 ) )
|
||||
phonon? (
|
||||
!kde? ( || ( >=x11-libs/qt-phonon-${QT_VER}:4 media-libs/phonon ) )
|
||||
kde? ( media-libs/phonon )
|
||||
)
|
||||
sql? ( >=x11-libs/qt-sql-${QT_VER}:4 )
|
||||
svg? ( >=x11-libs/qt-svg-${QT_VER}:4 )
|
||||
webkit? ( >=x11-libs/qt-webkit-${QT_VER}:4 )
|
||||
xmlpatterns? ( >=x11-libs/qt-xmlpatterns-${QT_VER}:4 )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-4.7.2-configure.py.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
if ! use dbus; then
|
||||
sed -e "s/^\([[:blank:]]\+\)check_dbus()/\1pass/" -i configure.py || die "sed configure.py failed"
|
||||
fi
|
||||
|
||||
# Support qreal for arm architecture (bug #322349).
|
||||
use arm && epatch "${FILESDIR}/${PN}-4.7.3-qreal_float_support.patch"
|
||||
|
||||
qt4-r2_src_prepare
|
||||
|
||||
# Use proper include directory.
|
||||
sed -e "s:/usr/include:${EPREFIX}/usr/include:g" -i configure.py || die "sed configure.py failed"
|
||||
|
||||
python_copy_sources
|
||||
|
||||
preparation() {
|
||||
if [[ "$(python_get_version --major)" == "3" ]]; then
|
||||
rm -fr pyuic/uic/port_v2
|
||||
else
|
||||
rm -fr pyuic/uic/port_v3
|
||||
fi
|
||||
}
|
||||
python_execute_function -s preparation
|
||||
}
|
||||
|
||||
pyqt4_use_enable() {
|
||||
use $1 && echo "--enable=${2:-$1}"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
configuration() {
|
||||
local myconf=("$(PYTHON)"
|
||||
configure.py
|
||||
--confirm-license
|
||||
--bindir="${EPREFIX}/usr/bin"
|
||||
--destdir="${EPREFIX}$(python_get_sitedir)"
|
||||
--sipdir="${EPREFIX}/usr/share/sip"
|
||||
--qsci-api
|
||||
$(use debug && echo --debug)
|
||||
--enable=QtCore
|
||||
--enable=QtNetwork
|
||||
--enable=QtScript
|
||||
--enable=QtTest
|
||||
--enable=QtXml
|
||||
$(pyqt4_use_enable X QtDesigner)
|
||||
$(pyqt4_use_enable X QtGui)
|
||||
$(pyqt4_use_enable X QtScriptTools)
|
||||
# QtAssistant module is not available with Qt >=4.7.0.
|
||||
$(pyqt4_use_enable assistant QtAssistant)
|
||||
$(pyqt4_use_enable assistant QtHelp)
|
||||
$(pyqt4_use_enable declarative QtDeclarative)
|
||||
$(pyqt4_use_enable multimedia QtMultimedia)
|
||||
$(pyqt4_use_enable opengl QtOpenGL)
|
||||
$(pyqt4_use_enable phonon)
|
||||
$(pyqt4_use_enable sql QtSql)
|
||||
$(pyqt4_use_enable svg QtSvg)
|
||||
$(pyqt4_use_enable webkit QtWebKit)
|
||||
$(pyqt4_use_enable xmlpatterns QtXmlPatterns)
|
||||
CC="$(tc-getCC)"
|
||||
CXX="$(tc-getCXX)"
|
||||
LINK="$(tc-getCXX)"
|
||||
LINK_SHLIB="$(tc-getCXX)"
|
||||
CFLAGS="${CFLAGS}"
|
||||
CXXFLAGS="${CXXFLAGS}"
|
||||
LFLAGS="${LDFLAGS}")
|
||||
echo "${myconf[@]}"
|
||||
"${myconf[@]}" || return 1
|
||||
|
||||
local mod
|
||||
for mod in QtCore $(use X && echo QtDesigner QtGui) $(use declarative && echo QtDeclarative) $(use opengl && echo QtOpenGL); do
|
||||
# Run eqmake4 inside the qpy subdirectories to respect CC, CXX, CFLAGS, CXXFLAGS and LDFLAGS and avoid stripping.
|
||||
pushd qpy/${mod} > /dev/null || return 1
|
||||
eqmake4 $(ls w_qpy*.pro)
|
||||
popd > /dev/null || return 1
|
||||
|
||||
# Fix insecure runpaths.
|
||||
sed -e "/^LFLAGS[[:space:]]*=/s:-Wl,-rpath,${BUILDDIR}/qpy/${mod}::" -i ${mod}/Makefile || die "Fixing of runpaths failed"
|
||||
done
|
||||
|
||||
# Avoid stripping of libpythonplugin.so.
|
||||
if use X; then
|
||||
pushd designer > /dev/null || return 1
|
||||
eqmake4 python.pro
|
||||
popd > /dev/null || return 1
|
||||
fi
|
||||
}
|
||||
python_execute_function -s configuration
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
python_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
installation() {
|
||||
# INSTALL_ROOT is needed for the QtDesigner module, other Makefiles use DESTDIR.
|
||||
emake DESTDIR="${D}" INSTALL_ROOT="${D}" install
|
||||
}
|
||||
python_execute_function -s installation
|
||||
|
||||
dodoc NEWS THANKS || die "dodoc failed"
|
||||
|
||||
if use doc; then
|
||||
dohtml -r doc/html/* || die "dohtml failed"
|
||||
fi
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}
|
||||
doins -r examples || die "doins failed"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
python_mod_optimize PyQt4
|
||||
|
||||
ewarn "When updating dev-python/PyQt4, you usually need to rebuild packages, which depend on"
|
||||
ewarn "dev-python/PyQt4, such as dev-python/qscintilla-python. If you have app-portage/gentoolkit"
|
||||
ewarn "installed, you can find these packages with \`equery d dev-python/PyQt4\`."
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
python_mod_cleanup PyQt4
|
||||
}
|
@ -1,182 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/PyQt4-4.9.ebuild,v 1.4 2012/02/20 14:24:02 patrick Exp $
|
||||
|
||||
EAPI="3"
|
||||
PYTHON_DEPEND="*"
|
||||
PYTHON_EXPORT_PHASE_FUNCTIONS="1"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
RESTRICT_PYTHON_ABIS="*-jython 2.7-pypy-**"
|
||||
|
||||
inherit python qt4-r2 toolchain-funcs
|
||||
|
||||
MY_P="PyQt-x11-gpl-${PV/_pre/-snapshot-}"
|
||||
|
||||
# Minimal supported version of Qt.
|
||||
QT_VER="4.6.2"
|
||||
|
||||
DESCRIPTION="Python bindings for the Qt toolkit"
|
||||
HOMEPAGE="http://www.riverbankcomputing.co.uk/software/pyqt/intro/ http://pypi.python.org/pypi/PyQt"
|
||||
SRC_URI="http://www.riverbankcomputing.com/static/Downloads/${PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="|| ( GPL-2 GPL-3 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
|
||||
IUSE="X assistant +dbus debug declarative doc examples kde multimedia opengl phonon sql svg webkit xmlpatterns"
|
||||
|
||||
DEPEND=">=dev-python/sip-4.13.1
|
||||
>=x11-libs/qt-core-${QT_VER}:4
|
||||
>=x11-libs/qt-script-${QT_VER}:4
|
||||
>=x11-libs/qt-test-${QT_VER}:4
|
||||
X? ( >=x11-libs/qt-gui-${QT_VER}:4[dbus?] )
|
||||
assistant? ( >=x11-libs/qt-assistant-${QT_VER}:4 )
|
||||
dbus? (
|
||||
>=dev-python/dbus-python-0.80
|
||||
>=x11-libs/qt-dbus-${QT_VER}:4
|
||||
)
|
||||
declarative? ( >=x11-libs/qt-declarative-${QT_VER}:4 )
|
||||
multimedia? ( >=x11-libs/qt-multimedia-${QT_VER}:4 )
|
||||
opengl? ( >=x11-libs/qt-opengl-${QT_VER}:4 || ( >=x11-libs/qt-opengl-4.8.0:4 >=x11-libs/qt-opengl-4.7.0:4[-egl] <x11-libs/qt-opengl-4.7.0:4 ) )
|
||||
phonon? (
|
||||
!kde? ( || ( >=x11-libs/qt-phonon-${QT_VER}:4 media-libs/phonon ) )
|
||||
kde? ( media-libs/phonon )
|
||||
)
|
||||
sql? ( >=x11-libs/qt-sql-${QT_VER}:4 )
|
||||
svg? ( >=x11-libs/qt-svg-${QT_VER}:4 )
|
||||
webkit? ( >=x11-libs/qt-webkit-${QT_VER}:4 )
|
||||
xmlpatterns? ( >=x11-libs/qt-xmlpatterns-${QT_VER}:4 )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-4.7.2-configure.py.patch"
|
||||
)
|
||||
|
||||
PYTHON_VERSIONED_EXECUTABLES=("/usr/bin/pyuic4")
|
||||
|
||||
src_prepare() {
|
||||
if ! use dbus; then
|
||||
sed -e "s/^\([[:blank:]]\+\)check_dbus()/\1pass/" -i configure.py || die "sed configure.py failed"
|
||||
fi
|
||||
|
||||
# Support qreal for arm architecture (bug #322349).
|
||||
use arm && epatch "${FILESDIR}/${PN}-4.7.3-qreal_float_support.patch"
|
||||
|
||||
qt4-r2_src_prepare
|
||||
|
||||
# Use proper include directory.
|
||||
sed -e "s:/usr/include:${EPREFIX}/usr/include:g" -i configure.py || die "sed configure.py failed"
|
||||
|
||||
python_copy_sources
|
||||
|
||||
preparation() {
|
||||
if [[ "$(python_get_version -l --major)" == "3" ]]; then
|
||||
rm -fr pyuic/uic/port_v2
|
||||
else
|
||||
rm -fr pyuic/uic/port_v3
|
||||
fi
|
||||
}
|
||||
python_execute_function -s preparation
|
||||
}
|
||||
|
||||
pyqt4_use_enable() {
|
||||
use $1 && echo "--enable=${2:-$1}"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
configuration() {
|
||||
local myconf=("$(PYTHON)"
|
||||
configure.py
|
||||
--confirm-license
|
||||
--bindir="${EPREFIX}/usr/bin"
|
||||
--destdir="${EPREFIX}$(python_get_sitedir)"
|
||||
--sipdir="${EPREFIX}/usr/share/sip"
|
||||
--qsci-api
|
||||
$(use debug && echo --debug)
|
||||
--enable=QtCore
|
||||
--enable=QtNetwork
|
||||
--enable=QtScript
|
||||
--enable=QtTest
|
||||
--enable=QtXml
|
||||
$(pyqt4_use_enable X QtDesigner)
|
||||
$(pyqt4_use_enable X QtGui)
|
||||
$(pyqt4_use_enable X QtScriptTools)
|
||||
# QtAssistant module is not available with Qt >=4.7.0.
|
||||
$(pyqt4_use_enable assistant QtAssistant)
|
||||
$(pyqt4_use_enable assistant QtHelp)
|
||||
$(pyqt4_use_enable dbus QtDBus)
|
||||
$(pyqt4_use_enable declarative QtDeclarative)
|
||||
$(pyqt4_use_enable multimedia QtMultimedia)
|
||||
$(pyqt4_use_enable opengl QtOpenGL)
|
||||
$(pyqt4_use_enable phonon)
|
||||
$(pyqt4_use_enable sql QtSql)
|
||||
$(pyqt4_use_enable svg QtSvg)
|
||||
$(pyqt4_use_enable webkit QtWebKit)
|
||||
$(pyqt4_use_enable xmlpatterns QtXmlPatterns)
|
||||
CC="$(tc-getCC)"
|
||||
CXX="$(tc-getCXX)"
|
||||
LINK="$(tc-getCXX)"
|
||||
LINK_SHLIB="$(tc-getCXX)"
|
||||
CFLAGS="${CFLAGS}"
|
||||
CXXFLAGS="${CXXFLAGS}"
|
||||
LFLAGS="${LDFLAGS}")
|
||||
echo "${myconf[@]}"
|
||||
"${myconf[@]}" || return 1
|
||||
|
||||
local mod
|
||||
for mod in QtCore $(use X && echo QtDesigner QtGui) $(use dbus && echo QtDBus) $(use declarative && echo QtDeclarative) $(use opengl && echo QtOpenGL); do
|
||||
# Run eqmake4 inside the qpy subdirectories to respect CC, CXX, CFLAGS, CXXFLAGS and LDFLAGS and avoid stripping.
|
||||
pushd qpy/${mod} > /dev/null || return 1
|
||||
eqmake4 $(ls w_qpy*.pro)
|
||||
popd > /dev/null || return 1
|
||||
|
||||
# Fix insecure runpaths.
|
||||
sed -e "/^LFLAGS[[:space:]]*=/s:-Wl,-rpath,${BUILDDIR}/qpy/${mod}::" -i ${mod}/Makefile || die "Fixing of runpaths failed"
|
||||
done
|
||||
|
||||
# Avoid stripping of libpythonplugin.so.
|
||||
if use X; then
|
||||
pushd designer > /dev/null || return 1
|
||||
eqmake4 python.pro
|
||||
popd > /dev/null || return 1
|
||||
fi
|
||||
}
|
||||
python_execute_function -s configuration
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
python_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
installation() {
|
||||
# INSTALL_ROOT is used by designer/Makefile, other Makefiles use DESTDIR.
|
||||
emake DESTDIR="${T}/images/${PYTHON_ABI}" INSTALL_ROOT="${T}/images/${PYTHON_ABI}" install
|
||||
}
|
||||
python_execute_function -s installation
|
||||
python_merge_intermediate_installation_images "${T}/images"
|
||||
|
||||
dodoc NEWS THANKS || die "dodoc failed"
|
||||
|
||||
if use doc; then
|
||||
dohtml -r doc/html/* || die "dohtml failed"
|
||||
fi
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}
|
||||
doins -r examples || die "doins failed"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
python_mod_optimize PyQt4
|
||||
|
||||
ewarn "When updating dev-python/PyQt4, you usually need to rebuild packages, which depend on"
|
||||
ewarn "dev-python/PyQt4, such as dev-python/qscintilla-python. If you have app-portage/gentoolkit"
|
||||
ewarn "installed, you can find these packages with \`equery d dev-python/PyQt4\`."
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
python_mod_cleanup PyQt4
|
||||
}
|
@ -1,40 +0,0 @@
|
||||
Index: PyQt-x11-gpl-4.7.7/pyuic/uic/Loader/loader.py
|
||||
===================================================================
|
||||
--- PyQt-x11-gpl-4.7.7.orig/pyuic/uic/Loader/loader.py
|
||||
+++ PyQt-x11-gpl-4.7.7/pyuic/uic/Loader/loader.py
|
||||
@@ -1,3 +1,5 @@
|
||||
+import os.path
|
||||
+
|
||||
from PyQt4 import QtGui, QtCore
|
||||
from PyQt4.uic.uiparser import UIParser
|
||||
from PyQt4.uic.Loader.qobjectcreator import LoaderCreatorPolicy
|
||||
@@ -19,6 +21,7 @@ class DynamicUILoader(UIParser):
|
||||
def loadUi(self, filename, toplevelInst=None):
|
||||
self.toplevelInst = toplevelInst
|
||||
|
||||
- # By using QFileInfo.path() rather than os.path.dirname() we allow
|
||||
- # QString file names.
|
||||
- return self.parse(filename, QtCore.QFileInfo(filename).path())
|
||||
+ # Allow the filename to be a QString.
|
||||
+ filename = str(filename)
|
||||
+
|
||||
+ return self.parse(filename, os.path.dirname(filename))
|
||||
Index: PyQt-x11-gpl-4.7.7/sip/QtCore/qglobal.sip
|
||||
===================================================================
|
||||
--- PyQt-x11-gpl-4.7.7.orig/sip/QtCore/qglobal.sip
|
||||
+++ PyQt-x11-gpl-4.7.7/sip/QtCore/qglobal.sip
|
||||
@@ -312,12 +312,12 @@ public:
|
||||
// Qt.Alignment class.
|
||||
QFlags operator|(int f);
|
||||
%MethodCode
|
||||
- sipRes = new QFlags(*a0 | (ENUM(a1)));
|
||||
+ sipRes = new QFlags(*a0 | a1);
|
||||
%End
|
||||
|
||||
QFlags operator^(int f);
|
||||
%MethodCode
|
||||
- sipRes = new QFlags(*a0 ^ (ENUM(a1)));
|
||||
+ sipRes = new QFlags(*a0 ^ a1);
|
||||
%End
|
||||
|
||||
// These are necessary to prevent Python comparing object IDs.
|
@ -1,13 +0,0 @@
|
||||
--- configure.py
|
||||
+++ configure.py
|
||||
@@ -941,8 +941,8 @@
|
||||
# version.
|
||||
link = "-framework Python"
|
||||
elif ("--enable-shared" in ducfg.get("CONFIG_ARGS", "") and
|
||||
- glob.glob("%s/lib/libpython%d.%d*" % (ducfg["exec_prefix"], py_major, py_minor))):
|
||||
- lib_dir_flag = quote("-L%s/lib" % ducfg["exec_prefix"])
|
||||
+ glob.glob("%s/libpython%d.%d*" % (ducfg["LIBDIR"], py_major, py_minor))):
|
||||
+ lib_dir_flag = quote("-L%s" % ducfg["LIBDIR"])
|
||||
link = "%s -lpython%d.%d%s" % (lib_dir_flag, py_major, py_minor, abi)
|
||||
else:
|
||||
sipconfig.inform("Qt Designer plugin disabled because Python library is static")
|
@ -0,0 +1 @@
|
||||
DIST css_parser-1.2.6.tar.gz 23195 RMD160 433e6b403b4ed63b136286c30e4672d41ffa102b SHA1 17c213159205089a124b7299fb4b9ef9f3b86fa7 SHA256 79cf2b291120a6415845c3c194dfa36da2b5e72f370f366a13dd4e5a8253d9ae
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue