parent
49dcb41aa3
commit
b8e139ca8b
@ -0,0 +1,35 @@
|
||||
diff --git Makefile.am Makefile.am
|
||||
index 5267123..a7e0d0c 100644
|
||||
--- Makefile.am
|
||||
+++ Makefile.am
|
||||
@@ -1,6 +1,4 @@
|
||||
-ACLOCAL_AMFLAGS = -I libltdl/m4
|
||||
-
|
||||
-SUBDIRS = libltdl src bindings .
|
||||
+SUBDIRS = src bindings .
|
||||
|
||||
INCLUDES = $(LTDLINCL)
|
||||
|
||||
--- configure.ac.old 2016-01-04 13:55:39.286846436 +0400
|
||||
+++ configure.ac 2016-01-04 13:56:07.905362298 +0400
|
||||
@@ -2,12 +2,10 @@
|
||||
AC_INIT([collectd],[m4_esyscmd(./version-gen.sh)])
|
||||
AC_CONFIG_SRCDIR(src/)
|
||||
AC_CONFIG_HEADERS(src/config.h)
|
||||
-AC_CONFIG_AUX_DIR([libltdl/config])
|
||||
|
||||
m4_ifdef([LT_PACKAGE_VERSION],
|
||||
# libtool >= 2.2
|
||||
[
|
||||
- LT_CONFIG_LTDL_DIR([libltdl])
|
||||
LT_INIT([dlopen])
|
||||
LTDL_INIT([convenience])
|
||||
AC_DEFINE(LIBTOOL_VERSION, 2, [Define to used libtool version.])
|
||||
@@ -19,7 +17,6 @@
|
||||
AC_SUBST(LTDLINCL)
|
||||
AC_SUBST(LIBLTDL)
|
||||
AC_LIBTOOL_DLOPEN
|
||||
- AC_CONFIG_SUBDIRS(libltdl)
|
||||
AC_DEFINE(LIBTOOL_VERSION, 1, [Define to used libtool version.])
|
||||
]
|
||||
)
|
@ -1,2 +1,2 @@
|
||||
DIST PackageKit-0.7.4.tar.xz 1493656 SHA256 4112c86d67afbbb9be5d3a706c63c537babbbe1f96e398ae306f5e5e02563a98 SHA512 a2cee60f499ec6c5359f3dc2eddda02cfb9c287f80a6b38aa1d9d87558ce5938ade87ab34f6cb1f9640749a0f19625b44c89f72dea5fbb0cbd5f34aec8dbb9f6 WHIRLPOOL 2827cb038c86164ae58021fafe9f2bbf21e69b5c63c4ef5e0f613806f5725f910af3d5aa51646fd258da9c91b81b086cf9560f66bf042e1cb6d1c25128f984b3
|
||||
DIST PackageKit-0.8.15.tar.xz 1506084 SHA256 76aa44994d63b403b1f1154406539951502f5ab92624a8a7dedbeb5437ed0af5 SHA512 d6a1a4582212b02350b8a5ab8413346b0b33a49d329d3c5c4314e3db0c7c40b891d64d275c3acd8eafc45a59462b537cd031919027db2176502861271ce34a02 WHIRLPOOL bcc75e8a05b5616fbec1a2772af53ae51cf8c44a9feda4ca9cff4567f274aed62d3cf01751ab89834f423b77a74dcc1445c32390c323a46bb4340cde568760ce
|
||||
DIST PackageKit-1.0.11.tar.xz 1427404 SHA256 bbd27bbc77795394f25ab009fe1b3420e365541c99248b18bbaa2fa7f029eaf7 SHA512 9529037685f76e883a71ae502eabd83c3e1e8905f76cfe5e938760677f0224f8758bca59e139588aa06589bcca7a20f13dea0fe419022cb950c7a4c631237bce WHIRLPOOL 8d9bebf55acdff2096bb750bc1f3028cdbbb8e0fd09926de69c7e3dcbd7fe56a2908709be01633dd5a61df80afab05b28d8f424b1bbb79454f503cd03301e56a
|
||||
|
@ -1,185 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="3"
|
||||
|
||||
# 0.7.x is untested with Python 3.x
|
||||
PYTHON_DEPEND="2"
|
||||
|
||||
inherit eutils multilib python nsplugins bash-completion-r1
|
||||
|
||||
MY_PN="PackageKit"
|
||||
MY_P=${MY_PN}-${PV}
|
||||
|
||||
DESCRIPTION="Manage packages in a secure way using a cross-distro and cross-architecture API"
|
||||
HOMEPAGE="http://www.packagekit.org/"
|
||||
SRC_URI="http://www.packagekit.org/releases/${MY_P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~mips ~ppc ~ppc64 ~x86"
|
||||
IUSE="connman cron doc +introspection networkmanager nsplugin pm-utils +policykit entropy static-libs test udev"
|
||||
|
||||
CDEPEND="connman? ( net-misc/connman )
|
||||
introspection? ( >=dev-libs/gobject-introspection-0.9.9 )
|
||||
networkmanager? ( >=net-misc/networkmanager-0.6.4 )
|
||||
nsplugin? (
|
||||
>=dev-libs/nspr-4.8
|
||||
x11-libs/cairo
|
||||
>=x11-libs/gtk+-2.14.0:2
|
||||
x11-libs/pango
|
||||
)
|
||||
policykit? ( >=sys-auth/polkit-0.98 )
|
||||
udev? ( virtual/libgudev )
|
||||
dev-db/sqlite:3
|
||||
>=dev-libs/dbus-glib-0.74
|
||||
>=dev-libs/glib-2.26.1:2
|
||||
>=sys-apps/dbus-1.3.0"
|
||||
DEPEND="${CDEPEND}
|
||||
doc? ( dev-util/gtk-doc )
|
||||
nsplugin? ( <net-misc/npapi-sdk-0.27.1 )
|
||||
dev-libs/libxslt
|
||||
>=dev-util/intltool-0.35.0
|
||||
virtual/pkgconfig
|
||||
sys-devel/gettext"
|
||||
|
||||
RDEPEND="${CDEPEND}
|
||||
entropy? ( >=sys-apps/entropy-1.0_rc27 )
|
||||
pm-utils? ( sys-power/pm-utils )
|
||||
>=app-portage/layman-1.2.3
|
||||
>=sys-apps/portage-2.1.9
|
||||
sys-auth/consolekit"
|
||||
|
||||
APP_LINGUAS="as bg bn ca cs da de el en_GB es fi fr gu he hi hu it ja kn ko ml mr
|
||||
ms nb nl or pa pl pt pt_BR ro ru sk sr sr@latin sv ta te th tr uk zh_CN zh_TW"
|
||||
for X in ${APP_LINGUAS}; do
|
||||
IUSE=" ${IUSE} linguas_${X}"
|
||||
done
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
RESTRICT="test" # tests are failing atm
|
||||
|
||||
# NOTES:
|
||||
# do not use a specific user, useless and not more secure according to upstream
|
||||
# doc is in the tarball and always installed
|
||||
# mono doesn't install anything (RDEPEND dev-dotnet/gtk-sharp-gapi:2
|
||||
# (R)DEPEND dev-dotnet/glib-sharp:2 dev-lang/mono), upstream bug 23247
|
||||
# >=npapi-sdk-0.27.1 has slightly changed API, once it is unmasked in tree
|
||||
# drop the npapi-api-change patch below and relax the dependency constraints
|
||||
|
||||
# UPSTREAM:
|
||||
# documentation/website with --enable-doc-install
|
||||
# failing tests
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-0.7.x-npapi-sdk.patch #383141
|
||||
epatch "${FILESDIR}"/${PN}-0.7.x-npapi-api-change.patch #416711
|
||||
# http://pkgs.fedoraproject.org/gitweb/?p=PackageKit.git;a=commit;h=0b378668288db34890b82c7be007fc76c7fcd956
|
||||
sed -i -e '/polkit-backend-1/d' configure || die #423431
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=""
|
||||
|
||||
if use policykit; then
|
||||
myconf+=" --with-security-framework=polkit"
|
||||
else
|
||||
myconf+=" --with-security-framework=dummy"
|
||||
fi
|
||||
|
||||
if [[ -z "${LINGUAS}" ]]; then
|
||||
myconf+=" --disable-nls"
|
||||
else
|
||||
myconf+=" --enable-nls"
|
||||
fi
|
||||
|
||||
# localstatedir: for gentoo it's /var/lib but for $PN it's /var
|
||||
# dep-tracking,option-check,libtool-lock,strict,local: obvious reasons
|
||||
# command,debuginfo,gstreamer,service-packs: not supported by backend
|
||||
|
||||
# NOTE: default backend is autodetected at runtime, also
|
||||
if use entropy; then
|
||||
myconf+=" --with-default-backend=entropy"
|
||||
else
|
||||
myconf+=" --with-default-backend=portage"
|
||||
fi
|
||||
econf \
|
||||
${myconf} \
|
||||
--enable-introspection=$(use introspection && echo -n "yes" || echo -n "no") \
|
||||
--localstatedir=/var \
|
||||
--disable-dependency-tracking \
|
||||
--enable-option-checking \
|
||||
--enable-libtool-lock \
|
||||
--disable-strict \
|
||||
--disable-local \
|
||||
$(use_enable doc gtk-doc) \
|
||||
--enable-command-not-found \
|
||||
--disable-debuginfo-install \
|
||||
--disable-gstreamer-plugin \
|
||||
--disable-service-packs \
|
||||
--enable-man-pages \
|
||||
--enable-portage \
|
||||
$(use_enable entropy) \
|
||||
$(use_enable cron) \
|
||||
--disable-gtk-module \
|
||||
$(use_enable introspection) \
|
||||
$(use_enable networkmanager) \
|
||||
$(use_enable nsplugin browser-plugin) \
|
||||
$(use_enable connman) \
|
||||
$(use_enable pm-utils) \
|
||||
--disable-qt \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_enable test tests) \
|
||||
$(use_enable udev device-rebind)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die "emake install failed"
|
||||
|
||||
dodoc AUTHORS MAINTAINERS NEWS README TODO || die "dodoc failed"
|
||||
dodoc ChangeLog || die "dodoc failed"
|
||||
|
||||
if use nsplugin; then
|
||||
dodir "/usr/$(get_libdir)/${PLUGINS_DIR}"
|
||||
mv "${D}"/usr/$(get_libdir)/mozilla/plugins/* \
|
||||
"${D}/usr/$(get_libdir)/${PLUGINS_DIR}/"
|
||||
fi
|
||||
|
||||
if ! use static-libs; then
|
||||
find "${D}" -name *.la | xargs rm || die "removing .la files failed"
|
||||
fi
|
||||
|
||||
# Remove precompiled python modules, we handle byte compiling
|
||||
rm -f "${D}/$(python_get_sitedir)"/${PN}*.py[co]
|
||||
|
||||
newbashcomp "${S}/contrib/pk-completion.bash" ${PN}
|
||||
# Remove bashcomp file installed by build-system
|
||||
rm -f "${D}/bash_completion.d/pk-completion.bash"
|
||||
|
||||
# Remove unwanted PackageKit website stuff
|
||||
rm -rf "${D}/usr/share/PackageKit/website"
|
||||
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
python_mod_optimize ${PN/-base}
|
||||
|
||||
if ! use policykit; then
|
||||
ewarn "You are not using policykit, the daemon can't be considered as secure."
|
||||
ewarn "All users will be able to do anything through ${MY_PN}."
|
||||
ewarn "Please, consider rebuilding ${MY_PN} with policykit USE flag."
|
||||
ewarn "THIS IS A SECURITY ISSUE."
|
||||
echo
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
einfo "Removing downloaded files with ${MY_PN}..."
|
||||
[[ -d "${ROOT}"/var/cache/${MY_PN}/downloads/ ]] && \
|
||||
rm -rf /var/cache/PackageKit/downloads/*
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
python_mod_cleanup ${PN/-base}
|
||||
}
|
@ -0,0 +1,112 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
|
||||
# PackageKit supports 3.2+, but entropy and portage backends are untested
|
||||
# Future note: use --enable-python3
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
VALA_USE_DEPEND="vapigen"
|
||||
|
||||
inherit bash-completion-r1 multilib nsplugins python-single-r1 systemd vala
|
||||
|
||||
MY_PN="PackageKit"
|
||||
MY_P=${MY_PN}-${PV}
|
||||
|
||||
DESCRIPTION="Manage packages in a secure way using a cross-distro and cross-architecture API"
|
||||
HOMEPAGE="http://www.packagekit.org/"
|
||||
SRC_URI="http://www.freedesktop.org/software/${MY_PN}/releases/${MY_P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0/18"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~mips ~ppc ~ppc64 ~x86"
|
||||
IUSE="connman cron command-not-found +introspection networkmanager nsplugin entropy systemd test vala"
|
||||
REQUIRED_USE="
|
||||
${PYTHON_REQUIRED_USE}
|
||||
vala? ( introspection )
|
||||
"
|
||||
|
||||
# While not strictly needed, consolekit is the alternative to systemd-login
|
||||
# to get current session's user.
|
||||
CDEPEND="
|
||||
>=app-shells/bash-completion-2
|
||||
dev-db/sqlite:3
|
||||
>=dev-libs/dbus-glib-0.74
|
||||
>=dev-libs/glib-2.32.0:2[${PYTHON_USEDEP}]
|
||||
>=sys-auth/polkit-0.98
|
||||
>=sys-apps/dbus-1.3.0
|
||||
${PYTHON_DEPS}
|
||||
connman? ( net-misc/connman )
|
||||
introspection? ( >=dev-libs/gobject-introspection-0.9.9[${PYTHON_USEDEP}] )
|
||||
networkmanager? ( >=net-misc/networkmanager-0.6.4 )
|
||||
nsplugin? (
|
||||
>=dev-libs/nspr-4.8
|
||||
x11-libs/cairo
|
||||
>=x11-libs/gtk+-2.14.0:2
|
||||
x11-libs/pango
|
||||
)
|
||||
systemd? ( >=sys-apps/systemd-204 )
|
||||
"
|
||||
DEPEND="${CDEPEND}
|
||||
dev-libs/libxslt[${PYTHON_USEDEP}]
|
||||
>=dev-util/gtk-doc-am-1.11
|
||||
>=dev-util/intltool-0.35.0
|
||||
sys-devel/gettext
|
||||
virtual/pkgconfig
|
||||
nsplugin? ( >=net-misc/npapi-sdk-0.27 )
|
||||
vala? ( $(vala_depend) )
|
||||
"
|
||||
RDEPEND="${CDEPEND}
|
||||
>=app-portage/layman-2[${PYTHON_USEDEP}]
|
||||
>=sys-apps/portage-2.2[${PYTHON_USEDEP}]
|
||||
entropy? ( >=sys-apps/entropy-234[${PYTHON_USEDEP}] )
|
||||
!systemd? ( sys-auth/consolekit )
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
src_prepare() {
|
||||
use vala && vala_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--disable-gstreamer-plugin \
|
||||
--disable-gtk-doc \
|
||||
--disable-gtk-module \
|
||||
--disable-schemas-compile \
|
||||
--disable-static \
|
||||
--enable-bash-completion \
|
||||
--enable-man-pages \
|
||||
--enable-nls \
|
||||
--enable-portage \
|
||||
--localstatedir=/var \
|
||||
$(use_enable command-not-found) \
|
||||
$(use_enable connman) \
|
||||
$(use_enable cron) \
|
||||
$(use_enable entropy) \
|
||||
$(use_enable introspection) \
|
||||
$(use_enable networkmanager) \
|
||||
$(use_enable nsplugin browser-plugin) \
|
||||
$(use_enable systemd) \
|
||||
$(use_enable test daemon-tests) \
|
||||
$(use_enable vala) \
|
||||
$(systemd_with_unitdir)
|
||||
#$(use_enable test local)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
prune_libtool_files --all
|
||||
|
||||
dodoc AUTHORS ChangeLog MAINTAINERS NEWS README
|
||||
|
||||
if use nsplugin; then
|
||||
dodir "/usr/$(get_libdir)/${PLUGINS_DIR}"
|
||||
mv "${D}/usr/$(get_libdir)/mozilla/plugins"/* \
|
||||
"${D}/usr/$(get_libdir)/${PLUGINS_DIR}/" || die
|
||||
fi
|
||||
}
|
@ -1,2 +1,2 @@
|
||||
DIST PackageKit-0.7.4.tar.xz 1493656 SHA256 4112c86d67afbbb9be5d3a706c63c537babbbe1f96e398ae306f5e5e02563a98 SHA512 a2cee60f499ec6c5359f3dc2eddda02cfb9c287f80a6b38aa1d9d87558ce5938ade87ab34f6cb1f9640749a0f19625b44c89f72dea5fbb0cbd5f34aec8dbb9f6 WHIRLPOOL 2827cb038c86164ae58021fafe9f2bbf21e69b5c63c4ef5e0f613806f5725f910af3d5aa51646fd258da9c91b81b086cf9560f66bf042e1cb6d1c25128f984b3
|
||||
DIST PackageKit-0.8.15.tar.xz 1506084 SHA256 76aa44994d63b403b1f1154406539951502f5ab92624a8a7dedbeb5437ed0af5 SHA512 d6a1a4582212b02350b8a5ab8413346b0b33a49d329d3c5c4314e3db0c7c40b891d64d275c3acd8eafc45a59462b537cd031919027db2176502861271ce34a02 WHIRLPOOL bcc75e8a05b5616fbec1a2772af53ae51cf8c44a9feda4ca9cff4567f274aed62d3cf01751ab89834f423b77a74dcc1445c32390c323a46bb4340cde568760ce
|
||||
DIST PackageKit-1.0.11.tar.xz 1427404 SHA256 bbd27bbc77795394f25ab009fe1b3420e365541c99248b18bbaa2fa7f029eaf7 SHA512 9529037685f76e883a71ae502eabd83c3e1e8905f76cfe5e938760677f0224f8758bca59e139588aa06589bcca7a20f13dea0fe419022cb950c7a4c631237bce WHIRLPOOL 8d9bebf55acdff2096bb750bc1f3028cdbbb8e0fd09926de69c7e3dcbd7fe56a2908709be01633dd5a61df80afab05b28d8f424b1bbb79454f503cd03301e56a
|
||||
|
@ -1,65 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="3"
|
||||
|
||||
inherit eutils base
|
||||
|
||||
MY_PN="PackageKit"
|
||||
MY_P=${MY_PN}-${PV}
|
||||
|
||||
DESCRIPTION="Gtk3 PackageKit backend library"
|
||||
HOMEPAGE="http://www.packagekit.org/"
|
||||
SRC_URI="http://www.packagekit.org/releases/${MY_P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-libs/dbus-glib
|
||||
media-libs/fontconfig
|
||||
>=x11-libs/gtk+-3.0:3
|
||||
x11-libs/pango
|
||||
~app-admin/packagekit-base-${PV}"
|
||||
DEPEND="${RDEPEND} virtual/pkgconfig"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_configure() {
|
||||
# http://pkgs.fedoraproject.org/gitweb/?p=PackageKit.git;a=commit;h=0b378668288db34890b82c7be007fc76c7fcd956
|
||||
sed -i -e '/polkit-backend-1/d' configure || die #423431
|
||||
econf \
|
||||
--localstatedir=/var \
|
||||
--enable-introspection=yes \
|
||||
--disable-dependency-tracking \
|
||||
--enable-option-checking \
|
||||
--enable-libtool-lock \
|
||||
--disable-strict \
|
||||
--disable-local \
|
||||
--disable-gtk-doc \
|
||||
--disable-command-not-found \
|
||||
--disable-debuginfo-install \
|
||||
--disable-gstreamer-plugin \
|
||||
--disable-service-packs \
|
||||
--disable-man-pages \
|
||||
--disable-cron \
|
||||
--enable-gtk-module \
|
||||
--disable-networkmanager \
|
||||
--disable-browser-plugin \
|
||||
--disable-pm-utils \
|
||||
--disable-device-rebind \
|
||||
--disable-tests \
|
||||
--disable-qt
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cd "${S}"/contrib/gtk-module || die
|
||||
emake || die "emake install failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cd "${S}"/contrib/gtk-module || die
|
||||
emake DESTDIR="${D}" install || die "emake install failed"
|
||||
}
|
@ -0,0 +1,62 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit eutils
|
||||
|
||||
MY_PN="PackageKit"
|
||||
MY_P=${MY_PN}-${PV}
|
||||
|
||||
DESCRIPTION="Gtk3 PackageKit backend library"
|
||||
HOMEPAGE="http://www.packagekit.org/"
|
||||
SRC_URI="http://www.packagekit.org/releases/${MY_P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/glib-2.32:2
|
||||
media-libs/fontconfig
|
||||
>=x11-libs/gtk+-2:2
|
||||
>=x11-libs/gtk+-3:3
|
||||
x11-libs/pango
|
||||
~app-admin/packagekit-base-${PV}[introspection]
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--disable-bash-completion \
|
||||
--disable-browser-plugin \
|
||||
--disable-command-not-found \
|
||||
--disable-cron \
|
||||
--disable-gstreamer-plugin \
|
||||
--disable-gtk-doc \
|
||||
--disable-local \
|
||||
--disable-man-pages \
|
||||
--disable-networkmanager \
|
||||
--disable-static \
|
||||
--disable-systemd \
|
||||
--disable-vala \
|
||||
--enable-dummy \
|
||||
--enable-gtk-module \
|
||||
--enable-introspection=yes \
|
||||
--localstatedir=/var
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake -C contrib/gtk-module
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake -C contrib/gtk-module DESTDIR="${D}" install
|
||||
prune_libtool_files --all
|
||||
}
|
@ -1,2 +1,2 @@
|
||||
DIST PackageKit-0.7.4.tar.xz 1493656 SHA256 4112c86d67afbbb9be5d3a706c63c537babbbe1f96e398ae306f5e5e02563a98 SHA512 a2cee60f499ec6c5359f3dc2eddda02cfb9c287f80a6b38aa1d9d87558ce5938ade87ab34f6cb1f9640749a0f19625b44c89f72dea5fbb0cbd5f34aec8dbb9f6 WHIRLPOOL 2827cb038c86164ae58021fafe9f2bbf21e69b5c63c4ef5e0f613806f5725f910af3d5aa51646fd258da9c91b81b086cf9560f66bf042e1cb6d1c25128f984b3
|
||||
DIST PackageKit-Qt-0.8.8.tar.xz 41416 SHA256 e234d4b1f8451821930f463621a86c9708eebfd1db65019883d38a60d13c870c SHA512 a81b85588f531ca58d355094a78c3f07aa804350fdd49f98fbae02076ebb1d4736c0a3d33822805a9e1b5ee5bf62e85141994b841c5e9218b7d03715b45dde11 WHIRLPOOL 319b2226fcf1a7de58df016b2cd401779601ad1842f0d35c9341f56d380397d9dc92a7cd8c8291fb0c4487f7821f4c860130b6275523a240bc3e8996d425f973
|
||||
DIST PackageKit-Qt-0.9.5.tar.xz 43312 SHA256 f4fb60b82d845d887de57ef44481301f966291912116e416d981156faf3620f0 SHA512 3dbe52d6e0f8ba17c9ef04acdb5e2c29d5630fbb60b3522e57895b2d409497a15a543ba87efd876111726b1785c6ed74ff663b5379ba053ccab492d0e3bc08e2 WHIRLPOOL 7ec050b0086496c84506af0282e577a1a08eb8cf1628e9b9d4f41e6924c7965188ed564f83ce14493df72e555ee30c3c77e9bd11df791434292bbc12d53e2b61
|
||||
|
@ -1,68 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="3"
|
||||
|
||||
inherit eutils base
|
||||
|
||||
MY_PN="PackageKit"
|
||||
MY_P=${MY_PN}-${PV}
|
||||
|
||||
DESCRIPTION="Qt4 PackageKit backend library"
|
||||
HOMEPAGE="http://www.packagekit.org/"
|
||||
SRC_URI="http://www.packagekit.org/releases/${MY_P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=dev-qt/qtcore-4.4.0:4
|
||||
>=dev-qt/qtdbus-4.4.0:4
|
||||
>=dev-qt/qtsql-4.4.0:4
|
||||
~app-admin/packagekit-base-${PV}"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-libs/libxslt
|
||||
virtual/pkgconfig"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_configure() {
|
||||
# http://pkgs.fedoraproject.org/gitweb/?p=PackageKit.git;a=commit;h=0b378668288db34890b82c7be007fc76c7fcd956
|
||||
sed -i -e '/polkit-backend-1/d' configure || die #423431
|
||||
econf \
|
||||
--enable-introspection=no \
|
||||
--localstatedir=/var \
|
||||
--disable-dependency-tracking \
|
||||
--enable-option-checking \
|
||||
--enable-libtool-lock \
|
||||
--disable-strict \
|
||||
--disable-local \
|
||||
--disable-gtk-doc \
|
||||
--disable-command-not-found \
|
||||
--disable-debuginfo-install \
|
||||
--disable-gstreamer-plugin \
|
||||
--disable-service-packs \
|
||||
--disable-man-pages \
|
||||
--disable-cron \
|
||||
--disable-gtk-module \
|
||||
--disable-networkmanager \
|
||||
--disable-browser-plugin \
|
||||
--disable-pm-utils \
|
||||
--disable-device-rebind \
|
||||
--disable-tests \
|
||||
--enable-qt
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local qtdir=packagekit-qt2
|
||||
cd "${S}"/lib/${qtdir} || die
|
||||
emake || die "emake install failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local qtdir=packagekit-qt2
|
||||
cd "${S}"/lib/${qtdir} || die
|
||||
emake DESTDIR="${D}" install || die "emake install failed"
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit cmake-utils
|
||||
|
||||
MY_PN="PackageKit-Qt"
|
||||
MY_P=${MY_PN}-${PV}
|
||||
|
||||
DESCRIPTION="Qt4 PackageKit backend library"
|
||||
HOMEPAGE="http://www.packagekit.org/"
|
||||
SRC_URI="http://www.freedesktop.org/software/PackageKit/releases/${MY_P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
>=dev-qt/qtcore-4.4.0:4
|
||||
>=dev-qt/qtdbus-4.4.0:4
|
||||
>=dev-qt/qtsql-4.4.0:4
|
||||
>=app-admin/packagekit-base-0.9
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-libs/libxslt
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
@ -1,22 +1,19 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="3"
|
||||
|
||||
MY_PN="PackageKit"
|
||||
MY_P=${MY_PN}-${PV}
|
||||
EAPI="5"
|
||||
|
||||
DESCRIPTION="PackageKit Package Manager interface (meta package)"
|
||||
HOMEPAGE="http://www.packagekit.org/"
|
||||
SRC_URI=""
|
||||
|
||||
LICENSE="GPL-2"
|
||||
LICENSE="metapackage"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="gtk qt4"
|
||||
|
||||
RDEPEND="gtk? ( ~app-admin/packagekit-gtk-${PV} )
|
||||
qt4? ( ~app-admin/packagekit-qt4-${PV} )"
|
||||
qt4? ( >=app-admin/packagekit-qt4-0.9 )"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
@ -0,0 +1 @@
|
||||
DIST qtpass-1.0.5.tar.gz 636461 SHA256 0c07bd1eb9e5336c0225f891e5b9a9df103f218619cf7ec6311edf654e8db281 SHA512 e1b63f1058dc9c194f06376d52acbbb8594d429f4d7fe4ba27baed2cafe10b1c36137b3e33626c1bf33c7f3e1444e6fbe48fc66a83e0f7cd82f5b47f0193d178 WHIRLPOOL acb914d89bcd667343f648e38bb9eb316ebbf0b01f75686d3a7694e82eedd3e3f52ffc99f530bbe3ccbb6089ced727796924fcf48a94c071a3e20b27141b28df
|
@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>proxy-maintainers</herd>
|
||||
<maintainer>
|
||||
<email>spiderx@spiderx.dp.ua</email>
|
||||
<name>Vladimir Pavljuchenkov</name>
|
||||
<description>Proxied maintainer; set to assignee in all bugs</description>
|
||||
</maintainer>
|
||||
<longdescription>
|
||||
QtPass is a multi-platform GUI for pass, the standard unix password manager.
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<changelog>https://github.com/IJHack/qtpass/releases</changelog>
|
||||
<doc>https://github.com/IJHack/qtpass/wiki</doc>
|
||||
<bugs-to>https://github.com/IJHack/qtpass/issues</bugs-to>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -0,0 +1,62 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit qmake-utils
|
||||
|
||||
DESCRIPTION="multi-platform GUI for pass, the standard unix password manager"
|
||||
HOMEPAGE="https://qtpass.org/"
|
||||
SRC_URI="https://github.com/IJHack/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~x86 ~amd64"
|
||||
IUSE="+qt5"
|
||||
DOCS=( FAQ.md README.md CONTRIBUTING.md )
|
||||
|
||||
RDEPEND="qt5? (
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5[xcb]
|
||||
dev-qt/qtwidgets:5
|
||||
dev-qt/qtnetwork:5
|
||||
)
|
||||
!qt5? (
|
||||
dev-qt/qtcore:4
|
||||
dev-qt/qtgui:4
|
||||
)
|
||||
app-admin/pass"
|
||||
DEPEND="${RDEPEND}
|
||||
qt5? ( dev-qt/linguist-tools:5 )"
|
||||
|
||||
src_prepare() {
|
||||
# Modify install path
|
||||
sed -i "s/target.path = \$\$PREFIX/target.path = \$\$PREFIX\/bin/" \
|
||||
${PN}.pro \
|
||||
|| die "sed failed to modify install path for ${PN}.pro"
|
||||
|
||||
# Backport segfault fix https://github.com/IJHack/qtpass/issues/122
|
||||
# (ToDo: remove this in 1.0.6)
|
||||
sed -e "/QtPass = NULL;/{n;d};/startupPhase = true;/a autoclearTimer = NULL;" \
|
||||
-i mainwindow.cpp || die "sed failed mainwindow.cpp"
|
||||
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
if use qt5 ; then
|
||||
eqmake5 PREFIX="${D}"/usr
|
||||
else
|
||||
eqmake4 PREFIX="${D}"/usr
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
insinto /usr/share/applications
|
||||
doins "${PN}.desktop"
|
||||
|
||||
newicon artwork/icon.svg "${PN}-icon.svg"
|
||||
}
|
@ -0,0 +1,78 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python3_3 python3_4 )
|
||||
|
||||
inherit eutils python-single-r1
|
||||
|
||||
DESCRIPTION="Backup system inspired by TimeVault and FlyBack, with a GUI for GNOME and KDE4"
|
||||
HOMEPAGE="http://backintime.le-web.org/"
|
||||
SRC_URI="http://${PN}.le-web.org/download/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~x86"
|
||||
IUSE="qt4"
|
||||
|
||||
DEPEND="${PYTHON_DEPS}
|
||||
dev-python/dbus-python[${PYTHON_USEDEP}]
|
||||
dev-python/keyring[${PYTHON_USEDEP}]
|
||||
net-misc/openssh
|
||||
net-misc/rsync[xattr,acl]"
|
||||
RDEPEND="${DEPEND}
|
||||
qt4? ( dev-python/PyQt4 )"
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
src_prepare() {
|
||||
#fix doc install location
|
||||
sed -e "s:/doc/${PN}-common:/doc/${PF}:g" \
|
||||
-i common/configure || die
|
||||
sed -e "s:/doc/${PN}-qt4:/doc/${PF}:g" \
|
||||
-i qt4/configure || die
|
||||
sed -e "/addInstallFile \"..\/VERSION/d" \
|
||||
-e "/addInstallFile \"..\/LICENSE/d" \
|
||||
-e "/addInstallFile \"..\/debian\/copyright/d" \
|
||||
-i {qt4,common}/configure || die
|
||||
|
||||
if [ -n ${LINGUAS+x} ] ; then
|
||||
cd common/po || die
|
||||
for po in *.po ; do
|
||||
if ! has ${po/.po} ${LINGUAS} ; then
|
||||
rm ${po} || die
|
||||
fi
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
cd "${S}"/common || die
|
||||
./configure --python3 --no-fuse-group || die
|
||||
if use qt4 ; then
|
||||
cd "${S}"/qt4 || die
|
||||
./configure --python3 || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cd "${S}"/common || die
|
||||
emake
|
||||
if use qt4 ; then
|
||||
cd "${S}"/qt4 || die
|
||||
emake
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cd "${S}"/common || die
|
||||
emake DESTDIR="${D}" install
|
||||
if use qt4 ; then
|
||||
cd "${S}"/qt4 || die
|
||||
emake DESTDIR="${D}" install
|
||||
fi
|
||||
|
||||
python_optimize "${D}"
|
||||
}
|
@ -1,4 +1,2 @@
|
||||
DIST abs-guide-6.6.pdf 3348750 SHA256 dc3ab7f8cdd8516e8758dafb943d39ecee6ab289c171507ea4290478749bc970 SHA512 4338edbd19faf256bc857ecbb596f54a05a687583c4cadc76deb97fa50317c58a3b6b7833649b5209b78d32887d08776d8d2e0b0deaaa915e886505b5ead41c1 WHIRLPOOL 777745b854a3c92efaf94c5aa8206a1e19840a78546f39cfb8563015614bee1502f29a20e46510b8307f8f414478937126cd02807ae77cf3a9d3576c85cc9b47
|
||||
DIST abs-guide-6.6.tar.bz2 1136823 SHA256 922369ab87545c3ae3118122328508ad201a0893fc09ec474bb88e987777f07a SHA512 506590b8279f6719cbbaa18f4468b1f8b99f9ed3b490475426236fcfcc7a479552c579648d5475e047418de1e56e899288150586bf04ba8e1075a6040f50d7a9 WHIRLPOOL 2dd00b9c8915fa90fae37878c2b651b601a7ee52bd0f1b30dbb49a77574e57a92994e07efa77d6270154c80febb568d30a5110ad28cb51c19553a051aada9662
|
||||
DIST abs-guide-final.tar.bz2 1141871 SHA256 c29ffc8721ac2a8e0782bf0518d6a9dbd650f5a3deb00009b825f80f833aa971 SHA512 76c445da6faa47418e50458bf2bfc0b4c34c9efcc93308c39ec880b894d019bf9a1d2f4a8687d14bd9832872b666769f6f7f74c313520e9770f16724eb3adfdd WHIRLPOOL 831e6144ccfafd84725d1b961a9425c2c8bcddf07485453f8ff23cacef1244aa60e5a9532c7156170e617717c4c737fe715a951d7e73d14c5fcc1d79e05da415
|
||||
DIST abs-guide.pdf 3358210 SHA256 6fcd205205d5e549d9ed4dc2e9d620f8af5742917c2a718b32f91398f41155cd SHA512 8691ddab583e816ca9f0e42d37d45d8c27e74b5b62a5a951c7fe5830679e9288d4d5f98e7ff0746e2ac71e26322c7dc8250e33128b3e77591a1e48e8d415777c WHIRLPOOL 407a7c24ceaf98a64b721b0f1cca9c22acf115a6c50f47e54af95ddc2511bd1409cd4a88df21dfde88559e7428a413099e0b77986bbe368ace37a754a288ed2c
|
||||
|
@ -1,34 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="4"
|
||||
|
||||
DESCRIPTION="An advanced reference and a tutorial on bash shell scripting"
|
||||
HOMEPAGE="http://www.tldp.org/LDP/abs/html"
|
||||
|
||||
# Upstream likes to update the tarballs without changing the names.
|
||||
# - http://bash.deta.in/abs-guide-${PV}.tar.bz2
|
||||
# - http://bash.deta.in/abs-guide.pdf <- remember to rename with ${PV}
|
||||
SRC_URI="https://dev.gentoo.org/~dirtyepic/dist/${P}.tar.bz2
|
||||
pdf? ( https://dev.gentoo.org/~dirtyepic/dist/${P}.pdf )"
|
||||
|
||||
LICENSE="OPL"
|
||||
IUSE="pdf"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 hppa ~mips ppc sparc x86"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND=""
|
||||
|
||||
S="${WORKDIR}/abs"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${P}.tar.bz2
|
||||
use pdf && cp "${DISTDIR}"/${P}.pdf "${S}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodoc -r *
|
||||
docompress -x /usr/share/doc/${PF}
|
||||
}
|
@ -1,64 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="4"
|
||||
|
||||
MY_P="Csound${PV}"
|
||||
|
||||
DESCRIPTION="The Csound reference manual"
|
||||
HOMEPAGE="http://csounds.com/"
|
||||
SRC_URI="
|
||||
mirror://sourceforge/csound/${MY_P}_manual_pdf.zip
|
||||
linguas_fr? ( mirror://sourceforge/csound/${MY_P}_manual-fr_pdf.zip )
|
||||
|
||||
html? (
|
||||
mirror://sourceforge/csound/${MY_P}_manual_html.zip
|
||||
linguas_fr? ( mirror://sourceforge/csound/${MY_P}_manual-fr_html.zip )
|
||||
)"
|
||||
|
||||
LICENSE="FDL-1.3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="html"
|
||||
|
||||
LANGS=" fr"
|
||||
IUSE+="${LANGS// / linguas_}"
|
||||
|
||||
DEPEND="app-arch/unzip"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${MY_P}_manual_pdf.zip
|
||||
|
||||
if use html ; then
|
||||
unpack ${MY_P}_manual_html.zip
|
||||
mv html html-en
|
||||
fi
|
||||
|
||||
local lang
|
||||
for lang in ${LANGS} ; do
|
||||
use linguas_${lang} || continue
|
||||
unpack ${MY_P}_manual-${lang}_pdf.zip
|
||||
if use html ; then
|
||||
unpack ${MY_P}_manual-${lang}_html.zip
|
||||
mv html html-${lang}
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodoc *.pdf
|
||||
|
||||
if use html ; then
|
||||
dohtml -r html-en/*
|
||||
|
||||
local lang
|
||||
for lang in ${LANGS} ; do
|
||||
use linguas_${lang} || continue
|
||||
docinto html-${lang}
|
||||
dohtml -r html-${lang}/*
|
||||
done
|
||||
fi
|
||||
}
|
@ -1,64 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="4"
|
||||
|
||||
MY_P="Csound${PV}"
|
||||
|
||||
DESCRIPTION="The Csound reference manual"
|
||||
HOMEPAGE="http://csounds.com/"
|
||||
SRC_URI="
|
||||
mirror://sourceforge/csound/${MY_P}_manual_pdf.zip
|
||||
linguas_fr? ( mirror://sourceforge/csound/${MY_P}_manual-fr_pdf.zip )
|
||||
|
||||
html? (
|
||||
mirror://sourceforge/csound/${MY_P}_manual_html.zip
|
||||
linguas_fr? ( mirror://sourceforge/csound/${MY_P}_manual-fr_html.zip )
|
||||
)"
|
||||
|
||||
LICENSE="FDL-1.3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="html"
|
||||
|
||||
LANGS=" fr"
|
||||
IUSE+="${LANGS// / linguas_}"
|
||||
|
||||
DEPEND="app-arch/unzip"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${MY_P}_manual_pdf.zip
|
||||
|
||||
if use html ; then
|
||||
unpack ${MY_P}_manual_html.zip
|
||||
mv html html-en
|
||||
fi
|
||||
|
||||
local lang
|
||||
for lang in ${LANGS} ; do
|
||||
use linguas_${lang} || continue
|
||||
unpack ${MY_P}_manual-${lang}_pdf.zip
|
||||
if use html ; then
|
||||
unpack ${MY_P}_manual-${lang}_html.zip
|
||||
mv html html-${lang}
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodoc *.pdf
|
||||
|
||||
if use html ; then
|
||||
dohtml -r html-en/*
|
||||
|
||||
local lang
|
||||
for lang in ${LANGS} ; do
|
||||
use linguas_${lang} || continue
|
||||
docinto html-${lang}
|
||||
dohtml -r html-${lang}/*
|
||||
done
|
||||
fi
|
||||
}
|
@ -1,64 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=4
|
||||
|
||||
MY_P=Csound${PV}
|
||||
|
||||
DESCRIPTION="The Csound reference manual"
|
||||
HOMEPAGE="http://csounds.com/"
|
||||
SRC_URI="
|
||||
mirror://sourceforge/csound/${MY_P}_manual_pdf.zip
|
||||
linguas_fr? ( mirror://sourceforge/csound/${MY_P}_manual-fr_pdf.zip )
|
||||
|
||||
html? (
|
||||
mirror://sourceforge/csound/${MY_P}_manual_html.zip
|
||||
linguas_fr? ( mirror://sourceforge/csound/${MY_P}_manual-fr_html.zip )
|
||||
)"
|
||||
|
||||
LICENSE="FDL-1.3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="html"
|
||||
|
||||
LANGS=" fr"
|
||||
IUSE+="${LANGS// / linguas_}"
|
||||
|
||||
DEPEND="app-arch/unzip"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${MY_P}_manual_pdf.zip
|
||||
|
||||
if use html ; then
|
||||
unpack ${MY_P}_manual_html.zip
|
||||
mv html html-en
|
||||
fi
|
||||
|
||||
local lang
|
||||
for lang in ${LANGS} ; do
|
||||
use linguas_${lang} || continue
|
||||
unpack ${MY_P}_manual-${lang}_pdf.zip
|
||||
if use html ; then
|
||||
unpack ${MY_P}_manual-${lang}_html.zip
|
||||
mv html html-${lang}
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodoc *.pdf
|
||||
|
||||
if use html ; then
|
||||
dohtml -r html-en/*
|
||||
|
||||
local lang
|
||||
for lang in ${LANGS} ; do
|
||||
use linguas_${lang} || continue
|
||||
docinto html-${lang}
|
||||
dohtml -r html-${lang}/*
|
||||
done
|
||||
fi
|
||||
}
|
@ -0,0 +1,190 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit eutils multilib mount-boot flag-o-matic python-any-r1 toolchain-funcs
|
||||
|
||||
MY_PV=${PV/_/-}
|
||||
MY_P=${PN}-${PV/_/-}
|
||||
|
||||
if [[ $PV == *9999 ]]; then
|
||||
inherit git-r3
|
||||
KEYWORDS=""
|
||||
EGIT_REPO_URI="git://xenbits.xen.org/xen.git"
|
||||
SRC_URI=""
|
||||
else
|
||||
KEYWORDS="~amd64 ~arm ~arm64 -x86"
|
||||
UPSTREAM_VER=0
|
||||
SECURITY_VER=0
|
||||
# var set to reflect https://dev.gentoo.org/~idella4/
|
||||
SEC_VER=4
|
||||
GENTOO_VER=
|
||||
|
||||
[[ -n ${UPSTREAM_VER} ]] && \
|
||||
UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz"
|
||||
[[ -n ${SECURITY_VER} ]] && \
|
||||
SECURITY_PATCHSET_URI="https://dev.gentoo.org/~idella4/distfiles/${PN/-tools}-security-patches-${SECURITY_VER}.tar.xz
|
||||
https://dev.gentoo.org/~idella4/distfiles/${PN/-tools}-security-patches-${SEC_VER}.tar.gz"
|
||||
[[ -n ${GENTOO_VER} ]] && \
|
||||
GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN}-gentoo-patches-${GENTOO_VER}.tar.xz"
|
||||
SRC_URI="http://bits.xensource.com/oss-xen/release/${MY_PV}/${MY_P}.tar.gz
|
||||
${UPSTREAM_PATCHSET_URI}
|
||||
${SECURITY_PATCHSET_URI}
|
||||
${GENTOO_PATCHSET_URI}"
|
||||
fi
|
||||
|
||||
DESCRIPTION="The Xen virtual machine monitor"
|
||||
HOMEPAGE="http://xen.org/"
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="custom-cflags debug efi flask"
|
||||
|
||||
DEPEND="${PYTHON_DEPS}
|
||||
efi? ( >=sys-devel/binutils-2.22[multitarget] )
|
||||
!efi? ( >=sys-devel/binutils-2.22 )"
|
||||
RDEPEND=""
|
||||
PDEPEND="~app-emulation/xen-tools-${PV}"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
# Approved by QA team in bug #144032
|
||||
QA_WX_LOAD="boot/xen-syms-${PV}"
|
||||
|
||||
REQUIRED_USE="arm? ( debug )"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
pkg_setup() {
|
||||
python-any-r1_pkg_setup
|
||||
if [[ -z ${XEN_TARGET_ARCH} ]]; then
|
||||
if use amd64; then
|
||||
export XEN_TARGET_ARCH="x86_64"
|
||||
elif use arm; then
|
||||
export XEN_TARGET_ARCH="arm32"
|
||||
elif use arm64; then
|
||||
export XEN_TARGET_ARCH="arm64"
|
||||
else
|
||||
die "Unsupported architecture!"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use flask ; then
|
||||
export "XSM_ENABLE=y"
|
||||
export "FLASK_ENABLE=y"
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Upstream's patchset
|
||||
if [[ -n ${UPSTREAM_VER} ]]; then
|
||||
EPATCH_SUFFIX="patch" \
|
||||
EPATCH_FORCE="yes" \
|
||||
EPATCH_OPTS="-p1" \
|
||||
epatch "${WORKDIR}"/patches-upstream
|
||||
fi
|
||||
|
||||
if [[ -n ${SECURITY_VER} ]]; then
|
||||
einfo "Try to apply Xen Security patcheset"
|
||||
# apply main xen patches
|
||||
# Two parallel systems, both work side by side
|
||||
# Over time they may concdense into one. This will suffice for now
|
||||
EPATCH_SUFFIX="patch"
|
||||
EPATCH_FORCE="yes"
|
||||
for i in ${XEN_SECURITY_MAIN}; do
|
||||
epatch "${WORKDIR}"/patches-security/xen/$i
|
||||
done
|
||||
|
||||
for i in "${WORKDIR}"/xen-sec/xsa*.patch; do
|
||||
epatch $i
|
||||
done
|
||||
fi
|
||||
|
||||
# Gentoo's patchset
|
||||
if [[ -n ${GENTOO_VER} ]]; then
|
||||
EPATCH_SUFFIX="patch" \
|
||||
EPATCH_FORCE="yes" \
|
||||
epatch "${WORKDIR}"/patches-gentoo
|
||||
fi
|
||||
|
||||
epatch "${FILESDIR}"/${PN}-4.6-efi.patch
|
||||
|
||||
# Drop .config
|
||||
sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop"
|
||||
|
||||
if use efi; then
|
||||
export EFI_VENDOR="gentoo"
|
||||
export EFI_MOUNTPOINT="boot"
|
||||
fi
|
||||
|
||||
# if the user *really* wants to use their own custom-cflags, let them
|
||||
if use custom-cflags; then
|
||||
einfo "User wants their own CFLAGS - removing defaults"
|
||||
# try and remove all the default custom-cflags
|
||||
find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \
|
||||
-e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \
|
||||
-e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \
|
||||
-e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \
|
||||
-e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \
|
||||
-e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \
|
||||
-i {} \; || die "failed to re-set custom-cflags"
|
||||
fi
|
||||
|
||||
# remove -Werror for gcc-4.6's sake
|
||||
find "${S}" -name 'Makefile*' -o -name '*.mk' -o -name 'common.make' | \
|
||||
xargs sed -i 's/ *-Werror */ /'
|
||||
# not strictly necessary to fix this
|
||||
sed -i 's/, "-Werror"//' "${S}/tools/python/setup.py" || die "failed to re-set setup.py"
|
||||
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
use arm && myopt="${myopt} CONFIG_EARLY_PRINTK=sun7i"
|
||||
|
||||
use debug && myopt="${myopt} debug=y"
|
||||
|
||||
if use custom-cflags; then
|
||||
filter-flags -fPIE -fstack-protector
|
||||
replace-flags -O3 -O2
|
||||
else
|
||||
unset CFLAGS
|
||||
unset LDFLAGS
|
||||
unset ASFLAGS
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Send raw LDFLAGS so that --as-needed works
|
||||
emake V=1 CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" LD="$(tc-getLD)" -C xen ${myopt}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local myopt
|
||||
use debug && myopt="${myopt} debug=y"
|
||||
|
||||
# The 'make install' doesn't 'mkdir -p' the subdirs
|
||||
if use efi; then
|
||||
mkdir -p "${D}"${EFI_MOUNTPOINT}/efi/${EFI_VENDOR} || die
|
||||
fi
|
||||
|
||||
emake LDFLAGS="$(raw-ldflags)" DESTDIR="${D}" -C xen ${myopt} install
|
||||
|
||||
# make install likes to throw in some extra EFI bits if it built
|
||||
use efi || rm -rf "${D}/usr/$(get_libdir)/efi"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "Official Xen Guide and the unoffical wiki page:"
|
||||
elog " https://wiki.gentoo.org/wiki/Xen"
|
||||
elog " http://en.gentoo-wiki.com/wiki/Xen/"
|
||||
|
||||
use efi && einfo "The efi executable is installed in boot/efi/gentoo"
|
||||
|
||||
elog "You can optionally block the installation of /boot/xen-syms by an entry"
|
||||
elog "in folder /etc/portage/env using the portage's feature INSTALL_MASK"
|
||||
elog "e.g. echo ${msg} > /etc/portage/env/xen.conf"
|
||||
}
|
@ -1,3 +1,2 @@
|
||||
DIST afl-1.45b.tgz 775889 SHA256 c183b94c5734bb3558d7129833f0345df250fe9a1f4f8b1ce15ac2dc7e89b50f SHA512 82a5d56010baa69ab679cc49fa8193eff2eb0fcbacbedef8cc8216952750c66381f671d6a321a3665473ddf65a7da73d3723ff497803b18fec2bd0d19dfd4f51 WHIRLPOOL 9dd1727cf81466e1451d66b317b7cfb88033038d1943e0da63ee2684f0f17f9f5c73015727414c6779d07499954ece71c59812182abb75416873404ac52643a8
|
||||
DIST afl-1.57b.tgz 782637 SHA256 e4166a57e9ef812834c498a1d95f6fcab9b1805e7ba531bc00278cffa680bc15 SHA512 87d29ee22c7d097c672c106cc2eeac2fa26de646f2539e46444640c836887f8a4c7188e7bc30ab43d1a94b340bd55aaeea25171531d09331393395b0156e9cda WHIRLPOOL f7bbfeed279866ab27f5f5064d4a559682fd3ac04a017ae2d75cb1bd7bf9377b0d7e20b57f1217a89586b1e8a4d5bf062e7020a41eac7cb4c8d47d5e5d71d60d
|
||||
DIST afl-1.80b.tgz 797509 SHA256 e042cfe30d03ef6df3ae92619408e236d1a8e9bb6cf94ca107c4519e23161401 SHA512 822e93643f0ca10e9ce3eb726667e70eae1789029385cb5332eef65589f7ef0350e6775108634b642e5b394c46599b1e7943227c93cb1b1b50facf1f9e069095 WHIRLPOOL 9e761ee67321cf8980229f6a0245b3c31c9d195db21ec240adef14113020e360d856a4e8de3ab9abce08205a1f085ad8c1f7826ae20702f54de402c21c2b9b72
|
||||
DIST afl-1.96b.tgz 804864 SHA256 03beb06f8993dcb37d348e53da19ca9d064c83fcedc9d87b0b506c73c310f27c SHA512 a55d89ffe9c89586b70f8a9ab80330cc0511f453d5918045ec06289093ca5321611b08a522bb058e3c16ddc9b5d5ec221ce1cab9819b79f4738cba15f2aadff0 WHIRLPOOL 997efe32fcb0d2c53e9ed9b2bb31dd776ccdafb93990505676bbf04f2a4791ffa814ab8da0a6e4febdfd6184e41497a4509fa9ac3964b5ef6ed7a1c607982bb5
|
||||
|
@ -1,34 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit multilib toolchain-funcs
|
||||
|
||||
DESCRIPTION="american fuzzy lop - compile-time instrumentation fuzzer"
|
||||
HOMEPAGE="http://lcamtuf.coredump.cx/afl/"
|
||||
SRC_URI="http://lcamtuf.coredump.cx/afl/releases//${P}.tgz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="sys-devel/gcc"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_compile() {
|
||||
emake CC="$(tc-getCC)" \
|
||||
PREFIX="/usr" \
|
||||
HELPER_PATH="/usr/$(get_libdir)/afl" \
|
||||
DOC_PATH="/usr/share/doc/${PF}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" \
|
||||
PREFIX="/usr" \
|
||||
HELPER_PATH="/usr/$(get_libdir)/afl" \
|
||||
DOC_PATH="/usr/share/doc/${PF}" \
|
||||
install
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST abook-0.6.0pre2.tar.gz 411412 SHA256 59d444504109dd96816e003b3023175981ae179af479349c34fa70bc12f6d385 SHA512 d1bc437981964a5dd873b12458833c60306d37b36904a04b072cefe7501175933dd7817ca51f8634bbd6722f79f768b39e00b68d0699086d5efaf28d0cbdf1ed WHIRLPOOL fbaed8cc4dff1b7b7786c4f5b4124e94893d59e97b67372b0b1f1cf176a16ef23141c37255589cfb352f1e4993ae69d1f77077f2396aaa2c482e85b3c617fc5f
|
||||
DIST abook-0.6.1.tar.gz 319558 SHA256 f0a90df8694fb34685ecdd45d97db28b88046c15c95e7b0700596028bd8bc0f9 SHA512 993895ef2fd6d98d50db610699f8f0a28112778065ac56484373eb814afd8ab7371201fc21506c090514f4b29570ec229dc62c606ab068301152567e2c47fe66 WHIRLPOOL 5257a6000707ea58f21fa95841edcfcdb8a1f4921fa452b8aefdbd9bd2eecba01078d116d0e79316bde5b484a721640ffc501c0402a6601803c9312e1e4a2e6a
|
||||
|
@ -0,0 +1,47 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
inherit autotools
|
||||
|
||||
MY_P="${P/_/}"
|
||||
DESCRIPTION="Abook is a text-based addressbook program designed to use with mutt mail client"
|
||||
HOMEPAGE="http://abook.sourceforge.net/"
|
||||
SRC_URI="http://abook.sourceforge.net/devel/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
|
||||
IUSE="nls"
|
||||
|
||||
RDEPEND="sys-libs/ncurses
|
||||
sys-libs/readline
|
||||
dev-libs/libvformat
|
||||
nls? ( virtual/libintl )"
|
||||
DEPEND="nls? ( sys-devel/gettext )"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_prepare() {
|
||||
# TODO: do the right thing and find out whats wrong with Makefile.in
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--with-curses \
|
||||
--with-readline \
|
||||
--enable-vformat \
|
||||
$(use_enable nls)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# bug 570428
|
||||
emake CFLAGS="${CFLAGS} -std=gnu89"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
dodoc BUGS ChangeLog FAQ README TODO sample.abookrc
|
||||
}
|
@ -1,3 +1,3 @@
|
||||
DIST carbon-c-relay-0.44.tar.gz 54533 SHA256 424f5eebdfcd8cd42f07495b97c440e9133723966013d63fe3f6d8220bd031dc SHA512 ae0ded77d189c22bab0400922831211f411d47b92bde44f9a4c4208a094a57ac875a52e04ef6297238281bb44c8869f0510b3a3b6dc1c564e02e4f22bb69e268 WHIRLPOOL b7351576d7f1bdb5c0929967faacd6861a10f8d8d3bedebcc9bf7a3f15e0b9ea2d3475ecd8e700e3f2fb190698ea343fcb4530d10522591512f1de9d787a0ab2
|
||||
DIST carbon-c-relay-0.45.tar.gz 63208 SHA256 ba76d93d0448eae64147d580c2767ed42a8a9dd4a6c0f3e15a41276793bc53df SHA512 7a5068a6a1502c80b03c642abb72639de644351edc2967736c6f40939a6e28598727ad7bec9008eb76c3211552d6583f0ec9670e7c32952c0f49f6b4cb9a6085 WHIRLPOOL 089a9a6c3fb40e1bfc680b7002bf9967c4a182ae00616933cd5b3ba9febda20853e716df69d552ade131aa272cd16dafb65d1ba84afeacb4383d87f9e028bf97
|
||||
DIST carbon-c-relay-1.3.tar.gz 69269 SHA256 80003400f0959562e9ada4fb6311c67dcc9bc4c4b5ba75dc10a8b3089826837b SHA512 7734d71944def438b66566ed6cfb94ad1d8d25de016af9c90e145161ce831a7e23f804545f2b711e3faefa8eab24f53d2e76f0fd29a8ea3765f4ce8c55218ebc WHIRLPOOL b9f1c30db5356778e3dc5ee3fbf1c002898708c69e613732bfbe58f1087fdd03f31d601a3094d8e23ee7bf2df21d1f17537649a02832249cfa4e7a4c7d5394be
|
||||
DIST carbon-c-relay-1.4.tar.gz 71367 SHA256 8575be832d204a0c12e4cd793ae05d5c2683974a90e93aeb70e69199b7991d45 SHA512 389d08bccdbd2e566a2580017fb14afd37b0c609f20ecdef526f4810d50c84e06f396a161f0ad4eb7d1810cada9f24640b19afe7a18dd241a16d435cc72d8d0d WHIRLPOOL ad639e96e7589e7cd84e71d4840afeab9f18e768ee98fa9ab6e3d69e4255ad74e5b715e71667eaf330e9a7cc20ce2158058683081bb91785863cbcd5e6a4dccf
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
@ -0,0 +1 @@
|
||||
DIST chkcrontab-1.6.tar.gz 24701 SHA256 be7436d5ece4ad6390365f6edf0f1dc59dfd655a9de3b4699884343ceb150f2e SHA512 249061ecf7c8dc2d2275dcda3048fd00fc2ca85d39dabb2de61a3ab415243bbd1a61222be8c0ddfa66eb36577bb2efb27ba4a0c2a013559dee126c95cc73bd1b WHIRLPOOL 13995293e761930d0d900c3e7fa5b7695fad3416ade96fc34be415a448ca5e5969f5b82889d46041ed801ca2f13e5154a01698d753898ee9027bd9a2c8e6e29f
|
@ -0,0 +1,27 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_4,3_5} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A tool to detect crontab errors"
|
||||
HOMEPAGE="https://github.com/lyda/chkcrontab"
|
||||
SRC_URI="https://github.com/lyda/chkcrontab/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
python_test() {
|
||||
esetup.py test
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
doman doc/${PN}.1
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>proxy-maintainers</herd>
|
||||
<maintainer>
|
||||
<email>hydrapolic@gmail.com</email>
|
||||
<name>Tomas Mozes</name>
|
||||
<description>Proxy maintainer</description>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">lyda/chkcrontab</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -0,0 +1 @@
|
||||
DIST taskd-1.1.0.tar.gz 120115 SHA256 7b8488e687971ae56729ff4e2e5209ff8806cf8cd57718bfd7e521be130621b4 SHA512 df2349c354258fd1b014b1a9c78f68dc10c9e5a48357e282e8a760cf4e4aaf4d36486796ad094ee2b050e7506195b778e3316c90ef543a2f8242de313daa13aa WHIRLPOOL f3247de0ab1ecfed48e6c4e2f2391d370e77b6fb17a4aee5b0824efb1c0e70b725a6d9a544ffb9611d2dcba9956ec0443b0161ca8310f56a41cdd89b99335591
|
@ -0,0 +1,17 @@
|
||||
confirmation=1
|
||||
extensions=/usr/libexec/taskd
|
||||
ip.log=on
|
||||
log=/var/log/taskd/taskd.log
|
||||
pid.file=/run/taskd.pid
|
||||
queue.size=10
|
||||
request.limit=1048576
|
||||
root=/var/lib/taskd
|
||||
server=localhost:53589
|
||||
trust=strict
|
||||
verbose=1
|
||||
# TLS config:
|
||||
#ciphers=
|
||||
#ca.cert=/etc/taskd/tls/ca.pem
|
||||
#server.cert=/etc/taskd/tls/server.crt.pem
|
||||
#server.crl=/etc/taskd/tls/server.crl.pem
|
||||
#server.key=/etc/taskd/tls/server.key.pem
|
@ -0,0 +1 @@
|
||||
TASKDDATA="/var/lib/taskd"
|
@ -0,0 +1,16 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
need="net localmount"
|
||||
command="/usr/bin/taskd"
|
||||
command_args="server --data ${TASKDDATA:-/var/lib/taskd}"
|
||||
pidfile="/run/taskd.pid"
|
||||
start_stop_daemon_args="--user taskd:taskd"
|
||||
command_background=1
|
||||
extra_started_commands="reload"
|
||||
|
||||
reload() {
|
||||
kill -HUP "$(cat $pidfile)"
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
/var/log/taskd/taskd.log {
|
||||
daily
|
||||
missingok
|
||||
rotate 7
|
||||
compress
|
||||
delaycompress
|
||||
copytruncate
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer>
|
||||
<email>mschiff@gentoo.org</email>
|
||||
<name>Marc Schiffbauer</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
@ -0,0 +1,85 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils cmake-utils systemd user
|
||||
|
||||
DESCRIPTION="the server part of Taskwarrior, a command-line todo list manager"
|
||||
HOMEPAGE="http://taskwarrior.org/"
|
||||
SRC_URI="http://taskwarrior.org/download/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="sys-libs/readline:0
|
||||
net-libs/gnutls
|
||||
sys-apps/util-linux"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_configure() {
|
||||
mycmakeargs=(
|
||||
-DTASKD_DOCDIR=share/doc/${PF}
|
||||
)
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
|
||||
systemd_dounit "${S}"/scripts/systemd/taskd.service
|
||||
|
||||
insinto /usr/share/${PN}/pki
|
||||
doins pki/*
|
||||
|
||||
insinto /usr/share/${PN}/mon
|
||||
doins mon/*
|
||||
|
||||
newinitd "${FILESDIR}"/taskd.initd taskd
|
||||
newconfd "${FILESDIR}"/taskd.confd taskd
|
||||
|
||||
grep ^TASKDDATA= "${FILESDIR}"/taskd.confd > 90taskd
|
||||
doenvd 90taskd
|
||||
|
||||
dodir /etc/taskd
|
||||
keepdir /usr/libexec/taskd
|
||||
|
||||
diropts -m 0750
|
||||
dodir /var/lib/taskd
|
||||
keepdir /var/log/taskd
|
||||
|
||||
diropts -m 0700
|
||||
keepdir /var/lib/taskd/orgs /etc/taskd/tls
|
||||
|
||||
insopts -m0600
|
||||
insinto /etc/taskd
|
||||
doins "${FILESDIR}"/config
|
||||
|
||||
dosym /etc/taskd/config /var/lib/taskd/config
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}"/taskd.logrotate taskd
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
enewgroup taskd
|
||||
enewuser taskd -1 -1 /var/lib/taskd taskd
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
chown taskd:taskd /var/lib/taskd{,/orgs} /var/log/taskd /etc/taskd/{config,tls}
|
||||
|
||||
einfo ""
|
||||
einfo "For configuration see 'man taskdrc' and edit /etc/taskd/config"
|
||||
einfo "You will need to configure certificates first in order to use taskd"
|
||||
einfo ""
|
||||
ewarn ""
|
||||
ewarn "Do not use 'taskd init' as this will replace the config file and set"
|
||||
ewarn "default but unsuitable paths"
|
||||
ewarn ""
|
||||
ewarn "In order to manage taskd via 'taskd' either relogin or run 'source /etc/profile'"
|
||||
ewarn ""
|
||||
}
|
@ -0,0 +1,71 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
PLOCALES="de ru"
|
||||
inherit bash-completion-r1 l10n systemd
|
||||
|
||||
DESCRIPTION="Search and query ebuilds, portage incl. local settings, ext. overlays and more"
|
||||
HOMEPAGE="https://github.com/vaeth/eix/"
|
||||
SRC_URI="https://github.com/vaeth/eix/releases/download/v${PV}/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x86-solaris"
|
||||
IUSE="debug +dep doc nls optimization security strong-optimization strong-security sqlite swap-remote tools"
|
||||
|
||||
BOTHDEPEND="sqlite? ( >=dev-db/sqlite-3 )
|
||||
nls? ( virtual/libintl )"
|
||||
RDEPEND="${BOTHDEPEND}
|
||||
app-shells/push"
|
||||
DEPEND="${BOTHDEPEND}
|
||||
app-arch/xz-utils
|
||||
nls? ( sys-devel/gettext )"
|
||||
|
||||
pkg_setup() {
|
||||
case " ${REPLACING_VERSIONS}" in
|
||||
*\ 0.[0-9].*|*\ 0.1[0-9].*|*\ 0.2[0-4].*|*\ 0.25.0*)
|
||||
local eixcache="${EROOT}/var/cache/${PN}"
|
||||
test -f "${eixcache}" && rm -f -- "${eixcache}";;
|
||||
esac
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e "s'/'${EPREFIX}/'" -- "${S}"/tmpfiles.d/eix.conf || die
|
||||
eapply_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf $(use_with sqlite) $(use_with doc extra-doc) \
|
||||
$(use_enable nls) $(use_enable tools separate-tools) \
|
||||
$(use_enable security) $(use_enable optimization) \
|
||||
$(use_enable strong-security) \
|
||||
$(use_enable strong-optimization) $(use_enable debug debugging) \
|
||||
$(use_enable swap-remote) \
|
||||
$(use_with prefix always-accept-keywords) \
|
||||
$(use_with dep dep-default) \
|
||||
--with-zsh-completion \
|
||||
--with-portage-rootpath="${ROOTPATH}" \
|
||||
--with-eprefix-default="${EPREFIX}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
dobashcomp bash/eix
|
||||
systemd_dotmpfilesd tmpfiles.d/eix.conf
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
test -d "${EROOT}var/cache/${PN}" || {
|
||||
mkdir "${EROOT}var/cache/${PN}"
|
||||
use prefix || chown portage:portage "${EROOT}var/cache/${PN}"
|
||||
}
|
||||
local obs="${EROOT}var/cache/eix.previous"
|
||||
! test -f "${obs}" || ewarn "Found obsolete ${obs}, please remove it"
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
[ -n "${REPLACED_BY_VERSION}" ] || rm -rf -- "${EROOT}var/cache/${PN}"
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST push-1.5.tar.gz 1971 SHA256 7c9068a619bcc49e3e13f819e23e1c05464729df0529753557f23f65e922fdad SHA512 77f4afd1a8226b0b4104008fcea2a61e5c9a7930b08266e069c387c806ef86e8d5641d70ece6dfd02557c956fc916134551d10777e5730973657d767370f8a26 WHIRLPOOL e1d71d7d9369bf23fe9046a34f7c9cd4f7ff79b4db3e13a9cef089113e31f7db2ecb6ff13e899e1db7726359b68260776723f73201d3db0472d267b8db7515b2
|
||||
DIST push-1.6.tar.gz 1955 SHA256 713dea172ede55971ff82da932782503c2aa6703eba73c1ac317ec4c8eb22e80 SHA512 4623f51249138bacb7251fb5d5d1ae8dd070de7ce628e42b6eed90a4b6ffd36d28eb58b116f5b1833bc1affa8db539da9b94d104ffe03c6bd1e294b56c393c86 WHIRLPOOL 787f65542e92fd10c411969d03ec17b45a90b35e9c8e17b9fb3e732fb1d97813f04c3a03cc329a469a5bea2a194f879f4c600e2e534dd8c778f7f712d4c171b1
|
||||
DIST push-1.8.tar.gz 1942 SHA256 99ae56c932b59b8b74c6a6d0972dfe5b65458d6871581168918264c5aa50bdbd SHA512 518568fc72d161d3abaea0a0c529d94fc9ad6dc46d18d300990de1367617e095befb8436e69267ebc11bd4dcbbbd9bca6375fc184666e442af6e2eaa68a992e5 WHIRLPOOL 5a763560b8afd4593aa1d0afc8f3ed5b053041c63d5aa742e485c25046191e8c733cdaf265117e23726c2c7cc8aeb87d3858a6228932192c2ee87ff4682e626d
|
||||
|
@ -0,0 +1,21 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
inherit vcs-snapshot
|
||||
|
||||
DESCRIPTION="A POSIX shell function to treat a variable like an array, quoting args"
|
||||
HOMEPAGE="https://github.com/vaeth/push/"
|
||||
SRC_URI="https://github.com/vaeth/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
src_install() {
|
||||
insinto /usr/bin
|
||||
doins push.sh
|
||||
dodoc README
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST xiphos-3.1.5.tar.gz 6720533 SHA256 2887426908e269f25d2d191be445112027b2b7e80356823d4942b1803a359d8c SHA512 2183125a1076660cf0448ee5f2df3ded9ee58c389716a8ceefe0185989d6c8267f19082add3fa8a7a9da57693f82b47e26c0fe77154e961b84234afbdf5b3a1d WHIRLPOOL 6a66671ab99cc62f0beb6bdfffcec2ff1048cae66ad6304fd788d005c0d0bf81273856af6373eba0bdf5fd6df0176894e1a99fe633fcd1fbad46c78b89848bbf
|
||||
DIST xiphos-3.2.2.tar.gz 7088153 SHA256 2326efd2bad1b27d6c4231cba68077f71f91ee31f73bdada1cbe2c3bd11eadc6 SHA512 14dd33f99217de4062e6ff6c4030fce748f57bc7e4a984aa7927acb7779f3720da21a51eb2943d5be93eac702dcc32b023f9e39a91acb7182ce59b3c90941dbf WHIRLPOOL 488f3fb65b591a9122cc8fc8a1c118cb461ce1890205d53d5957633bb8ff240166616e4de3169afccf5799fb2db40e1e90ac8cef61f3f133e135dd9578227de8
|
||||
DIST xiphos-4.0.4-20150830.tar.gz 8040173 SHA256 413bb8acb444946ccde1fb9fcfa3ff4bdb622cb56995b557f3215fab42193f20 SHA512 337503ee4cc6139ec8724266f3c9c0ce5d17518c48f7aab03ea8213165054854c8dd7317ff9e1b9097ece12292b52f1c8002684c00c5a7b43c5b4810edd6ecda WHIRLPOOL a1795b6fe5c978fcfc2c1f17f48844797bcf6e07a272181168717807dfd0a7b6e9359380a21fa330c539f1197c54c7e7293457f7733ab55d9dcca274ba044991
|
||||
|
@ -0,0 +1,89 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
inherit flag-o-matic gnome2-utils python-single-r1 toolchain-funcs
|
||||
|
||||
MY_PV="${PV}-20150830"
|
||||
MY_P="${PN}-${MY_PV}"
|
||||
DESCRIPTION="A bible study frontend for Sword (formerly known as GnomeSword)"
|
||||
HOMEPAGE="http://xiphos.org/"
|
||||
SRC_URI="mirror://sourceforge/gnomesword/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2 FDL-1.1 LGPL-2 MIT MPL-1.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="dbus debug"
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
>=app-text/sword-1.7.4
|
||||
>=dev-libs/glib-2[${PYTHON_USEDEP}]
|
||||
dev-libs/libxml2[${PYTHON_USEDEP}]
|
||||
gnome-base/gconf[${PYTHON_USEDEP}]
|
||||
gnome-extra/gtkhtml:4.0
|
||||
>=gnome-extra/libgsf-1.14
|
||||
net-libs/webkit-gtk:3
|
||||
x11-libs/gtk+:3
|
||||
dbus? ( dev-libs/dbus-glib )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
app-text/docbook2X
|
||||
app-text/gnome-doc-utils[${PYTHON_USEDEP}]
|
||||
app-text/rarian
|
||||
dev-libs/libxslt[${PYTHON_USEDEP}]
|
||||
dev-util/intltool
|
||||
net-libs/biblesync
|
||||
virtual/pkgconfig
|
||||
sys-devel/gettext
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
sed -i \
|
||||
-e '/FLAGS_DEBUG/s:-g:-Wall:' \
|
||||
-e '/FLAGS_RELEASE/s:-O2:-Wall:' \
|
||||
wscript || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
append-cppflags -DNO_SWORD_SET_RENDER_NOTE_NUMBERS=1
|
||||
|
||||
tc-export AR CC CPP CXX RANLIB
|
||||
|
||||
CCFLAGS="${CFLAGS}" \
|
||||
LINKFLAGS="${LDFLAGS}" \
|
||||
SGML2MAN="$(type -P docbook2man.pl)" \
|
||||
./waf -v \
|
||||
--prefix=/usr \
|
||||
--gtk=3 \
|
||||
--debug-level=$(use debug && echo debug || echo release) \
|
||||
$(use dbus || echo --disable-dbus) \
|
||||
configure || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
./waf -v build || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
./waf -v --destdir="${D}" install || die
|
||||
|
||||
doman ${PN}.1
|
||||
dodoc AUTHORS ChangeLog README RELEASE-NOTES TODO
|
||||
|
||||
dodoc Xiphos.ogg
|
||||
docompress -x /usr/share/doc/${PF}/Xiphos.ogg
|
||||
|
||||
rm -rf "${ED}"/usr/share/doc/${PN}
|
||||
}
|
||||
|
||||
pkg_preinst() { gnome2_icon_savelist; }
|
||||
pkg_postinst() { gnome2_icon_cache_update; }
|
||||
pkg_postrm() { gnome2_icon_cache_update; }
|
@ -1,13 +0,0 @@
|
||||
--- mongodb-src-r2.2.0/SConstruct.old 2012-10-09 12:41:25.000000000 -0400
|
||||
+++ mongodb-src-r2.2.0/SConstruct 2012-10-09 12:41:41.000000000 -0400
|
||||
@@ -171,8 +171,8 @@
|
||||
add_option( "extrapathdyn", "comma separated list of add'l paths (--extrapath /opt/foo/,/foo) dynamic linking" , 1 , True )
|
||||
add_option( "extralib", "comma separated list of libraries (--extralib js_static,readline" , 1 , True )
|
||||
|
||||
-add_option( "boost-compiler", "compiler used for boost (gcc41)" , 1 , True , "boostCompiler" )
|
||||
-add_option( "boost-version", "boost version for linking(1_38)" , 1 , True , "boostVersion" )
|
||||
+add_option( "boost-compiler", "compiler used for boost (gcc41)" , 1 , False , "boostCompiler" )
|
||||
+add_option( "boost-version", "boost version for linking(1_38)" , 1 , False , "boostVersion" )
|
||||
|
||||
add_option( "no-glibc-check" , "don't check for new versions of glibc" , 0 , False )
|
||||
|
@ -1,33 +0,0 @@
|
||||
--- a/src/mongo/client/sasl_client_session.cpp 2014-10-15 00:40:29.000000000 +0400
|
||||
+++ b/src/mongo/client/sasl_client_session.cpp 2015-02-07 18:56:02.287762467 +0300
|
||||
@@ -29,17 +29,26 @@
|
||||
* doesn't initialize the library for us.
|
||||
*/
|
||||
|
||||
- void* saslOurMalloc(unsigned long sz) {
|
||||
+// Version 2.1.26 is the first version to use size_t in the allocator signatures
|
||||
+#if (SASL_VERSION_FULL >= ((2 << 16) | (1 << 8) | 26))
|
||||
+ typedef size_t SaslAllocSize;
|
||||
+#else
|
||||
+ typedef unsigned long SaslAllocSize;
|
||||
+#endif
|
||||
+
|
||||
+ typedef int(*SaslCallbackFn)();
|
||||
+
|
||||
+ void* saslOurMalloc(SaslAllocSize sz) {
|
||||
return ourmalloc(sz);
|
||||
}
|
||||
|
||||
- void* saslOurCalloc(unsigned long count, unsigned long size) {
|
||||
+ void* saslOurCalloc(SaslAllocSize count, SaslAllocSize size) {
|
||||
void* ptr = calloc(count, size);
|
||||
- if (!ptr) printStackAndExit(0);
|
||||
+ if (!ptr) abort();
|
||||
return ptr;
|
||||
}
|
||||
|
||||
- void* saslOurRealloc(void* ptr, unsigned long sz) {
|
||||
+ void* saslOurRealloc(void* ptr, SaslAllocSize sz) {
|
||||
return ourrealloc(ptr, sz);
|
||||
}
|
||||
|
@ -1,23 +0,0 @@
|
||||
--- b/SConstruct 2014-09-01 19:12:24.289585592 +0200
|
||||
+++ a/SConstruct 2014-09-01 19:14:12.550312261 +0200
|
||||
@@ -704,7 +704,6 @@
|
||||
# -Winvalid-pch Warn if a precompiled header (see Precompiled Headers) is found in the search path but can't be used.
|
||||
env.Append( CCFLAGS=["-fPIC",
|
||||
"-fno-strict-aliasing",
|
||||
- "-ggdb",
|
||||
"-pthread",
|
||||
"-Wall",
|
||||
"-Wsign-compare",
|
||||
@@ -719,9 +718,10 @@
|
||||
env.Append( CCFLAGS=["-fno-builtin-memcmp"] ) # glibc's memcmp is faster than gcc's
|
||||
|
||||
env.Append( CPPDEFINES=["_FILE_OFFSET_BITS=64"] )
|
||||
- env.Append( CXXFLAGS=["-Wnon-virtual-dtor", "-Woverloaded-virtual"] )
|
||||
+ env.Append( CXXFLAGS=os.environ['CXXFLAGS'] )
|
||||
+ env.Append( LINKFLAGS=os.environ['LDFLAGS'] )
|
||||
env.Append( LINKFLAGS=["-fPIC", "-pthread", "-rdynamic"] )
|
||||
- env.Append( LIBS=[] )
|
||||
+ env.Append( LIBS=['pcre', 'pcrecpp', 'snappy'] )
|
||||
|
||||
#make scons colorgcc friendly
|
||||
for key in ('HOME', 'TERM'):
|
@ -1,14 +0,0 @@
|
||||
# Mongodb essentials
|
||||
MONGODB_EXEC="/usr/bin/mongod"
|
||||
MONGODB_RUN="/var/run/mongodb"
|
||||
MONGODB_DATA="/var/lib/mongodb"
|
||||
MONGODB_USER="mongodb"
|
||||
|
||||
# Listen to specified IP, comment this to listen to all
|
||||
MONGODB_IP="127.0.0.1"
|
||||
|
||||
# Listen to specified port
|
||||
MONGODB_PORT="27017"
|
||||
|
||||
# Set extra options here, such as disabling the admin web server
|
||||
MONGODB_OPTIONS="--journal"
|
@ -1,40 +0,0 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
depend() {
|
||||
use net
|
||||
}
|
||||
|
||||
start() {
|
||||
checkpath -d -m 0750 -o "${MONGODB_USER}":mongodb "${MONGODB_RUN}"
|
||||
|
||||
# Listen to MONGODB_IP if configured
|
||||
[ -z "${MONGODB_IP}" ] || MONGODB_OPTIONS="--bind_ip ${MONGODB_IP} ${MONGODB_OPTIONS}"
|
||||
|
||||
# Baselayout-1 user should use --chuid instead of --user
|
||||
local USEROPT="--user"
|
||||
if [ ! -f /etc/init.d/sysfs ]; then
|
||||
USEROPT="--chuid"
|
||||
fi
|
||||
|
||||
ebegin "Starting ${SVCNAME}"
|
||||
start-stop-daemon --background --start --make-pidfile \
|
||||
--pidfile ${MONGODB_RUN:-/var/run/mongodb}/${SVCNAME}.pid \
|
||||
${USEROPT} ${MONGODB_USER:-mongodb} \
|
||||
--exec ${MONGODB_EXEC:-/usr/bin/mongod} \
|
||||
-- \
|
||||
--port ${MONGODB_PORT:-27017} \
|
||||
--dbpath ${MONGODB_DATA:-/var/lib/mongodb} \
|
||||
--unixSocketPrefix ${MONGODB_RUN:-/var/run/mongodb} \
|
||||
--logappend --logpath /var/log/mongodb/${SVCNAME}.log \
|
||||
${MONGODB_OPTIONS}
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping ${SVCNAME}"
|
||||
start-stop-daemon --stop --pidfile ${MONGODB_RUN:-/var/run/mongodb}/${SVCNAME}.pid
|
||||
eend $?
|
||||
}
|
@ -1,150 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=4
|
||||
SCONS_MIN_VERSION="1.2.0"
|
||||
CHECKREQS_DISK_BUILD="2400M"
|
||||
CHECKREQS_DISK_USR="512M"
|
||||
|
||||
inherit eutils flag-o-matic multilib pax-utils scons-utils systemd user versionator check-reqs
|
||||
|
||||
MY_P=${PN}-src-r${PV/_rc/-rc}
|
||||
|
||||
DESCRIPTION="A high-performance, open source, schema-free document-oriented database"
|
||||
HOMEPAGE="http://www.mongodb.org"
|
||||
SRC_URI="http://downloads.mongodb.org/src/${MY_P}.tar.gz
|
||||
mms-agent? ( https://dev.gentoo.org/~ultrabug/20140409-mms-monitoring-agent.zip )"
|
||||
|
||||
LICENSE="AGPL-3 Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="kerberos mms-agent sharedclient spidermonkey ssl static-libs"
|
||||
|
||||
PDEPEND="mms-agent? ( dev-python/pymongo app-arch/unzip )"
|
||||
RDEPEND="
|
||||
>=dev-libs/boost-1.50[threads(+)]
|
||||
dev-libs/libpcre[cxx]
|
||||
dev-util/google-perftools[-minimal]
|
||||
net-libs/libpcap
|
||||
app-arch/snappy
|
||||
ssl? ( >=dev-libs/openssl-1.0.1c )"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-libs/readline
|
||||
sys-libs/ncurses
|
||||
kerberos? ( dev-libs/cyrus-sasl[kerberos] )"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup mongodb
|
||||
enewuser mongodb -1 -1 /var/lib/${PN} mongodb
|
||||
|
||||
scons_opts=" --disable-warnings-as-errors --cc=$(tc-getCC) --cxx=$(tc-getCXX)"
|
||||
scons_opts+=" --use-system-tcmalloc"
|
||||
scons_opts+=" --use-system-pcre"
|
||||
scons_opts+=" --use-system-snappy"
|
||||
scons_opts+=" --use-system-boost"
|
||||
|
||||
if use prefix; then
|
||||
scons_opts+=" --cpppath=${EPREFIX}/usr/include"
|
||||
scons_opts+=" --libpath=${EPREFIX}/usr/$(get_libdir)"
|
||||
fi
|
||||
|
||||
if use kerberos; then
|
||||
scons_opts+=" --use-sasl-client"
|
||||
fi
|
||||
|
||||
if use sharedclient; then
|
||||
scons_opts+=" --sharedclient"
|
||||
fi
|
||||
|
||||
if use spidermonkey; then
|
||||
scons_opts+=" --usesm"
|
||||
else
|
||||
scons_opts+=" --usev8"
|
||||
fi
|
||||
|
||||
if use ssl; then
|
||||
scons_opts+=" --ssl"
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${PN}-2.4.11-fix-scons.patch"
|
||||
epatch "${FILESDIR}/${PN}-2.2-r1-fix-boost.patch"
|
||||
epatch "${FILESDIR}/${PN}-2.4-fix-v8-pythonpath.patch"
|
||||
epatch "${FILESDIR}/${PN}-2.4-fix-sasl.patch"
|
||||
|
||||
# bug #462606
|
||||
sed -i -e "s@\$INSTALL_DIR/lib@\$INSTALL_DIR/$(get_libdir)@g" src/SConscript.client || die
|
||||
|
||||
# bug #482576
|
||||
sed -i -e "/-Werror/d" src/third_party/v8/SConscript || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
escons ${scons_opts} all
|
||||
}
|
||||
|
||||
src_install() {
|
||||
escons ${scons_opts} --full --nostrip install --prefix="${ED}"/usr
|
||||
|
||||
use static-libs || find "${ED}"/usr/ -type f -name "*.a" -delete
|
||||
|
||||
if ! use spidermonkey; then
|
||||
pax-mark m "${ED}"/usr/bin/{mongo,mongod}
|
||||
fi
|
||||
|
||||
for x in /var/{lib,log}/${PN}; do
|
||||
keepdir "${x}"
|
||||
fowners mongodb:mongodb "${x}"
|
||||
done
|
||||
|
||||
doman debian/mongo*.1
|
||||
dodoc README docs/building.md
|
||||
|
||||
newinitd "${FILESDIR}/${PN}.initd-r1" ${PN}
|
||||
newconfd "${FILESDIR}/${PN}.confd" ${PN}
|
||||
newinitd "${FILESDIR}/${PN/db/s}.initd-r1" ${PN/db/s}
|
||||
newconfd "${FILESDIR}/${PN/db/s}.confd" ${PN/db/s}
|
||||
systemd_dounit "${FILESDIR}"/${PN}.service
|
||||
insinto /etc
|
||||
doins "${FILESDIR}"/${PN}.conf
|
||||
|
||||
insinto /etc/logrotate.d/
|
||||
newins "${FILESDIR}/${PN}.logrotate" ${PN}
|
||||
|
||||
if use mms-agent; then
|
||||
local MY_PN="mms-agent"
|
||||
local MY_D="/opt/${MY_PN}"
|
||||
insinto ${MY_D}
|
||||
doins "${WORKDIR}/${MY_PN}/"*
|
||||
fowners -R mongodb:mongodb ${MY_D}
|
||||
newinitd "${FILESDIR}/${MY_PN}.initd-r1" ${MY_PN}
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# wrt bug #461466
|
||||
if [[ "$(get_libdir)" == "lib64" ]]; then
|
||||
rmdir "${ED}"/usr/lib/ &>/dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
escons ${scons_opts} test
|
||||
"${S}"/test --dbpath=unittest || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ ${REPLACING_VERSIONS} < 2.4 ]]; then
|
||||
ewarn "You just upgraded from a previous version of mongodb !"
|
||||
ewarn "Make sure you run 'mongod --upgrade' before using this version."
|
||||
fi
|
||||
elog "Journaling is now enabled by default, see /etc/conf.d/${PN}"
|
||||
if use mms-agent; then
|
||||
elog "You have to configure MMS Agent yourself :"
|
||||
elog "Edit the settings.py file in the /opt/mms-agent/ folder."
|
||||
fi
|
||||
}
|
@ -1,150 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=4
|
||||
SCONS_MIN_VERSION="1.2.0"
|
||||
CHECKREQS_DISK_BUILD="2400M"
|
||||
CHECKREQS_DISK_USR="512M"
|
||||
|
||||
inherit eutils flag-o-matic multilib pax-utils scons-utils systemd user versionator check-reqs
|
||||
|
||||
MY_P=${PN}-src-r${PV/_rc/-rc}
|
||||
|
||||
DESCRIPTION="A high-performance, open source, schema-free document-oriented database"
|
||||
HOMEPAGE="http://www.mongodb.org"
|
||||
SRC_URI="http://downloads.mongodb.org/src/${MY_P}.tar.gz
|
||||
mms-agent? ( https://dev.gentoo.org/~ultrabug/20140409-mms-monitoring-agent.zip )"
|
||||
|
||||
LICENSE="AGPL-3 Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="kerberos mms-agent sharedclient spidermonkey ssl static-libs"
|
||||
|
||||
PDEPEND="mms-agent? ( dev-python/pymongo app-arch/unzip )"
|
||||
RDEPEND="
|
||||
>=dev-libs/boost-1.50[threads(+)]
|
||||
dev-libs/libpcre[cxx]
|
||||
dev-util/google-perftools[-minimal]
|
||||
net-libs/libpcap
|
||||
app-arch/snappy
|
||||
ssl? ( >=dev-libs/openssl-1.0.1c )"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-libs/readline
|
||||
sys-libs/ncurses
|
||||
kerberos? ( dev-libs/cyrus-sasl[kerberos] )"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup mongodb
|
||||
enewuser mongodb -1 -1 /var/lib/${PN} mongodb
|
||||
|
||||
scons_opts=" --disable-warnings-as-errors --cc=$(tc-getCC) --cxx=$(tc-getCXX)"
|
||||
scons_opts+=" --use-system-tcmalloc"
|
||||
scons_opts+=" --use-system-pcre"
|
||||
scons_opts+=" --use-system-snappy"
|
||||
scons_opts+=" --use-system-boost"
|
||||
|
||||
if use prefix; then
|
||||
scons_opts+=" --cpppath=${EPREFIX}/usr/include"
|
||||
scons_opts+=" --libpath=${EPREFIX}/usr/$(get_libdir)"
|
||||
fi
|
||||
|
||||
if use kerberos; then
|
||||
scons_opts+=" --use-sasl-client"
|
||||
fi
|
||||
|
||||
if use sharedclient; then
|
||||
scons_opts+=" --sharedclient"
|
||||
fi
|
||||
|
||||
if use spidermonkey; then
|
||||
scons_opts+=" --usesm"
|
||||
else
|
||||
scons_opts+=" --usev8"
|
||||
fi
|
||||
|
||||
if use ssl; then
|
||||
scons_opts+=" --ssl"
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${PN}-2.4.11-fix-scons.patch"
|
||||
epatch "${FILESDIR}/${PN}-2.2-r1-fix-boost.patch"
|
||||
epatch "${FILESDIR}/${PN}-2.4-fix-v8-pythonpath.patch"
|
||||
epatch "${FILESDIR}/${PN}-2.4-fix-sasl.patch"
|
||||
|
||||
# bug #462606
|
||||
sed -i -e "s@\$INSTALL_DIR/lib@\$INSTALL_DIR/$(get_libdir)@g" src/SConscript.client || die
|
||||
|
||||
# bug #482576
|
||||
sed -i -e "/-Werror/d" src/third_party/v8/SConscript || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
escons ${scons_opts} all
|
||||
}
|
||||
|
||||
src_install() {
|
||||
escons ${scons_opts} --full --nostrip install --prefix="${ED}"/usr
|
||||
|
||||
use static-libs || find "${ED}"/usr/ -type f -name "*.a" -delete
|
||||
|
||||
if ! use spidermonkey; then
|
||||
pax-mark m "${ED}"/usr/bin/{mongo,mongod}
|
||||
fi
|
||||
|
||||
for x in /var/{lib,log}/${PN}; do
|
||||
keepdir "${x}"
|
||||
fowners mongodb:mongodb "${x}"
|
||||
done
|
||||
|
||||
doman debian/mongo*.1
|
||||
dodoc README docs/building.md
|
||||
|
||||
newinitd "${FILESDIR}/${PN}.initd-r1" ${PN}
|
||||
newconfd "${FILESDIR}/${PN}.confd" ${PN}
|
||||
newinitd "${FILESDIR}/${PN/db/s}.initd-r1" ${PN/db/s}
|
||||
newconfd "${FILESDIR}/${PN/db/s}.confd" ${PN/db/s}
|
||||
systemd_dounit "${FILESDIR}"/${PN}.service
|
||||
insinto /etc
|
||||
doins "${FILESDIR}"/${PN}.conf
|
||||
|
||||
insinto /etc/logrotate.d/
|
||||
newins "${FILESDIR}/${PN}.logrotate" ${PN}
|
||||
|
||||
if use mms-agent; then
|
||||
local MY_PN="mms-agent"
|
||||
local MY_D="/opt/${MY_PN}"
|
||||
insinto ${MY_D}
|
||||
doins "${WORKDIR}/${MY_PN}/"*
|
||||
fowners -R mongodb:mongodb ${MY_D}
|
||||
newinitd "${FILESDIR}/${MY_PN}.initd-r1" ${MY_PN}
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# wrt bug #461466
|
||||
if [[ "$(get_libdir)" == "lib64" ]]; then
|
||||
rmdir "${ED}"/usr/lib/ &>/dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
escons ${scons_opts} test
|
||||
"${S}"/test --dbpath=unittest || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ ${REPLACING_VERSIONS} < 2.4 ]]; then
|
||||
ewarn "You just upgraded from a previous version of mongodb !"
|
||||
ewarn "Make sure you run 'mongod --upgrade' before using this version."
|
||||
fi
|
||||
elog "Journaling is now enabled by default, see /etc/conf.d/${PN}"
|
||||
if use mms-agent; then
|
||||
elog "You have to configure MMS Agent yourself :"
|
||||
elog "Edit the settings.py file in the /opt/mms-agent/ folder."
|
||||
fi
|
||||
}
|
@ -0,0 +1,185 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit java-vm-2 multilib prefix toolchain-funcs versionator
|
||||
|
||||
dist="https://dev.gentoo.org/~chewi/distfiles"
|
||||
TARBALL_VERSION="${PV}"
|
||||
|
||||
DESCRIPTION="A Gentoo-made binary build of the IcedTea JDK"
|
||||
HOMEPAGE="http://icedtea.classpath.org"
|
||||
SRC_URI="doc? ( ${dist}/${PN}-doc-${TARBALL_VERSION}.tar.xz )
|
||||
source? ( ${dist}/${PN}-src-${TARBALL_VERSION}.tar.xz )"
|
||||
|
||||
for arch in amd64 arm ppc ppc64 x86; do
|
||||
SRC_URI+="
|
||||
${arch}? (
|
||||
${dist}/${PN}-core-${TARBALL_VERSION}-${arch}.tar.xz
|
||||
examples? ( ${dist}/${PN}-examples-${TARBALL_VERSION}-${arch}.tar.xz )
|
||||
)"
|
||||
done
|
||||
|
||||
LICENSE="GPL-2-with-linking-exception"
|
||||
SLOT="7"
|
||||
KEYWORDS="-* ~amd64 ~arm ~ppc ~ppc64 ~x86"
|
||||
|
||||
IUSE="+alsa cjk +cups doc examples +gtk headless-awt nsplugin nss pulseaudio selinux source webstart"
|
||||
REQUIRED_USE="gtk? ( !headless-awt ) nsplugin? ( !headless-awt )"
|
||||
|
||||
RESTRICT="preserve-libs strip"
|
||||
QA_PREBUILT="opt/.*"
|
||||
|
||||
# gsettings-desktop-schemas is needed for native proxy support. #431972
|
||||
RDEPEND=">=dev-libs/glib-2.42:2
|
||||
>=dev-libs/nss-3.16.1-r1
|
||||
>=dev-libs/nspr-4.10
|
||||
>=gnome-base/gsettings-desktop-schemas-3.12.2
|
||||
media-fonts/dejavu
|
||||
>=media-libs/fontconfig-2.11:1.0
|
||||
>=media-libs/freetype-2.5.5:2
|
||||
>=media-libs/lcms-2.6:2
|
||||
>=sys-devel/gcc-4.9.3
|
||||
>=sys-libs/glibc-2.21
|
||||
>=sys-libs/zlib-1.2.8-r1
|
||||
virtual/jpeg:62
|
||||
alsa? ( >=media-libs/alsa-lib-1.0 )
|
||||
!headless-awt? (
|
||||
>=media-libs/giflib-4.1.6-r1
|
||||
media-libs/libpng:0/16
|
||||
>=x11-libs/libX11-1.6
|
||||
>=x11-libs/libXext-1.3
|
||||
>=x11-libs/libXi-1.7
|
||||
>=x11-libs/libXrender-0.9.8
|
||||
>=x11-libs/libXtst-1.2
|
||||
)
|
||||
cjk? (
|
||||
media-fonts/arphicfonts
|
||||
media-fonts/baekmuk-fonts
|
||||
media-fonts/lklug
|
||||
media-fonts/lohit-fonts
|
||||
media-fonts/sazanami
|
||||
)
|
||||
cups? ( >=net-print/cups-2.0 )
|
||||
gtk? (
|
||||
>=dev-libs/atk-2.16.0
|
||||
>=x11-libs/cairo-1.14.2
|
||||
x11-libs/gdk-pixbuf:2
|
||||
>=x11-libs/gtk+-2.24:2
|
||||
>=x11-libs/pango-1.36
|
||||
)
|
||||
selinux? ( sec-policy/selinux-java )"
|
||||
|
||||
DEPEND="!arm? ( dev-util/patchelf )"
|
||||
|
||||
PDEPEND="webstart? ( dev-java/icedtea-web:0[icedtea7(+)] )
|
||||
nsplugin? ( dev-java/icedtea-web:0[icedtea7(+),nsplugin] )
|
||||
pulseaudio? ( dev-java/icedtea-sound )"
|
||||
|
||||
pkg_pretend() {
|
||||
if [[ "$(tc-is-softfloat)" != "no" ]]; then
|
||||
die "These binaries require a hardfloat system."
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
if ! use alsa; then
|
||||
rm -v jre/lib/$(get_system_arch)/libjsoundalsa.* || die
|
||||
fi
|
||||
|
||||
if use headless-awt; then
|
||||
rm -vr jre/lib/$(get_system_arch)/{xawt,libsplashscreen.*} \
|
||||
{,jre/}bin/policytool bin/appletviewer || die
|
||||
fi
|
||||
|
||||
if ! use gtk; then
|
||||
rm -v jre/lib/$(get_system_arch)/libjavagtk.* || die
|
||||
fi
|
||||
|
||||
# NSS is already required because of SunEC. The nss flag in the
|
||||
# icedtea package just comments or uncomments this line.
|
||||
sed -i "/=sun\.security\.pkcs11\.SunPKCS11/s/^#*$(usex nss '/' '/#')/" jre/lib/security/java.security || die
|
||||
|
||||
if [[ -n "${EPREFIX}" ]]; then
|
||||
# The binaries are built on a non-prefixed system so the
|
||||
# fontconfig needs to have prefixes inserted.
|
||||
sed -i 's:=/:=@GENTOO_PORTAGE_EPREFIX@/:' jre/lib/fontconfig.Gentoo.properties || die
|
||||
eprefixify jre/lib/fontconfig.Gentoo.properties
|
||||
fi
|
||||
|
||||
# Fix the RPATHs, except on arm.
|
||||
# https://bugs.gentoo.org/show_bug.cgi?id=543658#c3
|
||||
# https://github.com/NixOS/patchelf/issues/8
|
||||
if use arm; then
|
||||
ewarn "The RPATHs on these binaries are normally modified to avoid"
|
||||
ewarn "conflicts with an icedtea installation built from source. This"
|
||||
ewarn "is currently not possible on ARM so please refrain from"
|
||||
ewarn "installing dev-java/icedtea on the same system."
|
||||
else
|
||||
local old="/usr/$(get_libdir)/icedtea${SLOT}"
|
||||
local new="${EPREFIX}/opt/${P}"
|
||||
local elf rpath
|
||||
|
||||
for elf in $(find -type f -executable ! -name "*.cgi" || die); do
|
||||
rpath=$(patchelf --print-rpath "${elf}" || die "patchelf ${elf}")
|
||||
|
||||
if [[ -n "${rpath}" ]]; then
|
||||
patchelf --set-rpath "${rpath//${old}/${new}}" "${elf}" || die "patchelf ${elf}"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local dest="/opt/${P}"
|
||||
local ddest="${ED}${dest#/}"
|
||||
dodir "${dest}"
|
||||
|
||||
# doins doesn't preserve executable bits.
|
||||
cp -pRP bin include jre lib man "${ddest}" || die
|
||||
|
||||
dodoc doc/{ASSEMBLY_EXCEPTION,AUTHORS,NEWS,README,THIRD_PARTY_README}
|
||||
use doc && dodoc -r doc/html
|
||||
|
||||
if use examples; then
|
||||
cp -pRP demo sample "${ddest}" || die
|
||||
fi
|
||||
|
||||
if use source; then
|
||||
cp src.zip "${ddest}" || die
|
||||
fi
|
||||
|
||||
if use webstart || use nsplugin; then
|
||||
dosym /usr/libexec/icedtea-web/itweb-settings "${dest}/bin/itweb-settings"
|
||||
dosym /usr/libexec/icedtea-web/itweb-settings "${dest}/jre/bin/itweb-settings"
|
||||
fi
|
||||
if use webstart; then
|
||||
dosym /usr/libexec/icedtea-web/javaws "${dest}/bin/javaws"
|
||||
dosym /usr/libexec/icedtea-web/javaws "${dest}/jre/bin/javaws"
|
||||
fi
|
||||
|
||||
# Both icedtea itself and the icedtea ebuild set PAX markings but we
|
||||
# disable them for the icedtea-bin build because the line below will
|
||||
# respect end-user settings when icedtea-bin is actually installed.
|
||||
java-vm_set-pax-markings "${ddest}"
|
||||
|
||||
set_java_env
|
||||
java-vm_revdep-mask "${dest}"
|
||||
java-vm_sandbox-predict /proc/self/coredump_filter
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use nsplugin; then
|
||||
if [[ -n ${REPLACING_VERSIONS} ]] && ! version_is_at_least 7.2.4.3 ${REPLACING_VERSIONS} ]]; then
|
||||
elog "The nsplugin for icedtea-bin is now provided by the icedtea-web package"
|
||||
elog "If you had icedtea-bin-7 nsplugin selected, you may see a related error below"
|
||||
elog "The switch should complete properly during the subsequent installation of icedtea-web"
|
||||
elog "Afterwards you may verify the output of 'eselect java-nsplugin list' and adjust accordingly'"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Set as default VM if none exists
|
||||
java-vm-2_pkg_postinst
|
||||
}
|
@ -1,42 +0,0 @@
|
||||
# HG changeset patch
|
||||
# User James Le Cuirot <chewi@gentoo.org>
|
||||
# Date 1441543564 -3600
|
||||
# Sun Sep 06 13:46:04 2015 +0100
|
||||
# Node ID d0224f4490d6694e77dcb0ff7eae8e2297b822bf
|
||||
# Parent e215e36be9fc2b7dfe43ff10ec1afe639b289aa5
|
||||
Dynamically set the maximum heap size on Linux
|
||||
|
||||
diff -r e215e36be9fc -r d0224f4490d6 src/vm/vm.cpp
|
||||
--- cacao/cacao/src/vm/vm.cpp Mon Feb 11 19:31:28 2013 +0100
|
||||
+++ cacao/cacao/src/vm/vm.cpp Sun Sep 06 13:46:04 2015 +0100
|
||||
@@ -33,6 +33,10 @@
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
+#if defined(__LINUX__)
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
+
|
||||
#include "vm/types.h"
|
||||
|
||||
#include "arch.h"
|
||||
@@ -702,6 +706,19 @@
|
||||
opt_heapstartsize = HEAP_STARTSIZE;
|
||||
opt_stacksize = STACK_SIZE;
|
||||
|
||||
+#if defined(__LINUX__)
|
||||
+ // Calculate 1/4 of the physical memory.
|
||||
+ uint64_t qmem = sysconf(_SC_PHYS_PAGES) * sysconf(_SC_PAGESIZE) / 4;
|
||||
+
|
||||
+ if (qmem > INT32_MAX) {
|
||||
+ // More than 2GB will overflow so cap it.
|
||||
+ opt_heapmaxsize = 2047 * 1024 * 1024;
|
||||
+ } else if (qmem > HEAP_MAXSIZE) {
|
||||
+ // Otherwise use this if greater than default (128MB).
|
||||
+ opt_heapmaxsize = (s4) qmem;
|
||||
+ }
|
||||
+#endif
|
||||
+
|
||||
// First of all, parse the -XX options.
|
||||
|
||||
#if defined(ENABLE_VMLOG)
|
@ -0,0 +1,143 @@
|
||||
diff -Naur cacao/cacao/src/vm/options.c cacao/cacao/src/vm/options.c
|
||||
--- cacao/cacao/src/vm/options.c 2013-01-10 16:45:14.000000000 +0000
|
||||
+++ cacao/cacao/src/vm/options.c 2016-01-03 11:48:06.439004345 +0000
|
||||
@@ -26,6 +26,7 @@
|
||||
#include "config.h"
|
||||
|
||||
#include <limits.h>
|
||||
+#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
@@ -56,9 +57,9 @@
|
||||
|
||||
bool opt_run = true;
|
||||
|
||||
-s4 opt_heapmaxsize = 0; /* maximum heap size */
|
||||
-s4 opt_heapstartsize = 0; /* initial heap size */
|
||||
-s4 opt_stacksize = 0; /* thread stack size */
|
||||
+size_t opt_heapmaxsize = 0; /* maximum heap size */
|
||||
+size_t opt_heapstartsize = 0; /* initial heap size */
|
||||
+size_t opt_stacksize = 0; /* thread stack size */
|
||||
|
||||
bool opt_verbose = false;
|
||||
bool opt_debugcolor = false; /* use ANSI terminal sequences */
|
||||
diff -Naur cacao/cacao/src/vm/options.h cacao/cacao/src/vm/options.h
|
||||
--- cacao/cacao/src/vm/options.h 2013-01-10 16:45:14.000000000 +0000
|
||||
+++ cacao/cacao/src/vm/options.h 2016-01-03 11:48:55.397204706 +0000
|
||||
@@ -32,6 +32,7 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
+#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "vm/types.h"
|
||||
@@ -82,9 +83,9 @@
|
||||
extern bool opt_jar;
|
||||
extern bool opt_run;
|
||||
|
||||
-extern s4 opt_heapmaxsize;
|
||||
-extern s4 opt_heapstartsize;
|
||||
-extern s4 opt_stacksize;
|
||||
+extern size_t opt_heapmaxsize;
|
||||
+extern size_t opt_heapstartsize;
|
||||
+extern size_t opt_stacksize;
|
||||
|
||||
extern bool opt_verbose;
|
||||
extern bool opt_debugcolor;
|
||||
diff -Naur cacao/cacao/src/vm/vm.cpp cacao/cacao/src/vm/vm.cpp
|
||||
--- cacao/cacao/src/vm/vm.cpp 2013-01-10 16:45:14.000000000 +0000
|
||||
+++ cacao/cacao/src/vm/vm.cpp 2016-01-03 11:50:15.779891441 +0000
|
||||
@@ -25,6 +25,7 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
+#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include <exception>
|
||||
@@ -33,6 +34,10 @@
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
+#if defined(__LINUX__)
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
+
|
||||
#include "vm/types.h"
|
||||
|
||||
#include "arch.h"
|
||||
@@ -699,6 +704,19 @@
|
||||
opt_heapstartsize = HEAP_STARTSIZE;
|
||||
opt_stacksize = STACK_SIZE;
|
||||
|
||||
+#if defined(__LINUX__)
|
||||
+ // Calculate 1/4 of the physical memory.
|
||||
+ size_t qmem = sysconf(_SC_PHYS_PAGES) * sysconf(_SC_PAGESIZE) / 4;
|
||||
+
|
||||
+ if (qmem > INT32_MAX) {
|
||||
+ // Allocate no more than 2GB.
|
||||
+ opt_heapmaxsize = INT32_MAX;
|
||||
+ } else if (qmem > HEAP_MAXSIZE) {
|
||||
+ // Otherwise use this if greater than default (128MB).
|
||||
+ opt_heapmaxsize = qmem;
|
||||
+ }
|
||||
+#endif
|
||||
+
|
||||
// First of all, parse the -XX options.
|
||||
|
||||
#if defined(ENABLE_VMLOG)
|
||||
@@ -914,18 +932,33 @@
|
||||
case OPT_SS:
|
||||
{
|
||||
char c;
|
||||
- int j;
|
||||
+ size_t j;
|
||||
|
||||
+ errno = 0;
|
||||
c = opt_arg[strlen(opt_arg) - 1];
|
||||
+ j = strtoul(opt_arg, NULL, 10);
|
||||
+
|
||||
+ if (errno)
|
||||
+ break; // Invalid.
|
||||
|
||||
if ((c == 'k') || (c == 'K')) {
|
||||
- j = atoi(opt_arg) * 1024;
|
||||
+ if (j > SIZE_MAX / 1024)
|
||||
+ break; // Overflow.
|
||||
+ else
|
||||
+ j *= 1024;
|
||||
|
||||
} else if ((c == 'm') || (c == 'M')) {
|
||||
- j = atoi(opt_arg) * 1024 * 1024;
|
||||
-
|
||||
- } else
|
||||
- j = atoi(opt_arg);
|
||||
+ if (j > SIZE_MAX / 1024 / 1024)
|
||||
+ break; // Overflow.
|
||||
+ else
|
||||
+ j *= 1024 * 1024;
|
||||
+
|
||||
+ } else if ((c == 'g') || (c == 'G')) {
|
||||
+ if (j > SIZE_MAX / 1024 / 1024 / 1024)
|
||||
+ break; // Overflow.
|
||||
+ else
|
||||
+ j *= 1024 * 1024 * 1024;
|
||||
+ }
|
||||
|
||||
if (opt == OPT_MX)
|
||||
opt_heapmaxsize = j;
|
||||
@@ -1525,9 +1558,9 @@
|
||||
void VM::print_run_time_config()
|
||||
{
|
||||
puts("Run-time variables:\n");
|
||||
- printf(" maximum heap size : %d\n", opt_heapmaxsize);
|
||||
- printf(" initial heap size : %d\n", opt_heapstartsize);
|
||||
- printf(" stack size : %d\n", opt_stacksize);
|
||||
+ printf(" maximum heap size : %lu\n", opt_heapmaxsize);
|
||||
+ printf(" initial heap size : %lu\n", opt_heapstartsize);
|
||||
+ printf(" stack size : %lu\n", opt_stacksize);
|
||||
|
||||
#if defined(WITH_JAVA_RUNTIME_LIBRARY_GNU_CLASSPATH)
|
||||
printf(" gnu.classpath.boot.library.path: %s\n", _properties.get("gnu.classpath.boot.library.path"));
|
@ -1,42 +0,0 @@
|
||||
# HG changeset patch
|
||||
# User James Le Cuirot <chewi@gentoo.org>
|
||||
# Date 1441541110 -3600
|
||||
# Sun Sep 06 13:05:10 2015 +0100
|
||||
# Node ID 80e5553df66e3abb3680f747cbb8e32b394b4211
|
||||
# Parent 468081e3e037df27b6427aa298dfaaa20f4ba4bf
|
||||
Dynamically set the maximum heap size on Linux
|
||||
|
||||
diff -r 468081e3e037 -r 80e5553df66e src/vm/vm.cpp
|
||||
--- cacao/cacao/src/vm/vm.cpp Wed Jun 10 19:52:58 2015 +0200
|
||||
+++ cacao/cacao/src/vm/vm.cpp Sun Sep 06 13:05:10 2015 +0100
|
||||
@@ -32,6 +32,10 @@
|
||||
#include <stdint.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
+#if defined(__LINUX__)
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
+
|
||||
#include "md-abi.hpp"
|
||||
|
||||
#include "mm/codememory.hpp"
|
||||
@@ -690,6 +694,19 @@
|
||||
opt_heapstartsize = HEAP_STARTSIZE;
|
||||
opt_stacksize = STACK_SIZE;
|
||||
|
||||
+#if defined(__LINUX__)
|
||||
+ // Calculate 1/4 of the physical memory.
|
||||
+ uint64_t qmem = sysconf(_SC_PHYS_PAGES) * sysconf(_SC_PAGESIZE) / 4;
|
||||
+
|
||||
+ if (qmem > INT32_MAX) {
|
||||
+ // More than 2GB will overflow so cap it.
|
||||
+ opt_heapmaxsize = 2047 * 1024 * 1024;
|
||||
+ } else if (qmem > HEAP_MAXSIZE) {
|
||||
+ // Otherwise use this if greater than default (128MB).
|
||||
+ opt_heapmaxsize = (s4) qmem;
|
||||
+ }
|
||||
+#endif
|
||||
+
|
||||
// First of all, parse the -XX options.
|
||||
options_xx(vm_args);
|
||||
|
@ -0,0 +1,139 @@
|
||||
diff -Naur cacao/cacao/src/vm/options.cpp cacao/cacao/src/vm/options.cpp
|
||||
--- cacao/cacao/src/vm/options.cpp 2014-12-12 21:14:45.000000000 +0000
|
||||
+++ cacao/cacao/src/vm/options.cpp 2015-12-23 21:01:37.644275263 +0000
|
||||
@@ -26,6 +26,7 @@
|
||||
#include "config.h"
|
||||
|
||||
#include <limits.h>
|
||||
+#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
@@ -60,9 +61,9 @@
|
||||
|
||||
bool opt_run = true;
|
||||
|
||||
-s4 opt_heapmaxsize = 0; /* maximum heap size */
|
||||
-s4 opt_heapstartsize = 0; /* initial heap size */
|
||||
-s4 opt_stacksize = 0; /* thread stack size */
|
||||
+size_t opt_heapmaxsize = 0; /* maximum heap size */
|
||||
+size_t opt_heapstartsize = 0; /* initial heap size */
|
||||
+size_t opt_stacksize = 0; /* thread stack size */
|
||||
|
||||
bool opt_verbose = false;
|
||||
bool opt_debugcolor = false; /* use ANSI terminal sequences */
|
||||
diff -Naur cacao/cacao/src/vm/options.hpp cacao/cacao/src/vm/options.hpp
|
||||
--- cacao/cacao/src/vm/options.hpp 2014-12-12 21:14:45.000000000 +0000
|
||||
+++ cacao/cacao/src/vm/options.hpp 2015-12-23 21:01:37.645275246 +0000
|
||||
@@ -26,6 +26,7 @@
|
||||
#ifndef OPTIONS_HPP_
|
||||
#define OPTIONS_HPP_ 1
|
||||
|
||||
+#include <stddef.h> // for size_t
|
||||
#include <stdint.h> // for int64_t
|
||||
#include <stdio.h> // for FILE
|
||||
#include "config.h" // for ENABLE_DEBUG_FILTER, etc
|
||||
@@ -77,9 +78,9 @@
|
||||
extern bool opt_jar;
|
||||
extern bool opt_run;
|
||||
|
||||
-extern s4 opt_heapmaxsize;
|
||||
-extern s4 opt_heapstartsize;
|
||||
-extern s4 opt_stacksize;
|
||||
+extern size_t opt_heapmaxsize;
|
||||
+extern size_t opt_heapstartsize;
|
||||
+extern size_t opt_stacksize;
|
||||
|
||||
extern bool opt_verbose;
|
||||
extern bool opt_debugcolor;
|
||||
diff -Naur cacao/cacao/src/vm/vm.cpp cacao/cacao/src/vm/vm.cpp
|
||||
--- cacao/cacao/src/vm/vm.cpp 2014-12-12 21:14:45.000000000 +0000
|
||||
+++ cacao/cacao/src/vm/vm.cpp 2015-12-23 21:01:38.046268504 +0000
|
||||
@@ -29,9 +29,14 @@
|
||||
#include <cerrno>
|
||||
#include <cstdlib>
|
||||
#include <exception>
|
||||
+#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
+#if defined(__LINUX__)
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
+
|
||||
#include "md-abi.hpp"
|
||||
|
||||
#include "mm/codememory.hpp"
|
||||
@@ -690,6 +695,19 @@
|
||||
opt_heapstartsize = HEAP_STARTSIZE;
|
||||
opt_stacksize = STACK_SIZE;
|
||||
|
||||
+#if defined(__LINUX__)
|
||||
+ // Calculate 1/4 of the physical memory.
|
||||
+ size_t qmem = sysconf(_SC_PHYS_PAGES) * sysconf(_SC_PAGESIZE) / 4;
|
||||
+
|
||||
+ if (qmem > INT32_MAX) {
|
||||
+ // Allocate no more than 2GB.
|
||||
+ opt_heapmaxsize = INT32_MAX;
|
||||
+ } else if (qmem > HEAP_MAXSIZE) {
|
||||
+ // Otherwise use this if greater than default (128MB).
|
||||
+ opt_heapmaxsize = qmem;
|
||||
+ }
|
||||
+#endif
|
||||
+
|
||||
// First of all, parse the -XX options.
|
||||
options_xx(vm_args);
|
||||
|
||||
@@ -896,18 +914,33 @@
|
||||
case OPT_SS:
|
||||
{
|
||||
char c;
|
||||
- int j;
|
||||
+ size_t j;
|
||||
|
||||
+ errno = 0;
|
||||
c = opt_arg[strlen(opt_arg) - 1];
|
||||
+ j = strtoul(opt_arg, NULL, 10);
|
||||
+
|
||||
+ if (errno)
|
||||
+ break; // Invalid.
|
||||
|
||||
if ((c == 'k') || (c == 'K')) {
|
||||
- j = atoi(opt_arg) * 1024;
|
||||
+ if (j > SIZE_MAX / 1024)
|
||||
+ break; // Overflow.
|
||||
+ else
|
||||
+ j *= 1024;
|
||||
|
||||
} else if ((c == 'm') || (c == 'M')) {
|
||||
- j = atoi(opt_arg) * 1024 * 1024;
|
||||
-
|
||||
- } else
|
||||
- j = atoi(opt_arg);
|
||||
+ if (j > SIZE_MAX / 1024 / 1024)
|
||||
+ break; // Overflow.
|
||||
+ else
|
||||
+ j *= 1024 * 1024;
|
||||
+
|
||||
+ } else if ((c == 'g') || (c == 'G')) {
|
||||
+ if (j > SIZE_MAX / 1024 / 1024 / 1024)
|
||||
+ break; // Overflow.
|
||||
+ else
|
||||
+ j *= 1024 * 1024 * 1024;
|
||||
+ }
|
||||
|
||||
if (opt == OPT_MX)
|
||||
opt_heapmaxsize = j;
|
||||
@@ -1498,9 +1531,9 @@
|
||||
void VM::print_run_time_config()
|
||||
{
|
||||
puts("Run-time variables:\n");
|
||||
- printf(" maximum heap size : %d\n", opt_heapmaxsize);
|
||||
- printf(" initial heap size : %d\n", opt_heapstartsize);
|
||||
- printf(" stack size : %d\n", opt_stacksize);
|
||||
+ printf(" maximum heap size : %lu\n", opt_heapmaxsize);
|
||||
+ printf(" initial heap size : %lu\n", opt_heapstartsize);
|
||||
+ printf(" stack size : %lu\n", opt_stacksize);
|
||||
|
||||
#if defined(WITH_JAVA_RUNTIME_LIBRARY_GNU_CLASSPATH)
|
||||
printf(" gnu.classpath.boot.library.path: %s\n", _properties.get("gnu.classpath.boot.library.path"));
|
@ -1,2 +1 @@
|
||||
DIST milton-api-2.5.1.5-sources.jar 210148 SHA256 e55d3919b6852206137121f0bf240607b82011bc4a21f1ac4f58be247ba0d221 SHA512 2cfc5cf5b81e36055871351cabced0b83e0c24aff3adb222cbb9a22d13bb19619e315606ccfbd4d0b14d3951deeb51442fa86fb587ecedd7cfbbc5ee54b76803 WHIRLPOOL 0c74aabff88f7b5d586d369cdc074bc227b3b0b1303268f90e52ea1b2bf42f3c53323ffdd8d8f31d626b18aeb5e2d2b0d7ee3426c409b62b6b3f07939961dc5e
|
||||
DIST milton-api-2.6.5.5-sources.jar 227823 SHA256 bfd1fd7cd0560024cb64630e3660873d13033cc18d783a6f3deda2dfa7784e59 SHA512 66730e025399039537b31f635546375939e98c27e4250283342d8dec350a682368f5991d969dfecce9ab45f541d2da448f9786c8265ae55caa742f887a97899f WHIRLPOOL ed9578e52c477675f55209e5223b744a967f616f3d2b17aea87145ceac32cc69516535261a599814ca7a0e86d01adaa30ec2c96b3be0a280b9199b8fb09345a2
|
||||
DIST milton-api-2.7.1.3-sources.jar 240367 SHA256 56d79201eff9d2287ae4a516f2d70c71d5813e20b1c5b669f16acad7b522d5cb SHA512 9d73e830a4c62b872fe756679158a961d6160016cc6db6915dd17f65f9ca6008cf7f451aae71beb735b24c7b0872b8b672f53f4a0ecb1279d9572e1908fd5f08 WHIRLPOOL d191a43b4c3d108f933f900a1a48a43cb8ce86e94bc84227152e89ba4bf7b7e38f95af67f61735ee174106ef7c92bfdca733a63c17359a43d06d2c62a174c564
|
||||
|
@ -1,33 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
|
||||
JAVA_PKG_IUSE="source doc"
|
||||
|
||||
inherit java-pkg-2 java-pkg-simple
|
||||
|
||||
DESCRIPTION="Milton WebDav library"
|
||||
HOMEPAGE="http://milton.io"
|
||||
SRC_URI="http://milton.io/maven/io/milton/${PN}/${PV}/${P}-sources.jar"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="2.5"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
IUSE=""
|
||||
|
||||
CDEPEND="
|
||||
dev-java/commons-codec:0
|
||||
dev-java/commons-io:1
|
||||
dev-java/slf4j-api:0
|
||||
"
|
||||
|
||||
RDEPEND="${CDEPEND}
|
||||
>=virtual/jre-1.5"
|
||||
|
||||
DEPEND="${CDEPEND}
|
||||
>=virtual/jdk-1.5"
|
||||
|
||||
JAVA_GENTOO_CLASSPATH="commons-codec,commons-io-1,slf4j-api"
|
@ -1 +1 @@
|
||||
DIST milton-mail-api-2.5.1.5-sources.jar 34106 SHA256 537fd8b99b29574705be8c82ffd5d447bbcc009f4d94fd9b2b53540177dab868 SHA512 c2f244f7fb500828ed26cdc254de428324f560a9f9809373b8aca0fb1a71a70bc748e0155f4c68448307bc272dd7b671a1003522b6eacf8c41cdea116f5ebd5d WHIRLPOOL 9a29b4ffbd6fd457b2bf59b4f71d8a42c0037ff566dd8f95bbc400f3a8a873b28daa20e8757dc323855812c73087490bfb6c9226c6b26699e526aebb19d03911
|
||||
DIST milton-mail-api-2.7.1.3-sources.jar 34106 SHA256 4947db22c73db8f7b8fbf3d549b62d622c7ec33a42a774662e60bb8bce88153a SHA512 c0b7f7d62b54f996f42c44e8b28eeaee8a76e8990be5a9894a0f3b2daead699e78442c5cf96a272f71a54536c87247f366f10f3aa2c3adb9d4870253ec8c3b67 WHIRLPOOL 7109d5a62f919503ad21a557e7e15f0428afe1ae72f9a8129dd58ec551d684934e8d48095c86d0d5cb2c250163c143e6ea7af6d172152b5e60fa7aa643a9eb86
|
||||
|
@ -1,2 +1,3 @@
|
||||
DIST R-20130129.bash_completion.bz2 4209 SHA256 487e969b94563fec98ec58de7e6142e9361d4219088add0fca282b482a9e01b1 SHA512 910b26e16cfebe677f438abfa5f2652e582db143d91dbf0e7d4b1ea33462c7e5c89c3a3619c63ae98bba26b11a5adb16eda9d344f8cdbe4f0feabc546993c1a5 WHIRLPOOL 2368efaed37fcb6e010f6a234864631f68549bd8e3f733561170cc5b28f5557e546d8561246fb265a481a47991a262fec3acf6abc1dc3929a9357405e0d3c6fc
|
||||
DIST R-3.2.2.tar.gz 29772864 SHA256 9c9152e74134b68b0f3a1c7083764adc1cb56fd8336bec003fd0ca550cd2461d SHA512 71ba470875262b9f00fb6970f209788df4dad30e0a28373b824b60d8bc6401afb7786e65387663c6490c7ddcd2bfd7f808a270a3e63238f3d7565d5f93607138 WHIRLPOOL fea59929ada1d67dafc6ad89409d18ad173af7990384033f490a00e0f794d9919aecf7cd37089d105fe03b9cf64d079e5d148622571cec3eb924c1c5bd00081e
|
||||
DIST R-3.2.3.tar.gz 29816176 SHA256 b93b7d878138279234160f007cb9b7f81b8a72c012a15566e9ec5395cfd9b6c1 SHA512 9d7294af860204f4d84e25eb503111c9607beedbc42f01de073c915945a6342c3e24e25a9cc038a2e58442036bee931975d93dc327081ed02afe5ffa365170ea WHIRLPOOL 31ecbaa5c4340e02551eefe17f7f2e9ae075778e7b568a2c477b9f31f1b9598380edb8cb53c713df6643d2cba62ea97c6f225490ade2fc8a9e2b4d88426c7883
|
||||
|
@ -0,0 +1,206 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit bash-completion-r1 autotools eutils flag-o-matic fortran-2 multilib versionator toolchain-funcs
|
||||
|
||||
BCP=${PN}-20130129.bash_completion
|
||||
DESCRIPTION="Language and environment for statistical computing and graphics"
|
||||
HOMEPAGE="http://www.r-project.org/"
|
||||
SRC_URI="
|
||||
mirror://cran/src/base/R-3/${P}.tar.gz
|
||||
https://dev.gentoo.org/~bicatali/distfiles/${BCP}.bz2"
|
||||
|
||||
LICENSE="|| ( GPL-2 GPL-3 ) LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos"
|
||||
IUSE="cairo doc icu java jpeg lapack minimal nls openmp perl png prefix profile readline static-libs tiff tk X"
|
||||
REQUIRED_USE="png? ( || ( cairo X ) ) jpeg? ( || ( cairo X ) ) tiff? ( || ( cairo X ) )"
|
||||
|
||||
CDEPEND="
|
||||
app-arch/bzip2:0=
|
||||
app-arch/xz-utils:0=
|
||||
app-text/ghostscript-gpl
|
||||
>=dev-libs/libpcre-8.35:3=
|
||||
virtual/blas:0
|
||||
|| ( >=sys-apps/coreutils-8.15 sys-freebsd/freebsd-bin app-misc/realpath )
|
||||
cairo? ( x11-libs/cairo:0=[X] x11-libs/pango:0= )
|
||||
icu? ( dev-libs/icu:= )
|
||||
jpeg? ( virtual/jpeg:0 )
|
||||
lapack? ( virtual/lapack:0 )
|
||||
perl? ( dev-lang/perl )
|
||||
png? ( media-libs/libpng:0= )
|
||||
readline? ( sys-libs/readline:0= )
|
||||
tiff? ( media-libs/tiff:0= )
|
||||
tk? ( dev-lang/tk:0= )
|
||||
X? ( x11-libs/libXmu:0= x11-misc/xdg-utils )"
|
||||
|
||||
DEPEND="${CDEPEND}
|
||||
virtual/pkgconfig
|
||||
doc? (
|
||||
virtual/latex-base
|
||||
dev-texlive/texlive-fontsrecommended
|
||||
)"
|
||||
|
||||
RDEPEND="${CDEPEND}
|
||||
>=sys-libs/zlib-1.2.5.1-r2:0[minizip]
|
||||
java? ( >=virtual/jre-1.5 )"
|
||||
|
||||
RESTRICT="minimal? ( test )"
|
||||
|
||||
R_DIR="${EROOT%/}/usr/$(get_libdir)/${PN}"
|
||||
|
||||
pkg_setup() {
|
||||
if use openmp; then
|
||||
if [[ $(tc-getCC) == *gcc ]] && ! tc-has-openmp; then
|
||||
ewarn "OpenMP is not available in your current selected gcc"
|
||||
die "need openmp capable gcc"
|
||||
fi
|
||||
FORTRAN_NEED_OPENMP=1
|
||||
fi
|
||||
fortran-2_pkg_setup
|
||||
filter-ldflags -Wl,-Bdirect -Bdirect
|
||||
# avoid using existing R installation
|
||||
unset R_HOME
|
||||
# Temporary fix for bug #419761
|
||||
if [[ ($(tc-getCC) == *gcc) && ($(gcc-version) == 4.7) ]]; then
|
||||
append-flags -fno-ipa-cp-clone
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch \
|
||||
"${FILESDIR}"/${PN}-2.11.1-parallel.patch \
|
||||
"${FILESDIR}"/${PN}-2.13.1-zlib_header_fix.patch \
|
||||
"${FILESDIR}"/${PN}-3.0.0-rmath-shared.patch
|
||||
|
||||
# fix packages.html for doc (gentoo bug #205103)
|
||||
sed -i \
|
||||
-e "s:../../../library:../../../../$(get_libdir)/R/library:g" \
|
||||
src/library/tools/R/Rd.R || die
|
||||
|
||||
# fix Rscript path when installed (gentoo bug #221061)
|
||||
sed -i \
|
||||
-e "s:-DR_HOME='\"\$(rhome)\"':-DR_HOME='\"${R_DIR}\"':" \
|
||||
src/unix/Makefile.in || die "sed unix Makefile failed"
|
||||
|
||||
# fix HTML links to manual (gentoo bug #273957)
|
||||
sed -i \
|
||||
-e 's:\.\./manual/:manual/:g' \
|
||||
$(grep -Flr ../manual/ doc) || die "sed for HTML links failed"
|
||||
|
||||
use lapack && \
|
||||
export LAPACK_LIBS="$($(tc-getPKG_CONFIG) --libs lapack)"
|
||||
|
||||
if use X; then
|
||||
export R_BROWSER="$(type -p xdg-open)"
|
||||
export R_PDFVIEWER="$(type -p xdg-open)"
|
||||
fi
|
||||
use perl && \
|
||||
export PERL5LIB="${S}/share/perl:${PERL5LIB:+:}${PERL5LIB}"
|
||||
|
||||
# don't search /usr/local
|
||||
sed -i -e '/FLAGS=.*\/local\//c\: # removed by ebuild' configure.ac || die
|
||||
# Fix for Darwin (OS X)
|
||||
if use prefix; then
|
||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
||||
sed -i \
|
||||
-e 's:-install_name libR.dylib:-install_name ${libdir}/R/lib/libR.dylib:' \
|
||||
-e 's:-install_name libRlapack.dylib:-install_name ${libdir}/R/lib/libRlapack.dylib:' \
|
||||
-e 's:-install_name libRblas.dylib:-install_name ${libdir}/R/lib/libRblas.dylib:' \
|
||||
-e "/SHLIB_EXT/s/\.so/.dylib/" \
|
||||
configure.ac || die
|
||||
# sort of "undo" 2.14.1-rmath-shared.patch
|
||||
sed -i \
|
||||
-e "s:-Wl,-soname=libRmath.so:-install_name ${EROOT%/}/usr/$(get_libdir)/libRmath.dylib:" \
|
||||
src/nmath/standalone/Makefile.in || die
|
||||
else
|
||||
append-ldflags -Wl,-rpath="${EROOT%/}/usr/$(get_libdir)/R/lib"
|
||||
fi
|
||||
fi
|
||||
AT_M4DIR=m4 eaclocal
|
||||
eautoconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# --with-system-tre \
|
||||
# tre is patched from upstream
|
||||
econf \
|
||||
--enable-byte-compiled-packages \
|
||||
--enable-R-shlib \
|
||||
--disable-R-framework \
|
||||
--with-system-zlib \
|
||||
--with-system-bzlib \
|
||||
--with-system-pcre \
|
||||
--with-system-xz \
|
||||
--with-blas="$($(tc-getPKG_CONFIG) --libs blas)" \
|
||||
--docdir="${EPREFIX}/usr/share/doc/${PF}" \
|
||||
rdocdir="${EPREFIX}/usr/share/doc/${PF}" \
|
||||
$(use_enable nls) \
|
||||
$(use_enable openmp) \
|
||||
$(use_enable profile R-profiling) \
|
||||
$(use_enable profile memory-profiling) \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_enable static-libs R-static-lib) \
|
||||
$(use_with cairo) \
|
||||
$(use_with icu ICU) \
|
||||
$(use_with jpeg jpeglib) \
|
||||
$(use_with lapack) \
|
||||
$(use_with !minimal recommended-packages) \
|
||||
$(use_with png libpng) \
|
||||
$(use_with readline) \
|
||||
$(use_with tiff libtiff) \
|
||||
$(use_with tk tcltk) \
|
||||
$(use_with tk tk-config "${EPREFIX}"/usr/lib/tkConfig.sh) \
|
||||
$(use_with tk tcl-config "${EPREFIX}"/usr/lib/tclConfig.sh) \
|
||||
$(use_with X x)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
export VARTEXFONTS="${T}/fonts"
|
||||
emake AR="$(tc-getAR)"
|
||||
emake -C src/nmath/standalone \
|
||||
shared $(use static-libs && echo static) AR="$(tc-getAR)"
|
||||
use doc && emake info pdf
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
emake -j1 -C src/nmath/standalone DESTDIR="${D}" install
|
||||
|
||||
if use doc; then
|
||||
emake DESTDIR="${D}" install-info install-pdf
|
||||
dosym ../manual /usr/share/doc/${PF}/html/manual
|
||||
fi
|
||||
|
||||
cat > 99R <<-EOF
|
||||
LDPATH=${R_DIR}/lib
|
||||
R_HOME=${R_DIR}
|
||||
EOF
|
||||
doenvd 99R
|
||||
newbashcomp "${WORKDIR}"/${BCP} ${PN}
|
||||
# The buildsystem has a different understanding of install_names than
|
||||
# we require. Since it builds modules like shared objects (wrong), many
|
||||
# objects (all modules) get an incorrect install_name. Fixing the build
|
||||
# system here is not really trivial.
|
||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
||||
local mod
|
||||
pushd "${ED}"/usr/lib/R > /dev/null
|
||||
for mod in $(find . -name "*.dylib") ; do
|
||||
mod=${mod#./}
|
||||
install_name_tool -id "${EPREFIX}/usr/lib/R/${mod}" \
|
||||
"${mod}"
|
||||
done
|
||||
popd > /dev/null
|
||||
fi
|
||||
docompress -x /usr/share/doc/${PF}/NEWS.rds
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use java; then
|
||||
einfo "Re-initializing java paths for ${P}"
|
||||
R CMD javareconf
|
||||
fi
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils multilib
|
||||
|
||||
MY_PN="MoarVM"
|
||||
|
||||
DESCRIPTION="A 6model-based VM for NQP and Rakudo Perl 6"
|
||||
HOMEPAGE="http://moarvm.org"
|
||||
SRC_URI="http://moarvm.org/releases/${MY_PN}-${PV}.tar.gz"
|
||||
LICENSE="Artistic-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc"
|
||||
|
||||
RDEPEND="dev-libs/libuv"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-lang/perl"
|
||||
|
||||
S="${WORKDIR}/MoarVM-${PV}"
|
||||
|
||||
src_configure() {
|
||||
perl Configure.pl --prefix="${D}/usr"|| die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake install
|
||||
}
|
@ -0,0 +1,66 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
# still not working
|
||||
RESTRICT="test"
|
||||
|
||||
inherit eutils multilib versionator
|
||||
|
||||
GITCRAP=a54e409
|
||||
PARROT_VERSION="6.7.0"
|
||||
|
||||
DESCRIPTION="Not Quite Perl, a Perl 6 bootstrapping compiler"
|
||||
HOMEPAGE="http://rakudo.org/"
|
||||
SRC_URI="https://github.com/perl6/${PN}/tarball/${PV} -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Artistic-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~x86 ~amd64"
|
||||
IUSE="doc parrot java +moar"
|
||||
REQUIRED_USE="|| ( parrot java moar )"
|
||||
|
||||
RDEPEND="parrot? ( >=dev-lang/parrot-${PARROT_VERSION}:=[unicode] )
|
||||
java? ( >=virtual/jre-1.7 )
|
||||
moar? ( =dev-lang/moarvm-${PV} )
|
||||
dev-libs/libffi"
|
||||
DEPEND="${RDEPEND}
|
||||
java? ( >=virtual/jdk-1.7 )
|
||||
dev-lang/perl"
|
||||
|
||||
S=${WORKDIR}/perl6-nqp-${GITCRAP}
|
||||
|
||||
src_configure() {
|
||||
use java && myconf+="jvm,"
|
||||
use parrot && myconf+="parrot,"
|
||||
use moar && myconf+="moar,"
|
||||
perl Configure.pl --backend=${myconf} --prefix=/usr || die
|
||||
# dirty hack to make dyncall not fail
|
||||
sed -i -e 's/-Werror=missing-prototypes//' Makefile || die
|
||||
sed -i -e 's/-Werror=missing-declarations//' Makefile || die
|
||||
sed -i -e 's/-Werror=strict-prototypes//' Makefile || die
|
||||
|
||||
# more dirty hack to allow building with newer gcc
|
||||
sed -i -e 's/-Werror=implicit-function-declaration//' Makefile || die
|
||||
sed -i -e 's/-Werror=nested-externs//' Makefile || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake -j1 || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake -j1 test || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${ED}" install || die
|
||||
|
||||
dodoc CREDITS README.pod || die
|
||||
|
||||
if use doc; then
|
||||
dodoc -r docs/* || die
|
||||
fi
|
||||
}
|
@ -1,353 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="4"
|
||||
WANT_LIBTOOL="none"
|
||||
|
||||
inherit autotools eutils flag-o-matic multilib pax-utils python-utils-r1 toolchain-funcs multiprocessing
|
||||
|
||||
MY_P="Python-${PV}"
|
||||
PATCHSET_VERSION="2.7.10-0"
|
||||
|
||||
DESCRIPTION="An interpreted, interactive, object-oriented programming language"
|
||||
HOMEPAGE="http://www.python.org/"
|
||||
SRC_URI="http://www.python.org/ftp/python/${PV}/${MY_P}.tar.xz
|
||||
https://dev.gentoo.org/~floppym/python/python-gentoo-patches-${PATCHSET_VERSION}.tar.xz"
|
||||
|
||||
LICENSE="PSF-2"
|
||||
SLOT="2.7"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="-berkdb build doc elibc_uclibc examples gdbm hardened ipv6 libressl +ncurses +readline sqlite +ssl +threads tk +wide-unicode wininst +xml"
|
||||
|
||||
# Do not add a dependency on dev-lang/python to this ebuild.
|
||||
# If you need to apply a patch which requires python for bootstrapping, please
|
||||
# run the bootstrap code on your dev box and include the results in the
|
||||
# patchset. See bug 447752.
|
||||
|
||||
RDEPEND="app-arch/bzip2
|
||||
>=sys-libs/zlib-1.1.3
|
||||
virtual/libffi
|
||||
virtual/libintl
|
||||
xml? ( >=dev-libs/expat-2.1 )
|
||||
berkdb? ( || (
|
||||
sys-libs/db:5.3
|
||||
sys-libs/db:5.2
|
||||
sys-libs/db:5.1
|
||||
sys-libs/db:5.0
|
||||
sys-libs/db:4.8
|
||||
sys-libs/db:4.7
|
||||
sys-libs/db:4.6
|
||||
sys-libs/db:4.5
|
||||
sys-libs/db:4.4
|
||||
sys-libs/db:4.3
|
||||
sys-libs/db:4.2
|
||||
) )
|
||||
gdbm? ( sys-libs/gdbm[berkdb] )
|
||||
ncurses? (
|
||||
>=sys-libs/ncurses-5.2
|
||||
readline? ( >=sys-libs/readline-4.1 )
|
||||
)
|
||||
sqlite? ( >=dev-db/sqlite-3.3.8:3 )
|
||||
ssl? (
|
||||
!libressl? ( dev-libs/openssl:0 )
|
||||
libressl? ( dev-libs/libressl )
|
||||
)
|
||||
tk? (
|
||||
>=dev-lang/tk-8.0
|
||||
dev-tcltk/blt
|
||||
dev-tcltk/tix
|
||||
)
|
||||
!!<sys-apps/portage-2.1.9"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
>=sys-devel/autoconf-2.65
|
||||
!sys-devel/gcc[libffi]"
|
||||
RDEPEND+=" !build? ( app-misc/mime-types )
|
||||
doc? ( dev-python/python-docs:${SLOT} )"
|
||||
PDEPEND="app-eselect/eselect-python
|
||||
app-admin/python-updater"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
pkg_setup() {
|
||||
if use berkdb; then
|
||||
ewarn "'bsddb' module is out-of-date and no longer maintained inside"
|
||||
ewarn "dev-lang/python. 'bsddb' and 'dbhash' modules have been additionally"
|
||||
ewarn "removed in Python 3. A maintained alternative of 'bsddb3' module"
|
||||
ewarn "is provided by dev-python/bsddb3."
|
||||
else
|
||||
if has_version "=${CATEGORY}/${PN}-${PV%%.*}*[berkdb]"; then
|
||||
ewarn "You are migrating from =${CATEGORY}/${PN}-${PV%%.*}*[berkdb]"
|
||||
ewarn "to =${CATEGORY}/${PN}-${PV%%.*}*[-berkdb]."
|
||||
ewarn "You might need to migrate your databases."
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Ensure that internal copies of expat, libffi and zlib are not used.
|
||||
rm -r Modules/expat || die
|
||||
rm -r Modules/_ctypes/libffi* || die
|
||||
rm -r Modules/zlib || die
|
||||
|
||||
if tc-is-cross-compiler; then
|
||||
local EPATCH_EXCLUDE="*_regenerate_platform-specific_modules.patch"
|
||||
fi
|
||||
|
||||
EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
|
||||
|
||||
# Fix for cross-compiling.
|
||||
epatch "${FILESDIR}/python-2.7.5-nonfatal-compileall.patch"
|
||||
epatch "${FILESDIR}/python-2.7.9-ncurses-pkg-config.patch"
|
||||
epatch "${FILESDIR}/python-2.7.10-cross-compile-warn-test.patch"
|
||||
epatch "${FILESDIR}/python-2.7.10-system-libffi.patch"
|
||||
|
||||
sed -i -e "s:@@GENTOO_LIBDIR@@:$(get_libdir):g" \
|
||||
Lib/distutils/command/install.py \
|
||||
Lib/distutils/sysconfig.py \
|
||||
Lib/site.py \
|
||||
Lib/sysconfig.py \
|
||||
Lib/test/test_site.py \
|
||||
Makefile.pre.in \
|
||||
Modules/Setup.dist \
|
||||
Modules/getpath.c \
|
||||
setup.py || die "sed failed to replace @@GENTOO_LIBDIR@@"
|
||||
|
||||
epatch_user
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# dbm module can be linked against berkdb or gdbm.
|
||||
# Defaults to gdbm when both are enabled, #204343.
|
||||
local disable
|
||||
use berkdb || use gdbm || disable+=" dbm"
|
||||
use berkdb || disable+=" _bsddb"
|
||||
use gdbm || disable+=" gdbm"
|
||||
use ncurses || disable+=" _curses _curses_panel"
|
||||
use readline || disable+=" readline"
|
||||
use sqlite || disable+=" _sqlite3"
|
||||
use ssl || export PYTHON_DISABLE_SSL="1"
|
||||
use tk || disable+=" _tkinter"
|
||||
use xml || disable+=" _elementtree pyexpat" # _elementtree uses pyexpat.
|
||||
export PYTHON_DISABLE_MODULES="${disable}"
|
||||
|
||||
if ! use xml; then
|
||||
ewarn "You have configured Python without XML support."
|
||||
ewarn "This is NOT a recommended configuration as you"
|
||||
ewarn "may face problems parsing any XML documents."
|
||||
fi
|
||||
|
||||
if [[ -n "${PYTHON_DISABLE_MODULES}" ]]; then
|
||||
einfo "Disabled modules: ${PYTHON_DISABLE_MODULES}"
|
||||
fi
|
||||
|
||||
if [[ "$(gcc-major-version)" -ge 4 ]]; then
|
||||
append-flags -fwrapv
|
||||
fi
|
||||
|
||||
filter-flags -malign-double
|
||||
|
||||
[[ "${ARCH}" == "alpha" ]] && append-flags -fPIC
|
||||
|
||||
# https://bugs.gentoo.org/show_bug.cgi?id=50309
|
||||
if is-flagq -O3; then
|
||||
is-flagq -fstack-protector-all && replace-flags -O3 -O2
|
||||
use hardened && replace-flags -O3 -O2
|
||||
fi
|
||||
|
||||
if tc-is-cross-compiler; then
|
||||
# Force some tests that try to poke fs paths.
|
||||
export ac_cv_file__dev_ptc=no
|
||||
export ac_cv_file__dev_ptmx=yes
|
||||
fi
|
||||
|
||||
# Export CXX so it ends up in /usr/lib/python2.X/config/Makefile.
|
||||
tc-export CXX
|
||||
# The configure script fails to use pkg-config correctly.
|
||||
# http://bugs.python.org/issue15506
|
||||
export ac_cv_path_PKG_CONFIG=$(tc-getPKG_CONFIG)
|
||||
|
||||
# Set LDFLAGS so we link modules with -lpython2.7 correctly.
|
||||
# Needed on FreeBSD unless Python 2.7 is already installed.
|
||||
# Please query BSD team before removing this!
|
||||
append-ldflags "-L."
|
||||
|
||||
local dbmliborder
|
||||
if use gdbm; then
|
||||
dbmliborder+="${dbmliborder:+:}gdbm"
|
||||
fi
|
||||
if use berkdb; then
|
||||
dbmliborder+="${dbmliborder:+:}bdb"
|
||||
fi
|
||||
|
||||
BUILD_DIR="${WORKDIR}/${CHOST}"
|
||||
mkdir -p "${BUILD_DIR}" || die
|
||||
cd "${BUILD_DIR}" || die
|
||||
|
||||
ECONF_SOURCE="${S}" OPT="" \
|
||||
econf \
|
||||
--with-fpectl \
|
||||
--enable-shared \
|
||||
$(use_enable ipv6) \
|
||||
$(use_with threads) \
|
||||
$(use wide-unicode && echo "--enable-unicode=ucs4" || echo "--enable-unicode=ucs2") \
|
||||
--infodir='${prefix}/share/info' \
|
||||
--mandir='${prefix}/share/man' \
|
||||
--with-dbmliborder="${dbmliborder}" \
|
||||
--with-libc="" \
|
||||
--enable-loadable-sqlite-extensions \
|
||||
--with-system-expat \
|
||||
--with-system-ffi \
|
||||
--without-ensurepip
|
||||
|
||||
if use threads && grep -q "#define POSIX_SEMAPHORES_NOT_ENABLED 1" pyconfig.h; then
|
||||
eerror "configure has detected that the sem_open function is broken."
|
||||
eerror "Please ensure that /dev/shm is mounted as a tmpfs with mode 1777."
|
||||
die "Broken sem_open function (bug 496328)"
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Avoid invoking pgen for cross-compiles.
|
||||
touch Include/graminit.h Python/graminit.c
|
||||
|
||||
cd "${BUILD_DIR}" || die
|
||||
emake
|
||||
|
||||
# Work around bug 329499. See also bug 413751 and 457194.
|
||||
if has_version dev-libs/libffi[pax_kernel]; then
|
||||
pax-mark E python
|
||||
else
|
||||
pax-mark m python
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# Tests will not work when cross compiling.
|
||||
if tc-is-cross-compiler; then
|
||||
elog "Disabling tests due to crosscompiling."
|
||||
return
|
||||
fi
|
||||
|
||||
cd "${BUILD_DIR}" || die
|
||||
|
||||
# Skip failing tests.
|
||||
local skipped_tests="distutils gdb"
|
||||
|
||||
for test in ${skipped_tests}; do
|
||||
mv "${S}"/Lib/test/test_${test}.py "${T}"
|
||||
done
|
||||
|
||||
# Rerun failed tests in verbose mode (regrtest -w).
|
||||
emake test EXTRATESTOPTS="-w" < /dev/tty
|
||||
local result="$?"
|
||||
|
||||
for test in ${skipped_tests}; do
|
||||
mv "${T}/test_${test}.py" "${S}"/Lib/test
|
||||
done
|
||||
|
||||
elog "The following tests have been skipped:"
|
||||
for test in ${skipped_tests}; do
|
||||
elog "test_${test}.py"
|
||||
done
|
||||
|
||||
elog "If you would like to run them, you may:"
|
||||
elog "cd '${EPREFIX}/usr/$(get_libdir)/python${SLOT}/test'"
|
||||
elog "and run the tests separately."
|
||||
|
||||
if [[ "${result}" -ne 0 ]]; then
|
||||
die "emake test failed"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local libdir=${ED}/usr/$(get_libdir)/python${SLOT}
|
||||
|
||||
cd "${BUILD_DIR}" || die
|
||||
emake DESTDIR="${D}" altinstall
|
||||
|
||||
sed -e "s/\(LDFLAGS=\).*/\1/" -i "${libdir}/config/Makefile" || die "sed failed"
|
||||
|
||||
# Backwards compat with Gentoo divergence.
|
||||
dosym python${SLOT}-config /usr/bin/python-config-${SLOT}
|
||||
|
||||
# Fix collisions between different slots of Python.
|
||||
mv "${ED}usr/bin/2to3" "${ED}usr/bin/2to3-${SLOT}"
|
||||
mv "${ED}usr/bin/pydoc" "${ED}usr/bin/pydoc${SLOT}"
|
||||
mv "${ED}usr/bin/idle" "${ED}usr/bin/idle${SLOT}"
|
||||
rm -f "${ED}usr/bin/smtpd.py"
|
||||
|
||||
use berkdb || rm -r "${libdir}/"{bsddb,dbhash.py,test/test_bsddb*} || die
|
||||
use sqlite || rm -r "${libdir}/"{sqlite3,test/test_sqlite*} || die
|
||||
use tk || rm -r "${ED}usr/bin/idle${SLOT}" "${libdir}/"{idlelib,lib-tk} || die
|
||||
use elibc_uclibc && rm -fr "${libdir}/"{bsddb/test,test}
|
||||
|
||||
use threads || rm -r "${libdir}/multiprocessing" || die
|
||||
use wininst || rm -r "${libdir}/distutils/command/"wininst-*.exe || die
|
||||
|
||||
dodoc "${S}"/Misc/{ACKS,HISTORY,NEWS}
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}/examples
|
||||
doins -r "${S}"/Tools
|
||||
fi
|
||||
insinto /usr/share/gdb/auto-load/usr/$(get_libdir) #443510
|
||||
local libname=$(printf 'e:\n\t@echo $(INSTSONAME)\ninclude Makefile\n' | \
|
||||
emake --no-print-directory -s -f - 2>/dev/null)
|
||||
newins "${S}"/Tools/gdb/libpython.py "${libname}"-gdb.py
|
||||
|
||||
newconfd "${FILESDIR}/pydoc.conf" pydoc-${SLOT}
|
||||
newinitd "${FILESDIR}/pydoc.init" pydoc-${SLOT}
|
||||
sed \
|
||||
-e "s:@PYDOC_PORT_VARIABLE@:PYDOC${SLOT/./_}_PORT:" \
|
||||
-e "s:@PYDOC@:pydoc${SLOT}:" \
|
||||
-i "${ED}etc/conf.d/pydoc-${SLOT}" "${ED}etc/init.d/pydoc-${SLOT}" || die "sed failed"
|
||||
|
||||
# for python-exec
|
||||
local vars=( EPYTHON PYTHON_SITEDIR )
|
||||
|
||||
# if not using a cross-compiler, use the fresh binary
|
||||
if ! tc-is-cross-compiler; then
|
||||
local -x PYTHON=./python
|
||||
local -x LD_LIBRARY_PATH=${LD_LIBRARY_PATH+${LD_LIBRARY_PATH}:}.
|
||||
else
|
||||
vars=( PYTHON "${vars[@]}" )
|
||||
fi
|
||||
|
||||
python_export "python${SLOT}" "${vars[@]}"
|
||||
echo "EPYTHON='${EPYTHON}'" > epython.py || die
|
||||
python_domodule epython.py
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if has_version "<${CATEGORY}/${PN}-${SLOT}" && ! has_version "${CATEGORY}/${PN}:2.7"; then
|
||||
python_updater_warning="1"
|
||||
fi
|
||||
}
|
||||
|
||||
eselect_python_update() {
|
||||
if [[ -z "$(eselect python show)" || ! -f "${EROOT}usr/bin/$(eselect python show)" ]]; then
|
||||
eselect python update
|
||||
fi
|
||||
|
||||
if [[ -z "$(eselect python show --python${PV%%.*})" || ! -f "${EROOT}usr/bin/$(eselect python show --python${PV%%.*})" ]]; then
|
||||
eselect python update --python${PV%%.*}
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
eselect_python_update
|
||||
|
||||
if [[ "${python_updater_warning}" == "1" ]]; then
|
||||
ewarn "You have just upgraded from an older version of Python."
|
||||
ewarn "You should switch active version of Python ${PV%%.*} and run"
|
||||
ewarn "'python-updater [options]' to rebuild Python modules."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
eselect_python_update
|
||||
}
|
@ -1,375 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
WANT_LIBTOOL="none"
|
||||
|
||||
inherit autotools eutils flag-o-matic multilib pax-utils python-utils-r1 toolchain-funcs multiprocessing
|
||||
|
||||
MY_P="Python-${PV}"
|
||||
PATCHSET_VERSION="2.7.10-0"
|
||||
|
||||
DESCRIPTION="An interpreted, interactive, object-oriented programming language"
|
||||
HOMEPAGE="http://www.python.org/"
|
||||
SRC_URI="http://www.python.org/ftp/python/${PV}/${MY_P}.tar.xz
|
||||
https://dev.gentoo.org/~floppym/python/python-gentoo-patches-${PATCHSET_VERSION}.tar.xz"
|
||||
|
||||
LICENSE="PSF-2"
|
||||
SLOT="2.7"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="-berkdb build doc elibc_uclibc examples gdbm hardened ipv6 libressl +ncurses +readline sqlite +ssl +threads tk +wide-unicode wininst +xml"
|
||||
|
||||
# Do not add a dependency on dev-lang/python to this ebuild.
|
||||
# If you need to apply a patch which requires python for bootstrapping, please
|
||||
# run the bootstrap code on your dev box and include the results in the
|
||||
# patchset. See bug 447752.
|
||||
|
||||
RDEPEND="app-arch/bzip2:0=
|
||||
>=sys-libs/zlib-1.1.3:0=
|
||||
virtual/libffi
|
||||
virtual/libintl
|
||||
berkdb? ( || (
|
||||
sys-libs/db:5.3
|
||||
sys-libs/db:5.2
|
||||
sys-libs/db:5.1
|
||||
sys-libs/db:5.0
|
||||
sys-libs/db:4.8
|
||||
sys-libs/db:4.7
|
||||
sys-libs/db:4.6
|
||||
sys-libs/db:4.5
|
||||
sys-libs/db:4.4
|
||||
sys-libs/db:4.3
|
||||
sys-libs/db:4.2
|
||||
) )
|
||||
gdbm? ( sys-libs/gdbm:0=[berkdb] )
|
||||
ncurses? (
|
||||
>=sys-libs/ncurses-5.2:0=
|
||||
readline? ( >=sys-libs/readline-4.1:0= )
|
||||
)
|
||||
sqlite? ( >=dev-db/sqlite-3.3.8:3= )
|
||||
ssl? (
|
||||
!libressl? ( dev-libs/openssl:0= )
|
||||
libressl? ( dev-libs/libressl:= )
|
||||
)
|
||||
tk? (
|
||||
>=dev-lang/tcl-8.0:0=
|
||||
>=dev-lang/tk-8.0:0=
|
||||
dev-tcltk/blt:0=
|
||||
dev-tcltk/tix
|
||||
)
|
||||
xml? ( >=dev-libs/expat-2.1 )
|
||||
!!<sys-apps/portage-2.1.9"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
>=sys-devel/autoconf-2.65
|
||||
!sys-devel/gcc[libffi]"
|
||||
RDEPEND+=" !build? ( app-misc/mime-types )
|
||||
doc? ( dev-python/python-docs:${SLOT} )"
|
||||
PDEPEND=">=app-eselect/eselect-python-20151117-r1
|
||||
app-admin/python-updater"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
pkg_setup() {
|
||||
if use berkdb; then
|
||||
ewarn "'bsddb' module is out-of-date and no longer maintained inside"
|
||||
ewarn "dev-lang/python. 'bsddb' and 'dbhash' modules have been additionally"
|
||||
ewarn "removed in Python 3. A maintained alternative of 'bsddb3' module"
|
||||
ewarn "is provided by dev-python/bsddb3."
|
||||
else
|
||||
if has_version "=${CATEGORY}/${PN}-${PV%%.*}*[berkdb]"; then
|
||||
ewarn "You are migrating from =${CATEGORY}/${PN}-${PV%%.*}*[berkdb]"
|
||||
ewarn "to =${CATEGORY}/${PN}-${PV%%.*}*[-berkdb]."
|
||||
ewarn "You might need to migrate your databases."
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Ensure that internal copies of expat, libffi and zlib are not used.
|
||||
rm -r Modules/expat || die
|
||||
rm -r Modules/_ctypes/libffi* || die
|
||||
rm -r Modules/zlib || die
|
||||
|
||||
if tc-is-cross-compiler; then
|
||||
local EPATCH_EXCLUDE="*_regenerate_platform-specific_modules.patch"
|
||||
fi
|
||||
|
||||
EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
|
||||
|
||||
# Fix for cross-compiling.
|
||||
epatch "${FILESDIR}/python-2.7.5-nonfatal-compileall.patch"
|
||||
epatch "${FILESDIR}/python-2.7.9-ncurses-pkg-config.patch"
|
||||
epatch "${FILESDIR}/python-2.7.10-cross-compile-warn-test.patch"
|
||||
epatch "${FILESDIR}/python-2.7.10-system-libffi.patch"
|
||||
|
||||
sed -i -e "s:@@GENTOO_LIBDIR@@:$(get_libdir):g" \
|
||||
Lib/distutils/command/install.py \
|
||||
Lib/distutils/sysconfig.py \
|
||||
Lib/site.py \
|
||||
Lib/sysconfig.py \
|
||||
Lib/test/test_site.py \
|
||||
Makefile.pre.in \
|
||||
Modules/Setup.dist \
|
||||
Modules/getpath.c \
|
||||
setup.py || die "sed failed to replace @@GENTOO_LIBDIR@@"
|
||||
|
||||
epatch_user
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# dbm module can be linked against berkdb or gdbm.
|
||||
# Defaults to gdbm when both are enabled, #204343.
|
||||
local disable
|
||||
use berkdb || use gdbm || disable+=" dbm"
|
||||
use berkdb || disable+=" _bsddb"
|
||||
use gdbm || disable+=" gdbm"
|
||||
use ncurses || disable+=" _curses _curses_panel"
|
||||
use readline || disable+=" readline"
|
||||
use sqlite || disable+=" _sqlite3"
|
||||
use ssl || export PYTHON_DISABLE_SSL="1"
|
||||
use tk || disable+=" _tkinter"
|
||||
use xml || disable+=" _elementtree pyexpat" # _elementtree uses pyexpat.
|
||||
export PYTHON_DISABLE_MODULES="${disable}"
|
||||
|
||||
if ! use xml; then
|
||||
ewarn "You have configured Python without XML support."
|
||||
ewarn "This is NOT a recommended configuration as you"
|
||||
ewarn "may face problems parsing any XML documents."
|
||||
fi
|
||||
|
||||
if [[ -n "${PYTHON_DISABLE_MODULES}" ]]; then
|
||||
einfo "Disabled modules: ${PYTHON_DISABLE_MODULES}"
|
||||
fi
|
||||
|
||||
if [[ "$(gcc-major-version)" -ge 4 ]]; then
|
||||
append-flags -fwrapv
|
||||
fi
|
||||
|
||||
filter-flags -malign-double
|
||||
|
||||
[[ "${ARCH}" == "alpha" ]] && append-flags -fPIC
|
||||
|
||||
# https://bugs.gentoo.org/show_bug.cgi?id=50309
|
||||
if is-flagq -O3; then
|
||||
is-flagq -fstack-protector-all && replace-flags -O3 -O2
|
||||
use hardened && replace-flags -O3 -O2
|
||||
fi
|
||||
|
||||
if tc-is-cross-compiler; then
|
||||
# Force some tests that try to poke fs paths.
|
||||
export ac_cv_file__dev_ptc=no
|
||||
export ac_cv_file__dev_ptmx=yes
|
||||
fi
|
||||
|
||||
# Export CXX so it ends up in /usr/lib/python2.X/config/Makefile.
|
||||
tc-export CXX
|
||||
# The configure script fails to use pkg-config correctly.
|
||||
# http://bugs.python.org/issue15506
|
||||
export ac_cv_path_PKG_CONFIG=$(tc-getPKG_CONFIG)
|
||||
|
||||
# Set LDFLAGS so we link modules with -lpython2.7 correctly.
|
||||
# Needed on FreeBSD unless Python 2.7 is already installed.
|
||||
# Please query BSD team before removing this!
|
||||
append-ldflags "-L."
|
||||
|
||||
local dbmliborder
|
||||
if use gdbm; then
|
||||
dbmliborder+="${dbmliborder:+:}gdbm"
|
||||
fi
|
||||
if use berkdb; then
|
||||
dbmliborder+="${dbmliborder:+:}bdb"
|
||||
fi
|
||||
|
||||
BUILD_DIR="${WORKDIR}/${CHOST}"
|
||||
mkdir -p "${BUILD_DIR}" || die
|
||||
cd "${BUILD_DIR}" || die
|
||||
|
||||
ECONF_SOURCE="${S}" OPT="" \
|
||||
econf \
|
||||
--with-fpectl \
|
||||
--enable-shared \
|
||||
$(use_enable ipv6) \
|
||||
$(use_with threads) \
|
||||
$(use wide-unicode && echo "--enable-unicode=ucs4" || echo "--enable-unicode=ucs2") \
|
||||
--infodir='${prefix}/share/info' \
|
||||
--mandir='${prefix}/share/man' \
|
||||
--with-dbmliborder="${dbmliborder}" \
|
||||
--with-libc="" \
|
||||
--enable-loadable-sqlite-extensions \
|
||||
--with-system-expat \
|
||||
--with-system-ffi \
|
||||
--without-ensurepip
|
||||
|
||||
if use threads && grep -q "#define POSIX_SEMAPHORES_NOT_ENABLED 1" pyconfig.h; then
|
||||
eerror "configure has detected that the sem_open function is broken."
|
||||
eerror "Please ensure that /dev/shm is mounted as a tmpfs with mode 1777."
|
||||
die "Broken sem_open function (bug 496328)"
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Avoid invoking pgen for cross-compiles.
|
||||
touch Include/graminit.h Python/graminit.c
|
||||
|
||||
cd "${BUILD_DIR}" || die
|
||||
emake
|
||||
|
||||
# Work around bug 329499. See also bug 413751 and 457194.
|
||||
if has_version dev-libs/libffi[pax_kernel]; then
|
||||
pax-mark E python
|
||||
else
|
||||
pax-mark m python
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# Tests will not work when cross compiling.
|
||||
if tc-is-cross-compiler; then
|
||||
elog "Disabling tests due to crosscompiling."
|
||||
return
|
||||
fi
|
||||
|
||||
cd "${BUILD_DIR}" || die
|
||||
|
||||
# Skip failing tests.
|
||||
local skipped_tests="distutils gdb"
|
||||
|
||||
for test in ${skipped_tests}; do
|
||||
mv "${S}"/Lib/test/test_${test}.py "${T}"
|
||||
done
|
||||
|
||||
# Rerun failed tests in verbose mode (regrtest -w).
|
||||
emake test EXTRATESTOPTS="-w" < /dev/tty
|
||||
local result="$?"
|
||||
|
||||
for test in ${skipped_tests}; do
|
||||
mv "${T}/test_${test}.py" "${S}"/Lib/test
|
||||
done
|
||||
|
||||
elog "The following tests have been skipped:"
|
||||
for test in ${skipped_tests}; do
|
||||
elog "test_${test}.py"
|
||||
done
|
||||
|
||||
elog "If you would like to run them, you may:"
|
||||
elog "cd '${EPREFIX}/usr/$(get_libdir)/python${SLOT}/test'"
|
||||
elog "and run the tests separately."
|
||||
|
||||
if [[ "${result}" -ne 0 ]]; then
|
||||
die "emake test failed"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local libdir=${ED}/usr/$(get_libdir)/python${SLOT}
|
||||
|
||||
cd "${BUILD_DIR}" || die
|
||||
emake DESTDIR="${D}" altinstall
|
||||
|
||||
sed -e "s/\(LDFLAGS=\).*/\1/" -i "${libdir}/config/Makefile" || die "sed failed"
|
||||
|
||||
# Fix collisions between different slots of Python.
|
||||
mv "${ED}usr/bin/2to3" "${ED}usr/bin/2to3-${SLOT}"
|
||||
mv "${ED}usr/bin/pydoc" "${ED}usr/bin/pydoc${SLOT}"
|
||||
mv "${ED}usr/bin/idle" "${ED}usr/bin/idle${SLOT}"
|
||||
rm -f "${ED}usr/bin/smtpd.py"
|
||||
|
||||
use berkdb || rm -r "${libdir}/"{bsddb,dbhash.py,test/test_bsddb*} || die
|
||||
use sqlite || rm -r "${libdir}/"{sqlite3,test/test_sqlite*} || die
|
||||
use tk || rm -r "${ED}usr/bin/idle${SLOT}" "${libdir}/"{idlelib,lib-tk} || die
|
||||
use elibc_uclibc && rm -fr "${libdir}/"{bsddb/test,test}
|
||||
|
||||
use threads || rm -r "${libdir}/multiprocessing" || die
|
||||
use wininst || rm -r "${libdir}/distutils/command/"wininst-*.exe || die
|
||||
|
||||
dodoc "${S}"/Misc/{ACKS,HISTORY,NEWS}
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}/examples
|
||||
doins -r "${S}"/Tools
|
||||
fi
|
||||
insinto /usr/share/gdb/auto-load/usr/$(get_libdir) #443510
|
||||
local libname=$(printf 'e:\n\t@echo $(INSTSONAME)\ninclude Makefile\n' | \
|
||||
emake --no-print-directory -s -f - 2>/dev/null)
|
||||
newins "${S}"/Tools/gdb/libpython.py "${libname}"-gdb.py
|
||||
|
||||
newconfd "${FILESDIR}/pydoc.conf" pydoc-${SLOT}
|
||||
newinitd "${FILESDIR}/pydoc.init" pydoc-${SLOT}
|
||||
sed \
|
||||
-e "s:@PYDOC_PORT_VARIABLE@:PYDOC${SLOT/./_}_PORT:" \
|
||||
-e "s:@PYDOC@:pydoc${SLOT}:" \
|
||||
-i "${ED}etc/conf.d/pydoc-${SLOT}" "${ED}etc/init.d/pydoc-${SLOT}" || die "sed failed"
|
||||
|
||||
# for python-exec
|
||||
local vars=( EPYTHON PYTHON_SITEDIR PYTHON_SCRIPTDIR )
|
||||
|
||||
# if not using a cross-compiler, use the fresh binary
|
||||
if ! tc-is-cross-compiler; then
|
||||
local -x PYTHON=./python
|
||||
local -x LD_LIBRARY_PATH=${LD_LIBRARY_PATH+${LD_LIBRARY_PATH}:}.
|
||||
else
|
||||
vars=( PYTHON "${vars[@]}" )
|
||||
fi
|
||||
|
||||
python_export "python${SLOT}" "${vars[@]}"
|
||||
echo "EPYTHON='${EPYTHON}'" > epython.py || die
|
||||
python_domodule epython.py
|
||||
|
||||
# python-exec wrapping support
|
||||
local pymajor=${SLOT%.*}
|
||||
mkdir -p "${D}${PYTHON_SCRIPTDIR}" || die
|
||||
# python and pythonX
|
||||
ln -s "../../../bin/python${SLOT}" \
|
||||
"${D}${PYTHON_SCRIPTDIR}/python${pymajor}" || die
|
||||
ln -s "python${pymajor}" \
|
||||
"${D}${PYTHON_SCRIPTDIR}/python" || die
|
||||
# python-config and pythonX-config
|
||||
ln -s "../../../bin/python${SLOT}-config" \
|
||||
"${D}${PYTHON_SCRIPTDIR}/python${pymajor}-config" || die
|
||||
ln -s "python${pymajor}-config" \
|
||||
"${D}${PYTHON_SCRIPTDIR}/python-config" || die
|
||||
# 2to3, pydoc, pyvenv
|
||||
ln -s "../../../bin/2to3-${SLOT}" \
|
||||
"${D}${PYTHON_SCRIPTDIR}/2to3" || die
|
||||
ln -s "../../../bin/pydoc${SLOT}" \
|
||||
"${D}${PYTHON_SCRIPTDIR}/pydoc" || die
|
||||
# idle
|
||||
if use tk; then
|
||||
ln -s "../../../bin/idle${PYVER}" \
|
||||
"${D}${PYTHON_SCRIPTDIR}/idle" || die
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if has_version "<${CATEGORY}/${PN}-${SLOT}" && ! has_version "${CATEGORY}/${PN}:2.7"; then
|
||||
python_updater_warning="1"
|
||||
fi
|
||||
}
|
||||
|
||||
eselect_python_update() {
|
||||
if [[ -z "$(eselect python show)" || ! -f "${EROOT}usr/bin/$(eselect python show)" ]]; then
|
||||
eselect python update
|
||||
fi
|
||||
|
||||
if [[ -z "$(eselect python show --python${PV%%.*})" || ! -f "${EROOT}usr/bin/$(eselect python show --python${PV%%.*})" ]]; then
|
||||
eselect python update --python${PV%%.*}
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
eselect_python_update
|
||||
|
||||
if [[ "${python_updater_warning}" == "1" ]]; then
|
||||
ewarn "You have just upgraded from an older version of Python."
|
||||
ewarn "You should switch active version of Python ${PV%%.*} and run"
|
||||
ewarn "'python-updater [options]' to rebuild Python modules."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
eselect_python_update
|
||||
}
|
@ -1,328 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="4"
|
||||
WANT_AUTOMAKE="none"
|
||||
WANT_LIBTOOL="none"
|
||||
|
||||
inherit autotools eutils flag-o-matic multilib pax-utils python-utils-r1 toolchain-funcs multiprocessing
|
||||
|
||||
MY_P="Python-${PV}"
|
||||
PATCHSET_VERSION="${PV}-0"
|
||||
|
||||
DESCRIPTION="An interpreted, interactive, object-oriented programming language"
|
||||
HOMEPAGE="http://www.python.org/"
|
||||
SRC_URI="http://www.python.org/ftp/python/${PV}/${MY_P}.tar.xz
|
||||
https://dev.gentoo.org/~floppym/python/python-gentoo-patches-${PATCHSET_VERSION}.tar.xz
|
||||
mirror://gentoo/python-gentoo-patches-${PATCHSET_VERSION}.tar.xz"
|
||||
|
||||
LICENSE="PSF-2"
|
||||
SLOT="3.3"
|
||||
KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="build doc elibc_uclibc examples gdbm hardened ipv6 +ncurses +readline sqlite +ssl +threads tk wininst +xml"
|
||||
|
||||
# Do not add a dependency on dev-lang/python to this ebuild.
|
||||
# If you need to apply a patch which requires python for bootstrapping, please
|
||||
# run the bootstrap code on your dev box and include the results in the
|
||||
# patchset. See bug 447752.
|
||||
|
||||
RDEPEND="app-arch/bzip2
|
||||
app-arch/xz-utils
|
||||
>=sys-libs/zlib-1.1.3
|
||||
virtual/libffi
|
||||
virtual/libintl
|
||||
!build? (
|
||||
gdbm? ( sys-libs/gdbm[berkdb] )
|
||||
ncurses? (
|
||||
>=sys-libs/ncurses-5.2:0
|
||||
readline? ( >=sys-libs/readline-4.1 )
|
||||
)
|
||||
sqlite? ( >=dev-db/sqlite-3.3.8:3 )
|
||||
ssl? ( dev-libs/openssl )
|
||||
tk? (
|
||||
>=dev-lang/tk-8.0
|
||||
dev-tcltk/blt
|
||||
dev-tcltk/tix
|
||||
)
|
||||
xml? ( >=dev-libs/expat-2.1 )
|
||||
)
|
||||
!!<sys-apps/sandbox-2.6-r1"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
>=sys-devel/autoconf-2.65
|
||||
!sys-devel/gcc[libffi]"
|
||||
RDEPEND+=" !build? ( app-misc/mime-types )
|
||||
doc? ( dev-python/python-docs:${SLOT} )"
|
||||
PDEPEND="app-eselect/eselect-python
|
||||
app-admin/python-updater"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_prepare() {
|
||||
# Ensure that internal copies of expat, libffi and zlib are not used.
|
||||
rm -fr Modules/expat
|
||||
rm -fr Modules/_ctypes/libffi*
|
||||
rm -fr Modules/zlib
|
||||
|
||||
if tc-is-cross-compiler; then
|
||||
# Invokes BUILDPYTHON, which is built for the host arch
|
||||
local EPATCH_EXCLUDE="*_regenerate_platform-specific_modules.patch"
|
||||
fi
|
||||
|
||||
EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
|
||||
epatch "${FILESDIR}/${PN}-3.3.5-ncurses-pkg-config.patch"
|
||||
|
||||
sed -i -e "s:@@GENTOO_LIBDIR@@:$(get_libdir):g" \
|
||||
Lib/distutils/command/install.py \
|
||||
Lib/distutils/sysconfig.py \
|
||||
Lib/site.py \
|
||||
Lib/sysconfig.py \
|
||||
Lib/test/test_site.py \
|
||||
Makefile.pre.in \
|
||||
Modules/Setup.dist \
|
||||
Modules/getpath.c \
|
||||
setup.py || die "sed failed to replace @@GENTOO_LIBDIR@@"
|
||||
|
||||
# Disable ABI flags.
|
||||
sed -e "s/ABIFLAGS=\"\${ABIFLAGS}.*\"/:/" -i configure.ac || die "sed failed"
|
||||
|
||||
# bug #514686
|
||||
epatch "${FILESDIR}/${PN}-3.3-CVE-2014-4616.patch"
|
||||
|
||||
epatch_user
|
||||
|
||||
eautoconf
|
||||
eautoheader
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
if use build; then
|
||||
# Disable extraneous modules with extra dependencies.
|
||||
export PYTHON_DISABLE_MODULES="gdbm _curses _curses_panel readline _sqlite3 _tkinter _elementtree pyexpat"
|
||||
export PYTHON_DISABLE_SSL="1"
|
||||
else
|
||||
local disable
|
||||
use gdbm || disable+=" gdbm"
|
||||
use ncurses || disable+=" _curses _curses_panel"
|
||||
use readline || disable+=" readline"
|
||||
use sqlite || disable+=" _sqlite3"
|
||||
use ssl || export PYTHON_DISABLE_SSL="1"
|
||||
use tk || disable+=" _tkinter"
|
||||
use xml || disable+=" _elementtree pyexpat" # _elementtree uses pyexpat.
|
||||
export PYTHON_DISABLE_MODULES="${disable}"
|
||||
|
||||
if ! use xml; then
|
||||
ewarn "You have configured Python without XML support."
|
||||
ewarn "This is NOT a recommended configuration as you"
|
||||
ewarn "may face problems parsing any XML documents."
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ -n "${PYTHON_DISABLE_MODULES}" ]]; then
|
||||
einfo "Disabled modules: ${PYTHON_DISABLE_MODULES}"
|
||||
fi
|
||||
|
||||
if [[ "$(gcc-major-version)" -ge 4 ]]; then
|
||||
append-flags -fwrapv
|
||||
fi
|
||||
|
||||
filter-flags -malign-double
|
||||
|
||||
[[ "${ARCH}" == "alpha" ]] && append-flags -fPIC
|
||||
|
||||
# https://bugs.gentoo.org/show_bug.cgi?id=50309
|
||||
if is-flagq -O3; then
|
||||
is-flagq -fstack-protector-all && replace-flags -O3 -O2
|
||||
use hardened && replace-flags -O3 -O2
|
||||
fi
|
||||
|
||||
# Export CXX so it ends up in /usr/lib/python3.X/config/Makefile.
|
||||
tc-export CXX
|
||||
# The configure script fails to use pkg-config correctly.
|
||||
# http://bugs.python.org/issue15506
|
||||
export ac_cv_path_PKG_CONFIG=$(tc-getPKG_CONFIG)
|
||||
|
||||
# Set LDFLAGS so we link modules with -lpython3.2 correctly.
|
||||
# Needed on FreeBSD unless Python 3.2 is already installed.
|
||||
# Please query BSD team before removing this!
|
||||
append-ldflags "-L."
|
||||
|
||||
local dbmliborder
|
||||
if use gdbm; then
|
||||
dbmliborder+="${dbmliborder:+:}gdbm"
|
||||
fi
|
||||
|
||||
BUILD_DIR="${WORKDIR}/${CHOST}"
|
||||
mkdir -p "${BUILD_DIR}" || die
|
||||
cd "${BUILD_DIR}" || die
|
||||
|
||||
ECONF_SOURCE="${S}" OPT="" \
|
||||
econf \
|
||||
--with-fpectl \
|
||||
--enable-shared \
|
||||
$(use_enable ipv6) \
|
||||
$(use_with threads) \
|
||||
--infodir='${prefix}/share/info' \
|
||||
--mandir='${prefix}/share/man' \
|
||||
--with-computed-gotos \
|
||||
--with-dbmliborder="${dbmliborder}" \
|
||||
--with-libc="" \
|
||||
--enable-loadable-sqlite-extensions \
|
||||
--with-system-expat \
|
||||
--with-system-ffi
|
||||
|
||||
if use threads && grep -q "#define POSIX_SEMAPHORES_NOT_ENABLED 1" pyconfig.h; then
|
||||
eerror "configure has detected that the sem_open function is broken."
|
||||
eerror "Please ensure that /dev/shm is mounted as a tmpfs with mode 1777."
|
||||
die "Broken sem_open function (bug 496328)"
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Avoid invoking pgen for cross-compiles.
|
||||
touch Include/graminit.h Python/graminit.c || die
|
||||
|
||||
cd "${BUILD_DIR}" || die
|
||||
emake CPPFLAGS="" CFLAGS="" LDFLAGS=""
|
||||
|
||||
# Work around bug 329499. See also bug 413751 and 457194.
|
||||
if has_version dev-libs/libffi[pax_kernel]; then
|
||||
pax-mark E python
|
||||
else
|
||||
pax-mark m python
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# Tests will not work when cross compiling.
|
||||
if tc-is-cross-compiler; then
|
||||
elog "Disabling tests due to crosscompiling."
|
||||
return
|
||||
fi
|
||||
|
||||
cd "${BUILD_DIR}" || die
|
||||
|
||||
# Skip failing tests.
|
||||
local skipped_tests="gdb"
|
||||
|
||||
for test in ${skipped_tests}; do
|
||||
mv "${S}"/Lib/test/test_${test}.py "${T}"
|
||||
done
|
||||
|
||||
PYTHONDONTWRITEBYTECODE="" emake test EXTRATESTOPTS="-u -network" FLAGS="" CFLAGS="" LDFLAGS="" < /dev/tty
|
||||
local result="$?"
|
||||
|
||||
for test in ${skipped_tests}; do
|
||||
mv "${T}/test_${test}.py" "${S}"/Lib/test
|
||||
done
|
||||
|
||||
elog "The following tests have been skipped:"
|
||||
for test in ${skipped_tests}; do
|
||||
elog "test_${test}.py"
|
||||
done
|
||||
|
||||
elog "If you would like to run them, you may:"
|
||||
elog "cd '${EPREFIX}/usr/$(get_libdir)/python${SLOT}/test'"
|
||||
elog "and run the tests separately."
|
||||
|
||||
if [[ "${result}" -ne 0 ]]; then
|
||||
die "emake test failed"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local libdir=${ED}/usr/$(get_libdir)/python${SLOT}
|
||||
|
||||
cd "${BUILD_DIR}" || die
|
||||
|
||||
emake DESTDIR="${D}" altinstall
|
||||
|
||||
sed \
|
||||
-e "s/\(CONFIGURE_LDFLAGS=\).*/\1/" \
|
||||
-e "s/\(PY_LDFLAGS=\).*/\1/" \
|
||||
-i "${libdir}/config-${SLOT}/Makefile" || die "sed failed"
|
||||
|
||||
# Backwards compat with Gentoo divergence.
|
||||
dosym python${SLOT}-config /usr/bin/python-config-${SLOT}
|
||||
|
||||
# Fix collisions between different slots of Python.
|
||||
rm -f "${ED}usr/$(get_libdir)/libpython3.so"
|
||||
|
||||
if use build; then
|
||||
rm -fr "${ED}usr/bin/idle${SLOT}" "${libdir}/"{idlelib,sqlite3,test,tkinter}
|
||||
else
|
||||
use elibc_uclibc && rm -fr "${libdir}/test"
|
||||
use sqlite || rm -fr "${libdir}/"{sqlite3,test/test_sqlite*}
|
||||
use tk || rm -fr "${ED}usr/bin/idle${SLOT}" "${libdir}/"{idlelib,tkinter,test/test_tk*}
|
||||
fi
|
||||
|
||||
use threads || rm -fr "${libdir}/multiprocessing"
|
||||
use wininst || rm -f "${libdir}/distutils/command/"wininst-*.exe
|
||||
|
||||
dodoc "${S}"/Misc/{ACKS,HISTORY,NEWS}
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}/examples
|
||||
find "${S}"/Tools -name __pycache__ -print0 | xargs -0 rm -fr
|
||||
doins -r "${S}"/Tools
|
||||
fi
|
||||
insinto /usr/share/gdb/auto-load/usr/$(get_libdir) #443510
|
||||
local libname=$(printf 'e:\n\t@echo $(INSTSONAME)\ninclude Makefile\n' | \
|
||||
emake --no-print-directory -s -f - 2>/dev/null)
|
||||
newins "${S}"/Tools/gdb/libpython.py "${libname}"-gdb.py
|
||||
|
||||
newconfd "${FILESDIR}/pydoc.conf" pydoc-${SLOT}
|
||||
newinitd "${FILESDIR}/pydoc.init" pydoc-${SLOT}
|
||||
sed \
|
||||
-e "s:@PYDOC_PORT_VARIABLE@:PYDOC${SLOT/./_}_PORT:" \
|
||||
-e "s:@PYDOC@:pydoc${SLOT}:" \
|
||||
-i "${ED}etc/conf.d/pydoc-${SLOT}" "${ED}etc/init.d/pydoc-${SLOT}" || die "sed failed"
|
||||
|
||||
# for python-exec
|
||||
local vars=( EPYTHON PYTHON_SITEDIR )
|
||||
|
||||
# if not using a cross-compiler, use the fresh binary
|
||||
if ! tc-is-cross-compiler; then
|
||||
local -x PYTHON=./python
|
||||
local -x LD_LIBRARY_PATH=${LD_LIBRARY_PATH+${LD_LIBRARY_PATH}:}.
|
||||
else
|
||||
vars=( PYTHON "${vars[@]}" )
|
||||
fi
|
||||
|
||||
python_export "python${PYVER}" "${vars[@]}"
|
||||
echo "EPYTHON='${EPYTHON}'" > epython.py || die
|
||||
python_domodule epython.py
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if has_version "<${CATEGORY}/${PN}-${SLOT}" && ! has_version ">=${CATEGORY}/${PN}-${SLOT}_alpha"; then
|
||||
python_updater_warning="1"
|
||||
fi
|
||||
}
|
||||
|
||||
eselect_python_update() {
|
||||
if [[ -z "$(eselect python show)" || ! -f "${EROOT}usr/bin/$(eselect python show)" ]]; then
|
||||
eselect python update
|
||||
fi
|
||||
|
||||
if [[ -z "$(eselect python show --python${PV%%.*})" || ! -f "${EROOT}usr/bin/$(eselect python show --python${PV%%.*})" ]]; then
|
||||
eselect python update --python${PV%%.*}
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
eselect_python_update
|
||||
|
||||
if [[ "${python_updater_warning}" == "1" ]]; then
|
||||
ewarn "You have just upgraded from an older version of Python."
|
||||
ewarn
|
||||
ewarn "Please adjust PYTHON_TARGETS (if so desired), and run emerge with the --newuse or --changed-use option to rebuild packages installing python modules."
|
||||
ewarn
|
||||
ewarn "For legacy packages, you should switch active version of Python and run 'python-updater [options]' to rebuild Python modules."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
eselect_python_update
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue