parent
40cc1cd883
commit
18a44ed430
Binary file not shown.
Binary file not shown.
@ -1,3 +1,4 @@
|
||||
DIST sysklogd-1.5.1.tar.gz 90011 BLAKE2B c40bd8d5769f7d3d4141d602c74ac41e05a140743d18c4923d9368da7ba193ccb89a6837173994f0b7a9c290cc23f64513040434d7ab8df81b5d09b73b0263ad SHA512 a72196a1a172d25be1c4791ef6256fe71fa2ba8c1383d230e646e93f8a65c3a57c535189726325da4c792fdb2e9cb119bba43c878816a8e78e78189fd32b12b7
|
||||
DIST sysklogd-2.0.1.tar.gz 461158 BLAKE2B 2c56ea1b5edb11f6ce75cb34d7cb5778516fbf3cb64986a7dd6063f830e9e8040430a0deb0ac68aeb389435319ede89202b2aa31cb480fe9bd9518ad503ca6ee SHA512 24d82a2db8d7d8fbdf291964d3d42717cf3b62129d1d503986b17a8005ca414eb824c39ed787d73bac966dad5a7cc9b439efce58e218aebed72b765e07134a83
|
||||
DIST sysklogd-2.0.tar.gz 465822 BLAKE2B 030ce2e65287d215d376937aec590715abcac06dffef735038c31ee102eb00d5c616bfd2f3d378e53ef6ae4aa062e9802aaaca84a6f5598b43da35ee722d37ac SHA512 25b55b8ea47280c11959e03d5a8c592e1b02764b4aeb722ef9782d84116475f1bbba96d6db8c291b694d99c7970e2e7615e7cd48b8fef6dff4f9ae825e18d030
|
||||
DIST sysklogd_1.5-6.diff.gz 25677 BLAKE2B 3cb1f596490998b6002d4656a2321a500ce9941a37737c0b9d4702bbb87d7bc9ba21b68e06d175e3c1714a701adc6b3312e18a556ebc9ef395d8968762830cb5 SHA512 816961a835a43057569f62fd20d9f7b5e0bfcfcb173b68947457708504db3ce47e635956c8a9564f9bd577d8f3c49dfc725d321dfd3370b2de918363c30f838e
|
||||
|
@ -0,0 +1,68 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit flag-o-matic systemd toolchain-funcs
|
||||
|
||||
DESCRIPTION="Standard log daemons"
|
||||
HOMEPAGE="https://troglobit.com/sysklogd.html https://github.com/troglobit/sysklogd"
|
||||
SRC_URI="https://github.com/troglobit/sysklogd/releases/download/v${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
|
||||
IUSE="klogd logger logrotate systemd"
|
||||
RESTRICT="test"
|
||||
|
||||
DEPEND="
|
||||
logger? (
|
||||
!<sys-apps/util-linux-2.34-r3
|
||||
!>=sys-apps/util-linux-2.34-r3[logger]
|
||||
)
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
DOCS=( ChangeLog.md README.md )
|
||||
|
||||
pkg_setup() {
|
||||
append-lfs-flags
|
||||
tc-export CC
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
--runstatedir="${EPREFIX}"/run
|
||||
$(use_with klogd)
|
||||
$(use_with logger)
|
||||
$(use_with systemd systemd $(systemd_get_systemunitdir))
|
||||
)
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
insinto /etc
|
||||
doins syslog.conf
|
||||
keepdir /etc/syslog.d
|
||||
|
||||
newinitd "${FILESDIR}"/sysklogd.rc8 sysklogd
|
||||
newconfd "${FILESDIR}"/sysklogd.confd2 sysklogd
|
||||
|
||||
if use logrotate ; then
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}"/sysklogd.logrotate sysklogd
|
||||
sed 's@ -r 10M:10@@' -i "${ED}"/etc/conf.d/sysklogd || die
|
||||
fi
|
||||
|
||||
find "${ED}" -type f \( -name "*.a" -o -name "*.la" \) -delete || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if ! use logrotate && [[ -n ${REPLACING_VERSIONS} ]] && ver_test ${REPLACING_VERSIONS} -lt 2.0 ; then
|
||||
elog "Starting with version 2.0 syslogd has built in log rotation"
|
||||
elog "functionality that does no longer require a running cron daemon."
|
||||
elog "So we no longer install any log rotation cron files for sysklogd."
|
||||
fi
|
||||
}
|
Binary file not shown.
@ -0,0 +1,120 @@
|
||||
From 25b9fccdae3a05561b6b7c9c82018a9a3dfec819 Mon Sep 17 00:00:00 2001
|
||||
From: Lars Wendler <polynomial-c@gentoo.org>
|
||||
Date: Mon, 25 Nov 2019 15:54:09 +0100
|
||||
Subject: [PATCH] build: Use pkg-config to find libxml2
|
||||
|
||||
Otherwise we get unneccesary linkage to icu and other unwanted stuff
|
||||
|
||||
Bug: https://bugzilla.clamav.net/show_bug.cgi?id=12202
|
||||
Gentoo-bug: https://bugs.gentoo.org/661328
|
||||
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
|
||||
---
|
||||
m4/reorganization/libs/xml.m4 | 82 ++++++-----------------------------
|
||||
1 file changed, 13 insertions(+), 69 deletions(-)
|
||||
|
||||
diff --git a/m4/reorganization/libs/xml.m4 b/m4/reorganization/libs/xml.m4
|
||||
index 24f0cfa92..d143e3a47 100644
|
||||
--- a/m4/reorganization/libs/xml.m4
|
||||
+++ b/m4/reorganization/libs/xml.m4
|
||||
@@ -4,85 +4,29 @@ AC_ARG_ENABLE([xml],
|
||||
[AS_HELP_STRING([--disable-xml], [do not include DMG and XAR support])],
|
||||
want_xml=$enableval, want_xml="auto")
|
||||
|
||||
-XML_HOME=""
|
||||
-xmlconfig=""
|
||||
if test "X$want_xml" != "Xno"; then
|
||||
- AC_MSG_CHECKING([for libxml2 installation])
|
||||
- AC_ARG_WITH([xml],
|
||||
- AS_HELP_STRING([--with-xml@<:@=DIR@:>@], [path to directory containing libxml2 library
|
||||
- @<:@default=/usr/local or /usr if not found in /usr/local@:>@]),
|
||||
- [with_xml_val=$withval]
|
||||
- )
|
||||
-
|
||||
- AS_IF([test "x$with_xml_val" = "xno"], [XML_HOME=""],
|
||||
- [test "x$with_xml_val" = "xyes"], [XML_HOME="/usr/local"],
|
||||
- [XML_HOME="$with_xml_val"])
|
||||
-
|
||||
- AS_IF([test "x$XML_HOME" != "x"], [
|
||||
- AS_IF([test ! -x "$XML_HOME/bin/xml2-config"], [XML_HOME=""])
|
||||
- ])
|
||||
-
|
||||
- AS_IF([test "x$XML_HOME" = "x" -a "x$with_xml_val" = "xyes"], [
|
||||
- AS_IF([test -x "/usr/bin/xml2-config"], [XML_HOME="/usr"])
|
||||
- ])
|
||||
-
|
||||
- if test "x$XML_HOME" != "x"; then
|
||||
- AC_MSG_RESULT([$XML_HOME])
|
||||
- with_xml="yes"
|
||||
- else
|
||||
- AC_MSG_RESULT([not found])
|
||||
- fi
|
||||
-
|
||||
- found_xml="no"
|
||||
- XMLCONF_VERSION=""
|
||||
- XML_CPPFLAGS=""
|
||||
- XML_LIBS=""
|
||||
- case "$with_xml" in
|
||||
- yes) AC_PATH_PROG([xmlconfig], [xml2-config])
|
||||
- if test "x$xmlconfig" = x ; then
|
||||
- AC_MSG_NOTICE([can not locate xml2-config in PATH, will search default XML_HOME variants])
|
||||
-
|
||||
- if test "x$XML_HOME" != "x"; then
|
||||
- AC_MSG_CHECKING([xml2-config version])
|
||||
- XMLCONF_VERSION="`$XML_HOME/bin/xml2-config --version`"
|
||||
-
|
||||
- if test "x%XMLCONF_VERSION" != "x"; then
|
||||
- AC_MSG_RESULT([$XMLCONF_VERSION])
|
||||
- found_xml="yes"
|
||||
- XML_CPPFLAGS="`$XML_HOME/bin/xml2-config --cflags`"
|
||||
- XML_LIBS="`$XML_HOME/bin/xml2-config --libs`"
|
||||
- AS_ECHO("$XML_CPPFLAGS")
|
||||
- AS_ECHO("$XML_LIBS")
|
||||
- else
|
||||
- AC_MSG_ERROR([xml2-config failed])
|
||||
- fi
|
||||
- fi
|
||||
- else
|
||||
- found_xml="yes"
|
||||
- XMLCONF_VERSION="`$xmlconfig --version`"
|
||||
- XML_CPPFLAGS="`$xmlconfig --cflags`"
|
||||
- XML_LIBS="`$xmlconfig --libs`"
|
||||
- fi
|
||||
- esac
|
||||
+ PKG_CHECK_MODULES([XML], [libxml-2.0],
|
||||
+ [found_xml=yes],
|
||||
+ [
|
||||
+ found_xml=no
|
||||
+ AS_IF([test "x$want_xml" = xyes],
|
||||
+ [AC_MSG_ERROR([--enable-xml set but cannot find libxml2])]
|
||||
+ )
|
||||
+ ]
|
||||
+ )
|
||||
|
||||
working_xml="no"
|
||||
if test "X$found_xml" != "Xno"; then
|
||||
-
|
||||
- readerresult=""
|
||||
- if test "x$xmlconfig" = x ; then
|
||||
- readerresult="$XML_HOME/include/libxml2/libxml/xmlreader.h"
|
||||
- else
|
||||
- readerresult="`$xmlconfig --prefix`/include/libxml2/libxml/xmlreader.h"
|
||||
- fi
|
||||
-
|
||||
+ XML_HOME=$(${PKG_CONFIG} --variable prefix libxml-2.0)
|
||||
AC_MSG_CHECKING([for xmlreader.h in $readerresult])
|
||||
-
|
||||
- if test ! -f "$readerresult"; then
|
||||
+
|
||||
+ if test ! -f "$XML_HOME/include/libxml2/libxml/xmlreader.h"; then
|
||||
AC_MSG_RESULT([not found])
|
||||
else
|
||||
AC_MSG_RESULT([found])
|
||||
save_LIBS="$LIBS"
|
||||
save_CPPFLAGS="$CPPFLAGS"
|
||||
+ XML_CPPFLAGS="$XML_CFLAGS"
|
||||
CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
|
||||
save_LDFLAGS="$LDFLAGS"
|
||||
LDFLAGS="$LDFLAGS $XML_LIBS"
|
||||
--
|
||||
2.24.0
|
||||
|
Binary file not shown.
Binary file not shown.
@ -1,4 +1,2 @@
|
||||
DIST yubikey-manager-2.0.0.tar.gz 102078 BLAKE2B a2b8f90dabefb1014881cbe709222bf5cb48c9f409b415a8a2b27d7101c2da6189d0ebfe21a2701d10798c48c44e546659f9424ba6bf9257f7311abb0fc90b9b SHA512 42bebb88ba78bcce00a228109d0b4c815b3242ddbe43fd26c1209ba8666eb033ab77d5acd39a157e8310ce327de8d38bf88cfa0ffaed6273236b220c39e72e3b
|
||||
DIST yubikey-manager-2.1.1.tar.gz 101672 BLAKE2B baafce3850c0cbed842508c93ec4ad71e0eebbd0dcc61833b245b6c62f74b7215519cb8b1ec82df3be8c7677ec24447193a0121e0a63e67615453c2c6032fc0a SHA512 2c5990d9421acf93113347e9b9d33af893765ae9c5d9e6c9c4f2db1274b84cd839c15ae74327bdcbe9ec32ebdbcbed95b172b8b13ac00bbeb17eb06b6dd71ccd
|
||||
DIST yubikey-manager-3.0.0.tar.gz 138225 BLAKE2B 8506f7cc4d6579c1905d565d5d32a7e745389000ff67786e5b5e6bc54793230321e5f0f4840c625cae0a4d9d2893b75910bebb3207cfc75189d3a4876838a712 SHA512 47ae785356c256f31e118f2df483d3a0d7fb7b5b380fd7cd207334daaa47319855bde41931099f9acb6b310d4ba824540ab5d3008384fd4d6a373da7355b18eb
|
||||
DIST yubikey-manager-3.1.0.tar.gz 115010 BLAKE2B 1b27b9af7f3adac87a1bca58929bffef2ae397b359f70580a07193d2bd2f8cd4d2d867053f6494f1e262668443388d79dfe3775f2c3d0a5528840df8826cdf91 SHA512 518eedb52cfcf725c13114c433f848b97f711e94fa9c71685916fb8cb20e5bfc431f648b0ec710ef9ebed2bc8ddd8722ca1c9865d7a1b29537b719e167ed5f60
|
||||
|
@ -1,61 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_{5,6}} )
|
||||
inherit readme.gentoo-r1 distutils-r1
|
||||
|
||||
DESCRIPTION="Python library and command line tool for configuring a YubiKey"
|
||||
HOMEPAGE="https://developers.yubico.com/yubikey-manager/"
|
||||
# Per https://github.com/Yubico/yubikey-manager/issues/217, Yubico is
|
||||
# the official source for tarballs, not Github
|
||||
SRC_URI="https://developers.yubico.com/${PN}/Releases/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/click[${PYTHON_USEDEP}]
|
||||
dev-python/cryptography[${PYTHON_USEDEP}]
|
||||
$(python_gen_cond_dep 'dev-python/enum34[${PYTHON_USEDEP}]' python2_7)
|
||||
dev-python/fido2[${PYTHON_USEDEP}]
|
||||
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
||||
dev-python/pyscard[${PYTHON_USEDEP}]
|
||||
dev-python/pyusb[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
>=sys-auth/ykpers-1.19.0
|
||||
"
|
||||
DEPEND="
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
${RDEPEND}
|
||||
$(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' 'python2_7')
|
||||
)
|
||||
"
|
||||
|
||||
python_test() {
|
||||
esetup.py test
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
local DOC_CONTENTS
|
||||
|
||||
distutils-r1_python_install_all
|
||||
|
||||
DOC_CONTENTS="
|
||||
The 'openpgp' command may require the package 'app-crypt/ccid'
|
||||
to be installed on the system. Furthermore, make sure that pcscd
|
||||
daemon is running and has correct access permissions to USB
|
||||
devices.
|
||||
"
|
||||
readme.gentoo_create_doc
|
||||
|
||||
doman "${S}"/man/ykman.1
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
readme.gentoo_print_elog
|
||||
}
|
@ -1,61 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_{5,6}} )
|
||||
inherit readme.gentoo-r1 distutils-r1
|
||||
|
||||
DESCRIPTION="Python library and command line tool for configuring a YubiKey"
|
||||
HOMEPAGE="https://developers.yubico.com/yubikey-manager/"
|
||||
# Per https://github.com/Yubico/yubikey-manager/issues/217, Yubico is
|
||||
# the official source for tarballs, not Github
|
||||
SRC_URI="https://developers.yubico.com/${PN}/Releases/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/click[${PYTHON_USEDEP}]
|
||||
dev-python/cryptography[${PYTHON_USEDEP}]
|
||||
$(python_gen_cond_dep 'dev-python/enum34[${PYTHON_USEDEP}]' python2_7)
|
||||
>=dev-python/fido2-0.7.0[${PYTHON_USEDEP}]
|
||||
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
||||
dev-python/pyscard[${PYTHON_USEDEP}]
|
||||
dev-python/pyusb[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
>=sys-auth/ykpers-1.19.0
|
||||
"
|
||||
DEPEND="
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
${RDEPEND}
|
||||
$(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' 'python2_7')
|
||||
)
|
||||
"
|
||||
|
||||
python_test() {
|
||||
esetup.py test
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
local DOC_CONTENTS
|
||||
|
||||
distutils-r1_python_install_all
|
||||
|
||||
DOC_CONTENTS="
|
||||
The 'openpgp' command may require the package 'app-crypt/ccid'
|
||||
to be installed on the system. Furthermore, make sure that pcscd
|
||||
daemon is running and has correct access permissions to USB
|
||||
devices.
|
||||
"
|
||||
readme.gentoo_create_doc
|
||||
|
||||
doman "${S}"/man/ykman.1
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
readme.gentoo_print_elog
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -1,2 +1 @@
|
||||
DIST kile-2.9.92_p20190716.tar.xz 6176728 BLAKE2B cc6b5f12c7798c806a1e78b79c32e90a3f713d65429afbddfbf75a3a666cfbea75d32be1c2e7d15ce2e414301473f03168e84428bcec161cfd12ceeba674add3 SHA512 614d6aba168f47af41e6a352e7ad838c187945b857c19654ce40ea80c359e5d88a184f1ab02b404c022b897f8ac6f3a61323c9d1043fbb0412eb3d16690e40bb
|
||||
DIST kile-2.9.93.tar.bz2 8580239 BLAKE2B a43f160240dfdffc23c6898385994ee4e49e1f3d793915d1f392e41f606350269f2b9e80592c373680adb56454510abdd0b7e69131f20737fb5efa54d4eaa111 SHA512 d87277b8ef16c82cfd415dd191916641fa1a25e316e1eb2c463b275d3654dcfe180bea03027589ab30cd8b769d92d97005846a78aff8058bcfb20eed76287504
|
||||
|
@ -1,72 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
KDE_HANDBOOK="forceoptional"
|
||||
inherit kde5
|
||||
|
||||
DESCRIPTION="Latex Editor and TeX shell based on KDE Frameworks"
|
||||
HOMEPAGE="https://kile.sourceforge.io/"
|
||||
SRC_URI="https://dev.gentoo.org/~asturm/distfiles/${P}.tar.xz"
|
||||
|
||||
LICENSE="FDL-1.2 GPL-2"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="+pdf +png"
|
||||
|
||||
DEPEND="
|
||||
$(add_frameworks_dep kconfig)
|
||||
$(add_frameworks_dep kcoreaddons)
|
||||
$(add_frameworks_dep kcrash)
|
||||
$(add_frameworks_dep kdbusaddons)
|
||||
$(add_frameworks_dep kdoctools)
|
||||
$(add_frameworks_dep kguiaddons)
|
||||
$(add_frameworks_dep khtml)
|
||||
$(add_frameworks_dep ki18n)
|
||||
$(add_frameworks_dep kiconthemes)
|
||||
$(add_frameworks_dep kinit)
|
||||
$(add_frameworks_dep kio)
|
||||
$(add_frameworks_dep kparts)
|
||||
$(add_frameworks_dep ktexteditor)
|
||||
$(add_frameworks_dep kwindowsystem)
|
||||
$(add_frameworks_dep kxmlgui)
|
||||
$(add_kdeapps_dep okular)
|
||||
$(add_qt_dep qtdbus)
|
||||
$(add_qt_dep qtscript)
|
||||
$(add_qt_dep qttest)
|
||||
$(add_qt_dep qtwidgets)
|
||||
pdf? ( app-text/poppler[qt5] )
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
!app-editors/kile:4
|
||||
$(add_kdeapps_dep konsole)
|
||||
$(add_kdeapps_dep okular 'pdf?')
|
||||
virtual/latex-base
|
||||
virtual/tex-base
|
||||
pdf? (
|
||||
>=app-text/texlive-core-2014
|
||||
app-text/ghostscript-gpl
|
||||
)
|
||||
png? (
|
||||
app-text/dvipng
|
||||
virtual/imagemagick-tools[png?]
|
||||
)
|
||||
"
|
||||
|
||||
DOCS=( kile-remote-control.txt )
|
||||
|
||||
src_prepare() {
|
||||
kde5_src_prepare
|
||||
|
||||
# I know upstream wants to help us but it doesn't work..
|
||||
sed -e '/INSTALL( FILES AUTHORS/s/^/#DISABLED /' \
|
||||
-i CMakeLists.txt || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
$(cmake-utils_use_find_package pdf Poppler)
|
||||
)
|
||||
|
||||
kde5_src_configure
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -1,3 +1,2 @@
|
||||
DIST buildah-1.11.2.tar.gz 10128075 BLAKE2B ad8f4253b62cd7709bf5ae530d002190c1850da6bbfa7dff2281de0592422eccc67a4ba6e52f7a82d6c1b320b986237a84d0ffaaf9b3b1b93822a54621365250 SHA512 f491d96d5bb4d0aa03981fb58d24f36c2e3928179c8fb79e85f323ce9a65ae6da05b816d86ae43f94a83a1b2445b315f93ca28b531436d9b4e5861e4adef2aac
|
||||
DIST buildah-1.11.3.tar.gz 10429884 BLAKE2B 2d433a128d115c6b2f3a9d246d41406993905dee357237796cea3295036d026ca93f8c98ca992cfebfa574ab0d5e7b974fd356a146b7cde58986166bc18a5645 SHA512 07fff3f8c044ad01a663bf5470b19f75568ce741b3bb45f656200099ba559622597111ede3e20331dc06139f2e58d962d92bf0fdd00284ca6ed05b5b66500975
|
||||
DIST buildah-1.11.5.tar.gz 10594213 BLAKE2B 421d4ea78ad84fbae42086b8d49fec26db8e2aa1f83e261a8b5b1f3f41a5be4ea2fdeb41d4e27fb52bf23f309b8aea1d050cea0c6deffcad0ebb273032e712ba SHA512 04a9c51e1cb6f3a88f118b69dcea1eba85b02d534e671cd5bf31a6d6a797bce4a488c9373c92736fccd74331c1242ff60a95f44626ecbb50c32db176c7106e86
|
||||
DIST containers-storage-1.14.0-vfs-user-xattrs.patch 14835 BLAKE2B 99c35933dcb25385ee83b80cf282c11c738d0e4d91216cc08a50522f6caa9bca5938299412908f16df404f99e80616a10b4c02c0ebc38240a987830ddaf15008 SHA512 62c7ed49728bd12b5706f59b0d4af3b18d90e8cfc2b06e681f84fe3f5d3e0cd5c0317147109c4e3ec4fec26f82c269af3c9813e47339ce102e4e97400b74627d
|
||||
|
@ -1,57 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
inherit bash-completion-r1 golang-vcs-snapshot
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
DESCRIPTION="A tool that facilitates building OCI images"
|
||||
HOMEPAGE="https://github.com/containers/buildah"
|
||||
LICENSE="Apache-2.0 BSD BSD-2 CC-BY-SA-4.0 ISC MIT MPL-2.0"
|
||||
SLOT="0"
|
||||
IUSE="ostree selinux"
|
||||
EGO_PN="${HOMEPAGE#*//}"
|
||||
EGIT_COMMIT="v${PV}"
|
||||
GIT_COMMIT="0bafbfe"
|
||||
SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
RDEPEND="app-crypt/gpgme:=
|
||||
app-emulation/skopeo
|
||||
dev-libs/libgpg-error:=
|
||||
dev-libs/libassuan:=
|
||||
sys-fs/lvm2:=
|
||||
sys-libs/libseccomp:=
|
||||
selinux? ( sys-libs/libselinux:= )"
|
||||
DEPEND="${RDEPEND}"
|
||||
RESTRICT="test"
|
||||
REQUIRED_USE="!selinux? ( !ostree )"
|
||||
S="${WORKDIR}/${P}/src/${EGO_PN}"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -e 's|^\(GIT_COMMIT ?= \).*|\1'${GIT_COMMIT}'|' -i Makefile || die
|
||||
|
||||
[[ -f ostree_tag.sh ]] || die
|
||||
use ostree || { echo -e "#!/bin/sh\necho containers_image_ostree_stub" > \
|
||||
ostree_tag.sh || die; }
|
||||
|
||||
[[ -f selinux_tag.sh ]] || die
|
||||
use selinux || { echo -e "#!/bin/sh\ntrue" > \
|
||||
selinux_tag.sh || die; }
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
export -n GOCACHE XDG_CACHE_HOME
|
||||
GOPATH="${WORKDIR}/${P}" emake all
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodoc CHANGELOG.md CONTRIBUTING.md README.md install.md troubleshooting.md
|
||||
doman docs/*.1
|
||||
dodoc -r docs/tutorials
|
||||
dobin ${PN} imgtype
|
||||
dobashcomp contrib/completions/bash/buildah
|
||||
}
|
||||
|
||||
src_test() {
|
||||
GOPATH="${WORKDIR}/${P}" emake test-unit
|
||||
}
|
@ -1,57 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
inherit bash-completion-r1 golang-vcs-snapshot
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
DESCRIPTION="A tool that facilitates building OCI images"
|
||||
HOMEPAGE="https://github.com/containers/buildah"
|
||||
LICENSE="Apache-2.0 BSD BSD-2 CC-BY-SA-4.0 ISC MIT MPL-2.0"
|
||||
SLOT="0"
|
||||
IUSE="ostree selinux"
|
||||
EGO_PN="${HOMEPAGE#*//}"
|
||||
EGIT_COMMIT="v${PV}"
|
||||
GIT_COMMIT="bdd78ad"
|
||||
SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
RDEPEND="app-crypt/gpgme:=
|
||||
app-emulation/skopeo
|
||||
dev-libs/libgpg-error:=
|
||||
dev-libs/libassuan:=
|
||||
sys-fs/lvm2:=
|
||||
sys-libs/libseccomp:=
|
||||
selinux? ( sys-libs/libselinux:= )"
|
||||
DEPEND="${RDEPEND}"
|
||||
RESTRICT="test"
|
||||
REQUIRED_USE="!selinux? ( !ostree )"
|
||||
S="${WORKDIR}/${P}/src/${EGO_PN}"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -e 's|^\(GIT_COMMIT ?= \).*|\1'${GIT_COMMIT}'|' -i Makefile || die
|
||||
|
||||
[[ -f ostree_tag.sh ]] || die
|
||||
use ostree || { echo -e "#!/bin/sh\necho containers_image_ostree_stub" > \
|
||||
ostree_tag.sh || die; }
|
||||
|
||||
[[ -f selinux_tag.sh ]] || die
|
||||
use selinux || { echo -e "#!/bin/sh\ntrue" > \
|
||||
selinux_tag.sh || die; }
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
export -n GOCACHE XDG_CACHE_HOME
|
||||
GOPATH="${WORKDIR}/${P}" emake all
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodoc CHANGELOG.md CONTRIBUTING.md README.md install.md troubleshooting.md
|
||||
doman docs/*.1
|
||||
dodoc -r docs/tutorials
|
||||
dobin ${PN} imgtype
|
||||
dobashcomp contrib/completions/bash/buildah
|
||||
}
|
||||
|
||||
src_test() {
|
||||
GOPATH="${WORKDIR}/${P}" emake test-unit
|
||||
}
|
@ -1,102 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
EGO_VENDOR=(
|
||||
"github.com/pquerna/ffjson e517b90714f7c0eabe6d2e570a5886ae077d6db6"
|
||||
)
|
||||
|
||||
inherit golang-vcs-snapshot
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
DESCRIPTION="containers/storage library"
|
||||
HOMEPAGE="https://github.com/containers/storage"
|
||||
LICENSE="Apache-2.0 BSD BSD-2 CC-BY-SA-4.0 ISC MIT"
|
||||
SLOT="0"
|
||||
IUSE="btrfs +device-mapper test"
|
||||
EGO_PN="${HOMEPAGE#*//}"
|
||||
EGIT_COMMIT="v${PV}"
|
||||
SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz
|
||||
${EGO_VENDOR_URI}"
|
||||
RDEPEND="
|
||||
btrfs? ( sys-fs/btrfs-progs )
|
||||
device-mapper? ( sys-fs/lvm2:= )"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-go/go-md2man
|
||||
test? (
|
||||
sys-fs/btrfs-progs
|
||||
sys-fs/lvm2
|
||||
sys-apps/util-linux
|
||||
)"
|
||||
RESTRICT="test? ( userpriv ) !test? ( test )"
|
||||
|
||||
src_unpack() {
|
||||
golang-vcs-snapshot_src_unpack
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
[[ -f ${S}/src/${EGO_PN}/hack/btrfs_tag.sh ]] || die
|
||||
use btrfs || { echo -e "#!/bin/sh\necho exclude_graphdriver_btrfs" > \
|
||||
"${S}/src/${EGO_PN}/hack/btrfs_tag.sh" || die; }
|
||||
|
||||
[[ -f ${S}/src/${EGO_PN}/hack/libdm_tag.sh ]] || die
|
||||
use device-mapper || { echo -e "#!/bin/sh\necho btrfs_noversion exclude_graphdriver_devicemapper" > \
|
||||
"${S}/src/${EGO_PN}/hack/libdm_tag.sh" || die; }
|
||||
|
||||
sed -e 's:TestChrootUntarPath(:_\0:' \
|
||||
-i "${S}/src/${EGO_PN}/pkg/chrootarchive/archive_test.go" || die
|
||||
sed -e 's:TestTarUntar(:_\0:' \
|
||||
-e 's:TestTarWithOptionsChownOptsAlwaysOverridesIdPair(:_\0:' \
|
||||
-e 's:TestTarWithOptions(:_\0:' \
|
||||
-i "${S}/src/${EGO_PN}/pkg/archive/archive_test.go" || die
|
||||
sed -e 's:TestTarUntarWithXattr(:_\0:' \
|
||||
-e 's:TestTarWithBlockCharFifo(:_\0:' \
|
||||
-i "${S}/src/${EGO_PN}/pkg/archive/archive_unix_test.go" || die
|
||||
sed -e 's:TestTarUntarWithXattr(:_\0:' \
|
||||
-i "${S}/src/${EGO_PN}/pkg/archive/archive_test.go" || die
|
||||
sed -e 's:TestApplyLayer(:_\0:' \
|
||||
-i "${S}/src/${EGO_PN}/pkg/archive/changes_test.go" || die
|
||||
sed -e 's:TestApplyLayerInvalidFilenames(:_\0:' \
|
||||
-e 's:TestApplyLayerInvalidHardlink(:_\0:' \
|
||||
-e 's:TestApplyLayerInvalidSymlink(:_\0:' \
|
||||
-e 's:TestApplyLayerWhiteouts(:_\0:' \
|
||||
-i "${S}/src/${EGO_PN}/pkg/archive/diff_test.go" || die
|
||||
sed -e 's:TestCopyCaseE(:_\0:' \
|
||||
-e 's:TestCopyCaseEFSym(:_\0:' \
|
||||
-e 's:TestCopyCaseG(:_\0:' \
|
||||
-e 's:TestCopyCaseGFSym(:_\0:' \
|
||||
-e 's:TestCopyCaseH(:_\0:' \
|
||||
-e 's:TestCopyCaseHFSym(:_\0:' \
|
||||
-e 's:TestCopyCaseJ(:_\0:' \
|
||||
-e 's:TestCopyCaseJFSym(:_\0:' \
|
||||
-i "${S}/src/${EGO_PN}/pkg/archive/copy_unix_test.go" || die
|
||||
sed -e 's:TestMount(:_\0:' \
|
||||
-i "${S}/src/${EGO_PN}/pkg/mount/mounter_linux_test.go" || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
export -n GOCACHE XDG_CACHE_HOME #678856
|
||||
mkdir -p "${S}/src/github.com/pquerna" || die
|
||||
ln -s "${S}/src/${EGO_PN}/vendor/github.com/pquerna/ffjson" "${WORKDIR}/${P}/src/github.com/pquerna/ffjson" || die
|
||||
mkdir -p "${S}/bin" || die
|
||||
cd "${S}/bin" || die
|
||||
GOPATH="${S}" GOBIN="${S}/bin" \
|
||||
go build -v -work -x ${EGO_BUILD_FLAGS} "${S}/src/github.com/pquerna/ffjson/ffjson.go" || die
|
||||
GOPATH="${S}" GOBIN="${S}/bin" PATH="${S}/bin:${PATH}" \
|
||||
emake -C "${S}/src/${EGO_PN}" containers-storage docs
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin "${S}/src/${EGO_PN}/${PN}"
|
||||
while read -r -d ''; do
|
||||
mv "${REPLY}" "${REPLY%.1}" || die
|
||||
done < <(find "${S}/src/${EGO_PN}/docs" -name '*.[[:digit:]].1' -print0)
|
||||
find "${S}/src/${EGO_PN}/docs" -name '*.[[:digit:]]' -exec doman '{}' + || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
GOPATH="${S}" unshare -m emake -C "${S}/src/${EGO_PN}" FLAGS="-v -work -x" local-test-unit || die
|
||||
}
|
@ -1,331 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=(python2_7)
|
||||
PYTHON_REQ_USE="ipv6(+)?"
|
||||
|
||||
inherit user autotools bash-completion-r1 python-single-r1 versionator
|
||||
|
||||
MY_PV="${PV/_rc/~rc}"
|
||||
MY_PV="${MY_PV/_beta/~beta}"
|
||||
MY_P="${PN}-${MY_PV}"
|
||||
SERIES="$(get_version_component_range 1-2)"
|
||||
|
||||
DEBIAN_PATCH=4
|
||||
SRC_URI="
|
||||
http://downloads.ganeti.org/releases/${SERIES}/${MY_P}.tar.gz
|
||||
mirror://ubuntu/pool/universe/${PN:0:1}/${PN}/${PN}_${PV}-${DEBIAN_PATCH}.debian.tar.xz
|
||||
"
|
||||
KEYWORDS="amd64 x86"
|
||||
PATCHES=(
|
||||
"${WORKDIR}"/debian/patches/do-not-backup-export-dir.patch
|
||||
"${WORKDIR}"/debian/patches/Makefile.am-use-C.UTF-8
|
||||
"${WORKDIR}"/debian/patches/relax-deps
|
||||
"${WORKDIR}"/debian/patches/zlib-0.6-compatibility
|
||||
"${WORKDIR}"/debian/patches/fix_FTBFS_with_sphinx-1.3.5
|
||||
"${WORKDIR}"/debian/patches/fix_ftbfs_with_sphinx_1.4
|
||||
)
|
||||
|
||||
DESCRIPTION="Ganeti is a virtual server management software tool"
|
||||
HOMEPAGE="http://www.ganeti.org/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="drbd haskell-daemons htools ipv6 kvm lxc monitoring multiple-users rbd syslog test xen restricted-commands"
|
||||
|
||||
REQUIRED_USE="|| ( kvm xen lxc )
|
||||
test? ( ipv6 )
|
||||
kvm? ( || ( amd64 x86 ) )
|
||||
${PYTHON_REQUIRED_USE}"
|
||||
|
||||
USER_PREFIX="${GANETI_USER_PREFIX:-"gnt-"}"
|
||||
GROUP_PREFIX="${GANETI_GROUP_PREFIX:-"${USER_PREFIX}"}"
|
||||
|
||||
DEPEND="
|
||||
dev-libs/openssl:0
|
||||
dev-python/paramiko[${PYTHON_USEDEP}]
|
||||
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
||||
dev-python/simplejson[${PYTHON_USEDEP}]
|
||||
dev-python/pyparsing[${PYTHON_USEDEP}]
|
||||
dev-python/pyinotify[${PYTHON_USEDEP}]
|
||||
dev-python/pycurl[${PYTHON_USEDEP}]
|
||||
dev-python/ipaddr[${PYTHON_USEDEP}]
|
||||
dev-python/bitarray[${PYTHON_USEDEP}]
|
||||
dev-python/docutils[${PYTHON_USEDEP}]
|
||||
dev-python/fdsend[${PYTHON_USEDEP}]
|
||||
|| (
|
||||
net-misc/iputils[arping]
|
||||
net-analyzer/arping
|
||||
)
|
||||
net-analyzer/fping
|
||||
net-misc/bridge-utils
|
||||
net-misc/curl[ssl]
|
||||
net-misc/openssh
|
||||
net-misc/socat
|
||||
sys-apps/iproute2
|
||||
sys-fs/lvm2
|
||||
>=sys-apps/baselayout-2.0
|
||||
dev-lang/ghc:0=
|
||||
dev-haskell/cabal:0=
|
||||
dev-haskell/cabal-install:0=
|
||||
>=dev-haskell/mtl-2.1.1:0=
|
||||
>=dev-haskell/old-time-1.1.0.0:0=
|
||||
>=dev-haskell/random-1.0.1.1:0=
|
||||
haskell-daemons? ( >=dev-haskell/text-0.11.1.13:0= )
|
||||
>=dev-haskell/transformers-0.3.0.0:0=
|
||||
|
||||
>=dev-haskell/attoparsec-0.10.1.1:0=
|
||||
<dev-haskell/attoparsec-0.14:0
|
||||
>=dev-haskell/base64-bytestring-1.0.0.1:0=
|
||||
<dev-haskell/base64-bytestring-1.1:0=
|
||||
>=dev-haskell/crypto-4.2.4:0=
|
||||
<dev-haskell/crypto-4.3:0=
|
||||
>=dev-haskell/curl-1.3.7:0=
|
||||
<dev-haskell/curl-1.4:0=
|
||||
>=dev-haskell/hinotify-0.3.2:0=
|
||||
<dev-haskell/hinotify-0.4:0=
|
||||
>=dev-haskell/hslogger-1.1.4:0=
|
||||
<dev-haskell/hslogger-1.3:0=
|
||||
>=dev-haskell/json-0.5:0=
|
||||
>=dev-haskell/lens-3.10:0=
|
||||
>=dev-haskell/lifted-base-0.2.0.3:0=
|
||||
<dev-haskell/lifted-base-0.3:0=
|
||||
>=dev-haskell/monad-control-0.3.1.3:0=
|
||||
<dev-haskell/monad-control-1.1:0=
|
||||
>=dev-haskell/network-2.3.0.13:0=
|
||||
<dev-haskell/network-2.7:0=
|
||||
>=dev-haskell/parallel-3.2.0.2:3=
|
||||
<dev-haskell/parallel-3.3:3=
|
||||
>=dev-haskell/temporary-1.1.2.3:0=
|
||||
<dev-haskell/temporary-1.3:0=
|
||||
>=dev-haskell/regex-pcre-0.94.2:0=
|
||||
<dev-haskell/regex-pcre-0.95:0=
|
||||
>=dev-haskell/transformers-base-0.4.1:0=
|
||||
<dev-haskell/transformers-base-0.5:0=
|
||||
>=dev-haskell/utf8-string-0.3.7:0=
|
||||
>=dev-haskell/zlib-0.5.3.3:0=
|
||||
<dev-haskell/zlib-0.7:0=
|
||||
|
||||
>=dev-haskell/psqueue-1.1:0=
|
||||
<dev-haskell/psqueue-1.2:0=
|
||||
>=dev-haskell/snap-core-0.8.1:0=
|
||||
<dev-haskell/snap-core-0.10:0=
|
||||
>=dev-haskell/snap-server-0.8.1:0=
|
||||
<dev-haskell/snap-server-0.10:0=
|
||||
>=dev-haskell/case-insensitive-0.4.0.1
|
||||
|
||||
dev-haskell/vector:0=
|
||||
xen? ( >=app-emulation/xen-3.0 )
|
||||
kvm? (
|
||||
dev-python/psutil
|
||||
app-emulation/qemu
|
||||
)
|
||||
lxc? ( app-emulation/lxc )
|
||||
drbd? ( sys-cluster/drbd-utils )
|
||||
rbd? ( sys-cluster/ceph )
|
||||
ipv6? ( net-misc/ndisc6 )
|
||||
${PYTHON_DEPS}"
|
||||
RDEPEND="${DEPEND}
|
||||
!app-emulation/ganeti-htools"
|
||||
DEPEND+="
|
||||
sys-devel/m4
|
||||
app-text/pandoc
|
||||
<=dev-python/sphinx-1.3.5[${PYTHON_USEDEP}]
|
||||
media-fonts/urw-fonts
|
||||
media-gfx/graphviz
|
||||
>=dev-haskell/test-framework-0.6:0=
|
||||
<dev-haskell/test-framework-0.9:0=
|
||||
>=dev-haskell/test-framework-hunit-0.2.7:0=
|
||||
<dev-haskell/test-framework-hunit-0.4:0=
|
||||
>=dev-haskell/test-framework-quickcheck2-0.2.12.1:0=
|
||||
<dev-haskell/test-framework-quickcheck2-0.4:0=
|
||||
test? (
|
||||
dev-python/mock
|
||||
dev-python/pyyaml
|
||||
dev-haskell/haddock:0=
|
||||
>=dev-haskell/hunit-1.2.4.2:0=
|
||||
<dev-haskell/hunit-1.3:0=
|
||||
>=dev-haskell/quickcheck-2.4.2:2=
|
||||
<dev-haskell/quickcheck-2.8.3:2=
|
||||
sys-apps/fakeroot
|
||||
>=net-misc/socat-1.7
|
||||
dev-util/shelltestrunner
|
||||
)"
|
||||
|
||||
PATCHES+=(
|
||||
"${FILESDIR}/${PN}-2.12-start-stop-daemon-args.patch"
|
||||
"${FILESDIR}/${PN}-2.11-add-pgrep.patch"
|
||||
"${FILESDIR}/${PN}-2.15-daemon-util.patch"
|
||||
"${FILESDIR}/${PN}-2.9-disable-root-tests.patch"
|
||||
"${FILESDIR}/${PN}-2.9-skip-cli-test.patch"
|
||||
"${FILESDIR}/${PN}-2.10-rundir.patch"
|
||||
"${FILESDIR}/${PN}-2.12-qemu-enable-kvm.patch"
|
||||
"${FILESDIR}/${PN}-2.11-tests.patch"
|
||||
"${FILESDIR}/${PN}-lockdir.patch"
|
||||
"${FILESDIR}/${PN}-2.11-dont-nest-libdir.patch"
|
||||
"${FILESDIR}/${PN}-2.11-dont-print-man-help.patch"
|
||||
"${FILESDIR}/${PN}-2.11-daemon-util-tests.patch"
|
||||
"${FILESDIR}/${PN}-2.13-process_unittest.patch"
|
||||
"${FILESDIR}/${PN}-2.15-python-mock.patch"
|
||||
"${FILESDIR}/${PN}-2.15.2-remove-sandbox-failing-tests.patch"
|
||||
"${FILESDIR}/${PN}-2.15-noded-must-run-as-root.patch"
|
||||
"${FILESDIR}/${PN}-2.15-kvmd-run-as-daemon-user.patch"
|
||||
"${FILESDIR}/${PN}-2.15-dont-invert-return-values-for-man-warnings.patch"
|
||||
)
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
QA_WX_LOAD="
|
||||
usr/lib*/${PN}/${SERIES}/usr/sbin/ganeti-*d
|
||||
usr/lib*/${PN}/${SERIES}/usr/bin/htools
|
||||
"
|
||||
|
||||
pkg_setup () {
|
||||
local user
|
||||
python-single-r1_pkg_setup
|
||||
|
||||
if use multiple-users; then
|
||||
for user in gnt-{masterd,confd,luxid,rapi,daemons,admin}; do
|
||||
enewgroup ${user}
|
||||
enewuser ${user} -1 -1 -1 ${user}
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local testfile
|
||||
if has_version '>=dev-lang/ghc-7.10'; then
|
||||
# Breaks the build on 7.8
|
||||
PATCHES+=(
|
||||
"${WORKDIR}"/debian/patches/ghc-7.10-compatibility.patch
|
||||
)
|
||||
fi
|
||||
eapply "${PATCHES[@]}"
|
||||
# Upstream commits:
|
||||
# 4c3c2ca2a97a69c0287a3d23e064bc17978105eb
|
||||
# 24618882737fd7c189adf99f4acc767d48f572c3
|
||||
sed -i \
|
||||
-e '/QuickCheck/s,< 2.8,< 2.8.3,g' \
|
||||
cabal/ganeti.template.cabal
|
||||
# Neuter -Werror
|
||||
sed -i \
|
||||
-e '/^if DEVELOPER_MODE/,/^endif/s/-Werror//' \
|
||||
Makefile.am
|
||||
|
||||
# not sure why these tests are failing
|
||||
# should remove this on next version bump if possible
|
||||
for testfile in test/py/import-export_unittest.bash; do
|
||||
printf '#!/bin/bash\ntrue\n' > "${testfile}"
|
||||
done
|
||||
|
||||
# take the sledgehammer approach to bug #526270
|
||||
grep -lr '/bin/sh' "${S}" | xargs -r -- sed -i 's:/bin/sh:/bin/bash:g'
|
||||
|
||||
eapply_user
|
||||
|
||||
[[ ${PV} =~ [9]{4,} ]] && ./autogen.sh
|
||||
rm autotools/missing
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure () {
|
||||
# this is kind of a hack to work around the removal of the qemu-kvm wrapper
|
||||
local kvm_arch
|
||||
|
||||
if use amd64; then
|
||||
kvm_arch=x86_64
|
||||
elif use x86; then
|
||||
kvm_arch=i386
|
||||
elif use kvm; then
|
||||
die "Could not determine qemu system to use for kvm"
|
||||
fi
|
||||
|
||||
econf --localstatedir=/var \
|
||||
--sharedstatedir=/var \
|
||||
--disable-symlinks \
|
||||
--with-ssh-initscript=/etc/init.d/sshd \
|
||||
--with-export-dir=/var/lib/ganeti-storage/export \
|
||||
--with-os-search-path=/usr/share/${PN}/os \
|
||||
$(use_enable restricted-commands) \
|
||||
$(use_enable test haskell-tests) \
|
||||
$(usex multiple-users "--with-default-user=" "" "gnt-daemons" "") \
|
||||
$(usex multiple-users "--with-user-prefix=" "" "${USER_PREFIX}" "") \
|
||||
$(usex multiple-users "--with-default-group=" "" "gnt-daemons" "") \
|
||||
$(usex multiple-users "--with-group-prefix=" "" "${GROUP_PREFIX}" "") \
|
||||
$(use_enable syslog) \
|
||||
$(use_enable monitoring) \
|
||||
$(usex kvm '--with-kvm-path=' '' "/usr/bin/qemu-system-${kvm_arch}" '') \
|
||||
$(usex haskell-daemons "--enable-confd=haskell" '' '' '') \
|
||||
--with-haskell-flags="-optl -Wl,-z,relro -optl -Wl,--as-needed" \
|
||||
--enable-socat-escape \
|
||||
--enable-socat-compress
|
||||
}
|
||||
|
||||
src_install () {
|
||||
emake V=1 DESTDIR="${D}" install
|
||||
|
||||
newinitd "${FILESDIR}"/ganeti.initd-r3 ${PN}
|
||||
newconfd "${FILESDIR}"/ganeti.confd-r2 ${PN}
|
||||
|
||||
if use kvm; then
|
||||
newinitd "${FILESDIR}"/ganeti-kvm-poweroff.initd ganeti-kvm-poweroff
|
||||
newconfd "${FILESDIR}"/ganeti-kvm-poweroff.confd ganeti-kvm-poweroff
|
||||
fi
|
||||
|
||||
# ganeti installs it's own docs in a generic location
|
||||
rm -rf "${D}"/{usr/share/doc/${PN},run}
|
||||
|
||||
sed -i "s:/usr/$(get_libdir)/${PN}/tools/burnin:burnin:" doc/examples/bash_completion
|
||||
newbashcomp doc/examples/bash_completion gnt-instance
|
||||
bashcomp_alias gnt-instance burnin ganeti-{cleaner,confd} \
|
||||
h{space,check,scan,info,ail,arep,roller,squeeze,bal} \
|
||||
gnt-{os,job,filter,debug,storage,group,node,network,backup,cluster}
|
||||
|
||||
use monitoring && bashcomp_alias gnt-instance mon-collector
|
||||
|
||||
dodoc INSTALL UPGRADE NEWS README doc/*.rst
|
||||
|
||||
docinto html
|
||||
dodoc -r doc/html/* doc/css/*.css
|
||||
|
||||
docinto examples
|
||||
dodoc doc/examples/{ganeti.cron,gnt-config-backup} doc/examples/*.ocf
|
||||
|
||||
docinto examples/hooks
|
||||
dodoc doc/examples/hooks/{ipsec,ethers}
|
||||
|
||||
insinto /etc/cron.d
|
||||
newins doc/examples/ganeti.cron ${PN}
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins doc/examples/ganeti.logrotate ${PN}
|
||||
|
||||
# need to dodir rather than keepdir here (bug #552482)
|
||||
dodir /var/lib/${PN}
|
||||
|
||||
keepdir /var/log/${PN}/
|
||||
keepdir /usr/share/${PN}/${SERIES}/os/
|
||||
keepdir /var/lib/ganeti-storage/{export,file,shared}/
|
||||
|
||||
dosym ${SERIES} "/usr/share/${PN}/default"
|
||||
dosym ${SERIES} "/usr/$(get_libdir)/${PN}/default"
|
||||
|
||||
python_fix_shebang "${ED}" "${D}"/usr/"$(get_libdir)"/${PN}/${SERIES}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use multiple-users; then
|
||||
elog "You have enable multiple user support, the users for this must"
|
||||
elog "be created. You can use the provided tool for this, which is"
|
||||
elog "located at:"
|
||||
elog " /usr/$(get_libdir)/${PN}/tools/users-setup"
|
||||
fi
|
||||
}
|
||||
|
||||
src_test () {
|
||||
PATH="${S}/scripts:${S}/src:${PATH}" \
|
||||
TMPDIR="/tmp" \
|
||||
GANETI_MASTER="$(hostname -f)" \
|
||||
emake check || die "emake check failed"
|
||||
}
|
@ -1,340 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=(python2_7)
|
||||
PYTHON_REQ_USE="ipv6(+)?"
|
||||
|
||||
inherit user autotools bash-completion-r1 python-single-r1 versionator
|
||||
|
||||
MY_PV="${PV/_rc/~rc}"
|
||||
MY_PV="${MY_PV/_beta/~beta}"
|
||||
MY_P="${PN}-${MY_PV}"
|
||||
SERIES="$(get_version_component_range 1-2)"
|
||||
|
||||
DEBIAN_PATCH=4
|
||||
SRC_URI="
|
||||
http://downloads.ganeti.org/releases/${SERIES}/${MY_P}.tar.gz
|
||||
mirror://ubuntu/pool/universe/${PN:0:1}/${PN}/${PN}_${PV}-${DEBIAN_PATCH}.debian.tar.xz
|
||||
"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
PATCHES=(
|
||||
"${WORKDIR}"/debian/patches/do-not-backup-export-dir.patch
|
||||
"${WORKDIR}"/debian/patches/Makefile.am-use-C.UTF-8
|
||||
"${WORKDIR}"/debian/patches/relax-deps
|
||||
"${WORKDIR}"/debian/patches/zlib-0.6-compatibility
|
||||
"${WORKDIR}"/debian/patches/fix_FTBFS_with_sphinx-1.3.5
|
||||
"${WORKDIR}"/debian/patches/fix_ftbfs_with_sphinx_1.4
|
||||
)
|
||||
|
||||
DESCRIPTION="Ganeti is a virtual server management software tool"
|
||||
HOMEPAGE="http://www.ganeti.org/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="drbd experimental haskell-daemons htools ipv6 kvm lxc monitoring multiple-users rbd syslog test xen restricted-commands"
|
||||
|
||||
REQUIRED_USE="|| ( kvm xen lxc )
|
||||
test? ( ipv6 )
|
||||
kvm? ( || ( amd64 x86 ) )
|
||||
${PYTHON_REQUIRED_USE}"
|
||||
|
||||
USER_PREFIX="${GANETI_USER_PREFIX:-"gnt-"}"
|
||||
GROUP_PREFIX="${GANETI_GROUP_PREFIX:-"${USER_PREFIX}"}"
|
||||
|
||||
DEPEND="
|
||||
dev-libs/openssl:0
|
||||
dev-python/paramiko[${PYTHON_USEDEP}]
|
||||
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
||||
dev-python/simplejson[${PYTHON_USEDEP}]
|
||||
dev-python/pyparsing[${PYTHON_USEDEP}]
|
||||
dev-python/pyinotify[${PYTHON_USEDEP}]
|
||||
dev-python/pycurl[${PYTHON_USEDEP}]
|
||||
dev-python/ipaddr[${PYTHON_USEDEP}]
|
||||
dev-python/bitarray[${PYTHON_USEDEP}]
|
||||
dev-python/docutils[${PYTHON_USEDEP}]
|
||||
dev-python/fdsend[${PYTHON_USEDEP}]
|
||||
|| (
|
||||
net-misc/iputils[arping]
|
||||
net-analyzer/arping
|
||||
)
|
||||
net-analyzer/fping
|
||||
net-misc/bridge-utils
|
||||
net-misc/curl[ssl]
|
||||
net-misc/openssh
|
||||
net-misc/socat
|
||||
sys-apps/iproute2
|
||||
sys-fs/lvm2
|
||||
>=sys-apps/baselayout-2.0
|
||||
dev-lang/ghc:0=
|
||||
dev-haskell/cabal:0=
|
||||
dev-haskell/cabal-install:0=
|
||||
>=dev-haskell/mtl-2.1.1:0=
|
||||
>=dev-haskell/old-time-1.1.0.0:0=
|
||||
>=dev-haskell/random-1.0.1.1:0=
|
||||
haskell-daemons? ( >=dev-haskell/text-0.11.1.13:0= )
|
||||
>=dev-haskell/transformers-0.3.0.0:0=
|
||||
|
||||
>=dev-haskell/attoparsec-0.10.1.1:0=
|
||||
<dev-haskell/attoparsec-0.14:0
|
||||
>=dev-haskell/base64-bytestring-1.0.0.1:0=
|
||||
<dev-haskell/base64-bytestring-1.1:0=
|
||||
>=dev-haskell/crypto-4.2.4:0=
|
||||
<dev-haskell/crypto-4.3:0=
|
||||
>=dev-haskell/curl-1.3.7:0=
|
||||
<dev-haskell/curl-1.4:0=
|
||||
>=dev-haskell/hinotify-0.3.2:0=
|
||||
<dev-haskell/hinotify-0.4:0=
|
||||
>=dev-haskell/hslogger-1.1.4:0=
|
||||
<dev-haskell/hslogger-1.3:0=
|
||||
>=dev-haskell/json-0.5:0=
|
||||
>=dev-haskell/lens-3.10:0=
|
||||
>=dev-haskell/lifted-base-0.2.0.3:0=
|
||||
<dev-haskell/lifted-base-0.3:0=
|
||||
>=dev-haskell/monad-control-0.3.1.3:0=
|
||||
<dev-haskell/monad-control-1.1:0=
|
||||
>=dev-haskell/network-2.3.0.13:0=
|
||||
<dev-haskell/network-2.7:0=
|
||||
>=dev-haskell/parallel-3.2.0.2:3=
|
||||
<dev-haskell/parallel-3.3:3=
|
||||
>=dev-haskell/temporary-1.1.2.3:0=
|
||||
<dev-haskell/temporary-1.3:0=
|
||||
>=dev-haskell/regex-pcre-0.94.2:0=
|
||||
<dev-haskell/regex-pcre-0.95:0=
|
||||
>=dev-haskell/transformers-base-0.4.1:0=
|
||||
<dev-haskell/transformers-base-0.5:0=
|
||||
>=dev-haskell/utf8-string-0.3.7:0=
|
||||
>=dev-haskell/zlib-0.5.3.3:0=
|
||||
<dev-haskell/zlib-0.7:0=
|
||||
|
||||
>=dev-haskell/psqueue-1.1:0=
|
||||
<dev-haskell/psqueue-1.2:0=
|
||||
>=dev-haskell/snap-core-0.8.1:0=
|
||||
<dev-haskell/snap-core-0.10:0=
|
||||
>=dev-haskell/snap-server-0.8.1:0=
|
||||
<dev-haskell/snap-server-0.10:0=
|
||||
>=dev-haskell/case-insensitive-0.4.0.1
|
||||
|
||||
dev-haskell/vector:0=
|
||||
xen? ( >=app-emulation/xen-3.0 )
|
||||
kvm? (
|
||||
dev-python/psutil
|
||||
app-emulation/qemu
|
||||
)
|
||||
lxc? ( app-emulation/lxc )
|
||||
drbd? ( sys-cluster/drbd-utils )
|
||||
rbd? ( sys-cluster/ceph )
|
||||
ipv6? ( net-misc/ndisc6 )
|
||||
${PYTHON_DEPS}"
|
||||
RDEPEND="${DEPEND}
|
||||
!app-emulation/ganeti-htools"
|
||||
DEPEND+="
|
||||
sys-devel/m4
|
||||
app-text/pandoc
|
||||
dev-python/sphinx[${PYTHON_USEDEP}]
|
||||
media-fonts/urw-fonts
|
||||
media-gfx/graphviz
|
||||
>=dev-haskell/test-framework-0.6:0=
|
||||
<dev-haskell/test-framework-0.9:0=
|
||||
>=dev-haskell/test-framework-hunit-0.2.7:0=
|
||||
<dev-haskell/test-framework-hunit-0.4:0=
|
||||
>=dev-haskell/test-framework-quickcheck2-0.2.12.1:0=
|
||||
<dev-haskell/test-framework-quickcheck2-0.4:0=
|
||||
test? (
|
||||
dev-python/mock
|
||||
dev-python/pyyaml
|
||||
dev-haskell/haddock:0=
|
||||
>=dev-haskell/hunit-1.2.4.2:0=
|
||||
<dev-haskell/hunit-1.3:0=
|
||||
>=dev-haskell/quickcheck-2.4.2:2=
|
||||
<dev-haskell/quickcheck-2.8.3:2=
|
||||
sys-apps/fakeroot
|
||||
>=net-misc/socat-1.7
|
||||
dev-util/shelltestrunner
|
||||
)"
|
||||
|
||||
PATCHES+=(
|
||||
"${FILESDIR}/${PN}-2.12-start-stop-daemon-args.patch"
|
||||
"${FILESDIR}/${PN}-2.11-add-pgrep.patch"
|
||||
"${FILESDIR}/${PN}-2.15-daemon-util.patch"
|
||||
"${FILESDIR}/${PN}-2.9-disable-root-tests.patch"
|
||||
"${FILESDIR}/${PN}-2.9-skip-cli-test.patch"
|
||||
"${FILESDIR}/${PN}-2.10-rundir.patch"
|
||||
"${FILESDIR}/${PN}-2.12-qemu-enable-kvm.patch"
|
||||
"${FILESDIR}/${PN}-2.11-tests.patch"
|
||||
"${FILESDIR}/${PN}-lockdir.patch"
|
||||
"${FILESDIR}/${PN}-2.11-dont-nest-libdir.patch"
|
||||
"${FILESDIR}/${PN}-2.11-dont-print-man-help.patch"
|
||||
"${FILESDIR}/${PN}-2.11-daemon-util-tests.patch"
|
||||
"${FILESDIR}/${PN}-2.13-process_unittest.patch"
|
||||
"${FILESDIR}/${PN}-2.15-python-mock.patch"
|
||||
"${FILESDIR}/${PN}-2.15.2-remove-sandbox-failing-tests.patch"
|
||||
"${FILESDIR}/${PN}-2.15-noded-must-run-as-root.patch"
|
||||
"${FILESDIR}/${PN}-2.15-kvmd-run-as-daemon-user.patch"
|
||||
"${FILESDIR}/${PN}-2.15-dont-invert-return-values-for-man-warnings.patch"
|
||||
"${FILESDIR}/${PN}-2.15-respect-HFLAGS.patch"
|
||||
)
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
QA_WX_LOAD="
|
||||
usr/lib*/${PN}/${SERIES}/usr/sbin/ganeti-*d
|
||||
usr/lib*/${PN}/${SERIES}/usr/bin/htools
|
||||
"
|
||||
|
||||
pkg_setup () {
|
||||
local user
|
||||
python-single-r1_pkg_setup
|
||||
|
||||
if use multiple-users; then
|
||||
for user in gnt-{masterd,confd,luxid,rapi,daemons,admin}; do
|
||||
enewgroup ${user}
|
||||
enewuser ${user} -1 -1 -1 ${user}
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local testfile
|
||||
if has_version '>=dev-lang/ghc-7.10'; then
|
||||
# Breaks the build on 7.8
|
||||
PATCHES+=(
|
||||
"${WORKDIR}"/debian/patches/ghc-7.10-compatibility.patch
|
||||
)
|
||||
fi
|
||||
if use experimental; then
|
||||
ewarn "Experimental patches have been applied! RPC between daemons with different patches applied may cause breakage!"
|
||||
PATCHES+=(
|
||||
# QEMU Agent accepted upstream for 2.16, not yet in a tagged release
|
||||
# backport available for 2.15, but refused upstream due to RPC breakage.
|
||||
"${FILESDIR}"/0001-kvm-use_guest_agent-QEMU-Guest-Agent-sup.stable-2.15.patch
|
||||
)
|
||||
fi
|
||||
eapply "${PATCHES[@]}"
|
||||
# Upstream commits:
|
||||
# 4c3c2ca2a97a69c0287a3d23e064bc17978105eb
|
||||
# 24618882737fd7c189adf99f4acc767d48f572c3
|
||||
sed -i \
|
||||
-e '/QuickCheck/s,< 2.8,< 2.8.3,g' \
|
||||
cabal/ganeti.template.cabal
|
||||
# Neuter -Werror
|
||||
sed -i \
|
||||
-e '/^if DEVELOPER_MODE/,/^endif/s/-Werror//' \
|
||||
Makefile.am
|
||||
|
||||
# not sure why these tests are failing
|
||||
# should remove this on next version bump if possible
|
||||
for testfile in test/py/import-export_unittest.bash; do
|
||||
printf '#!/bin/bash\ntrue\n' > "${testfile}"
|
||||
done
|
||||
|
||||
# take the sledgehammer approach to bug #526270
|
||||
grep -lr '/bin/sh' "${S}" | xargs -r -- sed -i 's:/bin/sh:/bin/bash:g'
|
||||
|
||||
eapply_user
|
||||
|
||||
[[ ${PV} =~ [9]{4,} ]] && ./autogen.sh
|
||||
rm autotools/missing
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure () {
|
||||
# this is kind of a hack to work around the removal of the qemu-kvm wrapper
|
||||
local kvm_arch
|
||||
|
||||
if use amd64; then
|
||||
kvm_arch=x86_64
|
||||
elif use x86; then
|
||||
kvm_arch=i386
|
||||
elif use kvm; then
|
||||
die "Could not determine qemu system to use for kvm"
|
||||
fi
|
||||
|
||||
econf --localstatedir=/var \
|
||||
--sharedstatedir=/var \
|
||||
--disable-symlinks \
|
||||
--with-ssh-initscript=/etc/init.d/sshd \
|
||||
--with-export-dir=/var/lib/ganeti-storage/export \
|
||||
--with-os-search-path=/usr/share/${PN}/os \
|
||||
$(use_enable restricted-commands) \
|
||||
$(use_enable test haskell-tests) \
|
||||
$(usex multiple-users "--with-default-user=" "" "gnt-daemons" "") \
|
||||
$(usex multiple-users "--with-user-prefix=" "" "${USER_PREFIX}" "") \
|
||||
$(usex multiple-users "--with-default-group=" "" "gnt-daemons" "") \
|
||||
$(usex multiple-users "--with-group-prefix=" "" "${GROUP_PREFIX}" "") \
|
||||
$(use_enable syslog) \
|
||||
$(use_enable monitoring) \
|
||||
$(usex kvm '--with-kvm-path=' '' "/usr/bin/qemu-system-${kvm_arch}" '') \
|
||||
$(usex haskell-daemons "--enable-confd=haskell" '' '' '') \
|
||||
--with-haskell-flags="-optl -Wl,-z,relro -optl -Wl,--as-needed" \
|
||||
--enable-socat-escape \
|
||||
--enable-socat-compress
|
||||
}
|
||||
|
||||
src_install () {
|
||||
emake V=1 DESTDIR="${D}" install
|
||||
|
||||
newinitd "${FILESDIR}"/ganeti.initd-r3 ${PN}
|
||||
newconfd "${FILESDIR}"/ganeti.confd-r2 ${PN}
|
||||
|
||||
if use kvm; then
|
||||
newinitd "${FILESDIR}"/ganeti-kvm-poweroff.initd ganeti-kvm-poweroff
|
||||
newconfd "${FILESDIR}"/ganeti-kvm-poweroff.confd ganeti-kvm-poweroff
|
||||
fi
|
||||
|
||||
# ganeti installs it's own docs in a generic location
|
||||
rm -rf "${D}"/{usr/share/doc/${PN},run}
|
||||
|
||||
sed -i "s:/usr/$(get_libdir)/${PN}/tools/burnin:burnin:" doc/examples/bash_completion
|
||||
newbashcomp doc/examples/bash_completion gnt-instance
|
||||
bashcomp_alias gnt-instance burnin ganeti-{cleaner,confd} \
|
||||
h{space,check,scan,info,ail,arep,roller,squeeze,bal} \
|
||||
gnt-{os,job,filter,debug,storage,group,node,network,backup,cluster}
|
||||
|
||||
use monitoring && bashcomp_alias gnt-instance mon-collector
|
||||
|
||||
dodoc INSTALL UPGRADE NEWS README doc/*.rst
|
||||
|
||||
docinto html
|
||||
dodoc -r doc/html/* doc/css/*.css
|
||||
|
||||
docinto examples
|
||||
dodoc doc/examples/{ganeti.cron,gnt-config-backup} doc/examples/*.ocf
|
||||
|
||||
docinto examples/hooks
|
||||
dodoc doc/examples/hooks/{ipsec,ethers}
|
||||
|
||||
insinto /etc/cron.d
|
||||
newins doc/examples/ganeti.cron ${PN}
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins doc/examples/ganeti.logrotate ${PN}
|
||||
|
||||
# need to dodir rather than keepdir here (bug #552482)
|
||||
dodir /var/lib/${PN}
|
||||
|
||||
keepdir /var/log/${PN}/
|
||||
keepdir /usr/share/${PN}/${SERIES}/os/
|
||||
keepdir /var/lib/ganeti-storage/{export,file,shared}/
|
||||
|
||||
dosym ${SERIES} "/usr/share/${PN}/default"
|
||||
dosym ${SERIES} "/usr/$(get_libdir)/${PN}/default"
|
||||
|
||||
python_fix_shebang "${ED}" "${D}"/usr/"$(get_libdir)"/${PN}/${SERIES}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use multiple-users; then
|
||||
elog "You have enable multiple user support, the users for this must"
|
||||
elog "be created. You can use the provided tool for this, which is"
|
||||
elog "located at:"
|
||||
elog " /usr/$(get_libdir)/${PN}/tools/users-setup"
|
||||
fi
|
||||
}
|
||||
|
||||
src_test () {
|
||||
PATH="${S}/scripts:${S}/src:${PATH}" \
|
||||
TMPDIR="/tmp" \
|
||||
GANETI_MASTER="$(hostname -f)" \
|
||||
emake check || die "emake check failed"
|
||||
}
|
@ -1,365 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
PYTHON_COMPAT=(python2_7)
|
||||
PYTHON_REQ_USE="ipv6(+)?"
|
||||
|
||||
inherit user autotools bash-completion-r1 python-single-r1
|
||||
|
||||
MY_PV="${PV/_rc/~rc}"
|
||||
MY_PV="${MY_PV/_beta/~beta}"
|
||||
MY_P="${PN}-${MY_PV}"
|
||||
SERIES="$(ver_cut 1-2)"
|
||||
|
||||
DEBIAN_PATCH=11
|
||||
SRC_URI="
|
||||
http://downloads.ganeti.org/releases/${SERIES}/${MY_P}.tar.gz
|
||||
mirror://debian/pool/main/g/ganeti-${SERIES}/ganeti-${SERIES}_${PV}-${DEBIAN_PATCH}.debian.tar.xz
|
||||
"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
PATCHES=(
|
||||
"${WORKDIR}"/debian/patches/do-not-backup-export-dir.patch
|
||||
"${WORKDIR}"/debian/patches/Makefile.am-use-C.UTF-8
|
||||
"${WORKDIR}"/debian/patches/relax-deps
|
||||
"${WORKDIR}"/debian/patches/zlib-0.6-compatibility
|
||||
"${WORKDIR}"/debian/patches/fix_FTBFS_with_sphinx-1.3.5
|
||||
"${WORKDIR}"/debian/patches/fix_ftbfs_with_sphinx_1.4
|
||||
"${WORKDIR}"/debian/patches/use-proper-cabal-dev.patch
|
||||
"${WORKDIR}"/debian/patches/0001-Drop-dependency-on-MonadCatchIO-transformers.patch
|
||||
"${WORKDIR}"/debian/patches/0001-GHC-8-support.patch
|
||||
"${WORKDIR}"/debian/patches/ghc8-fixes
|
||||
"${WORKDIR}"/debian/patches/snap-server-1.0-compat
|
||||
"${WORKDIR}"/debian/patches/non-DSA-SSH-key-support.patch
|
||||
"${WORKDIR}"/debian/patches/fix-ssh-key-renewal-on-single-node-clusters.patch
|
||||
"${WORKDIR}"/debian/patches/set-defaults-for-ssh-type-bits.patch
|
||||
"${WORKDIR}"/debian/patches/use-hv-class-to-check-for-migration.patch
|
||||
"${WORKDIR}"/debian/patches/do-not-specify-socat-ssl-method.patch
|
||||
"${WORKDIR}"/debian/patches/fix-ftbfs-with-sphinx-1.5.patch
|
||||
"${WORKDIR}"/debian/patches/fix-failover-from-dead-node.patch
|
||||
"${WORKDIR}"/debian/patches/fix-cpu-affinity.patch
|
||||
"${WORKDIR}"/debian/patches/fix-fcntl-i386.patch
|
||||
"${WORKDIR}"/debian/patches/fix-ovf-test-path.patch
|
||||
"${WORKDIR}"/debian/patches/fix-qa-ssconf-race.patch
|
||||
"${WORKDIR}"/debian/patches/relax-sphinx-version-check.patch
|
||||
#"${WORKDIR}"/debian/patches/THH-2.12.patch
|
||||
"${WORKDIR}"/debian/patches/sphinx-1.7.patch
|
||||
"${WORKDIR}"/debian/patches/ca-use-sha256-md.patch
|
||||
"${WORKDIR}"/debian/patches/impexpd-fix-certificate-verification-with-new-socat.patch
|
||||
"${WORKDIR}"/debian/patches/impexpd-fix-certificate-verification-with-new-socat-2.patch
|
||||
)
|
||||
|
||||
DESCRIPTION="Ganeti is a virtual server management software tool"
|
||||
HOMEPAGE="http://www.ganeti.org/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="drbd experimental haskell-daemons htools ipv6 kvm lxc monitoring multiple-users rbd syslog test xen restricted-commands"
|
||||
|
||||
REQUIRED_USE="|| ( kvm xen lxc )
|
||||
test? ( ipv6 )
|
||||
kvm? ( || ( amd64 x86 ) )
|
||||
${PYTHON_REQUIRED_USE}"
|
||||
|
||||
USER_PREFIX="${GANETI_USER_PREFIX:-"gnt-"}"
|
||||
GROUP_PREFIX="${GANETI_GROUP_PREFIX:-"${USER_PREFIX}"}"
|
||||
|
||||
DEPEND="
|
||||
dev-libs/openssl:0
|
||||
dev-python/paramiko[${PYTHON_USEDEP}]
|
||||
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
||||
dev-python/simplejson[${PYTHON_USEDEP}]
|
||||
dev-python/pyparsing[${PYTHON_USEDEP}]
|
||||
dev-python/pyinotify[${PYTHON_USEDEP}]
|
||||
dev-python/pycurl[${PYTHON_USEDEP}]
|
||||
dev-python/ipaddr[${PYTHON_USEDEP}]
|
||||
dev-python/bitarray[${PYTHON_USEDEP}]
|
||||
dev-python/docutils[${PYTHON_USEDEP}]
|
||||
dev-python/fdsend[${PYTHON_USEDEP}]
|
||||
|| (
|
||||
net-misc/iputils[arping]
|
||||
net-analyzer/arping
|
||||
)
|
||||
net-analyzer/fping
|
||||
net-misc/bridge-utils
|
||||
net-misc/curl[ssl]
|
||||
net-misc/openssh
|
||||
net-misc/socat
|
||||
sys-apps/iproute2
|
||||
>=sys-fs/lvm2-2.02.181
|
||||
>=sys-apps/baselayout-2.0
|
||||
>=dev-lang/ghc-8.0:0=
|
||||
<dev-lang/ghc-8.1:0=
|
||||
dev-haskell/cabal:0=
|
||||
dev-haskell/cabal-install:0=
|
||||
!<app-emulation/ganeti-instance-image-0.6-r1
|
||||
>=dev-haskell/mtl-2.1.1:0=
|
||||
>=dev-haskell/old-time-1.1.0.0:0=
|
||||
>=dev-haskell/random-1.0.1.1:0=
|
||||
haskell-daemons? ( >=dev-haskell/text-0.11.1.13:0= )
|
||||
>=dev-haskell/transformers-0.3.0.0:0=
|
||||
|
||||
>=dev-haskell/attoparsec-0.10.1.1:0=
|
||||
<dev-haskell/attoparsec-0.14:0
|
||||
>=dev-haskell/base64-bytestring-1.0.0.1:0=
|
||||
<dev-haskell/base64-bytestring-1.1:0=
|
||||
>=dev-haskell/crypto-4.2.4:0=
|
||||
<dev-haskell/crypto-4.3:0=
|
||||
>=dev-haskell/curl-1.3.7:0=
|
||||
<dev-haskell/curl-1.4:0=
|
||||
>=dev-haskell/hinotify-0.3.2:0=
|
||||
<dev-haskell/hinotify-0.4:0=
|
||||
>=dev-haskell/hslogger-1.1.4:0=
|
||||
<dev-haskell/hslogger-1.3:0=
|
||||
>=dev-haskell/json-0.5:0=
|
||||
>=dev-haskell/lens-3.10:0=
|
||||
>=dev-haskell/lifted-base-0.2.0.3:0=
|
||||
<dev-haskell/lifted-base-0.3:0=
|
||||
>=dev-haskell/monad-control-1.0.1.0:0=
|
||||
<dev-haskell/monad-control-1.0.2:0=
|
||||
>=dev-haskell/network-2.3.0.13:0=
|
||||
<dev-haskell/network-2.7:0=
|
||||
>=dev-haskell/parallel-3.2.0.2:3=
|
||||
<dev-haskell/parallel-3.3:3=
|
||||
>=dev-haskell/temporary-1.1.2.3:0=
|
||||
<dev-haskell/temporary-1.3:0=
|
||||
>=dev-haskell/regex-pcre-0.94.2:0=
|
||||
<dev-haskell/regex-pcre-0.95:0=
|
||||
>=dev-haskell/transformers-base-0.4:0=
|
||||
<dev-haskell/transformers-base-0.5:0=
|
||||
>=dev-haskell/utf8-string-0.3.7:0=
|
||||
>=dev-haskell/zlib-0.5.3.3:0=
|
||||
<dev-haskell/zlib-0.7:0=
|
||||
|
||||
>=dev-haskell/psqueue-1.1:0=
|
||||
<dev-haskell/psqueue-1.2:0=
|
||||
>=dev-haskell/snap-core-1.0.1:0=
|
||||
<dev-haskell/snap-core-1.1:0=
|
||||
>=dev-haskell/snap-server-1.0.1:0=
|
||||
<dev-haskell/snap-server-1.1:0=
|
||||
>=dev-haskell/case-insensitive-0.4.0.1
|
||||
|
||||
dev-haskell/vector:0=
|
||||
xen? ( >=app-emulation/xen-3.0 )
|
||||
kvm? (
|
||||
dev-python/psutil
|
||||
app-emulation/qemu
|
||||
)
|
||||
lxc? ( app-emulation/lxc )
|
||||
drbd? ( sys-cluster/drbd-utils )
|
||||
rbd? ( sys-cluster/ceph )
|
||||
ipv6? ( net-misc/ndisc6 )
|
||||
${PYTHON_DEPS}"
|
||||
RDEPEND="${DEPEND}
|
||||
!app-emulation/ganeti-htools"
|
||||
DEPEND+="
|
||||
sys-devel/m4
|
||||
app-text/pandoc
|
||||
dev-python/sphinx[${PYTHON_USEDEP}]
|
||||
media-fonts/urw-fonts
|
||||
media-gfx/graphviz
|
||||
>=dev-haskell/test-framework-0.6:0=
|
||||
<dev-haskell/test-framework-0.9:0=
|
||||
>=dev-haskell/test-framework-hunit-0.2.7:0=
|
||||
<dev-haskell/test-framework-hunit-0.4:0=
|
||||
>=dev-haskell/test-framework-quickcheck2-0.2.12.1:0=
|
||||
<dev-haskell/test-framework-quickcheck2-0.4:0=
|
||||
test? (
|
||||
dev-python/mock
|
||||
dev-python/pyyaml
|
||||
dev-haskell/haddock:0=
|
||||
>=dev-haskell/hunit-1.2.4.2:0=
|
||||
<dev-haskell/hunit-1.3:0=
|
||||
>=dev-haskell/quickcheck-2.4.2:2=
|
||||
<dev-haskell/quickcheck-2.8.3:2=
|
||||
sys-apps/fakeroot
|
||||
>=net-misc/socat-1.7
|
||||
dev-util/shelltestrunner
|
||||
)"
|
||||
|
||||
PATCHES+=(
|
||||
"${FILESDIR}/${PN}-2.12-start-stop-daemon-args.patch"
|
||||
"${FILESDIR}/${PN}-2.11-add-pgrep.patch"
|
||||
"${FILESDIR}/${PN}-2.15-daemon-util.patch"
|
||||
"${FILESDIR}/${PN}-2.9-disable-root-tests.patch"
|
||||
"${FILESDIR}/${PN}-2.9-skip-cli-test.patch"
|
||||
"${FILESDIR}/${PN}-2.10-rundir.patch"
|
||||
"${FILESDIR}/${PN}-2.12-qemu-enable-kvm.patch"
|
||||
"${FILESDIR}/${PN}-2.11-tests.patch"
|
||||
"${FILESDIR}/${PN}-lockdir.patch"
|
||||
"${FILESDIR}/${PN}-2.11-dont-nest-libdir.patch"
|
||||
"${FILESDIR}/${PN}-2.11-dont-print-man-help.patch"
|
||||
"${FILESDIR}/${PN}-2.11-daemon-util-tests.patch"
|
||||
"${FILESDIR}/${PN}-2.13-process_unittest.patch"
|
||||
"${FILESDIR}/${PN}-2.15-python-mock.patch"
|
||||
"${FILESDIR}/${PN}-2.15.2-remove-sandbox-failing-tests.patch"
|
||||
"${FILESDIR}/${PN}-2.15-noded-must-run-as-root.patch"
|
||||
"${FILESDIR}/${PN}-2.15-kvmd-run-as-daemon-user.patch"
|
||||
"${FILESDIR}/${PN}-2.15-dont-invert-return-values-for-man-warnings.patch"
|
||||
"${FILESDIR}/${PN}-2.15-respect-HFLAGS.patch"
|
||||
"${FILESDIR}/ganeti-2.15.2-bdev_py.patch"
|
||||
)
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
QA_WX_LOAD="
|
||||
usr/lib*/${PN}/${SERIES}/usr/sbin/ganeti-*d
|
||||
usr/lib*/${PN}/${SERIES}/usr/bin/htools
|
||||
"
|
||||
|
||||
pkg_setup () {
|
||||
local user
|
||||
python-single-r1_pkg_setup
|
||||
|
||||
if use multiple-users; then
|
||||
for user in gnt-{masterd,confd,luxid,rapi,daemons,admin}; do
|
||||
enewgroup ${user}
|
||||
enewuser ${user} -1 -1 -1 ${user}
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local testfile
|
||||
if has_version '>=dev-lang/ghc-7.10'; then
|
||||
# Breaks the build on 7.8
|
||||
PATCHES+=(
|
||||
"${WORKDIR}"/debian/patches/ghc-7.10-compatibility.patch
|
||||
)
|
||||
fi
|
||||
if use experimental; then
|
||||
ewarn "Experimental patches have been applied! RPC between daemons with different patches applied may cause breakage!"
|
||||
PATCHES+=(
|
||||
# QEMU Agent accepted upstream for 2.16, not yet in a tagged release
|
||||
# backport available for 2.15, but refused upstream due to RPC breakage.
|
||||
"${FILESDIR}"/0001-kvm-use_guest_agent-QEMU-Guest-Agent-sup.stable-2.15.patch
|
||||
)
|
||||
fi
|
||||
eapply "${PATCHES[@]}"
|
||||
# Upstream commits:
|
||||
# 4c3c2ca2a97a69c0287a3d23e064bc17978105eb
|
||||
# 24618882737fd7c189adf99f4acc767d48f572c3
|
||||
sed -i \
|
||||
-e '/QuickCheck/s,< 2.8,< 2.8.3,g' \
|
||||
cabal/ganeti.template.cabal
|
||||
# Neuter -Werror
|
||||
sed -i \
|
||||
-e '/^if DEVELOPER_MODE/,/^endif/s/-Werror//' \
|
||||
Makefile.am
|
||||
|
||||
# not sure why these tests are failing
|
||||
# should remove this on next version bump if possible
|
||||
for testfile in test/py/import-export_unittest.bash; do
|
||||
printf '#!/bin/bash\ntrue\n' > "${testfile}"
|
||||
done
|
||||
|
||||
# take the sledgehammer approach to bug #526270
|
||||
grep -lr '/bin/sh' "${S}" | xargs -r -- sed -i 's:/bin/sh:/bin/bash:g'
|
||||
|
||||
eapply_user
|
||||
|
||||
[[ ${PV} =~ [9]{4,} ]] && ./autogen.sh
|
||||
rm autotools/missing
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure () {
|
||||
# this is kind of a hack to work around the removal of the qemu-kvm wrapper
|
||||
local kvm_arch
|
||||
|
||||
if use amd64; then
|
||||
kvm_arch=x86_64
|
||||
elif use x86; then
|
||||
kvm_arch=i386
|
||||
elif use kvm; then
|
||||
die "Could not determine qemu system to use for kvm"
|
||||
fi
|
||||
|
||||
econf --localstatedir=/var \
|
||||
--sharedstatedir=/var \
|
||||
--disable-symlinks \
|
||||
--with-ssh-initscript=/etc/init.d/sshd \
|
||||
--with-export-dir=/var/lib/ganeti-storage/export \
|
||||
--with-os-search-path=/usr/share/${PN}/os \
|
||||
$(use_enable restricted-commands) \
|
||||
$(use_enable test haskell-tests) \
|
||||
$(usex multiple-users "--with-default-user=" "" "gnt-daemons" "") \
|
||||
$(usex multiple-users "--with-user-prefix=" "" "${USER_PREFIX}" "") \
|
||||
$(usex multiple-users "--with-default-group=" "" "gnt-daemons" "") \
|
||||
$(usex multiple-users "--with-group-prefix=" "" "${GROUP_PREFIX}" "") \
|
||||
$(use_enable syslog) \
|
||||
$(use_enable monitoring) \
|
||||
$(usex kvm '--with-kvm-path=' '' "/usr/bin/qemu-system-${kvm_arch}" '') \
|
||||
$(usex haskell-daemons "--enable-confd=haskell" '' '' '') \
|
||||
--with-haskell-flags="-optl -Wl,-z,relro -optl -Wl,--as-needed" \
|
||||
--enable-socat-escape \
|
||||
--enable-socat-compress
|
||||
}
|
||||
|
||||
src_install () {
|
||||
emake V=1 DESTDIR="${D}" install
|
||||
|
||||
newinitd "${FILESDIR}"/ganeti.initd-r3 ${PN}
|
||||
newconfd "${FILESDIR}"/ganeti.confd-r2 ${PN}
|
||||
|
||||
if use kvm; then
|
||||
newinitd "${FILESDIR}"/ganeti-kvm-poweroff.initd ganeti-kvm-poweroff
|
||||
newconfd "${FILESDIR}"/ganeti-kvm-poweroff.confd ganeti-kvm-poweroff
|
||||
fi
|
||||
|
||||
# ganeti installs it's own docs in a generic location
|
||||
rm -rf "${D}"/{usr/share/doc/${PN},run}
|
||||
|
||||
sed -i "s:/usr/$(get_libdir)/${PN}/tools/burnin:burnin:" doc/examples/bash_completion
|
||||
newbashcomp doc/examples/bash_completion gnt-instance
|
||||
bashcomp_alias gnt-instance burnin ganeti-{cleaner,confd} \
|
||||
h{space,check,scan,info,ail,arep,roller,squeeze,bal} \
|
||||
gnt-{os,job,filter,debug,storage,group,node,network,backup,cluster}
|
||||
|
||||
use monitoring && bashcomp_alias gnt-instance mon-collector
|
||||
|
||||
dodoc INSTALL UPGRADE NEWS README doc/*.rst
|
||||
|
||||
docinto html
|
||||
dodoc -r doc/html/* doc/css/*.css
|
||||
|
||||
docinto examples
|
||||
dodoc doc/examples/{ganeti.cron,gnt-config-backup} doc/examples/*.ocf
|
||||
|
||||
docinto examples/hooks
|
||||
dodoc doc/examples/hooks/{ipsec,ethers}
|
||||
|
||||
insinto /etc/cron.d
|
||||
newins doc/examples/ganeti.cron ${PN}
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins doc/examples/ganeti.logrotate ${PN}
|
||||
|
||||
# need to dodir rather than keepdir here (bug #552482)
|
||||
dodir /var/lib/${PN}
|
||||
|
||||
keepdir /var/log/${PN}/
|
||||
keepdir /usr/share/${PN}/${SERIES}/os/
|
||||
keepdir /var/lib/ganeti-storage/{export,file,shared}/
|
||||
|
||||
dosym ${SERIES} "/usr/share/${PN}/default"
|
||||
dosym ${SERIES} "/usr/$(get_libdir)/${PN}/default"
|
||||
|
||||
python_fix_shebang "${ED}" "${D}"/usr/"$(get_libdir)"/${PN}/${SERIES}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use multiple-users; then
|
||||
elog "You have enable multiple user support, the users for this must"
|
||||
elog "be created. You can use the provided tool for this, which is"
|
||||
elog "located at:"
|
||||
elog " /usr/$(get_libdir)/${PN}/tools/users-setup"
|
||||
fi
|
||||
}
|
||||
|
||||
src_test () {
|
||||
PATH="${S}/scripts:${S}/src:${PATH}" \
|
||||
TMPDIR="/tmp" \
|
||||
GANETI_MASTER="$(hostname -f)" \
|
||||
emake check || die "emake check failed"
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST containers-storage-1.14.0-vfs-user-xattrs.patch 14835 BLAKE2B 99c35933dcb25385ee83b80cf282c11c738d0e4d91216cc08a50522f6caa9bca5938299412908f16df404f99e80616a10b4c02c0ebc38240a987830ddaf15008 SHA512 62c7ed49728bd12b5706f59b0d4af3b18d90e8cfc2b06e681f84fe3f5d3e0cd5c0317147109c4e3ec4fec26f82c269af3c9813e47339ce102e4e97400b74627d
|
||||
DIST libpod-1.6.3.tar.gz 8340471 BLAKE2B b017a29ab034d8432b3abe2d920e0a71ad6542a5f088ed0de8fc67e846b409efbfd5be2e72908b52b5d21f05ce30c31db3bd55f8d8974711eb8f48cf8c3553a5 SHA512 a4d9f4c74db42fade86c36f4b2c27b8b3ff42db90af21bccab2eae8e9d710ae102c05e1fa926ac1d8e67613e11fa40163800077b61e49d90de521ab472e9c8dd
|
||||
|
@ -1,2 +1,3 @@
|
||||
DIST containers-storage-1.14.0-vfs-user-xattrs.patch 14835 BLAKE2B 99c35933dcb25385ee83b80cf282c11c738d0e4d91216cc08a50522f6caa9bca5938299412908f16df404f99e80616a10b4c02c0ebc38240a987830ddaf15008 SHA512 62c7ed49728bd12b5706f59b0d4af3b18d90e8cfc2b06e681f84fe3f5d3e0cd5c0317147109c4e3ec4fec26f82c269af3c9813e47339ce102e4e97400b74627d
|
||||
DIST skopeo-0.1.39.tar.gz 3850036 BLAKE2B e635be475f22cc25ab98e446424f4a6b0babe34f827a73f9c9c1533db782490e9af94e759ac78fbeeec1c0e1fa42eef9d09fb4e7ff1f4df654f65fe4c1a9f7b0 SHA512 c4aadc40f9d637c628cd96c204b3e9bc3a928c145521bed2e5046508fc936ff99442dda8b4a4cdd85c4d04e64a9ccee5ea8d563c6ebf4e6020d50d96b921716c
|
||||
DIST skopeo-0.1.40.tar.gz 3907911 BLAKE2B 0a9ebcc9662036b1595149f0d19a46c0565b115d37b22c6410041eef3e6755b20561439596f1033dd6ce2c78a4948e358b2518003729873d5ab8ce9a7bec082c SHA512 161edb8afa961e48e314cf70a4fcebd971a45a50fc11eab6ec751ba4eb05a8be011d16b83c4ed1fa9d6336846da5f518da006d4476ee4e29a160c629820773d3
|
||||
|
@ -0,0 +1,533 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru si sk sl sr_RS@cyrillic sr_RS@latin sv ta te th tr uk wa zh_CN zh_TW"
|
||||
PLOCALE_BACKUP="en"
|
||||
|
||||
inherit autotools eapi7-ver estack eutils flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx xdg-utils
|
||||
|
||||
MY_PN="${PN%%-*}"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
EGIT_REPO_URI="https://source.winehq.org/git/wine.git"
|
||||
EGIT_BRANCH="master"
|
||||
inherit git-r3
|
||||
SRC_URI=""
|
||||
#KEYWORDS=""
|
||||
else
|
||||
MAJOR_V=$(ver_cut 1)
|
||||
MINOR_V=$(ver_cut 2)
|
||||
SRC_URI="https://dl.winehq.org/wine/source/${MAJOR_V}.${MINOR_V}/${MY_P}.tar.xz"
|
||||
KEYWORDS="-* ~amd64 ~x86"
|
||||
fi
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
GWP_V="20180120"
|
||||
PATCHDIR="${WORKDIR}/gentoo-wine-patches"
|
||||
|
||||
DESCRIPTION="Free implementation of Windows(tm) on Unix, without external patchsets"
|
||||
HOMEPAGE="https://www.winehq.org/"
|
||||
SRC_URI="${SRC_URI}
|
||||
https://dev.gentoo.org/~np-hardass/distfiles/wine/gentoo-wine-patches-${GWP_V}.tar.xz
|
||||
"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="${PV}"
|
||||
IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gssapi gstreamer +jpeg kerberos kernel_FreeBSD +lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl pcap +png prelink pulseaudio +realtime +run-exes samba scanner sdl selinux +ssl test +threads +truetype udev +udisks v4l vkd3d vulkan +X +xcomposite xinerama +xml"
|
||||
REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
|
||||
X? ( truetype )
|
||||
elibc_glibc? ( threads )
|
||||
osmesa? ( opengl )
|
||||
test? ( abi_x86_32 )
|
||||
vkd3d? ( vulkan )" # osmesa-opengl #286560 # X-truetype #551124
|
||||
|
||||
# FIXME: the test suite is unsuitable for us; many tests require net access
|
||||
# or fail due to Xvfb's opengl limitations.
|
||||
RESTRICT="test"
|
||||
|
||||
COMMON_DEPEND="
|
||||
X? (
|
||||
x11-libs/libXcursor[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXext[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXfixes[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXrandr[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXi[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
|
||||
)
|
||||
alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
|
||||
capi? ( net-libs/libcapi[${MULTILIB_USEDEP}] )
|
||||
cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
|
||||
fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
|
||||
gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
|
||||
gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
|
||||
gssapi? ( virtual/krb5[${MULTILIB_USEDEP}] )
|
||||
gstreamer? (
|
||||
media-libs/gstreamer:1.0[${MULTILIB_USEDEP}]
|
||||
media-plugins/gst-plugins-meta:1.0[${MULTILIB_USEDEP}]
|
||||
)
|
||||
jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
|
||||
kerberos? ( virtual/krb5[${MULTILIB_USEDEP}] )
|
||||
lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
|
||||
ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
|
||||
mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
|
||||
ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
|
||||
netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
|
||||
nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
|
||||
odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
|
||||
openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
|
||||
opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
|
||||
opengl? (
|
||||
virtual/glu[${MULTILIB_USEDEP}]
|
||||
virtual/opengl[${MULTILIB_USEDEP}]
|
||||
)
|
||||
osmesa? ( >=media-libs/mesa-13[osmesa,${MULTILIB_USEDEP}] )
|
||||
pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] )
|
||||
png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
|
||||
pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
|
||||
scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
|
||||
sdl? ( media-libs/libsdl2:=[haptic,joystick,${MULTILIB_USEDEP}] )
|
||||
ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
|
||||
truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
|
||||
udev? ( virtual/libudev:=[${MULTILIB_USEDEP}] )
|
||||
udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
|
||||
v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
|
||||
vkd3d? ( app-emulation/vkd3d[${MULTILIB_USEDEP}] )
|
||||
vulkan? ( media-libs/vulkan-loader[${MULTILIB_USEDEP}] )
|
||||
xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
|
||||
xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
|
||||
xml? (
|
||||
dev-libs/libxml2[${MULTILIB_USEDEP}]
|
||||
dev-libs/libxslt[${MULTILIB_USEDEP}]
|
||||
)"
|
||||
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
app-emulation/wine-desktop-common
|
||||
>app-eselect/eselect-wine-0.3
|
||||
!app-emulation/wine:0
|
||||
dos? ( >=games-emulation/dosbox-0.74_p20160629 )
|
||||
gecko? ( app-emulation/wine-gecko:2.47[abi_x86_32?,abi_x86_64?] )
|
||||
mono? ( app-emulation/wine-mono:4.7.5 )
|
||||
perl? (
|
||||
dev-lang/perl
|
||||
dev-perl/XML-Simple
|
||||
)
|
||||
pulseaudio? (
|
||||
realtime? ( sys-auth/rtkit )
|
||||
)
|
||||
samba? ( >=net-fs/samba-3.0.25[winbind] )
|
||||
selinux? ( sec-policy/selinux-wine )
|
||||
udisks? ( sys-fs/udisks:2 )"
|
||||
|
||||
# tools/make_requests requires perl
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
sys-devel/flex
|
||||
>=sys-kernel/linux-headers-2.6
|
||||
virtual/pkgconfig
|
||||
virtual/yacc
|
||||
X? ( x11-base/xorg-proto )
|
||||
prelink? ( sys-devel/prelink )
|
||||
xinerama? ( x11-base/xorg-proto )"
|
||||
|
||||
# These use a non-standard "Wine" category, which is provided by
|
||||
# /etc/xdg/applications-merged/wine.menu
|
||||
QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
|
||||
usr/share/applications/wine-notepad.desktop
|
||||
usr/share/applications/wine-uninstaller.desktop
|
||||
usr/share/applications/wine-winecfg.desktop"
|
||||
|
||||
PATCHES=(
|
||||
"${PATCHDIR}/patches/${MY_PN}-1.5.26-winegcc.patch" #260726
|
||||
"${PATCHDIR}/patches/${MY_PN}-1.9.5-multilib-portage.patch" #395615
|
||||
"${PATCHDIR}/patches/${MY_PN}-1.6-memset-O3.patch" #480508
|
||||
"${PATCHDIR}/patches/${MY_PN}-2.0-multislot-apploader.patch" #310611
|
||||
)
|
||||
PATCHES_BIN=()
|
||||
|
||||
# https://bugs.gentoo.org/show_bug.cgi?id=635222
|
||||
if [[ ${#PATCHES_BIN[@]} -ge 1 ]] || [[ ${PV} == 9999 ]]; then
|
||||
DEPEND+=" dev-util/patchbin"
|
||||
fi
|
||||
|
||||
wine_compiler_check() {
|
||||
[[ ${MERGE_TYPE} = "binary" ]] && return 0
|
||||
|
||||
# GCC-specific bugs
|
||||
if tc-is-gcc; then
|
||||
# bug #549768
|
||||
if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
|
||||
ebegin "Checking for gcc-5 ms_abi compiler bug"
|
||||
$(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die
|
||||
# Run in subshell to prevent "Aborted" message
|
||||
( "${T}"/pr66838 || false ) >/dev/null 2>&1
|
||||
if ! eend $?; then
|
||||
eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
|
||||
eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
|
||||
eerror "or use gcc-config to select a different compiler version."
|
||||
eerror "See https://bugs.gentoo.org/549768"
|
||||
eerror
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
# bug #574044
|
||||
if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then
|
||||
ebegin "Checking for gcc-5-3 stack realignment compiler bug"
|
||||
# Compile in subshell to prevent "Aborted" message
|
||||
( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1
|
||||
if ! eend $?; then
|
||||
eerror "Wine cannot be built with this version of gcc-5.3"
|
||||
eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild,"
|
||||
eerror "or use gcc-config to select a different compiler version."
|
||||
eerror "See https://bugs.gentoo.org/574044"
|
||||
eerror
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
# Ensure compiler support
|
||||
if use abi_x86_64; then
|
||||
ebegin "Checking for 64-bit compiler with builtin_ms_va_list support"
|
||||
# Compile in subshell to prevent "Aborted" message
|
||||
( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1)
|
||||
if ! eend $?; then
|
||||
eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine"
|
||||
eerror
|
||||
eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine"
|
||||
eerror
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
wine_build_environment_check() {
|
||||
[[ ${MERGE_TYPE} = "binary" ]] && return 0
|
||||
|
||||
if use abi_x86_64; then
|
||||
if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then
|
||||
eerror "You need gcc-4.4+ to compile 64-bit wine"
|
||||
die
|
||||
elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then
|
||||
eerror "You need clang-3.8+ to compile 64-bit wine"
|
||||
die
|
||||
fi
|
||||
fi
|
||||
if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then
|
||||
ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by"
|
||||
ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
|
||||
ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
|
||||
fi
|
||||
if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then
|
||||
if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then
|
||||
ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work"
|
||||
ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine."
|
||||
ewarn "See package.env in man 5 portage for more information on how to do this."
|
||||
ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
|
||||
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
|
||||
eerror "See https://bugs.gentoo.org/487864 for more details."
|
||||
eerror
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
wine_env_vcs_vars() {
|
||||
local pn_live_var="${PN//[-+]/_}_LIVE_COMMIT"
|
||||
local pn_live_val="${pn_live_var}"
|
||||
eval pn_live_val='$'${pn_live_val}
|
||||
if [[ ! -z ${EGIT_COMMIT} ]]; then
|
||||
eerror "Commits must now be specified using the environmental variables"
|
||||
eerror "EGIT_OVERRIDE_COMMIT_WINE"
|
||||
eerror
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
wine_build_environment_check || die
|
||||
|
||||
# Verify OSS support
|
||||
if use oss && ! use kernel_FreeBSD; then
|
||||
if ! has_version ">=media-sound/oss-4"; then
|
||||
eerror "You cannot build wine with USE=oss without having support from a"
|
||||
eerror "FreeBSD kernel or >=media-sound/oss-4 (only available through external repos)"
|
||||
eerror
|
||||
die
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
wine_build_environment_check || die
|
||||
wine_env_vcs_vars || die
|
||||
|
||||
WINE_VARIANT="${PN#wine}-${PV}"
|
||||
WINE_VARIANT="${WINE_VARIANT#-}"
|
||||
|
||||
MY_PREFIX="${EPREFIX}/usr/lib/wine-${WINE_VARIANT}"
|
||||
MY_DATAROOTDIR="${EPREFIX}/usr/share/wine-${WINE_VARIANT}"
|
||||
MY_DATADIR="${MY_DATAROOTDIR}"
|
||||
MY_DOCDIR="${EPREFIX}/usr/share/doc/${PF}"
|
||||
MY_INCLUDEDIR="${EPREFIX}/usr/include/wine-${WINE_VARIANT}"
|
||||
MY_LIBEXECDIR="${EPREFIX}/usr/libexec/wine-${WINE_VARIANT}"
|
||||
MY_LOCALSTATEDIR="${EPREFIX}/var/wine-${WINE_VARIANT}"
|
||||
MY_MANDIR="${MY_DATADIR}/man"
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
EGIT_CHECKOUT_DIR="${S}" git-r3_src_unpack
|
||||
fi
|
||||
|
||||
default
|
||||
|
||||
l10n_find_plocales_changes "${S}/po" "" ".po"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
|
||||
eapply_bin(){
|
||||
local patch
|
||||
for patch in ${PATCHES_BIN[@]}; do
|
||||
patchbin --nogit < "${patch}" || die
|
||||
done
|
||||
}
|
||||
|
||||
local md5="$(md5sum server/protocol.def)"
|
||||
|
||||
default
|
||||
eapply_bin
|
||||
eautoreconf
|
||||
|
||||
# Modification of the server protocol requires regenerating the server requests
|
||||
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
|
||||
einfo "server/protocol.def was patched; running tools/make_requests"
|
||||
tools/make_requests || die #432348
|
||||
fi
|
||||
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
|
||||
if ! use run-exes; then
|
||||
sed -i '/^MimeType/d' loader/wine.desktop || die #117785
|
||||
fi
|
||||
|
||||
# Edit wine.desktop to work for specific variant
|
||||
sed -e "/^Exec=/s/wine /wine-${WINE_VARIANT} /" -i loader/wine.desktop || die
|
||||
|
||||
# hi-res default icon, #472990, https://bugs.winehq.org/show_bug.cgi?id=24652
|
||||
cp "${PATCHDIR}/files/oic_winlogo.ico" dlls/user32/resources/ || die
|
||||
|
||||
l10n_get_locales > po/LINGUAS || die # otherwise wine doesn't respect LINGUAS
|
||||
|
||||
# Fix manpage generation for locales #469418 and abi_x86_64 #617864
|
||||
|
||||
# Duplicate manpages input files for wine64
|
||||
local f
|
||||
for f in loader/*.man.in; do
|
||||
cp ${f} ${f/wine/wine64} || die
|
||||
done
|
||||
# Add wine64 manpages to Makefile
|
||||
if use abi_x86_64; then
|
||||
sed -i "/wine.man.in/i \
|
||||
\\\twine64.man.in \\\\" loader/Makefile.in || die
|
||||
sed -i -E 's/(.*wine)(.*\.UTF-8\.man\.in.*)/&\
|
||||
\164\2/' loader/Makefile.in || die
|
||||
fi
|
||||
|
||||
rm_man_file(){
|
||||
local file="${1}"
|
||||
loc=${2}
|
||||
sed -i "/${loc}\.UTF-8\.man\.in/d" "${file}" || die
|
||||
}
|
||||
|
||||
while read f; do
|
||||
l10n_for_each_disabled_locale_do rm_man_file "${f}"
|
||||
done < <(find -name "Makefile.in" -exec grep -q "UTF-8.man.in" "{}" \; -print)
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
wine_compiler_check || die
|
||||
|
||||
export LDCONFIG=/bin/true
|
||||
use custom-cflags || strip-flags
|
||||
|
||||
multilib-minimal_src_configure
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local myconf=(
|
||||
--prefix="${MY_PREFIX}"
|
||||
--datarootdir="${MY_DATAROOTDIR}"
|
||||
--datadir="${MY_DATADIR}"
|
||||
--docdir="${MY_DOCDIR}"
|
||||
--includedir="${MY_INCLUDEDIR}"
|
||||
--libdir="${EPREFIX}/usr/$(get_libdir)/wine-${WINE_VARIANT}"
|
||||
--libexecdir="${MY_LIBEXECDIR}"
|
||||
--localstatedir="${MY_LOCALSTATEDIR}"
|
||||
--mandir="${MY_MANDIR}"
|
||||
--sysconfdir=/etc/wine
|
||||
$(use_with alsa)
|
||||
$(use_with capi)
|
||||
$(use_with lcms cms)
|
||||
$(use_with cups)
|
||||
$(use_with ncurses curses)
|
||||
$(use_with udisks dbus)
|
||||
$(use_with fontconfig)
|
||||
$(use_with ssl gnutls)
|
||||
$(use_enable gecko mshtml)
|
||||
$(use_with gphoto2 gphoto)
|
||||
$(use_with gsm)
|
||||
$(use_with gssapi)
|
||||
$(use_with gstreamer)
|
||||
--without-hal
|
||||
$(use_with jpeg)
|
||||
$(use_with kerberos krb5)
|
||||
$(use_with ldap)
|
||||
$(use_enable mono mscoree)
|
||||
$(use_with mp3 mpg123)
|
||||
$(use_with netapi)
|
||||
$(use_with nls gettext)
|
||||
$(use_with openal)
|
||||
$(use_with opencl)
|
||||
$(use_with opengl)
|
||||
$(use_with osmesa)
|
||||
$(use_with oss)
|
||||
$(use_with pcap)
|
||||
$(use_with png)
|
||||
$(use_with pulseaudio pulse)
|
||||
$(use_with threads pthread)
|
||||
$(use_with scanner sane)
|
||||
$(use_with sdl)
|
||||
$(use_enable test tests)
|
||||
$(use_with truetype freetype)
|
||||
$(use_with udev)
|
||||
$(use_with v4l)
|
||||
$(use_with vkd3d)
|
||||
$(use_with vulkan)
|
||||
$(use_with X x)
|
||||
$(use_with X xfixes)
|
||||
$(use_with xcomposite)
|
||||
$(use_with xinerama)
|
||||
$(use_with xml)
|
||||
$(use_with xml xslt)
|
||||
)
|
||||
|
||||
local PKG_CONFIG AR RANLIB
|
||||
# Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
|
||||
# set AR and RANLIB to make QA scripts happy; #483342
|
||||
tc-export PKG_CONFIG AR RANLIB
|
||||
|
||||
if use amd64; then
|
||||
if [[ ${ABI} == amd64 ]]; then
|
||||
myconf+=( --enable-win64 )
|
||||
else
|
||||
myconf+=( --disable-win64 )
|
||||
fi
|
||||
|
||||
# Note: using --with-wine64 results in problems with multilib.eclass
|
||||
# CC/LD hackery. We're using separate tools instead.
|
||||
fi
|
||||
|
||||
ECONF_SOURCE=${S} \
|
||||
econf "${myconf[@]}"
|
||||
emake depend
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
# FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
|
||||
if [[ ${ABI} == x86 ]]; then
|
||||
if [[ $(id -u) == 0 ]]; then
|
||||
ewarn "Skipping tests since they cannot be run under the root user."
|
||||
ewarn "To run the test ${MY_PN} suite, add userpriv to FEATURES in make.conf"
|
||||
return
|
||||
fi
|
||||
|
||||
WINEPREFIX="${T}/.wine-${ABI}" \
|
||||
Xemake test
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
local DOCS=( ANNOUNCE AUTHORS README )
|
||||
add_locale_docs() {
|
||||
local locale_doc="documentation/README.$1"
|
||||
[[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
|
||||
}
|
||||
l10n_for_each_locale_do add_locale_docs
|
||||
|
||||
einstalldocs
|
||||
prune_libtool_files --all
|
||||
|
||||
if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
|
||||
rm "${D%/}${MY_PREFIX}"/bin/{wine{dump,maker},function_grep.pl} \
|
||||
"${D%/}${MY_MANDIR}"/man1/wine{dump,maker}.1 || die
|
||||
fi
|
||||
|
||||
# Remove wineconsole if neither backend is installed #551124
|
||||
if ! use X && ! use ncurses; then
|
||||
rm "${D%/}${MY_PREFIX}"/bin/wineconsole* || die
|
||||
rm "${D%/}${MY_MANDIR}"/man1/wineconsole* || die
|
||||
rm_wineconsole() {
|
||||
rm "${D%/}${MY_PREFIX}/$(get_libdir)"/wine/{,fakedlls/}wineconsole.exe* || die
|
||||
}
|
||||
multilib_foreach_abi rm_wineconsole
|
||||
fi
|
||||
|
||||
use abi_x86_32 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine{,-preloader} #255055
|
||||
use abi_x86_64 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine64{,-preloader}
|
||||
|
||||
if use abi_x86_64 && ! use abi_x86_32; then
|
||||
dosym wine64 "${MY_PREFIX}"/bin/wine # 404331
|
||||
dosym wine64-preloader "${MY_PREFIX}"/bin/wine-preloader
|
||||
fi
|
||||
|
||||
# Failglob for binloops, shouldn't be necessary, but including to stay safe
|
||||
eshopts_push -s failglob #615218
|
||||
# Make wrappers for binaries for handling multiple variants
|
||||
# Note: wrappers instead of symlinks because some are shell which use basename
|
||||
local b
|
||||
for b in "${D%/}${MY_PREFIX}"/bin/*; do
|
||||
make_wrapper "${b##*/}-${WINE_VARIANT}" "${MY_PREFIX}/bin/${b##*/}"
|
||||
done
|
||||
eshopts_pop
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
eselect wine register ${P}
|
||||
if [[ ${PN} == "wine-vanilla" ]]; then
|
||||
eselect wine register --vanilla ${P} || die
|
||||
fi
|
||||
|
||||
eselect wine update --all --if-unset || die
|
||||
|
||||
xdg_desktop_database_update
|
||||
|
||||
if ! use gecko; then
|
||||
ewarn "Without Wine Gecko, wine prefixes will not have a default"
|
||||
ewarn "implementation of iexplore. Many older windows applications"
|
||||
ewarn "rely upon the existence of an iexplore implementation, so"
|
||||
ewarn "you will likely need to install an external one, like via winetricks"
|
||||
fi
|
||||
if ! use mono; then
|
||||
ewarn "Without Wine Mono, wine prefixes will not have a default"
|
||||
ewarn "implementation of .NET. Many windows applications rely upon"
|
||||
ewarn "the existence of a .NET implementation, so you will likely need"
|
||||
ewarn "to install an external one, like via winetricks"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
eselect wine deregister ${P}
|
||||
if [[ ${PN} == "wine-vanilla" ]]; then
|
||||
eselect wine deregister --vanilla ${P} || die
|
||||
fi
|
||||
|
||||
eselect wine update --all --if-unset || die
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_desktop_database_update
|
||||
}
|
Binary file not shown.
@ -1,2 +1,2 @@
|
||||
DIST mbpfan-2.1.1.tar.gz 40637 BLAKE2B bdd17a9a883cc9af3cb7d55a2c8594c435fb367f0c6b5dec2b3da85747e2c2af591ed1dabf082cbbc31ac92ce5b2dc5194d8a50836c87cd784f238322ab09d9f SHA512 c1bf81c5e2f2f4f710a8455c65f10dc2dc2255319a7dbf4367c31884eece8d9909d28f3a00e5fc4d964d65254b36202a2a2b666d0ef04ea04153baded6039449
|
||||
DIST mbpfan-2.2.0.tar.gz 40435 BLAKE2B 6fd9e6e7c480faa8c0ea432404ec5fcbe8bc8b17efba5dcce28dae96b8c8c434bbf712208e4d7a2f5b12e6d5d1535e3bf32b4661a78c69f496d9c43c3c232bb8 SHA512 f45eb3965100dbc88ba7bf15a15fee261b0f5f29174b7d7d1c1a6d6752ded3ba909586d9131d325d40826a38005ecb3a33008192565b9bb802ffe49c37274690
|
||||
DIST mbpfan-2.2.1.tar.gz 40455 BLAKE2B 0932919b4808fa41d64c326f0d202650be25798ca692b4c17cc94a88f3287ccdd10d74c27f95ac8ef7d900f0067b3c40dc8798d99210b89c01b8cb0d63187b98 SHA512 ce358047910bd6996e1d47fe08e1825863e043fc9a33b3c4922ea537e58dd7508fc45c651816125e7b32472cbb3d06afa4a487daba5b910a8580623def938a71
|
||||
|
Binary file not shown.
Binary file not shown.
@ -1,2 +1,4 @@
|
||||
DIST ckb-0.2.9.tar.gz 664625 BLAKE2B 37dc9c75876ca46fb10241da7b223ca67e5b9c0a998386f0f82eba15a97045e269b1f8a75dea18297865826bff241c21b255a507fd26e73747ee2656a228c4ce SHA512 7910f089d7b01ceade5ae8282db931c9decb9296d4c9c5fc2419eb7fb4ba5a2c0f85721a3a6846ed24a72f61b18374baa7fd27e11329b5d2f65b21916e8b96e1
|
||||
DIST ckb-0.4.0.tar.gz 838586 BLAKE2B 42d786d1934cce6bb082ba4c9f7081401153fa2bd209f290659cfd42787ef69fad9ad86c35df973f1934a03699a1472aa2a1ceb8ef70f46316558e764e5cd88c SHA512 81058d1e31e7328dac1b3a83cb443b9d9f29593e872d189766c1dfe8b502965fd9ea7a962423e94d5053c99d8dd8c50bd98638c11631a2ca586fb9ade700284f
|
||||
DIST ckb-0.4.1.tar.gz 845316 BLAKE2B 03b6d09ab9297fea30ecff5485fcb33d7ad00335b25ce8bbd7727db1b794c7016a8f161562b5271e29fcefb332b50797d91ff8c09724b96b8929033763ad6624 SHA512 294a29146978c722fdfbb9c2581ed3fc492b2ffead0de8c434bfe90e6aff6e61748517c0f98ae0d8747e7a95684cf22badf778b35358dbaa8acbc18a25ade993
|
||||
DIST ckb-0.4.2.tar.gz 883681 BLAKE2B b3d921010b1caa8cb870770c6cf3ff0e9f6c65ea742325995e26351331e3063a16e8a391f593bfc8b16663cef0580e087d776796ea69776465122b08e00e9382 SHA512 4c80101e935a4d5137b0fd6aaf7d97889913af0bbb8e3097e035e2420043d6525094c1e3f7b5676e8c50328454251ff3260f6aa9b81ec583a2e8136333ee6af8
|
||||
|
@ -0,0 +1,49 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit desktop cmake-utils systemd
|
||||
|
||||
DESCRIPTION="Corsair K65/K70/K95 Driver"
|
||||
HOMEPAGE="https://github.com/ckb-next/ckb-next"
|
||||
SRC_URI="https://github.com/ckb-next/ckb-next/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="
|
||||
>=dev-libs/quazip-0.7.2[qt5(+)]
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtnetwork:5
|
||||
dev-qt/qtwidgets:5
|
||||
virtual/libudev:=
|
||||
x11-libs/libX11
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
DOCS=( CHANGELOG.md README.md )
|
||||
S="${WORKDIR}/${PN}-next-${PV}"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DDISABLE_UPDATER=yes
|
||||
)
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
newinitd "${FILESDIR}"/ckb.initd ckb-daemon
|
||||
cmake-utils_src_install
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_icon_cache_update
|
||||
}
|
@ -0,0 +1,49 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit desktop cmake-utils systemd
|
||||
|
||||
DESCRIPTION="Corsair K65/K70/K95 Driver"
|
||||
HOMEPAGE="https://github.com/ckb-next/ckb-next"
|
||||
SRC_URI="https://github.com/ckb-next/ckb-next/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="
|
||||
>=dev-libs/quazip-0.7.2[qt5(+)]
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtnetwork:5
|
||||
dev-qt/qtwidgets:5
|
||||
virtual/libudev:=
|
||||
x11-libs/libX11
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
DOCS=( CHANGELOG.md README.md )
|
||||
S="${WORKDIR}/${PN}-next-${PV}"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DDISABLE_UPDATER=yes
|
||||
)
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
newinitd "${FILESDIR}"/ckb.initd ckb-daemon
|
||||
cmake-utils_src_install
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_icon_cache_update
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST ytree-1.99pl2.tar.gz 124601 BLAKE2B c0cdabbdcc46169edb64c52bec737e51e1dbe4d70ff58eb6ad414fbdfa08a57027ea755609b31d098539e17d4ec9794a384bf0f5b9d655157de597503b880c3b SHA512 a82c897a0ba6c744a213bd04d8d1a2032419761f4a0948e0ca605ee0eacb8a477b960bc7485cd72dca2cfc3e4844bfca0082e84d2cd78eca8d996222e5b414c5
|
||||
DIST ytree-2.00.tar.gz 124654 BLAKE2B db55a463c3103a544ce882da9e5297a9bde3d6e5b618332cf863dec87e6d1842197c5f6ae282e05d4a0674a8c8d52807f9eb2c163e87c1adf0b8c484e1874d62 SHA512 4306ac6f46187dafd48103348fc30cafd8cec50a196a526249c15528604ad635b0bbf96897fedcb69360b43000d0447698523168589aa917a5884252fa183529
|
||||
|
@ -0,0 +1,37 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="A curses-based file manager"
|
||||
HOMEPAGE="https://www.han.de/~werner/ytree.html"
|
||||
SRC_URI="https://www.han.de/~werner/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
DEPEND="
|
||||
sys-libs/ncurses:0=
|
||||
sys-libs/readline:0=
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-1.99-tinfo.patch"
|
||||
)
|
||||
|
||||
DOCS=( CHANGES README THANKS ytree.conf )
|
||||
|
||||
pkg_setup() {
|
||||
tc-export CC
|
||||
}
|
||||
|
||||
src_install() {
|
||||
einstalldocs
|
||||
dobin ${PN}
|
||||
doman ${PN}.1
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST ansifilter-2.14.tar.bz2 441884 BLAKE2B 90b3b0330866da11c00b105aa79164178aebecf39131f5c8d8e373091f53d2d8bbced54472c975a61857d594a9fa92ce08d018523f471fde445d4548d48b949b SHA512 a0b7f12ea5b9ef9b5845a03484a2e238a9f60e0e49f8eddca8bf24b47faba48aa0b55f922678b3bf1b3f08857bbe9a8285b3f318f2adec84673bc502e21b6802
|
||||
DIST ansifilter-2.15.tar.bz2 441381 BLAKE2B db55f8a21aada3aa851a099e5a19a3f3bbf81b8ce5d75b31600cbc47f409306e74f57ff51c52266212fa3c59730fac0d416e99f1fefe8a7009bd357ea216b0cd SHA512 4c30ea11665ce0876664c77fbe69c377d5e692508a54b4629e9b6363c1f223b65ac91d20fd61d6d8cf719d1b391ca6d94d69dabbacde7c2dc460330d530a09af
|
||||
|
@ -0,0 +1,57 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit toolchain-funcs qmake-utils
|
||||
|
||||
DESCRIPTION="Handles text files containing ANSI terminal escape codes"
|
||||
HOMEPAGE="http://www.andre-simon.de/"
|
||||
SRC_URI="http://www.andre-simon.de/zip/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc64 ~x86"
|
||||
IUSE="qt5"
|
||||
|
||||
RDEPEND="
|
||||
qt5? (
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtwidgets:5
|
||||
)"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# bug 431452
|
||||
rm src/qt-gui/moc_mydialog.cpp || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
if use qt5 ; then
|
||||
pushd src/qt-gui > /dev/null || die
|
||||
eqmake5
|
||||
popd > /dev/null || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake -f makefile CC="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS} -DNDEBUG -std=c++11"
|
||||
|
||||
if use qt5 ; then
|
||||
pushd src/qt-gui > /dev/null || die
|
||||
emake
|
||||
popd > /dev/null || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin src/${PN}
|
||||
use qt5 && dobin src/qt-gui/${PN}-gui
|
||||
|
||||
gunzip man/${PN}.1.gz
|
||||
doman man/${PN}.1
|
||||
einstalldocs
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST txt2man-1.5.6.tar.gz 16293 BLAKE2B f62836aae1d7c1539ca896ce10a404965ba1794bbf06448693b2f138a28e74c69912cd1e693fa1e6cf9402f703decdd6b76cffd8d63276ce313d075a26cb3fb3 SHA512 dd1cb5a6385d75b459fb61c49e0b73e5cafa5af8b11d9b89e5c206a9c5b65e4daac4d0e768c28963aacde772b715cb11ed0e843e42397b2df894a1f68c70ca65
|
||||
DIST txt2man-1.6.0.tar.gz 16941 BLAKE2B 4ca7d13bb61b0b65ff47a6a6f37c5035910804cff71f0c6d848105d7ee9b8285fd6433fe019fc075a5b28769df5044a462296ad63514d44a75abc1fa552b64ba SHA512 7ec2cc0bb685d890cf06504d4faacf7a02c5a321963effb71ff63b7310f64f092e666c055c1dbdb699958a62272fe4dc0f31f3947ca6895aa425753a11b75379
|
||||
|
@ -1,24 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="4"
|
||||
|
||||
DESCRIPTION="Scripts to convert regular ASCII text to man pages"
|
||||
HOMEPAGE="http://mvertes.free.fr/"
|
||||
SRC_URI="http://mvertes.free.fr/download/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="app-shells/bash
|
||||
sys-apps/gawk"
|
||||
|
||||
src_compile() { :; }
|
||||
|
||||
src_install() {
|
||||
dobin bookman src2man txt2man
|
||||
doman *.1
|
||||
dodoc Changelog README
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST xchm-1.23.tar.gz 474274 BLAKE2B de73c04e68b876edefb1d45d9e982bcce6fd3afa06f8704d05fa5cae710d9724ed20ca50be9022570832da9954ba2af141a66e5b3ab02554441c84bac1d6ffed SHA512 c0df4362ff6db8136b20f62a76e7e93185375f6ef9eeeb1001e27ead9806d486332573ba8c3ca1863a70ce6b1d3bcc6d3af48d42add719312774dccfd7d18c90
|
||||
DIST xchm-1.29.tar.gz 972533 BLAKE2B e114047f4c3e19bb4d4c28a74997c76c54a2dc286f1f0691f105824be693e3b51c7618717b5b5b5f3604ab3f4fa89d703e071a36be0bd05529b6f44710b0bd20 SHA512 678cea2947d58e9b173379d6df809be603ca77431a3181ee45e3c1f4a4a55a6c10a395eecb5c25feb14ad361d044355ae313d537f0abc9278c6e5ab37a8768f6
|
||||
DIST xchm-1.30.tar.gz 981171 BLAKE2B 6b2077e9cf8fa849121cee3681bd390218de1ce83c9c49117a186ddef107b15ee8f491eb93ae41ba8a2ea07ede306883ef0f8f0c357142e9ca333bdea8ebc50a SHA512 896d94f4fa3b728e37985b1a2e918596e20bed0a43cf90711d27ebfdcbe49e4a0794c17e1f6cfefb6f272adcc7fb22464e2c25c15d0f0afcbe94b867899eb1a5
|
||||
DIST xchm-1.31.tar.gz 981450 BLAKE2B c0c1908332f4d76f2c4dcf64ed713ae500d1b2022dedb5cb0df294fcdd1ce87d5144ca7347d6bc70b43af29f047ee270ffe05f1ee8da2dae5a5e0586c342900a SHA512 b5e1e979948d202163265f99357b361bb78371a2cc7cdedcc2d2c78207466c3f8291f720c92405913c7c5b9f607d3951a8bb3be3ece3ba1f408ceeb79199e9b5
|
||||
|
@ -0,0 +1,51 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
WX_GTK_VER="3.0-gtk3"
|
||||
inherit desktop wxwidgets xdg-utils
|
||||
|
||||
DESCRIPTION="Utility for viewing Compiled HTML Help (CHM) files"
|
||||
HOMEPAGE="https://github.com/rzvncj/xCHM/"
|
||||
SRC_URI="https://github.com/rzvncj/xCHM/releases/download/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE="nls"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/chmlib-0.36
|
||||
x11-libs/wxGTK:${WX_GTK_VER}[X]
|
||||
nls? ( virtual/libintl )
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
nls? ( sys-devel/gettext )
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
econf $(use_enable nls)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
dodoc AUTHORS README ChangeLog
|
||||
|
||||
domenu "${FILESDIR}"/xchm.desktop
|
||||
insinto /usr/share/mime/packages
|
||||
doins "${FILESDIR}"/xchm.xml
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_desktop_database_update
|
||||
xdg_icon_cache_update
|
||||
xdg_mimeinfo_database_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_desktop_database_update
|
||||
xdg_icon_cache_update
|
||||
xdg_mimeinfo_database_update
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -1,2 +1,3 @@
|
||||
DIST tiled-1.2.4.tar.gz 16875074 BLAKE2B 19d9e000949a889af90f48c31862aab8d00cbd968d518bc48e58775763ff2b293d5e82f10b8ec45dda936bf81b177f88aa4962900c7b70b01ce514fabf717c46 SHA512 a16fcb3fcceb11397cc981f10a558215264cf2c340639fbc001d384cfd9bc138c05ed40894a03d103af8a7d629c0be9fa6d5a4058fd9c563806920efef8e2cb7
|
||||
DIST tiled-1.2.5.tar.gz 16878267 BLAKE2B 75d7ba6f715963cc5209181664052aa276dead8311e8fb99561c8375c4fce3400b60f71f4bce3213e1198e3217812e8debdedc72c87dff3f553e391ed1e9438d SHA512 2b0009a8aa785d4289d6759369ff579e62e4fb969090ee6ba2b3fae4dd42d4e9562bd6d2a74ae372c07d9bbfd108390c79a48b49e05f0881e87497f6a727cb3a
|
||||
DIST tiled-1.3.1.tar.gz 15728903 BLAKE2B f9b6aa89b450bbb6fe101610f81f3f8a2c385149eb07d79c3b2ddf33bb654c7d1f48b8938975be5037824a1fd14840a7ee8b4a0cc8b009808bdfdc4aec99525e SHA512 b2ed5c0ff043990177809873417e31e8ee2894473b3084d0302e5557c19043c1763cf55d8ade16335ba3d64e7b4b903dd5fb88fd4bcf878c7c4d873bc9c7ed73
|
||||
|
@ -0,0 +1,63 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_6 )
|
||||
inherit gnome2-utils multilib python-single-r1 qmake-utils xdg-utils
|
||||
|
||||
DESCRIPTION="A general purpose tile map editor"
|
||||
HOMEPAGE="https://www.mapeditor.org/"
|
||||
SRC_URI="https://github.com/bjorn/tiled/archive/v${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD BSD-2 GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="examples python"
|
||||
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-qt/qtcore-5.10:5
|
||||
>=dev-qt/qtdeclarative-5.10:5
|
||||
>=dev-qt/qtgui-5.10:5
|
||||
>=dev-qt/qtnetwork-5.10:5
|
||||
>=dev-qt/qtwidgets-5.10:5
|
||||
sys-libs/zlib
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="dev-qt/linguist-tools:5"
|
||||
|
||||
DOCS=( AUTHORS COPYING NEWS.md README.md )
|
||||
|
||||
pkg_setup() {
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
eqmake5 LIBDIR="/usr/$(get_libdir)" PREFIX="/usr" DISABLE_PYTHON_PLUGIN="$(usex !python)"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake INSTALL_ROOT="${D}" install
|
||||
|
||||
einstalldocs
|
||||
|
||||
if use examples ; then
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
dodoc -r examples
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_icon_cache_update
|
||||
xdg_desktop_database_update
|
||||
xdg_mimeinfo_database_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_icon_cache_update
|
||||
xdg_desktop_database_update
|
||||
xdg_mimeinfo_database_update
|
||||
}
|
Binary file not shown.
@ -1,20 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
ANT_TASK_JDKVER=1.8
|
||||
ANT_TASK_JREVER=1.8
|
||||
ANT_TASK_DEPNAME=""
|
||||
|
||||
inherit ant-tasks
|
||||
|
||||
DESCRIPTION="Apache Ant's optional tasks for Antlr"
|
||||
KEYWORDS="amd64 ~arm ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
|
||||
RDEPEND=">=dev-java/antlr-2.7.7-r7:0"
|
||||
|
||||
src_install() {
|
||||
ant-tasks_src_install
|
||||
java-pkg_register-dependency antlr
|
||||
}
|
@ -1,20 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
ANT_TASK_JDKVER=1.8
|
||||
ANT_TASK_JREVER=1.8
|
||||
ANT_TASK_DEPNAME=""
|
||||
|
||||
inherit ant-tasks
|
||||
|
||||
DESCRIPTION="Apache Ant's optional tasks for Antlr"
|
||||
KEYWORDS="amd64 ~arm ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
|
||||
RDEPEND=">=dev-java/antlr-2.7.7-r7:0"
|
||||
|
||||
src_install() {
|
||||
ant-tasks_src_install
|
||||
java-pkg_register-dependency antlr
|
||||
}
|
@ -1,15 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
ANT_TASK_JDKVER=1.8
|
||||
ANT_TASK_JREVER=1.8
|
||||
ANT_TASK_DEPNAME="bcel"
|
||||
|
||||
inherit ant-tasks
|
||||
|
||||
KEYWORDS="amd64 ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
|
||||
DEPEND=">=dev-java/bcel-5.1-r3:0"
|
||||
RDEPEND="${DEPEND}"
|
@ -1,15 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
ANT_TASK_JDKVER=1.8
|
||||
ANT_TASK_JREVER=1.8
|
||||
ANT_TASK_DEPNAME="bcel"
|
||||
|
||||
inherit ant-tasks
|
||||
|
||||
KEYWORDS="amd64 ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
|
||||
DEPEND=">=dev-java/bcel-5.1-r3:0"
|
||||
RDEPEND="${DEPEND}"
|
@ -1,23 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
ANT_TASK_JDKVER=1.8
|
||||
ANT_TASK_JREVER=1.8
|
||||
ANT_TASK_DEPNAME="bsf-2.3"
|
||||
|
||||
inherit ant-tasks
|
||||
|
||||
KEYWORDS="amd64 ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="python javascript tcl"
|
||||
|
||||
DEPEND=">=dev-java/bsf-2.4.0-r1:2.3[python?,javascript?,tcl?]"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -z "${REPLACING_VERSIONS}" ]]; then
|
||||
elog "Also, >=dev-java/bsf-2.4.0-r1 adds optional support for groovy,"
|
||||
elog "ruby and beanshell. See its postinst elog messages for instructions."
|
||||
fi
|
||||
}
|
@ -1,23 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
ANT_TASK_JDKVER=1.8
|
||||
ANT_TASK_JREVER=1.8
|
||||
ANT_TASK_DEPNAME="bsf-2.3"
|
||||
|
||||
inherit ant-tasks
|
||||
|
||||
KEYWORDS="amd64 ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="python javascript tcl"
|
||||
|
||||
DEPEND=">=dev-java/bsf-2.4.0-r1:2.3[python?,javascript?,tcl?]"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -z "${REPLACING_VERSIONS}" ]]; then
|
||||
elog "Also, >=dev-java/bsf-2.4.0-r1 adds optional support for groovy,"
|
||||
elog "ruby and beanshell. See its postinst elog messages for instructions."
|
||||
fi
|
||||
}
|
@ -1,15 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
ANT_TASK_JDKVER=1.8
|
||||
ANT_TASK_JREVER=1.8
|
||||
ANT_TASK_DEPNAME="log4j"
|
||||
|
||||
inherit ant-tasks
|
||||
|
||||
KEYWORDS="amd64 ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
|
||||
DEPEND=">=dev-java/log4j-1.2.13-r2:0"
|
||||
RDEPEND="${DEPEND}"
|
@ -1,15 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
ANT_TASK_JDKVER=1.8
|
||||
ANT_TASK_JREVER=1.8
|
||||
ANT_TASK_DEPNAME="log4j"
|
||||
|
||||
inherit ant-tasks
|
||||
|
||||
KEYWORDS="amd64 ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
|
||||
DEPEND=">=dev-java/log4j-1.2.13-r2:0"
|
||||
RDEPEND="${DEPEND}"
|
@ -1,15 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
ANT_TASK_JDKVER=1.8
|
||||
ANT_TASK_JREVER=1.8
|
||||
ANT_TASK_DEPNAME="jakarta-oro-2.0"
|
||||
|
||||
inherit ant-tasks
|
||||
|
||||
KEYWORDS="amd64 ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
|
||||
DEPEND=">=dev-java/jakarta-oro-2.0.8-r2:2.0"
|
||||
RDEPEND="${DEPEND}"
|
@ -1,15 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
ANT_TASK_JDKVER=1.8
|
||||
ANT_TASK_JREVER=1.8
|
||||
ANT_TASK_DEPNAME="jakarta-oro-2.0"
|
||||
|
||||
inherit ant-tasks
|
||||
|
||||
KEYWORDS="amd64 ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
|
||||
DEPEND=">=dev-java/jakarta-oro-2.0.8-r2:2.0"
|
||||
RDEPEND="${DEPEND}"
|
@ -1,15 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
ANT_TASK_JDKVER=1.8
|
||||
ANT_TASK_JREVER=1.8
|
||||
ANT_TASK_DEPNAME="jakarta-regexp-1.4"
|
||||
|
||||
inherit ant-tasks
|
||||
|
||||
KEYWORDS="amd64 ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
|
||||
DEPEND=">=dev-java/jakarta-regexp-1.4-r1:1.4"
|
||||
RDEPEND="${DEPEND}"
|
@ -1,15 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
ANT_TASK_JDKVER=1.8
|
||||
ANT_TASK_JREVER=1.8
|
||||
ANT_TASK_DEPNAME="jakarta-regexp-1.4"
|
||||
|
||||
inherit ant-tasks
|
||||
|
||||
KEYWORDS="amd64 ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
|
||||
DEPEND=">=dev-java/jakarta-regexp-1.4-r1:1.4"
|
||||
RDEPEND="${DEPEND}"
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue