parent
cffbd9ec6d
commit
9a1e7d4882
@ -0,0 +1,34 @@
|
||||
http://code.google.com/p/libarchive/issues/detail?id=242
|
||||
http://bugs.gentoo.org/403733
|
||||
|
||||
--- a/libarchive/archive_write_set_format_7zip.c
|
||||
+++ b/libarchive/archive_write_set_format_7zip.c
|
||||
@@ -1585,7 +1585,8 @@ file_init_register_empty(struct _7zip *zip)
|
||||
zip->empty_list.last = &(zip->empty_list.first);
|
||||
}
|
||||
|
||||
-#if !defined(HAVE_BZLIB_H) || !defined(BZ_CONFIG_ERROR) || !defined(HAVE_LZMA_H)
|
||||
+#if !defined(HAVE_ZLIB_H) || !defined(HAVE_BZLIB_H) ||\
|
||||
+ !defined(BZ_CONFIG_ERROR) || !defined(HAVE_LZMA_H)
|
||||
static int
|
||||
compression_unsupported_encoder(struct archive *a,
|
||||
struct la_zstream *lastrm, const char *name)
|
||||
|
||||
--- a/libarchive/test/test_write_compress_program.c
|
||||
+++ b/libarchive/test/test_write_compress_program.c
|
||||
@@ -40,6 +40,15 @@ DEFINE_TEST(test_write_compress_program)
|
||||
skipping("Cannot run 'gzip'");
|
||||
return;
|
||||
}
|
||||
+ /* NOTE: Setting blocksize=1024 will cause gunzip failure because
|
||||
+ * it add extra bytes that gunzip ignores with its warning and
|
||||
+ * exit code 1. So we should set blocksize=1 in order not to
|
||||
+ * yield the extra bytes when using gunzip. */
|
||||
+ assert((a = archive_read_new()) != NULL);
|
||||
+ r = archive_read_support_filter_gzip(a);
|
||||
+ if (r != ARCHIVE_OK && canGunzip())
|
||||
+ blocksize = 1;
|
||||
+ assertEqualInt(ARCHIVE_OK, archive_read_free(a));
|
||||
|
||||
/* Create a new archive in memory. */
|
||||
/* Write it through an external "gzip" program. */
|
@ -1,7 +1,7 @@
|
||||
app-arch/xz-utils
|
||||
>=app-admin/eselect-1.2.4
|
||||
0
|
||||
http://dev.gentooexperimental.org/~scarabeus//glext.h.67.xz http://dev.gentooexperimental.org/~scarabeus//glxext.h.32.xz http://dev.gentoo.org/~lu_zero/distfiles/eselect-opengl-1.2.5.tar.xz
|
||||
http://dev.gentooexperimental.org/~scarabeus//glext.h.75.xz http://dev.gentooexperimental.org/~scarabeus//glxext.h.33.xz http://dev.gentoo.org/~lu_zero/distfiles/eselect-opengl-1.2.5.tar.xz
|
||||
|
||||
http://www.gentoo.org/
|
||||
GPL-2
|
@ -1,22 +0,0 @@
|
||||
>=dev-python/apptools-3.4.1 dev-python/configobj >=dev-python/enthoughtbase-3.1.0 >=dev-python/envisagecore-3.2.0 >=dev-python/envisageplugins-3.2.0 dev-python/ipython dev-python/numpy dev-python/setuptools >=dev-python/traitsgui-3.6.0[qt4?,wxwidgets] dev-python/wxpython:2.8[opengl] >=sci-libs/vtk-5[python] qt4? ( dev-python/PyQt4[X,opengl] ) doc? ( app-arch/unzip ) >=app-admin/eselect-python-20091230 =dev-lang/python-2*
|
||||
>=dev-python/apptools-3.4.1 dev-python/configobj >=dev-python/enthoughtbase-3.1.0 >=dev-python/envisagecore-3.2.0 >=dev-python/envisageplugins-3.2.0 dev-python/ipython dev-python/numpy dev-python/setuptools >=dev-python/traitsgui-3.6.0[qt4?,wxwidgets] dev-python/wxpython:2.8[opengl] >=sci-libs/vtk-5[python] qt4? ( dev-python/PyQt4[X,opengl] ) >=app-admin/eselect-python-20091230 =dev-lang/python-2*
|
||||
2
|
||||
http://www.enthought.com/repo/ETS/Mayavi-3.4.1.tar.gz
|
||||
|
||||
http://code.enthought.com/projects/mayavi/ http://pypi.python.org/pypi/Mayavi/
|
||||
BSD
|
||||
Enthought Tool Suite: scientific data 3-dimensional visualizer
|
||||
~amd64 ~x86
|
||||
distutils eutils multilib python toolchain-funcs user
|
||||
doc examples qt4
|
||||
|
||||
|
||||
|
||||
3
|
||||
|
||||
compile install postinst postrm prepare setup unpack
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,22 +0,0 @@
|
||||
dev-python/setuptools test? ( dev-python/configobj dev-python/ipython >=dev-python/pyface-4.0 >=dev-python/traitsui-4.0 >=dev-python/envisage-4.0 >=dev-python/apptools-4.0 >=dev-python/traitsui-4.0 dev-python/numpy >=sci-libs/vtk-5[python] dev-python/wxpython[opengl] media-fonts/font-cursor-misc media-fonts/font-misc-misc ) >=app-admin/eselect-python-20091230 =dev-lang/python-2* test? ( dev-python/nose ) test? ( !prefix? ( x11-base/xorg-server[xvfb] ) x11-apps/xhost )
|
||||
dev-python/configobj dev-python/ipython >=dev-python/pyface-4.0 >=dev-python/traitsui-4.0 >=dev-python/envisage-4.0 >=dev-python/apptools-4.0 >=dev-python/traitsui-4.0 dev-python/numpy >=sci-libs/vtk-5[python] >=app-admin/eselect-python-20091230 =dev-lang/python-2*
|
||||
2
|
||||
http://www.enthought.com/repo/ets/mayavi-4.0.0.tar.gz
|
||||
|
||||
http://code.enthought.com/projects/mayavi/ http://pypi.python.org/pypi/mayavi
|
||||
BSD
|
||||
Enthought Tool Suite: scientific data 3-dimensional visualizer
|
||||
~amd64 ~x86
|
||||
distutils eutils multilib python toolchain-funcs user virtualx
|
||||
examples test test test
|
||||
|
||||
|
||||
|
||||
3
|
||||
|
||||
compile install postinst postrm prepare test
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,22 @@
|
||||
sci-libs/vtk[python] dev-python/setuptools test? ( dev-python/apptools dev-python/configobj dev-python/envisage dev-python/ipython dev-python/numpy dev-python/pyface dev-python/traitsui dev-python/wxpython dev-python/wxpython[opengl] media-fonts/font-cursor-misc media-fonts/font-misc-misc ) >=app-admin/eselect-python-20091230 dev-lang/python test? ( dev-python/nose ) test? ( !prefix? ( x11-base/xorg-server[xvfb] ) x11-apps/xhost )
|
||||
dev-python/apptools dev-python/configobj dev-python/envisage dev-python/ipython dev-python/numpy dev-python/pyface dev-python/traitsui dev-python/wxpython >=app-admin/eselect-python-20091230 dev-lang/python
|
||||
2
|
||||
http://www.enthought.com/repo/ets/mayavi-4.1.0.tar.gz
|
||||
|
||||
http://code.enthought.com/projects/mayavi/ http://pypi.python.org/pypi/mayavi/
|
||||
BSD
|
||||
Enthought Tool Suite: Scientific data 3-dimensional visualizer
|
||||
~amd64 ~x86
|
||||
distutils eutils multilib python toolchain-funcs user virtualx
|
||||
doc examples test test test
|
||||
|
||||
|
||||
|
||||
4
|
||||
|
||||
compile install postinst postrm prepare setup test
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,22 @@
|
||||
python3? ( =dev-lang/python-3* ) !pypy1_8? ( !python2? ( !python3? ( || ( >=dev-lang/python-2.7 dev-lang/python:2.6[threads] ) ) ) ) pypy1_8? ( !python2? ( !python3? ( dev-python/pypy:1.8[bzip2] ) ) ) python2? ( !python3? ( || ( dev-lang/python:2.7 dev-lang/python:2.6[threads] ) ) ) !build? ( >=sys-apps/sed-4.0.5 ) doc? ( app-text/xmlto ~app-text/docbook-xml-dtd-4.4 ) epydoc? ( >=dev-python/epydoc-2.0 !<=dev-python/pysqlite-2.4.1 ) >=app-admin/eselect-python-20091230
|
||||
python3? ( =dev-lang/python-3* ) !pypy1_8? ( !python2? ( !python3? ( || ( >=dev-lang/python-2.7 dev-lang/python:2.6[threads] ) ) ) ) pypy1_8? ( !python2? ( !python3? ( dev-python/pypy:1.8[bzip2] ) ) ) python2? ( !python3? ( || ( dev-lang/python:2.7 dev-lang/python:2.6[threads] ) ) ) !build? ( >=sys-apps/sed-4.0.5 >=app-shells/bash-3.2_p17 >=app-admin/eselect-1.2 ) elibc_FreeBSD? ( sys-freebsd/freebsd-bin ) elibc_glibc? ( >=sys-apps/sandbox-2.2 ) elibc_uclibc? ( >=sys-apps/sandbox-2.2 ) >=app-misc/pax-utils-0.1.17 xattr? ( kernel_linux? ( || ( >=dev-lang/python-3.3_pre20110902 dev-python/pyxattr ) ) ) selinux? ( || ( >=sys-libs/libselinux-2.0.94[python] <sys-libs/libselinux-2.0.94 ) ) !<app-shells/bash-3.2_p17 !<app-admin/logrotate-3.8.0 >=app-admin/eselect-python-20091230
|
||||
0
|
||||
mirror://gentoo/portage-2.2.0_alpha88.tar.bz2 http://dev.gentoo.org/~zmedico/portage/archives/portage-2.2.0_alpha88.tar.bz2 linguas_pl? ( mirror://gentoo/portage-man-pl-2.1.2.tar.bz2 http://dev.gentoo.org/~zmedico/portage/archives/portage-man-pl-2.1.2.tar.bz2 ) mirror://gentoo/portage-2.2.0_alpha90.patch.bz2 http://dev.gentoo.org/~zmedico/portage/archives/portage-2.2.0_alpha90.patch.bz2
|
||||
|
||||
http://www.gentoo.org/proj/en/portage/index.xml
|
||||
GPL-2
|
||||
Portage is the package management and distribution system for Gentoo
|
||||
~sparc-fbsd ~x86-fbsd
|
||||
eutils multilib python toolchain-funcs user
|
||||
build doc epydoc +ipc linguas_pl pypy1_8 python2 python3 selinux xattr
|
||||
|
||||
!build? ( >=net-misc/rsync-2.6.4 userland_GNU? ( >=sys-apps/coreutils-6.4 ) )
|
||||
|
||||
3
|
||||
|
||||
compile install postinst postrm preinst prepare setup test
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,22 +0,0 @@
|
||||
>=sys-apps/dbus-1.4.10 >=sys-apps/util-linux-2.19 >=sys-fs/udev-172 sys-libs/libcap acl? ( sys-apps/acl ) audit? ( >=sys-process/audit-2 ) cryptsetup? ( sys-fs/cryptsetup ) gtk? ( dev-libs/dbus-glib >=dev-libs/glib-2.26 x11-libs/gtk+:2 >=x11-libs/libnotify-0.7 ) pam? ( virtual/pam ) plymouth? ( sys-boot/plymouth ) selinux? ( sys-libs/libselinux ) tcpd? ( sys-apps/tcp-wrappers ) dev-util/gperf dev-util/intltool gtk? ( dev-lang/vala:0.12 ) >=sys-kernel/linux-headers-2.6.38 !<sys-apps/systemd-29-r4 !=sys-apps/systemd-37-r1
|
||||
>=sys-apps/dbus-1.4.10 >=sys-apps/util-linux-2.19 >=sys-fs/udev-172 sys-libs/libcap acl? ( sys-apps/acl ) audit? ( >=sys-process/audit-2 ) cryptsetup? ( sys-fs/cryptsetup ) gtk? ( dev-libs/dbus-glib >=dev-libs/glib-2.26 x11-libs/gtk+:2 >=x11-libs/libnotify-0.7 ) pam? ( virtual/pam ) plymouth? ( sys-boot/plymouth ) selinux? ( sys-libs/libselinux ) tcpd? ( sys-apps/tcp-wrappers ) !<sys-apps/openrc-0.8.3 !=sys-apps/systemd-29-r4
|
||||
0
|
||||
http://www.freedesktop.org/software/systemd/systemd-37.tar.bz2
|
||||
|
||||
http://www.freedesktop.org/wiki/Software/systemd
|
||||
GPL-2
|
||||
System and service manager for Linux
|
||||
~amd64 ~x86
|
||||
autotools autotools-utils bash-completion-r1 eutils flag-o-matic libtool linux-info multilib pam systemd toolchain-funcs user versionator
|
||||
acl audit cryptsetup gtk pam plymouth selinux tcpd
|
||||
|
||||
|
||||
|
||||
4
|
||||
|
||||
compile configure install postinst preinst prepare setup test
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,22 +0,0 @@
|
||||
>=sys-apps/dbus-1.4.10 sys-apps/sysvinit >=sys-apps/util-linux-2.19 >=sys-fs/udev-172 sys-libs/libcap acl? ( sys-apps/acl ) audit? ( >=sys-process/audit-2 ) cryptsetup? ( sys-fs/cryptsetup ) gtk? ( dev-libs/dbus-glib >=dev-libs/glib-2.26 x11-libs/gtk+:2 >=x11-libs/libnotify-0.7 ) pam? ( virtual/pam ) plymouth? ( sys-boot/plymouth ) selinux? ( sys-libs/libselinux ) tcpd? ( sys-apps/tcp-wrappers ) dev-util/gperf dev-util/intltool gtk? ( dev-lang/vala:0.14 ) >=sys-kernel/linux-headers-2.6.38 !<sys-apps/systemd-29-r4 !=sys-apps/systemd-37-r1
|
||||
>=sys-apps/dbus-1.4.10 sys-apps/sysvinit >=sys-apps/util-linux-2.19 >=sys-fs/udev-172 sys-libs/libcap acl? ( sys-apps/acl ) audit? ( >=sys-process/audit-2 ) cryptsetup? ( sys-fs/cryptsetup ) gtk? ( dev-libs/dbus-glib >=dev-libs/glib-2.26 x11-libs/gtk+:2 >=x11-libs/libnotify-0.7 ) pam? ( virtual/pam ) plymouth? ( sys-boot/plymouth ) selinux? ( sys-libs/libselinux ) tcpd? ( sys-apps/tcp-wrappers ) !<sys-apps/openrc-0.8.3
|
||||
0
|
||||
http://www.freedesktop.org/software/systemd/systemd-37.tar.bz2
|
||||
|
||||
http://www.freedesktop.org/wiki/Software/systemd
|
||||
GPL-2
|
||||
System and service manager for Linux
|
||||
~amd64 ~x86
|
||||
autotools autotools-utils bash-completion-r1 eutils flag-o-matic libtool linux-info multilib pam systemd toolchain-funcs user versionator
|
||||
acl audit cryptsetup gtk pam plymouth selinux tcpd
|
||||
|
||||
|
||||
|
||||
4
|
||||
|
||||
compile configure install postinst preinst prepare setup test
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,22 +0,0 @@
|
||||
>=sys-apps/dbus-1.4.10 sys-apps/sysvinit >=sys-apps/util-linux-2.19 >=sys-fs/udev-172 sys-libs/libcap acl? ( sys-apps/acl ) audit? ( >=sys-process/audit-2 ) cryptsetup? ( sys-fs/cryptsetup ) gtk? ( dev-libs/dbus-glib >=dev-libs/glib-2.26 dev-libs/libgee:0 x11-libs/gtk+:2 >=x11-libs/libnotify-0.7 ) lzma? ( app-arch/xz-utils ) pam? ( virtual/pam ) plymouth? ( sys-boot/plymouth ) selinux? ( sys-libs/libselinux ) tcpd? ( sys-apps/tcp-wrappers ) app-arch/xz-utils dev-util/gperf dev-util/intltool gtk? ( dev-lang/vala:0.14 ) >=sys-kernel/linux-headers-2.6.38 !<sys-apps/systemd-29-r4 !=sys-apps/systemd-37-r1
|
||||
>=sys-apps/dbus-1.4.10 sys-apps/sysvinit >=sys-apps/util-linux-2.19 >=sys-fs/udev-172 sys-libs/libcap acl? ( sys-apps/acl ) audit? ( >=sys-process/audit-2 ) cryptsetup? ( sys-fs/cryptsetup ) gtk? ( dev-libs/dbus-glib >=dev-libs/glib-2.26 dev-libs/libgee:0 x11-libs/gtk+:2 >=x11-libs/libnotify-0.7 ) lzma? ( app-arch/xz-utils ) pam? ( virtual/pam ) plymouth? ( sys-boot/plymouth ) selinux? ( sys-libs/libselinux ) tcpd? ( sys-apps/tcp-wrappers ) !<sys-apps/openrc-0.8.3
|
||||
0
|
||||
http://www.freedesktop.org/software/systemd/systemd-38.tar.xz
|
||||
|
||||
http://www.freedesktop.org/wiki/Software/systemd
|
||||
GPL-2
|
||||
System and service manager for Linux
|
||||
~amd64 ~x86
|
||||
autotools autotools-utils bash-completion-r1 eutils flag-o-matic libtool linux-info multilib pam systemd toolchain-funcs user versionator
|
||||
acl audit cryptsetup gtk lzma pam plymouth selinux tcpd
|
||||
|
||||
|
||||
|
||||
4
|
||||
|
||||
compile configure install postinst preinst prepare setup test
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,22 @@
|
||||
|
||||
|
||||
0
|
||||
mirror://gnu/ddrescue/ddrescue-1.15.tar.gz
|
||||
|
||||
http://www.gnu.org/software/ddrescue/ddrescue.html
|
||||
GPL-2
|
||||
Copies data from one file or block device to another with read-error recovery
|
||||
~amd64 ~arm ~ia64 ~ppc ~sparc ~x86
|
||||
multilib toolchain-funcs
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
compile install test
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,22 +0,0 @@
|
||||
x11-libs/libX11 x11-libs/libXext x11-libs/libXmu x11-libs/libXt sys-devel/flex virtual/yacc x11-proto/xextproto x11-proto/xproto x86-interix? ( >=sys-devel/libtool-2.2.6a sys-devel/m4 >=x11-misc/util-macros-1.15.0 >=media-fonts/font-util-1.2.0 ) ppc-aix? ( >=sys-devel/libtool-2.2.6a sys-devel/m4 >=x11-misc/util-macros-1.15.0 >=media-fonts/font-util-1.2.0 ) x86-winnt? ( >=sys-devel/libtool-2.2.6a sys-devel/m4 >=x11-misc/util-macros-1.15.0 >=media-fonts/font-util-1.2.0 ) >=dev-util/pkgconfig-0.23
|
||||
x11-libs/libX11 x11-libs/libXext x11-libs/libXmu x11-libs/libXt
|
||||
0
|
||||
http://xorg.freedesktop.org/releases/individual/lib/libXaw3d-1.6.tar.bz2
|
||||
|
||||
http://xorg.freedesktop.org/
|
||||
MIT
|
||||
X.Org Xaw3d library
|
||||
~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd
|
||||
autotools autotools-utils eutils flag-o-matic libtool multilib toolchain-funcs user xorg-2
|
||||
unicode static-libs
|
||||
|
||||
|
||||
|
||||
4
|
||||
|
||||
compile configure install postinst postrm prepare setup test unpack
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1 +1 @@
|
||||
Mon, 05 Mar 2012 07:06:46 +0000
|
||||
Mon, 05 Mar 2012 11:06:48 +0000
|
||||
|
@ -1 +1 @@
|
||||
Mon, 05 Mar 2012 07:06:47 +0000
|
||||
Mon, 05 Mar 2012 11:06:48 +0000
|
||||
|
@ -1 +1 @@
|
||||
Mon, 05 Mar 2012 07:06:48 +0000
|
||||
Mon, 05 Mar 2012 11:06:50 +0000
|
||||
|
@ -1 +1 @@
|
||||
Mon Mar 5 07:06:46 UTC 2012
|
||||
Mon Mar 5 11:06:48 UTC 2012
|
||||
|
@ -1 +1 @@
|
||||
Mon, 05 Mar 2012 07:30:01 +0000
|
||||
Mon, 05 Mar 2012 11:30:01 +0000
|
||||
|
@ -1 +1 @@
|
||||
1330931101 Mon Mar 5 07:05:01 2012 UTC
|
||||
1330945501 Mon Mar 5 11:05:01 2012 UTC
|
||||
|
@ -1,3 +1 @@
|
||||
DIST Mayavi-3.4.1.tar.gz 9343848 RMD160 669d9c90bcc9bd67a1bd7b90bbafd314b849c20c SHA1 b4bf2e03bcea73dfb32a5e1052ff2df0ea618ab6 SHA256 9eeb26f94fbfc7ca6694a3c82ff92a8fa310c127c2d538144da7d01193995aab
|
||||
DIST mayavi-4.0.0.tar.gz 7670159 RMD160 45c69fffb7dd27acf4f8e076da798bcc85b65850 SHA1 58466f3111b441475d1bd97d3e71c46e37fad993 SHA256 c17dfb1ba1cdad536a1e2c23fe3d073d48a9d7b7879d86adacda30be272f15ad
|
||||
DIST mayavi-4.1.0.tar.gz 7764207 RMD160 db9a6bf5af9778f11ebf5c22e5c2c7f1b8dc6557 SHA1 22331a479560a2c4db6248336d60838f24f18150 SHA256 53d44cf4dcd7ebf57e197e0a72002db30a74f23e5642e34b3b8f2ebe7a71bbf9
|
||||
|
@ -0,0 +1,25 @@
|
||||
From 2fece6b29c9f3eefa523c8131cce02f724e437f3 Mon Sep 17 00:00:00 2001
|
||||
Message-Id: <2fece6b29c9f3eefa523c8131cce02f724e437f3.1330934918.git.jlec@gentoo.org>
|
||||
From: martin <martin@think.(none)>
|
||||
Date: Sun, 19 Feb 2012 10:43:39 -0500
|
||||
Subject: [PATCH] FIX: don't wrap vtkQt classes
|
||||
|
||||
---
|
||||
tvtk/code_gen.py | 1 +
|
||||
1 files changed, 1 insertions(+), 0 deletions(-)
|
||||
|
||||
diff --git a/tvtk/code_gen.py b/tvtk/code_gen.py
|
||||
index f0b0b60..377801e 100644
|
||||
--- a/tvtk/code_gen.py
|
||||
+++ b/tvtk/code_gen.py
|
||||
@@ -92,6 +92,7 @@ class TVTKGenerator:
|
||||
#classes = dir(vtk)
|
||||
classes = [x.name for x in wrap_gen.get_tree() \
|
||||
if x.name.startswith('vtk') and \
|
||||
+ not x.name.startswith('vtkQt') and \
|
||||
not issubclass(getattr(vtk, x.name), object) ]
|
||||
for nodes in tree:
|
||||
for node in nodes:
|
||||
--
|
||||
1.7.8.5
|
||||
|
@ -1,87 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sci-visualization/mayavi/mayavi-3.4.1.ebuild,v 1.4 2012/02/15 19:13:02 jlec Exp $
|
||||
|
||||
EAPI="3"
|
||||
|
||||
PYTHON_DEPEND="2"
|
||||
|
||||
inherit distutils eutils
|
||||
|
||||
MY_PN="Mayavi"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
DESCRIPTION="Enthought Tool Suite: scientific data 3-dimensional visualizer"
|
||||
HOMEPAGE="http://code.enthought.com/projects/mayavi/ http://pypi.python.org/pypi/Mayavi/"
|
||||
SRC_URI="http://www.enthought.com/repo/ETS/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="2"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc examples qt4"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/apptools-3.4.1
|
||||
dev-python/configobj
|
||||
>=dev-python/enthoughtbase-3.1.0
|
||||
>=dev-python/envisagecore-3.2.0
|
||||
>=dev-python/envisageplugins-3.2.0
|
||||
dev-python/ipython
|
||||
dev-python/numpy
|
||||
dev-python/setuptools
|
||||
>=dev-python/traitsgui-3.6.0[qt4?,wxwidgets]
|
||||
dev-python/wxpython:2.8[opengl]
|
||||
>=sci-libs/vtk-5[python]
|
||||
qt4? ( dev-python/PyQt4[X,opengl] )"
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( app-arch/unzip )"
|
||||
|
||||
S="${WORKDIR}"/${MY_P}
|
||||
|
||||
DOCS="docs/*.txt"
|
||||
PYTHON_MODNAME="enthought"
|
||||
|
||||
pkg_setup() {
|
||||
python_set_active_version 2
|
||||
python_pkg_setup
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
if use doc; then
|
||||
cd "${S}"/docs
|
||||
# building docs is buggy and requires X
|
||||
# so use the bundled ones
|
||||
unpack ./html.zip
|
||||
rm -rf html/*/_sources
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
distutils_src_prepare
|
||||
sed -i \
|
||||
-e "s/self.run_command('gen_docs')/pass/" \
|
||||
-e "s/self.run_command('build_docs')/pass/" \
|
||||
setup.py || die "sed setup.py failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
find -name "*LICENSE*.txt" -delete
|
||||
distutils_src_install
|
||||
|
||||
insinto /usr/share/doc/${PF}
|
||||
if use doc; then
|
||||
doins -r docs/html || die "Installation of documentation failed"
|
||||
dosym /usr/share/doc/${PF}/html/mayavi \
|
||||
$(python_get_sitedir)/enthought/mayavi/html
|
||||
dosym /usr/share/doc/${PF}/html/tvtk \
|
||||
$(python_get_sitedir)/enthought/tvtk/html
|
||||
fi
|
||||
|
||||
if use examples; then
|
||||
doins -r examples || die "Installation of examples failed"
|
||||
fi
|
||||
|
||||
newicon enthought/mayavi/core/ui/images/m2.png mayavi2.png
|
||||
make_desktop_entry mayavi2 "Mayavi2 2D/3D Scientific Visualization" mayavi2
|
||||
}
|
@ -0,0 +1,461 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.2.0_alpha90.ebuild,v 1.1 2012/03/05 07:58:28 zmedico Exp $
|
||||
|
||||
# Require EAPI 2 since we now require at least python-2.6 (for python 3
|
||||
# syntax support) which also requires EAPI 2.
|
||||
EAPI=3
|
||||
inherit eutils multilib python
|
||||
|
||||
DESCRIPTION="Portage is the package management and distribution system for Gentoo"
|
||||
HOMEPAGE="http://www.gentoo.org/proj/en/portage/index.xml"
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="~sparc-fbsd ~x86-fbsd"
|
||||
SLOT="0"
|
||||
IUSE="build doc epydoc +ipc linguas_pl pypy1_8 python2 python3 selinux xattr"
|
||||
|
||||
# Import of the io module in python-2.6 raises ImportError for the
|
||||
# thread module if threading is disabled.
|
||||
python_dep="python3? ( =dev-lang/python-3* )
|
||||
!pypy1_8? ( !python2? ( !python3? (
|
||||
|| ( >=dev-lang/python-2.7 dev-lang/python:2.6[threads] )
|
||||
) ) )
|
||||
pypy1_8? ( !python2? ( !python3? ( dev-python/pypy:1.8[bzip2] ) ) )
|
||||
python2? ( !python3? ( || ( dev-lang/python:2.7 dev-lang/python:2.6[threads] ) ) )"
|
||||
|
||||
# The pysqlite blocker is for bug #282760.
|
||||
DEPEND="${python_dep}
|
||||
!build? ( >=sys-apps/sed-4.0.5 )
|
||||
doc? ( app-text/xmlto ~app-text/docbook-xml-dtd-4.4 )
|
||||
epydoc? ( >=dev-python/epydoc-2.0 !<=dev-python/pysqlite-2.4.1 )"
|
||||
# Require sandbox-2.2 for bug #288863.
|
||||
# For xattr, we can spawn getfattr and setfattr from sys-apps/attr, but that's
|
||||
# quite slow, so it's not considered in the dependencies as an alternative to
|
||||
# to python-3.3 / pyxattr. Also, xattr support is only tested with Linux, so
|
||||
# for now, don't pull in xattr deps for other kernels.
|
||||
RDEPEND="${python_dep}
|
||||
!build? ( >=sys-apps/sed-4.0.5
|
||||
>=app-shells/bash-3.2_p17
|
||||
>=app-admin/eselect-1.2 )
|
||||
elibc_FreeBSD? ( sys-freebsd/freebsd-bin )
|
||||
elibc_glibc? ( >=sys-apps/sandbox-2.2 )
|
||||
elibc_uclibc? ( >=sys-apps/sandbox-2.2 )
|
||||
>=app-misc/pax-utils-0.1.17
|
||||
xattr? ( kernel_linux? ( || ( >=dev-lang/python-3.3_pre20110902 dev-python/pyxattr ) ) )
|
||||
selinux? ( || ( >=sys-libs/libselinux-2.0.94[python] <sys-libs/libselinux-2.0.94 ) )
|
||||
!<app-shells/bash-3.2_p17
|
||||
!<app-admin/logrotate-3.8.0"
|
||||
PDEPEND="
|
||||
!build? (
|
||||
>=net-misc/rsync-2.6.4
|
||||
userland_GNU? ( >=sys-apps/coreutils-6.4 )
|
||||
)"
|
||||
# coreutils-6.4 rdep is for date format in emerge-webrsync #164532
|
||||
# NOTE: FEATURES=install-sources requires debugedit and rsync
|
||||
|
||||
SRC_ARCHIVES="http://dev.gentoo.org/~zmedico/portage/archives"
|
||||
|
||||
prefix_src_archives() {
|
||||
local x y
|
||||
for x in ${@}; do
|
||||
for y in ${SRC_ARCHIVES}; do
|
||||
echo ${y}/${x}
|
||||
done
|
||||
done
|
||||
}
|
||||
|
||||
PV_PL="2.1.2"
|
||||
PATCHVER_PL=""
|
||||
TARBALL_PV=2.2.0_alpha88
|
||||
SRC_URI="mirror://gentoo/${PN}-${TARBALL_PV}.tar.bz2
|
||||
$(prefix_src_archives ${PN}-${TARBALL_PV}.tar.bz2)
|
||||
linguas_pl? ( mirror://gentoo/${PN}-man-pl-${PV_PL}.tar.bz2
|
||||
$(prefix_src_archives ${PN}-man-pl-${PV_PL}.tar.bz2) )"
|
||||
|
||||
PATCHVER=
|
||||
[[ $TARBALL_PV = $PV ]] || PATCHVER=$PV
|
||||
if [ -n "${PATCHVER}" ]; then
|
||||
SRC_URI="${SRC_URI} mirror://gentoo/${PN}-${PATCHVER}.patch.bz2
|
||||
$(prefix_src_archives ${PN}-${PATCHVER}.patch.bz2)"
|
||||
fi
|
||||
|
||||
S="${WORKDIR}"/${PN}-${TARBALL_PV}
|
||||
S_PL="${WORKDIR}"/${PN}-${PV_PL}
|
||||
|
||||
compatible_python_is_selected() {
|
||||
[[ $("${EPREFIX}/usr/bin/python" -c 'import sys ; sys.stdout.write(sys.hexversion >= 0x2060000 and "good" or "bad")') = good ]]
|
||||
}
|
||||
|
||||
current_python_has_xattr() {
|
||||
[[ $("${EPREFIX}/usr/bin/python" -c 'import sys ; sys.stdout.write(sys.hexversion >= 0x3030000 and "yes" or "no")') = yes ]] || \
|
||||
"${EPREFIX}/usr/bin/python" -c 'import xattr' 2>/dev/null
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
# Bug #359731 - Die early if get_libdir fails.
|
||||
[[ -z $(get_libdir) ]] && \
|
||||
die "get_libdir returned an empty string"
|
||||
|
||||
if use python2 && use python3 ; then
|
||||
ewarn "Both python2 and python3 USE flags are enabled, but only one"
|
||||
ewarn "can be in the shebangs. Using python3."
|
||||
fi
|
||||
if use pypy1_8 && use python3 ; then
|
||||
ewarn "Both pypy1_8 and python3 USE flags are enabled, but only one"
|
||||
ewarn "can be in the shebangs. Using python3."
|
||||
fi
|
||||
if use pypy1_8 && use python2 ; then
|
||||
ewarn "Both pypy1_8 and python2 USE flags are enabled, but only one"
|
||||
ewarn "can be in the shebangs. Using python2"
|
||||
fi
|
||||
if ! use pypy1_8 && ! use python2 && ! use python3 && \
|
||||
! compatible_python_is_selected ; then
|
||||
ewarn "Attempting to select a compatible default python interpreter"
|
||||
local x success=0
|
||||
for x in /usr/bin/python2.* ; do
|
||||
x=${x#/usr/bin/python2.}
|
||||
if [[ $x -ge 6 ]] 2>/dev/null ; then
|
||||
eselect python set python2.$x
|
||||
if compatible_python_is_selected ; then
|
||||
elog "Default python interpreter is now set to python-2.$x"
|
||||
success=1
|
||||
break
|
||||
fi
|
||||
fi
|
||||
done
|
||||
if [ $success != 1 ] ; then
|
||||
eerror "Unable to select a compatible default python interpreter!"
|
||||
die "This version of portage requires at least python-2.6 to be selected as the default python interpreter (see \`eselect python --help\`)."
|
||||
fi
|
||||
fi
|
||||
|
||||
if use python3; then
|
||||
python_set_active_version 3
|
||||
elif use python2; then
|
||||
python_set_active_version 2
|
||||
elif use pypy1_8; then
|
||||
python_set_active_version 2.7-pypy-1.8
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
if [ -n "${PATCHVER}" ] ; then
|
||||
if [[ -L $S/bin/ebuild-helpers/portageq ]] ; then
|
||||
rm "$S/bin/ebuild-helpers/portageq" \
|
||||
|| die "failed to remove portageq helper symlink"
|
||||
fi
|
||||
epatch "${WORKDIR}/${PN}-${PATCHVER}.patch"
|
||||
fi
|
||||
einfo "Setting portage.VERSION to ${PVR} ..."
|
||||
sed -e "s/^VERSION=.*/VERSION=\"${PVR}\"/" -i pym/portage/__init__.py || \
|
||||
die "Failed to patch portage.VERSION"
|
||||
sed -e "1s/VERSION/${PVR}/" -i doc/fragment/version || \
|
||||
die "Failed to patch VERSION in doc/fragment/version"
|
||||
sed -e "1s/VERSION/${PVR}/" -i man/* || \
|
||||
die "Failed to patch VERSION in man page headers"
|
||||
|
||||
if ! use ipc ; then
|
||||
einfo "Disabling ipc..."
|
||||
sed -e "s:_enable_ipc_daemon = True:_enable_ipc_daemon = False:" \
|
||||
-i pym/_emerge/AbstractEbuildProcess.py || \
|
||||
die "failed to patch AbstractEbuildProcess.py"
|
||||
fi
|
||||
|
||||
if use xattr && use kernel_linux ; then
|
||||
einfo "Adding FEATURES=xattr to make.globals ..."
|
||||
echo -e '\nFEATURES="${FEATURES} xattr"' >> cnf/make.globals \
|
||||
|| die "failed to append to make.globals"
|
||||
fi
|
||||
|
||||
if use python3; then
|
||||
einfo "Converting shebangs for python3..."
|
||||
python_convert_shebangs -r 3 .
|
||||
elif use python2; then
|
||||
einfo "Converting shebangs for python2..."
|
||||
python_convert_shebangs -r 2 .
|
||||
elif use pypy1_8; then
|
||||
einfo "Converting shebangs for pypy-c1.8..."
|
||||
python_convert_shebangs -r 2.7-pypy-1.8 .
|
||||
fi
|
||||
|
||||
if [[ -n ${EPREFIX} ]] ; then
|
||||
einfo "Setting portage.const.EPREFIX ..."
|
||||
sed -e "s|^\(SANDBOX_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/sandbox\"\)|\\1${EPREFIX}\\2|" \
|
||||
-e "s|^\(FAKEROOT_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/bin/fakeroot\"\)|\\1${EPREFIX}\\2|" \
|
||||
-e "s|^\(BASH_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/bash\"\)|\\1${EPREFIX}\\2|" \
|
||||
-e "s|^\(MOVE_BINARY[[:space:]]*=[[:space:]]*\"\)\(/bin/mv\"\)|\\1${EPREFIX}\\2|" \
|
||||
-e "s|^\(PRELINK_BINARY[[:space:]]*=[[:space:]]*\"\)\(/usr/sbin/prelink\"\)|\\1${EPREFIX}\\2|" \
|
||||
-e "s|^\(EPREFIX[[:space:]]*=[[:space:]]*\"\).*|\\1${EPREFIX}\"|" \
|
||||
-i pym/portage/const.py || \
|
||||
die "Failed to patch portage.const.EPREFIX"
|
||||
|
||||
einfo "Prefixing shebangs ..."
|
||||
find . -type f -print0 | \
|
||||
while read -r -d $'\0' ; do
|
||||
local shebang=$(head -n1 "$REPLY")
|
||||
if [[ ${shebang} == "#!"* && ! ${shebang} == "#!${EPREFIX}/"* ]] ; then
|
||||
sed -i -e "1s:.*:#!${EPREFIX}${shebang:2}:" "$REPLY" || \
|
||||
die "sed failed"
|
||||
fi
|
||||
done
|
||||
|
||||
einfo "Adjusting make.globals ..."
|
||||
sed -e 's|^SYNC=.*|SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"|' \
|
||||
-e "s|^\(PORTDIR=\)\(/usr/portage\)|\\1\"${EPREFIX}\\2\"|" \
|
||||
-e "s|^\(PORTAGE_TMPDIR=\)\(/var/tmp\)|\\1\"${EPREFIX}\\2\"|" \
|
||||
-i cnf/make.globals || die "sed failed"
|
||||
|
||||
einfo "Adding FEATURES=force-prefix to make.globals ..."
|
||||
echo -e '\nFEATURES="${FEATURES} force-prefix"' >> cnf/make.globals \
|
||||
|| die "failed to append to make.globals"
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if use doc; then
|
||||
cd "${S}"/doc
|
||||
touch fragment/date
|
||||
make xhtml xhtml-nochunks || die "failed to make docs"
|
||||
fi
|
||||
|
||||
if use epydoc; then
|
||||
einfo "Generating api docs"
|
||||
mkdir "${WORKDIR}"/api
|
||||
local my_modules epydoc_opts=""
|
||||
my_modules="$(find "${S}/pym" -name "*.py" \
|
||||
| sed -e 's:/__init__.py$::' -e 's:\.py$::' -e "s:^${S}/pym/::" \
|
||||
-e 's:/:.:g' | sort)" || die "error listing modules"
|
||||
# workaround for bug 282760
|
||||
> "$S/pym/pysqlite2.py"
|
||||
PYTHONPATH=${S}/pym:${PYTHONPATH:+:}${PYTHONPATH} \
|
||||
epydoc -o "${WORKDIR}"/api \
|
||||
-qqqqq --no-frames --show-imports $epydoc_opts \
|
||||
--name "${PN}" --url "${HOMEPAGE}" \
|
||||
${my_modules} || die "epydoc failed"
|
||||
rm "$S/pym/pysqlite2.py"
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# make files executable, in case they were created by patch
|
||||
find bin -type f | xargs chmod +x
|
||||
./pym/portage/tests/runTests || die "test(s) failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local libdir=$(get_libdir)
|
||||
local portage_base="/usr/${libdir}/portage"
|
||||
local portage_share_config=/usr/share/portage/config
|
||||
|
||||
cd "${S}"/cnf
|
||||
insinto /etc
|
||||
doins etc-update.conf dispatch-conf.conf || die
|
||||
|
||||
insinto "$portage_share_config/sets"
|
||||
doins "$S"/cnf/sets/*.conf || die
|
||||
insinto "$portage_share_config"
|
||||
doins "$S/cnf/make.globals" || die
|
||||
if [ -f "make.conf.${ARCH}".diff ]; then
|
||||
patch make.conf "make.conf.${ARCH}".diff || \
|
||||
die "Failed to patch make.conf.example"
|
||||
newins make.conf make.conf.example || die
|
||||
else
|
||||
eerror ""
|
||||
eerror "Portage does not have an arch-specific configuration for this arch."
|
||||
eerror "Please notify the arch maintainer about this issue. Using generic."
|
||||
eerror ""
|
||||
newins make.conf make.conf.example || die
|
||||
fi
|
||||
|
||||
dosym ..${portage_share_config}/make.globals /etc/make.globals
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
doins "${S}"/cnf/logrotate.d/elog-save-summary || die
|
||||
|
||||
# BSD and OSX need a sed wrapper so that find/xargs work properly
|
||||
if use userland_GNU; then
|
||||
rm "${S}"/bin/ebuild-helpers/sed || die "Failed to remove sed wrapper"
|
||||
fi
|
||||
|
||||
local x symlinks files
|
||||
|
||||
cd "$S" || die "cd failed"
|
||||
for x in $(find bin -type d) ; do
|
||||
exeinto $portage_base/$x || die "exeinto failed"
|
||||
cd "$S"/$x || die "cd failed"
|
||||
files=$(find . -mindepth 1 -maxdepth 1 -type f ! -type l)
|
||||
if [ -n "$files" ] ; then
|
||||
doexe $files || die "doexe failed"
|
||||
fi
|
||||
symlinks=$(find . -mindepth 1 -maxdepth 1 -type l)
|
||||
if [ -n "$symlinks" ] ; then
|
||||
cp -P $symlinks "$ED$portage_base/$x" || die "cp failed"
|
||||
fi
|
||||
done
|
||||
|
||||
cd "$S" || die "cd failed"
|
||||
for x in $(find pym/* -type d ! -path "pym/portage/tests*") ; do
|
||||
insinto $portage_base/$x || die "insinto failed"
|
||||
cd "$S"/$x || die "cd failed"
|
||||
# __pycache__ directories contain no py files
|
||||
[[ "*.py" != $(echo *.py) ]] || continue
|
||||
doins *.py || die "doins failed"
|
||||
symlinks=$(find . -mindepth 1 -maxdepth 1 -type l)
|
||||
if [ -n "$symlinks" ] ; then
|
||||
cp -P $symlinks "$ED$portage_base/$x" || die "cp failed"
|
||||
fi
|
||||
done
|
||||
|
||||
# We install some minimal tests for use as a preinst sanity check.
|
||||
# These tests must be able to run without a full source tree and
|
||||
# without relying on a previous portage instance being installed.
|
||||
cd "$S" || die "cd failed"
|
||||
exeinto $portage_base/pym/portage/tests || die
|
||||
doexe pym/portage/tests/runTests || die
|
||||
insinto $portage_base/pym/portage/tests || die
|
||||
doins pym/portage/tests/*.py || die
|
||||
insinto $portage_base/pym/portage/tests/lint || die
|
||||
doins pym/portage/tests/lint/*.py || die
|
||||
doins pym/portage/tests/lint/__test__ || die
|
||||
|
||||
# Symlinks to directories cause up/downgrade issues and the use of these
|
||||
# modules outside of portage is probably negligible.
|
||||
for x in "${ED}${portage_base}/pym/"{cache,elog_modules} ; do
|
||||
[ ! -L "${x}" ] && continue
|
||||
die "symlink to directory will cause upgrade/downgrade issues: '${x}'"
|
||||
done
|
||||
|
||||
doman "${S}"/man/*.[0-9]
|
||||
if use linguas_pl; then
|
||||
doman -i18n=pl "${S_PL}"/man/pl/*.[0-9]
|
||||
doman -i18n=pl_PL.UTF-8 "${S_PL}"/man/pl_PL.UTF-8/*.[0-9]
|
||||
fi
|
||||
|
||||
dodoc "${S}"/{ChangeLog,NEWS,RELEASE-NOTES}
|
||||
use doc && dohtml -r "${S}"/doc/*
|
||||
use epydoc && dohtml -r "${WORKDIR}"/api
|
||||
|
||||
dodir /usr/bin
|
||||
for x in ebuild egencache emerge portageq quickpkg repoman ; do
|
||||
dosym ../${libdir}/portage/bin/${x} /usr/bin/${x}
|
||||
done
|
||||
|
||||
dodir /usr/sbin
|
||||
local my_syms="archive-conf
|
||||
dispatch-conf
|
||||
emaint
|
||||
emerge-webrsync
|
||||
env-update
|
||||
etc-update
|
||||
fixpackages
|
||||
regenworld"
|
||||
local x
|
||||
for x in ${my_syms}; do
|
||||
dosym ../${libdir}/portage/bin/${x} /usr/sbin/${x}
|
||||
done
|
||||
dosym env-update /usr/sbin/update-env
|
||||
dosym etc-update /usr/sbin/update-etc
|
||||
|
||||
dodir /etc/portage
|
||||
keepdir /etc/portage
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if [[ $ROOT == / ]] ; then
|
||||
# Run some minimal tests as a sanity check.
|
||||
local test_runner=$(find "$ED" -name runTests)
|
||||
if [[ -n $test_runner && -x $test_runner ]] ; then
|
||||
einfo "Running preinst sanity tests..."
|
||||
"$test_runner" || die "preinst sanity tests failed"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use xattr && ! current_python_has_xattr ; then
|
||||
ewarn "For optimal performance in xattr handling, install"
|
||||
ewarn "dev-python/pyxattr, or install >=dev-lang/python-3.3 and"
|
||||
ewarn "enable USE=python3 for $CATEGORY/$PN."
|
||||
fi
|
||||
|
||||
if ! use build && ! has_version dev-python/pycrypto && \
|
||||
! has_version '>=dev-lang/python-2.6[ssl]' ; then
|
||||
ewarn "If you are an ebuild developer and you plan to commit ebuilds"
|
||||
ewarn "with this system then please install dev-python/pycrypto or"
|
||||
ewarn "enable the ssl USE flag for >=dev-lang/python-2.6 in order"
|
||||
ewarn "to enable RMD160 hash support."
|
||||
ewarn "See bug #198398 for more information."
|
||||
fi
|
||||
if [ -f "${EROOT}/etc/make.globals" ]; then
|
||||
rm "${EROOT}/etc/make.globals"
|
||||
fi
|
||||
|
||||
has_version "<${CATEGORY}/${PN}-2.2_alpha" \
|
||||
&& MINOR_UPGRADE=true || MINOR_UPGRADE=false
|
||||
|
||||
has_version "<=${CATEGORY}/${PN}-2.2_pre5" \
|
||||
&& WORLD_MIGRATION_UPGRADE=true || WORLD_MIGRATION_UPGRADE=false
|
||||
|
||||
# If portage-2.1.6 is installed and the preserved_libs_registry exists,
|
||||
# assume that the NEEDED.ELF.2 files have already been generated.
|
||||
has_version "<=${CATEGORY}/${PN}-2.2_pre7" && \
|
||||
! ( [ -e "${EROOT}"var/lib/portage/preserved_libs_registry ] && \
|
||||
has_version ">=${CATEGORY}/${PN}-2.1.6_rc" ) \
|
||||
&& NEEDED_REBUILD_UPGRADE=true || NEEDED_REBUILD_UPGRADE=false
|
||||
|
||||
[[ -n $PORTDIR_OVERLAY ]] && has_version "<${CATEGORY}/${PN}-2.1.6.12" \
|
||||
&& REPO_LAYOUT_CONF_WARN=true || REPO_LAYOUT_CONF_WARN=false
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Compile all source files recursively. Any orphans
|
||||
# will be identified and removed in postrm.
|
||||
python_mod_optimize /usr/$(get_libdir)/portage/pym
|
||||
|
||||
if $WORLD_MIGRATION_UPGRADE ; then
|
||||
einfo "moving set references from the worldfile into world_sets"
|
||||
cd "${EROOT}/var/lib/portage/"
|
||||
grep "^@" world >> world_sets
|
||||
sed -i -e '/^@/d' world
|
||||
fi
|
||||
|
||||
if $NEEDED_REBUILD_UPGRADE ; then
|
||||
einfo "rebuilding NEEDED.ELF.2 files"
|
||||
for cpv in "${EROOT}/var/db/pkg"/*/*; do
|
||||
if [ -f "${cpv}/NEEDED" ]; then
|
||||
rm -f "${cpv}/NEEDED.ELF.2"
|
||||
while read line; do
|
||||
filename=${line% *}
|
||||
needed=${line#* }
|
||||
needed=${needed//+/++}
|
||||
needed=${needed//#/##}
|
||||
needed=${needed//%/%%}
|
||||
newline=$(scanelf -BF "%a;%F;%S;%r;${needed}" $filename)
|
||||
newline=${newline// - }
|
||||
echo "${newline:3}" >> "${cpv}/NEEDED.ELF.2"
|
||||
done < "${cpv}/NEEDED"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
if $REPO_LAYOUT_CONF_WARN ; then
|
||||
ewarn
|
||||
echo "If you want overlay eclasses to override eclasses from" \
|
||||
"other repos then see the portage(5) man page" \
|
||||
"for information about the new layout.conf and repos.conf" \
|
||||
"configuration files." \
|
||||
| fmt -w 75 | while read -r ; do ewarn "$REPLY" ; done
|
||||
ewarn
|
||||
fi
|
||||
|
||||
if $MINOR_UPGRADE ; then
|
||||
elog "If you're upgrading from a pre-2.2 version of portage you might"
|
||||
elog "want to remerge world (emerge -e world) to take full advantage"
|
||||
elog "of some of the new features in 2.2."
|
||||
elog "This is not required however for portage to function properly."
|
||||
elog
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
python_mod_cleanup /usr/$(get_libdir)/portage/pym
|
||||
}
|
@ -1,5 +1,3 @@
|
||||
DIST systemd-29.tar.bz2 810407 RMD160 49cf7906a768217190cdf61d102058b9c8762d40 SHA1 5dc36e8d900085af31a96a6bafaba228bc8225c7 SHA256 c41153c3ebab9e25b16fa1670946ce6dfdd1515608a37eedd80d2bbe46629971
|
||||
DIST systemd-37.tar.bz2 931101 RMD160 d0b15083fe938039972f38a30c757ed8b10a5998 SHA1 02665bcb8c609193170579537c3a94013519405c SHA256 b38492bde73649cc3520953354ef446c268169c1d342614183655e9ee1a1bbc5
|
||||
DIST systemd-38.tar.xz 875736 RMD160 16f427fc4d6036a36d50a22ff2cf1f78c37cbeac SHA1 868e0702279b1b1ff638475d67e103c8a979118b SHA256 cd21eddc23457323fcb8775813a985d7bc429a63ea5adc6950a8bbe421e30d13
|
||||
DIST systemd-39.tar.xz 890892 RMD160 99b7e141d08b4cba693a02260e543583877b244b SHA1 8357a61dcaf86391b5cfa5bdc07774c32061336b SHA256 cd053f97ab0ed4261ec44f247ec582566319339f523dbe79b79c68cfe5ad677f
|
||||
DIST systemd-43.tar.xz 852432 RMD160 8eeea1454b0cdfc202755979e34656ae3a4d99eb SHA1 5d2d36bbe34ae6391dd8b4e639dd207adb936d08 SHA256 3070e48e43bc0811fa8da5ba4832a11dac73b1625db94d42d4c15dc279335dd7
|
||||
|
@ -1,145 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/systemd-37-r1.ebuild,v 1.3 2012/01/14 21:17:23 williamh Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit autotools-utils bash-completion-r1 linux-info pam systemd
|
||||
|
||||
DESCRIPTION="System and service manager for Linux"
|
||||
HOMEPAGE="http://www.freedesktop.org/wiki/Software/systemd"
|
||||
SRC_URI="http://www.freedesktop.org/software/systemd/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="acl audit cryptsetup gtk pam plymouth selinux tcpd"
|
||||
|
||||
COMMON_DEPEND=">=sys-apps/dbus-1.4.10
|
||||
>=sys-apps/util-linux-2.19
|
||||
>=sys-fs/udev-172
|
||||
sys-libs/libcap
|
||||
acl? ( sys-apps/acl )
|
||||
audit? ( >=sys-process/audit-2 )
|
||||
cryptsetup? ( sys-fs/cryptsetup )
|
||||
gtk? (
|
||||
dev-libs/dbus-glib
|
||||
>=dev-libs/glib-2.26
|
||||
x11-libs/gtk+:2
|
||||
>=x11-libs/libnotify-0.7 )
|
||||
pam? ( virtual/pam )
|
||||
plymouth? ( sys-boot/plymouth )
|
||||
selinux? ( sys-libs/libselinux )
|
||||
tcpd? ( sys-apps/tcp-wrappers )"
|
||||
|
||||
# Vala-0.10 doesn't work with libnotify 0.7.1
|
||||
VALASLOT="0.12"
|
||||
# A little higher than upstream requires
|
||||
# but I had real trouble with 2.6.37 and systemd.
|
||||
MINKV="2.6.38"
|
||||
|
||||
# dbus, udev versions because of systemd units
|
||||
# blocker on old packages to avoid collisions with above
|
||||
# openrc blocker to avoid udev rules starting openrc scripts
|
||||
# systemd blocker due to /usr migration
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
!<sys-apps/openrc-0.8.3
|
||||
!=sys-apps/systemd-29-r4"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
dev-util/gperf
|
||||
dev-util/intltool
|
||||
gtk? ( dev-lang/vala:${VALASLOT} )
|
||||
>=sys-kernel/linux-headers-${MINKV}"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup lock # used by var-lock.mount
|
||||
enewgroup tty 5 # used by mount-setup for /dev/pts
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Force the rebuild of .vala sources
|
||||
touch src/*.vala || die
|
||||
autotools-utils_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
--with-distro=gentoo
|
||||
--with-rootdir=
|
||||
--with-rootlibdir=/$(get_libdir)
|
||||
--localstatedir=/var
|
||||
--docdir=/tmp/docs
|
||||
$(use_enable acl)
|
||||
$(use_enable audit)
|
||||
$(use_enable cryptsetup libcryptsetup)
|
||||
$(use_enable gtk)
|
||||
$(use_enable pam)
|
||||
$(use_enable plymouth)
|
||||
$(use_enable selinux)
|
||||
$(use_enable tcpd tcpwrap)
|
||||
)
|
||||
|
||||
if use gtk; then
|
||||
export VALAC="$(type -p valac-${VALASLOT})"
|
||||
fi
|
||||
|
||||
autotools-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
autotools-utils_src_install \
|
||||
bashcompletiondir=/tmp
|
||||
|
||||
# move files as necessary
|
||||
newbashcomp "${D}"/tmp/systemctl-bash-completion.sh ${PN}
|
||||
dodoc "${D}"/tmp/docs/*
|
||||
rm -rf "${D}"/tmp || die
|
||||
|
||||
cd "${D}"/usr/share/man/man8/
|
||||
for i in halt poweroff reboot runlevel shutdown telinit; do
|
||||
mv ${i}.8 systemd.${i}.8 || die
|
||||
done
|
||||
|
||||
# Create /run/lock as required by new baselay/OpenRC compat.
|
||||
insinto /usr/lib/tmpfiles.d
|
||||
doins "${FILESDIR}"/gentoo-run.conf
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
local CONFIG_CHECK="~AUTOFS4_FS ~CGROUPS ~DEVTMPFS ~FANOTIFY ~IPV6"
|
||||
kernel_is -ge ${MINKV//./ } || ewarn "Kernel version at least ${MINKV} required"
|
||||
check_extra_config
|
||||
}
|
||||
|
||||
optfeature() {
|
||||
elog " [$(has_version ${1} && echo I || echo ' ')] ${1} (${2})"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
mkdir -p "${ROOT}"/run
|
||||
if [[ ! -L "${ROOT}"/etc/mtab ]]; then
|
||||
ewarn "Upstream suggests that the /etc/mtab file should be a symlink to /proc/mounts."
|
||||
ewarn "It is known to cause users being unable to unmount user mounts. If you don't"
|
||||
ewarn "require that specific feature, please call:"
|
||||
ewarn " $ ln -sf '${ROOT}proc/self/mounts' '${ROOT}etc/mtab'"
|
||||
ewarn
|
||||
fi
|
||||
|
||||
elog "You may need to perform some additional configuration for some programs"
|
||||
elog "to work, see the systemd manpages for loading modules and handling tmpfiles:"
|
||||
elog " $ man modules-load.d"
|
||||
elog " $ man tmpfiles.d"
|
||||
elog
|
||||
|
||||
elog "To get additional features, a number of optional runtime dependencies may"
|
||||
elog "be installed:"
|
||||
optfeature 'dev-python/dbus-python' 'for systemd-analyze'
|
||||
optfeature 'dev-python/pycairo[svg]' 'for systemd-analyze plotting ability'
|
||||
elog
|
||||
|
||||
ewarn "Please note this is a work-in-progress and many packages in Gentoo"
|
||||
ewarn "do not supply systemd unit files yet. You are testing it on your own"
|
||||
ewarn "responsibility. Please remember than you can pass:"
|
||||
ewarn " init=/sbin/init"
|
||||
ewarn "to your kernel to boot using sysvinit / OpenRC."
|
||||
}
|
@ -1,179 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/systemd-37-r4.ebuild,v 1.1 2012/01/21 15:55:11 mgorny Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit autotools-utils bash-completion-r1 linux-info pam systemd
|
||||
|
||||
DESCRIPTION="System and service manager for Linux"
|
||||
HOMEPAGE="http://www.freedesktop.org/wiki/Software/systemd"
|
||||
SRC_URI="http://www.freedesktop.org/software/systemd/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="acl audit cryptsetup gtk pam plymouth selinux tcpd"
|
||||
|
||||
# We need to depend on sysvinit for sulogin which is used in the rescue
|
||||
# mode. Bug #399615.
|
||||
|
||||
COMMON_DEPEND=">=sys-apps/dbus-1.4.10
|
||||
sys-apps/sysvinit
|
||||
>=sys-apps/util-linux-2.19
|
||||
>=sys-fs/udev-172
|
||||
sys-libs/libcap
|
||||
acl? ( sys-apps/acl )
|
||||
audit? ( >=sys-process/audit-2 )
|
||||
cryptsetup? ( sys-fs/cryptsetup )
|
||||
gtk? (
|
||||
dev-libs/dbus-glib
|
||||
>=dev-libs/glib-2.26
|
||||
x11-libs/gtk+:2
|
||||
>=x11-libs/libnotify-0.7 )
|
||||
pam? ( virtual/pam )
|
||||
plymouth? ( sys-boot/plymouth )
|
||||
selinux? ( sys-libs/libselinux )
|
||||
tcpd? ( sys-apps/tcp-wrappers )"
|
||||
|
||||
# Vala-0.10 doesn't work with libnotify 0.7.1
|
||||
VALASLOT="0.14"
|
||||
# A little higher than upstream requires
|
||||
# but I had real trouble with 2.6.37 and systemd.
|
||||
MINKV="2.6.38"
|
||||
|
||||
# dbus, udev versions because of systemd units
|
||||
# blocker on old packages to avoid collisions with above
|
||||
# openrc blocker to avoid udev rules starting openrc scripts
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
!<sys-apps/openrc-0.8.3"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
dev-util/gperf
|
||||
dev-util/intltool
|
||||
gtk? ( dev-lang/vala:${VALASLOT} )
|
||||
>=sys-kernel/linux-headers-${MINKV}"
|
||||
|
||||
# Due to vala being broken.
|
||||
AUTOTOOLS_IN_SOURCE_BUILD=1
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup lock # used by var-lock.mount
|
||||
enewgroup tty 5 # used by mount-setup for /dev/pts
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Force the rebuild of .vala sources
|
||||
touch src/*.vala || die
|
||||
|
||||
# Fix hardcoded path in .vala.
|
||||
sed -i -e 's:/lib/systemd:/usr/lib/systemd:g' src/*.vala || die
|
||||
|
||||
autotools-utils_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
--with-distro=gentoo
|
||||
# install everything to /usr
|
||||
--with-rootdir=/usr
|
||||
--with-rootlibdir=/usr/$(get_libdir)
|
||||
# but pam modules have to lie in /lib*
|
||||
--with-pamlibdir=/$(get_libdir)/security
|
||||
--localstatedir=/var
|
||||
--docdir=/tmp/docs
|
||||
$(use_enable acl)
|
||||
$(use_enable audit)
|
||||
$(use_enable cryptsetup libcryptsetup)
|
||||
$(use_enable gtk)
|
||||
$(use_enable pam)
|
||||
$(use_enable plymouth)
|
||||
$(use_enable selinux)
|
||||
$(use_enable tcpd tcpwrap)
|
||||
)
|
||||
|
||||
if use gtk; then
|
||||
export VALAC="$(type -p valac-${VALASLOT})"
|
||||
fi
|
||||
|
||||
autotools-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
autotools-utils_src_install \
|
||||
bashcompletiondir=/tmp
|
||||
|
||||
# compat for init= use
|
||||
dosym ../usr/bin/systemd /bin/systemd
|
||||
# rsyslog.service depends on it...
|
||||
dosym ../usr/bin/systemctl /bin/systemctl
|
||||
|
||||
# move files as necessary
|
||||
newbashcomp "${D}"/tmp/systemctl-bash-completion.sh ${PN}
|
||||
dodoc "${D}"/tmp/docs/*
|
||||
rm -r "${D}"/tmp || die
|
||||
|
||||
# we just keep sysvinit tools, so no need for the mans
|
||||
rm "${D}"/usr/share/man/man8/{halt,poweroff,reboot,runlevel,shutdown,telinit}.8 \
|
||||
|| die
|
||||
rm "${D}"/usr/share/man/man1/init.1 || die
|
||||
|
||||
# Create /run/lock as required by new baselay/OpenRC compat.
|
||||
insinto /usr/lib/tmpfiles.d
|
||||
doins "${FILESDIR}"/gentoo-run.conf
|
||||
|
||||
# Migration helpers.
|
||||
exeinto /usr/libexec/systemd
|
||||
doexe "${FILESDIR}"/update-etc-systemd-symlinks.sh
|
||||
systemd_dounit "${FILESDIR}"/update-etc-systemd-symlinks.{service,path}
|
||||
systemd_enable_service sysinit.target update-etc-systemd-symlinks.path
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
local CONFIG_CHECK="~AUTOFS4_FS ~CGROUPS ~DEVTMPFS ~FANOTIFY ~IPV6"
|
||||
kernel_is -ge ${MINKV//./ } || ewarn "Kernel version at least ${MINKV} required"
|
||||
check_extra_config
|
||||
}
|
||||
|
||||
optfeature() {
|
||||
elog " [\e[1m$(has_version ${1} && echo I || echo ' ')\e[0m] ${1} (${2})"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
mkdir -p "${ROOT}"/run || ewarn "Unable to mkdir /run, this could mean trouble."
|
||||
if [[ ! -L "${ROOT}"/etc/mtab ]]; then
|
||||
ewarn "Upstream suggests that the /etc/mtab file should be a symlink to /proc/mounts."
|
||||
ewarn "It is known to cause users being unable to unmount user mounts. If you don't"
|
||||
ewarn "require that specific feature, please call:"
|
||||
ewarn " $ ln -sf '${ROOT}proc/self/mounts' '${ROOT}etc/mtab'"
|
||||
ewarn
|
||||
fi
|
||||
|
||||
elog "You may need to perform some additional configuration for some programs"
|
||||
elog "to work, see the systemd manpages for loading modules and handling tmpfiles:"
|
||||
elog " $ man modules-load.d"
|
||||
elog " $ man tmpfiles.d"
|
||||
elog
|
||||
|
||||
elog "To get additional features, a number of optional runtime dependencies may"
|
||||
elog "be installed:"
|
||||
optfeature 'dev-python/dbus-python' 'for systemd-analyze'
|
||||
optfeature 'dev-python/pycairo[svg]' 'for systemd-analyze plotting ability'
|
||||
elog
|
||||
|
||||
ewarn "Please note this is a work-in-progress and many packages in Gentoo"
|
||||
ewarn "do not supply systemd unit files yet. You are testing it on your own"
|
||||
ewarn "responsibility. Please remember than you can pass:"
|
||||
ewarn " init=/sbin/init"
|
||||
ewarn "to your kernel to boot using sysvinit / OpenRC."
|
||||
|
||||
# Don't run it if we're outta /
|
||||
if [[ ! ${ROOT%/} ]]; then
|
||||
# Update symlinks to moved units.
|
||||
sh "${FILESDIR}"/update-etc-systemd-symlinks.sh
|
||||
|
||||
# Try to start migration unit.
|
||||
ebegin "Trying to start migration helper path monitoring."
|
||||
systemctl --system start update-etc-systemd-symlinks.path 2>/dev/null
|
||||
eend ${?}
|
||||
fi
|
||||
}
|
@ -1,183 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/systemd-38-r1.ebuild,v 1.1 2012/01/21 15:55:11 mgorny Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit autotools-utils bash-completion-r1 linux-info pam systemd
|
||||
|
||||
DESCRIPTION="System and service manager for Linux"
|
||||
HOMEPAGE="http://www.freedesktop.org/wiki/Software/systemd"
|
||||
SRC_URI="http://www.freedesktop.org/software/systemd/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="acl audit cryptsetup gtk lzma pam plymouth selinux tcpd"
|
||||
|
||||
# We need to depend on sysvinit for sulogin which is used in the rescue
|
||||
# mode. Bug #399615.
|
||||
|
||||
COMMON_DEPEND=">=sys-apps/dbus-1.4.10
|
||||
sys-apps/sysvinit
|
||||
>=sys-apps/util-linux-2.19
|
||||
>=sys-fs/udev-172
|
||||
sys-libs/libcap
|
||||
acl? ( sys-apps/acl )
|
||||
audit? ( >=sys-process/audit-2 )
|
||||
cryptsetup? ( sys-fs/cryptsetup )
|
||||
gtk? (
|
||||
dev-libs/dbus-glib
|
||||
>=dev-libs/glib-2.26
|
||||
dev-libs/libgee:0
|
||||
x11-libs/gtk+:2
|
||||
>=x11-libs/libnotify-0.7 )
|
||||
lzma? ( app-arch/xz-utils )
|
||||
pam? ( virtual/pam )
|
||||
plymouth? ( sys-boot/plymouth )
|
||||
selinux? ( sys-libs/libselinux )
|
||||
tcpd? ( sys-apps/tcp-wrappers )"
|
||||
|
||||
# Vala-0.10 doesn't work with libnotify 0.7.1
|
||||
VALASLOT="0.14"
|
||||
# A little higher than upstream requires
|
||||
# but I had real trouble with 2.6.37 and systemd.
|
||||
MINKV="2.6.38"
|
||||
|
||||
# dbus, udev versions because of systemd units
|
||||
# blocker on old packages to avoid collisions with above
|
||||
# openrc blocker to avoid udev rules starting openrc scripts
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
!<sys-apps/openrc-0.8.3"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
app-arch/xz-utils
|
||||
dev-util/gperf
|
||||
dev-util/intltool
|
||||
gtk? ( dev-lang/vala:${VALASLOT} )
|
||||
>=sys-kernel/linux-headers-${MINKV}"
|
||||
|
||||
# Due to vala being broken.
|
||||
AUTOTOOLS_IN_SOURCE_BUILD=1
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup lock # used by var-lock.mount
|
||||
enewgroup tty 5 # used by mount-setup for /dev/pts
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Force the rebuild of .vala sources
|
||||
touch src/*.vala || die
|
||||
|
||||
# Fix hardcoded path in .vala.
|
||||
sed -i -e 's:/lib/systemd:/usr/lib/systemd:g' src/*.vala || die
|
||||
|
||||
autotools-utils_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
--with-distro=gentoo
|
||||
# install everything to /usr
|
||||
--with-rootprefix=/usr
|
||||
--with-rootlibdir=/usr/$(get_libdir)
|
||||
# but pam modules have to lie in /lib*
|
||||
--with-pamlibdir=/$(get_libdir)/security
|
||||
--localstatedir=/var
|
||||
--docdir=/tmp/docs
|
||||
$(use_enable acl)
|
||||
$(use_enable audit)
|
||||
$(use_enable cryptsetup libcryptsetup)
|
||||
$(use_enable gtk)
|
||||
$(use_enable lzma xz)
|
||||
$(use_enable pam)
|
||||
$(use_enable plymouth)
|
||||
$(use_enable selinux)
|
||||
$(use_enable tcpd tcpwrap)
|
||||
)
|
||||
|
||||
if use gtk; then
|
||||
export VALAC="$(type -p valac-${VALASLOT})"
|
||||
fi
|
||||
|
||||
autotools-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
autotools-utils_src_install \
|
||||
bashcompletiondir=/tmp
|
||||
|
||||
# compat for init= use
|
||||
dosym ../usr/bin/systemd /bin/systemd
|
||||
# rsyslog.service depends on it...
|
||||
dosym ../usr/bin/systemctl /bin/systemctl
|
||||
|
||||
# move files as necessary
|
||||
newbashcomp "${D}"/tmp/systemd-bash-completion.sh ${PN}
|
||||
dodoc "${D}"/tmp/docs/*
|
||||
rm -r "${D}"/tmp || die
|
||||
|
||||
# we just keep sysvinit tools, so no need for the mans
|
||||
rm "${D}"/usr/share/man/man8/{halt,poweroff,reboot,runlevel,shutdown,telinit}.8 \
|
||||
|| die
|
||||
rm "${D}"/usr/share/man/man1/init.1 || die
|
||||
|
||||
# Create /run/lock as required by new baselay/OpenRC compat.
|
||||
insinto /usr/lib/tmpfiles.d
|
||||
doins "${FILESDIR}"/gentoo-run.conf
|
||||
|
||||
# Migration helpers.
|
||||
exeinto /usr/libexec/systemd
|
||||
doexe "${FILESDIR}"/update-etc-systemd-symlinks.sh
|
||||
systemd_dounit "${FILESDIR}"/update-etc-systemd-symlinks.{service,path}
|
||||
systemd_enable_service sysinit.target update-etc-systemd-symlinks.path
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
local CONFIG_CHECK="~AUTOFS4_FS ~CGROUPS ~DEVTMPFS ~FANOTIFY ~IPV6"
|
||||
kernel_is -ge ${MINKV//./ } || ewarn "Kernel version at least ${MINKV} required"
|
||||
check_extra_config
|
||||
}
|
||||
|
||||
optfeature() {
|
||||
elog " [\e[1m$(has_version ${1} && echo I || echo ' ')\e[0m] ${1} (${2})"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
mkdir -p "${ROOT}"/run || ewarn "Unable to mkdir /run, this could mean trouble."
|
||||
if [[ ! -L "${ROOT}"/etc/mtab ]]; then
|
||||
ewarn "Upstream suggests that the /etc/mtab file should be a symlink to /proc/mounts."
|
||||
ewarn "It is known to cause users being unable to unmount user mounts. If you don't"
|
||||
ewarn "require that specific feature, please call:"
|
||||
ewarn " $ ln -sf '${ROOT}proc/self/mounts' '${ROOT}etc/mtab'"
|
||||
ewarn
|
||||
fi
|
||||
|
||||
elog "You may need to perform some additional configuration for some programs"
|
||||
elog "to work, see the systemd manpages for loading modules and handling tmpfiles:"
|
||||
elog " $ man modules-load.d"
|
||||
elog " $ man tmpfiles.d"
|
||||
elog
|
||||
|
||||
elog "To get additional features, a number of optional runtime dependencies may"
|
||||
elog "be installed:"
|
||||
optfeature 'dev-python/dbus-python' 'for systemd-analyze'
|
||||
optfeature 'dev-python/pycairo[svg]' 'for systemd-analyze plotting ability'
|
||||
elog
|
||||
|
||||
ewarn "Please note this is a work-in-progress and many packages in Gentoo"
|
||||
ewarn "do not supply systemd unit files yet. You are testing it on your own"
|
||||
ewarn "responsibility. Please remember than you can pass:"
|
||||
ewarn " init=/sbin/init"
|
||||
ewarn "to your kernel to boot using sysvinit / OpenRC."
|
||||
|
||||
# Don't run it if we're outta /
|
||||
if [[ ! ${ROOT%/} ]]; then
|
||||
# Update symlinks to moved units.
|
||||
sh "${FILESDIR}"/update-etc-systemd-symlinks.sh
|
||||
|
||||
# Try to start migration unit.
|
||||
ebegin "Trying to start migration helper path monitoring."
|
||||
systemctl --system start update-etc-systemd-symlinks.path 2>/dev/null
|
||||
eend ${?}
|
||||
fi
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST ddrescue-1.14.tar.gz 85327 RMD160 c2a26a33c82e37f18da3ab1c2eb6bef224fa3a67 SHA1 7079b5ae73133c8d6c1e982fbac1eea58531da97 SHA256 cd17b92d64d68ecdef5a61ae17741d45c856a8c5f49e44fbf1f4381d29aaa906
|
||||
DIST ddrescue-1.15.tar.gz 99082 RMD160 b258bbe15efa30f526b41271f61c12fef9f37783 SHA1 7046adc4a4b1076b7b5d2d0c987e1608d6b67486 SHA256 75e01362005ba5b59a275edd9d012229b43e0b56533c2abb89d40a44d7ec2d78
|
||||
|
@ -0,0 +1,40 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-fs/ddrescue/ddrescue-1.15.ebuild,v 1.1 2012/03/05 07:49:13 polynomial-c Exp $
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="Copies data from one file or block device to another with read-error recovery"
|
||||
HOMEPAGE="http://www.gnu.org/software/ddrescue/ddrescue.html"
|
||||
SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~sparc ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND=""
|
||||
|
||||
src_compile() {
|
||||
# not a normal configure script
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
CC="$(tc-getCC)" \
|
||||
CXX="$(tc-getCXX)" \
|
||||
CPPFLAGS="${CPPFLAGS}" \
|
||||
CFLAGS="${CFLAGS}" \
|
||||
CXXFLAGS="${CXXFLAGS}" \
|
||||
LDFLAGS="${LDFLAGS}" \
|
||||
|| die "configure failed"
|
||||
emake || die "emake failed"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
./testsuite/check.sh "${S}"/testsuite || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install install-man || die "make install failed"
|
||||
dodoc ChangeLog README NEWS AUTHORS
|
||||
}
|
@ -0,0 +1,39 @@
|
||||
From f435c05c64bc20557d901170b76f6bce8506ed48 Mon Sep 17 00:00:00 2001
|
||||
From: Matt Turner <mattst88@gmail.com>
|
||||
Date: Thu, 1 Mar 2012 16:48:23 -0500
|
||||
Subject: [PATCH libXaw3d] Fix use-after-free in DestroyAllIM
|
||||
|
||||
Fixes segmentation fault when closing gv.
|
||||
|
||||
Found at http://gitorious.org/xaw3d/xaw3d/commit/23b3ca50395f180cba4a923eb8827dcc961629da
|
||||
|
||||
Fixes: https://bugs.gentoo.org/show_bug.cgi?id=406487
|
||||
Signed-off-by: Matt Turner <mattst88@gmail.com>
|
||||
---
|
||||
Original author of this patch is unknown. If you know, let me know and
|
||||
I'll fix the attribution.
|
||||
|
||||
src/XawIm.c | 2 +-
|
||||
1 files changed, 1 insertions(+), 1 deletions(-)
|
||||
|
||||
diff --git a/src/XawIm.c b/src/XawIm.c
|
||||
index 82a94b1..00562b5 100644
|
||||
--- a/src/XawIm.c
|
||||
+++ b/src/XawIm.c
|
||||
@@ -320,12 +320,12 @@ DestroyAllIM(XawVendorShellExtPart *ve)
|
||||
/*
|
||||
* Close Input Method
|
||||
*/
|
||||
- CloseIM(ve);
|
||||
if (!XFindContext(XDisplayOfIM(ve->im.xim), (Window)ve->im.xim, errContext,
|
||||
(XPointer*)&contextErrData)) {
|
||||
if (contextErrData) XtFree((char *)contextErrData);
|
||||
}
|
||||
XDeleteContext(XDisplayOfIM(ve->im.xim), (Window)ve->im.xim, errContext);
|
||||
+ CloseIM(ve);
|
||||
ve->im.xim = NULL;
|
||||
|
||||
/*
|
||||
--
|
||||
1.7.3.4
|
||||
|
@ -1,39 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/x11-libs/libXaw3d/libXaw3d-1.6-r1.ebuild,v 1.3 2012/01/24 19:12:50 ssuominen Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit flag-o-matic xorg-2
|
||||
|
||||
DESCRIPTION="X.Org Xaw3d library"
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
|
||||
IUSE="unicode"
|
||||
|
||||
RDEPEND="x11-libs/libX11
|
||||
x11-libs/libXext
|
||||
x11-libs/libXmu
|
||||
x11-libs/libXt"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/flex
|
||||
virtual/yacc
|
||||
x11-proto/xextproto
|
||||
x11-proto/xproto"
|
||||
|
||||
pkg_setup() {
|
||||
append-flags -Wno-error=pointer-to-int-cast
|
||||
|
||||
XORG_CONFIGURE_OPTIONS=(
|
||||
$(use_enable unicode internationalization)
|
||||
)
|
||||
|
||||
xorg-2_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
use unicode && \
|
||||
sed -i -e 's/Cflags:/& -DXAW_INTERNATIONALIZATION/' xaw3d.pc.in
|
||||
|
||||
xorg-2_src_prepare
|
||||
}
|
Loading…
Reference in new issue