parent
69d5e1f265
commit
87132c4e07
@ -0,0 +1,67 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit fcaps golang-base golang-vcs-snapshot systemd user
|
||||
|
||||
EGO_PN="github.com/hashicorp/${PN}"
|
||||
DESCRIPTION="A tool for managing secrets"
|
||||
HOMEPAGE="https://vaultproject.io/"
|
||||
SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
SLOT="0"
|
||||
LICENSE="MPL-2.0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
DEPEND=">=dev-lang/go-1.9:=
|
||||
dev-go/gox"
|
||||
|
||||
FILECAPS=(
|
||||
-m 755 'cap_ipc_lock=+ep' usr/bin/${PN}
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
# Avoid the need to have a git checkout
|
||||
sed -e 's:^\(GIT_COMMIT=\).*:\1:' \
|
||||
-e 's:^\(GIT_DIRTY=\).*:\1:' \
|
||||
-e s:\'\${GIT_COMMIT}\${GIT_DIRTY}\':: \
|
||||
-i src/${EGO_PN}/scripts/build.sh || die
|
||||
sed -e "/hooks/d" -i src/${EGO_PN}/Makefile || die
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup ${PN}
|
||||
enewuser ${PN} -1 -1 -1 ${PN}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
mkdir bin || die
|
||||
export GOPATH=${S}
|
||||
cd src/${EGO_PN} || die
|
||||
XC_ARCH=$(go env GOARCH) \
|
||||
XC_OS=$(go env GOOS) \
|
||||
XC_OSARCH=$(go env GOOS)/$(go env GOARCH) \
|
||||
emake
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodoc src/${EGO_PN}/{CHANGELOG.md,CONTRIBUTING.md,README.md}
|
||||
newinitd "${FILESDIR}/${PN}.initd" "${PN}"
|
||||
newconfd "${FILESDIR}/${PN}.confd" "${PN}"
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/${PN}.logrotated" "${PN}"
|
||||
systemd_dounit "${FILESDIR}/${PN}.service"
|
||||
|
||||
keepdir /etc/${PN}.d
|
||||
insinto /etc/${PN}.d
|
||||
doins "${FILESDIR}/"*.json.example
|
||||
|
||||
keepdir /var/log/${PN}
|
||||
fowners ${PN}:${PN} /var/log/${PN}
|
||||
|
||||
dobin bin/${PN}
|
||||
}
|
@ -1,6 +1,8 @@
|
||||
AUX 65easy-rsa 37 SHA256 685842f170ec8ce19be9de1681ec8f8121e677e6b3bcd21dea89b843e68e2839 SHA512 2f8c4f489ebd2ad2e5a0d45351361ecfc06a9481d9e15ea48215addb82ddf2083a85acb0a5c171d0c7e5406152d3679a5a7835e22ba9953e554614d94026d778 WHIRLPOOL b757f05f78d1e780b5991e5b19889d2692be188fc58e67a9606ca6334b0452d63302c4c5e556f2fdb542c6d86026e0f31c76845607b275f14e0875b1c518f303
|
||||
DIST EasyRSA-3.0.1.tgz 40960 SHA256 dbdaf5b9444b99e0c5221fd4bcf15384c62380c1b63cea23d42239414d7b2d4e SHA512 d20f646e33ec803444dfcd446553f1d6001227fedec93280c212b34cccee11b184599f1b2ae6a3ce9cf6c9ac52f2b840ebb645536df6ddf55382fa25c22df81f WHIRLPOOL 64d54af059e136409f4ad3488450cccc846e2b5d9dfb9e002dd466cf603b6677dc8f0b788471b73eebda918c5773673efc120e6a76dbf407a3e1605db14e62cd
|
||||
DIST EasyRSA-3.0.3.tgz 40960 SHA256 fb239d67f4bd09f817b0025450d422ed7ae3ee93af737c57d4acd8fdb646079e SHA512 c8cdc31d67e63f9e8338095fa4534bb141d857a8a9f510bef1af32270b8421952e569253bc8b7a51ebf1b443a6ad5c7cd011b258d7c9f56426ecd3f2b710b6f9 WHIRLPOOL d80a74b6fe22dd748eefab9c9ef3e0c726b2445e1bd4d89e137a5a0aac9754075ab7ce5e28c15951048adc7e69c9573b36c6dd57b61476bb4f1d34e4fd79868f
|
||||
EBUILD easy-rsa-3.0.1-r1.ebuild 856 SHA256 294e8bbca5aab6d5bd46b69428fac174b8de5b17ee80e504a7bddc8277291ef5 SHA512 8be27d7faccabeb9468d4b914b690a95f11dd02225759e51042b8f54043253570fc2a06b2173aea31b2c33ebba879effffbba4d8cb95a6f51871b3d7760a11a9 WHIRLPOOL 29df1744c31e1623f73f1ccef0b273e10f0d27b764f30d16fb918518e4b3a871d03b3a954c5c37abf4a7bf8b3af83ab151e92da2203309c8f1c7af7d46c4bb9d
|
||||
EBUILD easy-rsa-3.0.3.ebuild 862 SHA256 4b237e611b80f56e271296fa985b4f4c2c7e1ea12cba8acd588580365809b319 SHA512 2c030b2a4fc5ed9fc02de403560a0cec4ffae94ff18611b7942408c937e36544aeba5b6cb87b7db23734b3f2ea0b7f6f19699e789013761484a374bd093f5df0 WHIRLPOOL 7c6f3bb49d12e4b1dafaf35b1ed967c6b876cb59d51d7e031069084b76b74d14d2ea4d303912867cb2f4d3980a21738f0bc0bfcc27f3eff3bc759abd803d58d8
|
||||
MISC ChangeLog 3729 SHA256 eed1fb90ddd2e88ab2ab2d63b75a5788dc92337da68c7864e4c54c1d604cd5d4 SHA512 af7e552d47ed6590857418c6d5b686ab04d1b9e03815eb8dfa2aa15a26a87a8749b6482847c93218c6707460c27b7ff78245b132211603bb16a23784f917f4e2 WHIRLPOOL d8eff7d428687802b87752c2dabaf7aea6d9411cef5811c5e6ba234b4ab82aca78d8460e95e5f03f6879154e578102dfc0c7f97452f7805b9b7cb4f20faa4e95
|
||||
MISC ChangeLog-2015 3271 SHA256 0a2236d29760e1552d9f263845c2a9a55418026ec5ef3110cade31325ded68df SHA512 b39945d8ec2691004a6311f83e790a8b5d45280049cf7b1212ea8a5b494f8e4413459b57f09d9a31013b73d7ce6a26ea06f33d8489151019ab0dfcc8b13efc46 WHIRLPOOL b07605482d0f4876ee8685c2263c3221c0d726356f500729f00b617b8e2d91e9be3845d01411bc0c01949cf69c3f8740bdded40419a9a86b721e57a30fab7f24
|
||||
MISC metadata.xml 253 SHA256 9ed7b7735ddd664ebd9ccd44a4acec74a032bf23bc8210f444d2410371df3489 SHA512 514b8f53c2debe0ff7fcc49e68347d148d5955114bb26f93d86deb9cffcb17f9081cce239beafd37ec47c43ec01743eb999b7cf2b5dc1708948567865d9d6531 WHIRLPOOL 6065ede175c562ee1175a4930cac3e69d02b8b8814d2da2bbb995cbe956cf167c42e6e89fc549e3f2a910e4f489d3520618f58ac603288c6f6889177962dd762
|
||||
|
@ -0,0 +1,34 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils
|
||||
|
||||
MY_P="EasyRSA-${PV}"
|
||||
|
||||
DESCRIPTION="Small RSA key management package, based on OpenSSL"
|
||||
HOMEPAGE="http://openvpn.net/"
|
||||
SRC_URI="https://github.com/OpenVPN/easy-rsa/releases/download/v${PV}/${MY_P}.tgz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
|
||||
IUSE="libressl"
|
||||
|
||||
DEPEND="!libressl? ( >=dev-libs/openssl-0.9.6:0 )
|
||||
libressl? ( dev-libs/libressl )"
|
||||
RDEPEND="${DEPEND}
|
||||
!<net-vpn/openvpn-2.3"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_install() {
|
||||
exeinto /usr/share/easy-rsa
|
||||
doexe easyrsa
|
||||
insinto /usr/share/easy-rsa
|
||||
doins -r vars.example openssl-1.0.cnf x509-types
|
||||
dodoc README.quickstart.md ChangeLog
|
||||
dodoc -r doc
|
||||
doenvd "${FILESDIR}/65easy-rsa" # config-protect easy-rsa
|
||||
}
|
@ -1,14 +1,17 @@
|
||||
AUX gnupg-2.1.20-gpg-Fix-typo.patch 843 SHA256 bd465cb0a40e83825b5e95ba0d9886be433e1b3dc85e78558c8abf103801ba59 SHA512 eb451eedb3e0282f3b7d10d0b12753a55b6bd92b2cdfc1dce5a9ffe1f0015cc598193193a8c8292371fb285517016d69ec70b7820f9dc0047e33b2e3f16214ed WHIRLPOOL 507a2206694a77dab35482e4701be13a062f7f983f80e3b632a10939d3229f756014f7d9f0b85b2214bf44e0d6ded16580bf4c4946682c5eeaa1c13731f2c29b
|
||||
AUX gnupg-2.1.20-gpg-Properly-account-for-ring-trust-packets.patch 2987 SHA256 55e997ebfb0cb49e8ad5b10fdbbb742986a6ee51f41f8a42334fdb30cec49de9 SHA512 2cf3147638c69f49b4d792a01321b5892f882fc67a1aee8f51f9b35761e6961e9c46d9abc92b0e5250a85b7145e69ba9583b3ce2323943587feb52a029e95deb WHIRLPOOL 06a9fb5a569fe8adfde5168f5f4c604ba4b80351870c3a595b8711ef5a1ecc3076a1ac5f297e593a3e35aac27565dd2d092a8c9729c6f3ce9b98f2fc507d975d
|
||||
AUX gnupg-2.1.20-gpgscm-Use-shorter-socket-path-lengts-to-improve-tes.patch 1048 SHA256 cc24f9fdccbeab4d7101b982e39d6df69e4d7da677bd580c0cc8447d23421eec SHA512 fd12827150e96cd7979ea9611d64ed4ab9e6c61cfecdd697b8fb4d162f20985b734c2bfc365a921809b9029e86a85a9b36c10ec472b3dd49c25ea18f5aef56ce WHIRLPOOL 7fae3a8805b279b5120a975728cc34bc026a3e1f83aaaa7b9b410f62daf2681bb05a3daf5ca4f7b1d28c85d91d5ab4209203eb95da7a48062efa2120d1af78d8
|
||||
AUX gnupg-2.2.1-fix-gnupg-wait.patch 2881 SHA256 c831b1eb578e60defb0a8a71def67b450b17f9f4cb614798c9ae2d062c681c04 SHA512 3622c1667c3f0b0acb28fd3ac440af76c0f2757e1d654fbd85344a1193a088db087861f7410e249ece5c99fd7afd7d7a24c43f58e88f5c21949195714be4cbf6 WHIRLPOOL 77825329ed39e583dc7084a8213f67b5adaba2e6e24bcc5d9d13e095821fef3505cf61c67cc89d8c0f5ba04f7d976b976d24b607f8b17201a02cffcc136fed87
|
||||
DIST gnupg-1.4.21.tar.bz2 3689305 SHA256 6b47a3100c857dcab3c60e6152e56a997f2c7862c1b8b2b25adf3884a1ae2276 SHA512 619e0fbc10310c7e55d129027e2945791fe91a0884b1d6f53acb4b2e380d1c6e71d1a516a59876182c5c70a4227d44a74ceda018c343b5291fa9a5d6de77c984 WHIRLPOOL eb596be347dd90be93d381fe405e50f5808160b546705493bc9d817d521ea236a2374648e6c2cab396f54bba74de4caf2b92e894df3a17aa339f014ef8cc8802
|
||||
DIST gnupg-2.1.15.tar.bz2 5723689 SHA256 c28c1a208f1b8ad63bdb6b88d252f6734ff4d33de6b54e38494b11d49e00ffdd SHA512 69c943e853e1a37e8b17b3bc34e1503f14bc8f189fa9f3ac6644bcc98ccce6eaef64da20ff9dd1c8de3a7789ea577167984ccf3ac286cac50752e6f7c2f42ab1 WHIRLPOOL 4c5a8cd4e8b7196f4a355ce7739cf6e23c43817414e10bbba219117e4e51c4c618ffb5dbce27cb836a2171eda58e003d5ddf78d4af09a813c2a1729963413151
|
||||
DIST gnupg-2.1.20.tar.bz2 6456128 SHA256 24cf9a69369be64a9f6f8cc11a1be33ab7780ad77a6a1b93719438f49f69960d SHA512 14a9890bc64e143f87cff121dd298d490d78dbd34e36883e0f25763ff9064e5706a7632893d7c5d0e8e9b8cf9cdb0d378b4ce1715348729f0fc080455b61eca9 WHIRLPOOL fa6cbd66031cac41db308b10bebec87e37a19d3c63219d22fb874d7d016bcad057b93eeece7a64001718ee1f881199e3d3eebc8ef6625691f553b0d2dbc92624
|
||||
DIST gnupg-2.2.0.tar.bz2 6532475 SHA256 d4514a0be0f7a1ff263193330019eb4b53c82f0f5e230af3c14df371271a45e6 SHA512 8ab7c4183d2ec2e6b62066e3cbcba95babaa0ae22da47feab716698792d26495f072d50e8ec612b8d26147636bb316320c78940184373b3f4cb6ec411933361b WHIRLPOOL c918b6a7e40ff170e1ff3b77978cb7f0d9298a3410204677955dc167b114a1f85d32deaca4f006c2bd621f532379ca9631b96913bf660394a82ab4ee0bbbaecb
|
||||
DIST gnupg-2.2.1.tar.bz2 6537959 SHA256 34d70cd65b9c95f3f2f90a9f5c1e0b6a0fe039a8d685e2d66d69c33d1cbf62fb SHA512 fcda7ea360d9928bf9e410afe3806ee0692dd533443b0c0e050605a9e2e37ec16f3c60a30b30ab137155327bc1f5d2107f1e792582e3ad245b47bf39a1a61a8f WHIRLPOOL 032d26c79aebcda3529f7cfcdec467e1058d19fa939eae48fd086e7c9f585a7b02dc9e6fb04a342fab845b9eb0d51c3bc2cca4a4d9677683a23bdd5c479b4eba
|
||||
EBUILD gnupg-1.4.21.ebuild 3345 SHA256 6b441756eae4e86f212092330acea93ef31e82be0903df125e3060746726eecb SHA512 14a708c00e98c76fa6ef1f2d878f84f63d8e110f85b35b9c40b6da80525af685df09ea83eb1dd1fce1fe3016b9e12a46c02c91f11ea78496c12301acbf04d257 WHIRLPOOL afc261211aa9a4620501359bc7622e61916db6144d70dd3d5e48fe471952c4b865b1fe7911c64bdcdb848120b5620ad445f24aa36b452a02aaafcf21abde998d
|
||||
EBUILD gnupg-2.1.15.ebuild 4570 SHA256 8a8a2a347184293403d78eb604f2c520ac716e162cb8acfc21795952abe9b07f SHA512 385f5c40a42559e3b686d16dedc2ca442dd0a075514184e67eef97624cc419bd0bfc7f7ca6fdd3dc549cb4e3beafce656b725adcf201d27b151dab6456346875 WHIRLPOOL be781ec9278f2b9284e139dccbaa986a2c2860f74bd3933a6ce5e325b4ac6cd7b0301c31331955e308d71c754c2a00922a8a2ea8db7178ed73e9135a8d3293a8
|
||||
EBUILD gnupg-2.1.20-r1.ebuild 3102 SHA256 1e8c8bdee0c90d9ea51b3ed3e940a4f4e7e67c823816961ca75e02e8b726dc03 SHA512 68eafca6339bab0f118c5ff9119a984ee2b7432942929d429a430c053da568ed7729d13a507d073bebc8a273e74eb40f66585ef84cc9b83181f2ea5d6990d615 WHIRLPOOL 99ee773c6aec668d1e4ebbb9ef65792e26f01088d54443dff0578de61ca9d665ba30e96be80cd7e447abb9fed56f3061aff7c224941de90f31ee2134995a8adc
|
||||
EBUILD gnupg-2.2.0.ebuild 3127 SHA256 96f39a0b8a24fd9ec47f17b5f006f7229d13100cad2707f7469879e73fea1401 SHA512 8cc84480bfd68c00ea6f2bd410f06aa36a667ad90e76cdbbf893b302ff5c280ab19a75dc286ced4b7ec21a6257fabf55c384244335f3c645bb2ca138acb3343b WHIRLPOOL 2c62869ab3cf66855eff580942d535087092c4a03e2909a63e60eb01bf015bdb234ed3dbf0518b697f9b1a2d5a5f012ab758b767485718bfc9479c20ef032098
|
||||
EBUILD gnupg-2.2.1.ebuild 3224 SHA256 8087d59a0748422d7888180f3e7b4692285cebb9ce7a8ac802bf563558ef9e9d SHA512 ebe3107c7444f4f821760d854da5376a9953b7e6781673cc55b3704ce9accf5306277140648a047f9fe705c7e5ef7922e45c0fceb8508d80edd63b6dab08b579 WHIRLPOOL 1c9745178e0276a11bf73d31705318c40e6a0c2c9191cee90df14fc0e02856f0eb534ef036b6ee3815dc4eb574f31e12cb5b433424b9362e4d1513c7dde55699
|
||||
MISC ChangeLog 17653 SHA256 0f85d5aa5e23837a910ad2d14a05a1a3cd8a3bc9f59d4e0fcbc1b6cf30d8f166 SHA512 8e8d0cac1c1c9662d9754e1ee04399bffbd41eaec93d361bb01ac753d9907c60d56f184eb5e265f4817afe681f090b4d796274a2bb33988764e036fdb71dd2f1 WHIRLPOOL 960f2283993b2d007df253abd5a5b0eb0d1441df64262825785793cfd756f6d314c3186948fddfc946ed801e64834ac4909ab9654ceb8e2c45d9df3543ea6812
|
||||
MISC ChangeLog-2015 89046 SHA256 295a825284cc7d9b7148c77733782937402db7e07fd7fbf0a9f44861d2018ce7 SHA512 9920db843f9cc1863f3529ac2022f591de8f0b930f82b64ca2859d542af679de3dcc733e5b55b8de060df9bf01ce68cd1828d0c179b1f9f05093cd6566efddc6 WHIRLPOOL d21dbe313d4c1b0e50012e0cc05560d13b712875514dbbea2f56be40ce85c99db8a7693a0f4492dd631119d37cbc796546fe5b62f5d6a6baf598d0a94c0ac0a3
|
||||
MISC metadata.xml 1198 SHA256 6077905daacd534deb51d99622a7c18e7db3de5cb2f12d7eb0aef5cbf7557afe SHA512 cd4ad4996e1c641bf8b6815a72f90427fa3c20864fe440157068ebb38300228e907ccf34fca2fd9ba821eeadee741c0cf8d8b09ce60c965f340e64c4fae3c069 WHIRLPOOL 2283e4db26f6a39ccac72c73f7efd9b7013c6b55a92937d8fb464178d8b0c7afafa749900d4a58fa4f339887bafa0118e9996b15a9e1fdd1e68d228828be6895
|
||||
|
@ -0,0 +1,85 @@
|
||||
From eeb3da6eb717ed6a1a1069a7611eb37503e8672d Mon Sep 17 00:00:00 2001
|
||||
From: NIIBE Yutaka <gniibe@fsij.org>
|
||||
Date: Tue, 19 Sep 2017 12:28:43 +0900
|
||||
Subject: [PATCH 2/3] common: Fix gnupg_wait_processes.
|
||||
|
||||
* common/exechelp-posix.c (gnupg_wait_processes): Loop for r_exitcodes
|
||||
even if we already see an error.
|
||||
|
||||
--
|
||||
|
||||
The value stored by waitpid for exit code is encoded; It requires
|
||||
decoded by WEXITSTATUS macro, regardless of an error.
|
||||
|
||||
For example, when one of processes is already exited and another is
|
||||
still running, it resulted wrong value of in r_exitcodes[n].
|
||||
|
||||
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
|
||||
---
|
||||
common/exechelp-posix.c | 50 +++++++++++++++++++++++++------------------------
|
||||
1 file changed, 26 insertions(+), 24 deletions(-)
|
||||
|
||||
diff --git a/common/exechelp-posix.c b/common/exechelp-posix.c
|
||||
index 7237993a2..3acf74ad6 100644
|
||||
--- a/common/exechelp-posix.c
|
||||
+++ b/common/exechelp-posix.c
|
||||
@@ -784,30 +784,32 @@ gnupg_wait_processes (const char **pgmnames, pid_t *pids, size_t count,
|
||||
}
|
||||
}
|
||||
|
||||
- if (ec == 0)
|
||||
- for (i = 0; i < count; i++)
|
||||
- {
|
||||
- if (WIFEXITED (r_exitcodes[i]) && WEXITSTATUS (r_exitcodes[i]) == 127)
|
||||
- {
|
||||
- log_error (_("error running '%s': probably not installed\n"),
|
||||
- pgmnames[i]);
|
||||
- ec = GPG_ERR_CONFIGURATION;
|
||||
- }
|
||||
- else if (WIFEXITED (r_exitcodes[i]) && WEXITSTATUS (r_exitcodes[i]))
|
||||
- {
|
||||
- if (dummy)
|
||||
- log_error (_("error running '%s': exit status %d\n"),
|
||||
- pgmnames[i], WEXITSTATUS (r_exitcodes[i]));
|
||||
- else
|
||||
- r_exitcodes[i] = WEXITSTATUS (r_exitcodes[i]);
|
||||
- ec = GPG_ERR_GENERAL;
|
||||
- }
|
||||
- else if (!WIFEXITED (r_exitcodes[i]))
|
||||
- {
|
||||
- log_error (_("error running '%s': terminated\n"), pgmnames[i]);
|
||||
- ec = GPG_ERR_GENERAL;
|
||||
- }
|
||||
- }
|
||||
+ for (i = 0; i < count; i++)
|
||||
+ {
|
||||
+ if (r_exitcodes[i] == -1)
|
||||
+ continue;
|
||||
+
|
||||
+ if (WIFEXITED (r_exitcodes[i]) && WEXITSTATUS (r_exitcodes[i]) == 127)
|
||||
+ {
|
||||
+ log_error (_("error running '%s': probably not installed\n"),
|
||||
+ pgmnames[i]);
|
||||
+ ec = GPG_ERR_CONFIGURATION;
|
||||
+ }
|
||||
+ else if (WIFEXITED (r_exitcodes[i]) && WEXITSTATUS (r_exitcodes[i]))
|
||||
+ {
|
||||
+ if (dummy)
|
||||
+ log_error (_("error running '%s': exit status %d\n"),
|
||||
+ pgmnames[i], WEXITSTATUS (r_exitcodes[i]));
|
||||
+ else
|
||||
+ r_exitcodes[i] = WEXITSTATUS (r_exitcodes[i]);
|
||||
+ ec = GPG_ERR_GENERAL;
|
||||
+ }
|
||||
+ else if (!WIFEXITED (r_exitcodes[i]))
|
||||
+ {
|
||||
+ log_error (_("error running '%s': terminated\n"), pgmnames[i]);
|
||||
+ ec = GPG_ERR_GENERAL;
|
||||
+ }
|
||||
+ }
|
||||
|
||||
xfree (dummy);
|
||||
return gpg_err_make (GPG_ERR_SOURCE_DEFAULT, ec);
|
||||
--
|
||||
2.13.5
|
||||
|
@ -0,0 +1,129 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
|
||||
inherit systemd toolchain-funcs
|
||||
|
||||
MY_P="${P/_/-}"
|
||||
|
||||
DESCRIPTION="The GNU Privacy Guard, a GPL OpenPGP implementation"
|
||||
HOMEPAGE="http://www.gnupg.org/"
|
||||
SRC_URI="mirror://gnupg/gnupg/${MY_P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="bzip2 doc +gnutls ldap nls readline selinux +smartcard tofu tools usb wks-server"
|
||||
|
||||
COMMON_DEPEND_LIBS="
|
||||
>=dev-libs/npth-1.2
|
||||
>=dev-libs/libassuan-2.4.3
|
||||
>=dev-libs/libgcrypt-1.7.3
|
||||
>=dev-libs/libgpg-error-1.24
|
||||
>=dev-libs/libksba-1.3.4
|
||||
>=net-misc/curl-7.10
|
||||
gnutls? ( >=net-libs/gnutls-3.0:0= )
|
||||
sys-libs/zlib
|
||||
ldap? ( net-nds/openldap )
|
||||
bzip2? ( app-arch/bzip2 )
|
||||
readline? ( sys-libs/readline:0= )
|
||||
smartcard? ( usb? ( virtual/libusb:0 ) )
|
||||
tofu? ( >=dev-db/sqlite-3.7 )
|
||||
"
|
||||
COMMON_DEPEND_BINS="app-crypt/pinentry
|
||||
!app-crypt/dirmngr"
|
||||
|
||||
# Existence of executables is checked during configuration.
|
||||
DEPEND="${COMMON_DEPEND_LIBS}
|
||||
${COMMON_DEPEND_BINS}
|
||||
nls? ( sys-devel/gettext )
|
||||
doc? ( sys-apps/texinfo )"
|
||||
|
||||
RDEPEND="${COMMON_DEPEND_LIBS}
|
||||
${COMMON_DEPEND_BINS}
|
||||
selinux? ( sec-policy/selinux-gpg )
|
||||
nls? ( virtual/libintl )"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
DOCS=(
|
||||
ChangeLog NEWS README THANKS TODO VERSION
|
||||
doc/FAQ doc/DETAILS doc/HACKING doc/TRANSLATE doc/OpenPGP doc/KEYSERVER
|
||||
)
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-2.1.20-gpgscm-Use-shorter-socket-path-lengts-to-improve-tes.patch"
|
||||
"${FILESDIR}/${P}-fix-gnupg-wait.patch"
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
local myconf=()
|
||||
|
||||
if use smartcard; then
|
||||
myconf+=(
|
||||
--enable-scdaemon
|
||||
$(use_enable usb ccid-driver)
|
||||
)
|
||||
else
|
||||
myconf+=( --disable-scdaemon )
|
||||
fi
|
||||
|
||||
if use elibc_SunOS || use elibc_AIX; then
|
||||
myconf+=( --disable-symcryptrun )
|
||||
else
|
||||
myconf+=( --enable-symcryptrun )
|
||||
fi
|
||||
|
||||
# glib fails and picks up clang's internal stdint.h causing weird errors
|
||||
[[ ${CC} == *clang ]] && \
|
||||
export gl_cv_absolute_stdint_h=/usr/include/stdint.h
|
||||
|
||||
econf \
|
||||
"${myconf[@]}" \
|
||||
$(use_enable bzip2) \
|
||||
$(use_enable gnutls) \
|
||||
$(use_enable nls) \
|
||||
$(use_enable tofu) \
|
||||
$(use_enable wks-server wks-tools) \
|
||||
$(use_with ldap) \
|
||||
$(use_with readline) \
|
||||
--enable-gpg \
|
||||
--enable-gpgsm \
|
||||
--enable-large-secmem \
|
||||
--enable-all-tests \
|
||||
CC_FOR_BUILD="$(tc-getBUILD_CC)"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
|
||||
use doc && emake -C doc html
|
||||
}
|
||||
|
||||
src_test() {
|
||||
export TESTFLAGS=--parallel
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
use tools &&
|
||||
dobin \
|
||||
tools/{convert-from-106,gpg-check-pattern} \
|
||||
tools/{gpg-zip,gpgconf,gpgsplit,lspgpot,mail-signed-keys} \
|
||||
tools/make-dns-cert
|
||||
|
||||
dosym gpg /usr/bin/gpg2
|
||||
dosym gpgv /usr/bin/gpgv2
|
||||
echo ".so man1/gpg.1" > "${ED}"/usr/share/man/man1/gpg2.1 || die
|
||||
echo ".so man1/gpgv.1" > "${ED}"/usr/share/man/man1/gpgv2.1 || die
|
||||
|
||||
dodir /etc/env.d
|
||||
echo "CONFIG_PROTECT=/usr/share/gnupg/qualified.txt" >> "${ED}"/etc/env.d/30gnupg || die
|
||||
|
||||
use doc && dodoc doc/gnupg.html/* doc/*.png
|
||||
|
||||
systemd_douserunit doc/examples/systemd-user/*.{service,socket}
|
||||
}
|
@ -1,7 +1,5 @@
|
||||
DIST paperkey-1.3.tar.gz 250153 SHA256 5b57d7522336fb65c4c398eec27bf44ec0aaa35926157b79a76423231792cbfb SHA512 240a57b43084b91758d19a2ef6804651db32118f7578f48445014b7ab91caadcbd6b08df4a95ba8788691456e802f3ebb8455e212aac0679c12df8d567894acd WHIRLPOOL 719538c16880089d7da154773ca1046445981894343c6435590e707627c71bd4252e2415e6f00cf81a32fd23bbde7cd4714a3547f19171e031eeb369ffb6f3b1
|
||||
DIST paperkey-1.4.tar.gz 259446 SHA256 e12bb0ec835127d12a922a8d60b3dfdb3ca8ee60bb5b4d15ae4cea85bbcf336f SHA512 d0e87760bfd66c39c407f59f94cdd3dfd8f399a51b854a2485f923f4f1faa95a40a68ffd018b9141b923c1db346993600e5e3644314e4f8c94585d47f1367e9c WHIRLPOOL 6a02bc0161e165b6e483ac08904943348ec0a10eba509028d5d092e1cec03d9e906e2d1307c16cb256fe4965a62c5c791becc0cc27200ab0b993de985cf629e5
|
||||
EBUILD paperkey-1.3.ebuild 342 SHA256 1aea302d0ed4527bce1db5650f5b2d9b3cfc15d3b1482ea8cbc2e443ddacc52c SHA512 da2b5b1916cb3b75707061d412e8da4a9a77c21d7081da35ecab27ab48f74fe5ced0da07136e33b42d010299c30f9ffc606f47324e589d86c3ff772ac0322366 WHIRLPOOL 2ba3bdffb2c217d73c82a8230eb4648db53ddc48e2d8042016ee5498e04c28a80d01ead8cdd93da4095a778538a24f3d685dc4457241912f746c18f32685b660
|
||||
EBUILD paperkey-1.4.ebuild 344 SHA256 bd553a77f35f08426fd20e92eea46d1f631324ccf966789809263cd2ab3a1bc0 SHA512 d4c2a857e5696e5ac2a75d1102b6ec20a555f13644f67f9dd3f03a6c5480221363bcef1355a9d21712a6d6ff7f4b0870d2ab7d243e49b6637a03e1be1a2ed071 WHIRLPOOL ba806ac3154d174d00b227b9487c3a9682b635ff40157b23e92c7feffe88806e4f019385061dc3a3c2747877e6e894833297b54429e50146d10a84091e1aadee
|
||||
EBUILD paperkey-1.4.ebuild 342 SHA256 977f87381d6900efa3200c21b29e934cb5441735f267a30b7557471cf13d46c8 SHA512 841f89c09c1af3c4e7a05a356bb3f90d04037ab17cd176d2b14f0827f7a26db630b66f3e559dbbc23563d04ad30019181651a4837bf9a72d7e9703f8892e9839 WHIRLPOOL 17269d28c8d1f72ac1aed1ec6740128f0f99a2824eeeacd895f7f1c7e46c7e0504565cd61a236a90b6e68d89ab832f90c524302e1cae6fa826ccb2d85ef39c9c
|
||||
MISC ChangeLog 2325 SHA256 7a7bba35e17201236f7c243e643c9f144b7043cb9b197fd9ad24be0205a3dbfc SHA512 6b36c95162d9f98a6a3735b45ab36ca5e544a4b1358a2346eb7123d51b6425c206cfb3cfd9d43c6d52ee400ebc7493ae53945b10d30f057d1ed1dcc1287c86e2 WHIRLPOOL 426005e4f69c1ac7a52950154baec75c21eeb7d9d4c8f8214ee29fe4b379dc8e7b6fedab4fc6f2722025648d890f1a550d5441932d277c8ba7263f377972eba2
|
||||
MISC ChangeLog-2015 479 SHA256 64093dd473dd377b2686c39ba837560907c7583e25e72cf75089a8fd5b9927da SHA512 7e0f016db4af516f9745a78c0e1540c01d82b385cc15d8119a6c3f588bd08d1765132bf6b10bc3399bf51cdcd08787f8c671f2cc3537b275510c3f064f86c7b8 WHIRLPOOL 57f8a41ca0bf0a1ba61d27bda375c34b721dd6883af5059a446713a03e521615917a087333a49b3cc5d9fa5ab80a5f8b8386d0c86fca695c21d765002859e8b4
|
||||
MISC metadata.xml 245 SHA256 6fedd876236c2f1fe2687e73628381650ebecef9734f88f6d483bec5bf475a7f SHA512 ce14e948c06d19eefb8504b77746e191099fd4d66083ad01ac62d874029b397af4edc5940312dac09c9ed18ccbcd98909b93fc0bc463c15db97bf68d13c9fec4 WHIRLPOOL 4957affde63b54e118270c40ce12683872777b41ec1a798f7b03807a99917148279d392f71cbcf95ec4e5d586ee5fc0400aea77d9e46083873a441a4907ba13d
|
||||
|
@ -1,15 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
DESCRIPTION="OpenPGP key archiver"
|
||||
HOMEPAGE="http://www.jabberwocky.com/software/paperkey/"
|
||||
SRC_URI="http://www.jabberwocky.com/software/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE=""
|
||||
|
||||
DOCS="README"
|
@ -1,5 +1,3 @@
|
||||
DIST yubikey-manager-qt-0.3.0_p20170316.tar.gz 174053 SHA256 69144073666e7ef4e8273fb1dd93b452a6091a5b9beabd2f3de41cce6d0b6668 SHA512 9280aeb242ab3e9f66b297d8cdab0b5f16bb966469932501bcfaf8d084d2db8f1c566ebdc82a4fb3f80ab196b946982f723a1cf8a36736c8dd874757b94c2472 WHIRLPOOL 6ae4c54242a83553d58cd78a24b2e99b73df004af0d8008f34a3ba635672fd2ef2b587ad3301aa1fdd3d619014704abdfe512b3d6ad9c55ae4f4f4b33aceb21b
|
||||
DIST yubikey-manager-qt-0.3.1.tar.gz 175215 SHA256 e41bcda5aae5e0f92158f591e8e584d25c9b4872475f8e4253c7a7671e94c859 SHA512 d47a6b75b50c2dca073ab74ea2d7c7c46ff86ec338f52d49afd39796cc1f3de7ddd74664b5f60f9013393b9ca24621da63d218eb3c2cb3017fefed2370b269d1 WHIRLPOOL 1d6de66f0450d72e29b9e9a2a959f4ca8ed7c8614b976115ecfb433e8b5f1795d12e6d907f73152b6bef3de6510cbcf236b2386b18a3cba2094269f78522196a
|
||||
EBUILD yubikey-manager-qt-0.3.0_p20170316.ebuild 1113 SHA256 ab88c600d02f72a8f51de33e2439ec3f9e288b4d637d413d5d994e015f09e001 SHA512 0650e1759c2f982fbac316ef4ce7f411b30c0413e3b63e0b4db85cfa6e748c93a373f46ccaa2099f3246f02d371ff9e8c40e21b861c570dcf61dddc9f5f7ddff WHIRLPOOL 461d54e9f35f35a67fe61c5a5ce765f2eacddf0250d67c568d641c563a5ca2b59937b385b8e45e474e90220798583fe323d45837128d20130bb27cfc81220232
|
||||
EBUILD yubikey-manager-qt-0.3.1.ebuild 1043 SHA256 3244211d12397be8fe7ac51c50de02f9fc43dfdb664eff6f5c6ebf351e397602 SHA512 74a284e243a833f9e8f7eee39f9ec82004f4fbc9059fdc306b6e5b173904931437199cc982221c257fe79567db6002b03c26c3a1eab88bd8deca62c13986e788 WHIRLPOOL 35d74d60c28a240c49fe7ad6775a9d0a4437a48db690f8b5a3509cdbec812c112b79445d2b742cdd3810501ac45cda3a14b2cf99bd99d4c817917b8589bb8c12
|
||||
MISC metadata.xml 245 SHA256 6fedd876236c2f1fe2687e73628381650ebecef9734f88f6d483bec5bf475a7f SHA512 ce14e948c06d19eefb8504b77746e191099fd4d66083ad01ac62d874029b397af4edc5940312dac09c9ed18ccbcd98909b93fc0bc463c15db97bf68d13c9fec4 WHIRLPOOL 4957affde63b54e118270c40ce12683872777b41ec1a798f7b03807a99917148279d392f71cbcf95ec4e5d586ee5fc0400aea77d9e46083873a441a4907ba13d
|
||||
|
@ -1,40 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python3_{4,5,6} )
|
||||
|
||||
inherit qmake-utils python-single-r1 vcs-snapshot
|
||||
|
||||
DESCRIPTION="Cross-platform application for configuring any YubiKey over all USB transports"
|
||||
HOMEPAGE="https://developers.yubico.com/yubikey-manager-qt https://github.com/Yubico/yubikey-manager-qt"
|
||||
COMMIT="700095c13f9da2dc74d338687f48196324f15c00"
|
||||
SRC_URI="https://github.com/Yubico/yubikey-manager-qt/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="app-crypt/yubikey-manager[${PYTHON_USEDEP}]
|
||||
dev-python/pyotherside[${PYTHON_USEDEP}]
|
||||
dev-qt/qtsingleapplication[qt5]
|
||||
dev-qt/qtdeclarative:5
|
||||
dev-qt/qtwidgets:5"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
rm -rf vendor ykman-gui/vendor || die
|
||||
sed -i -e "s/ykman-cli//" ${PN}.pro || die
|
||||
sed -i -e "/qtsingleapplication.pri/d" -e "/CONFIG += c++11/a CONFIG += qtsingleapplication" -i ykman-gui/ykman-gui.pro || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
eqmake5
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake install INSTALL_ROOT="${D}"
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
EBUILD emacs-vcs-25.2.9999.ebuild 12298 SHA256 83870e77afa674b70f3484c2554e965925bfac34a2a4ee604093226f97cb7a50 SHA512 5110a010273065cf4f5aba2d4dda7568ef582fdf57da1a25d11c32b34387c7def1fa9138886a12a2014671105ae97df4402c5b93ea35ebc8685e3f47efe72d6e WHIRLPOOL cf48b354f55c29a8eea01ad72e482cfaaa488f9805a603b3585a61cf12117f827e79d8a81807f6f0db7cdfe286a3fcc8696ad325f9ce857ea366bdd55af5ffd4
|
||||
EBUILD emacs-vcs-26.0.9999.ebuild 12479 SHA256 0bdb83b86dd4c7e83c057a6f18a812859108a272851f5c7e5a6454db0b43fee6 SHA512 f20287b253e9270feb90e79d8635e8d8964e2e998a0a8d4cf638a4f688b5ed38064e219a75f06e2913406d9aa72daa3a42510d8161502d7ef5c8dab9d351f8d5 WHIRLPOOL 630cc9c8f199b95e07289a4dd57cd231a1f9bbb6bd812cbcd03b7d65c00937815aa4a909aca568eac1daa49b4bcc1fe9e44ef6d6627ef5363dcca56b51d92766
|
||||
EBUILD emacs-vcs-26.0.9999-r1.ebuild 12481 SHA256 7c513ad35622bb81b9d1de9aaffcee19b007de9b2ae4d9cce2822b3d841f9cc5 SHA512 d22f94dfb76abc307a9db8a084b745eb863825929b0ba09f982d914f818e88288adc5f42fc40bf014264011e04d9a6052b4f85648fa355ec2b3655d402837021 WHIRLPOOL ac2ea53d90a5b2f09e1a7652cc57f2bd6d1f9bee32330d7e0399e9083a69fc8ca64f1d122e7d117baa802045976fa79a67aeb829d90e61a95c4266790f877aeb
|
||||
EBUILD emacs-vcs-27.0.9999.ebuild 12479 SHA256 cee5bab88c05d0b8a0295e909b71408e836a3b5ab1e0d2b625b71bd2406ddaab SHA512 eb70620a2a2f97b75a890d2dce3998ec633dd238c1f12ebc923289c0de1b3ac586262f73ee995973142df67fb95b0fe0be00b296d5b93ade6d322bf23a754e14 WHIRLPOOL dcf15b899c5f035cc6457c9de193e5d9edc59d8bcbf7f1e16e8901c4d2d5e86c995a766365d2c24d261c718af756520123873be19f4907b37bd2e621e17f46f3
|
||||
MISC ChangeLog 10414 SHA256 32cd8f329ea3c934af07ac926bee0c3aa9ecf8ae243feab908a313d5f97dc350 SHA512 0ee17116099eb0c506ec730f1e8564364065fbbac5970f551b7f6339b9f153aa4e293bd99fe952ac8d25a5045b245b11723b206f9594cfccdf46658589df71e3 WHIRLPOOL 5c52e92cf6e1e4cab924922ade9ec2809b4907d541078055d9dd53c2a188c7482d4198ca14f21dccbe022304757228b3cc563dd06171d6d93dffe1490612a637
|
||||
MISC ChangeLog-2015 86237 SHA256 ce19205e1c53f0b9c690a754434783f4e5a8c3265f3ed3580e670dc14109c107 SHA512 fecc40cad7372dc11f3a6cbccfd369e4c75d92a3dd57c7bf671df624a2d120d8496e088a748580937ec7a68d3087cb2e7a3393799124a7ad991447badbf22e58 WHIRLPOOL e0d14721260bc439a87cc70e386a4a04607aa3b20d29fe1cd195a4c613427a1111daa7c808d0ffaf7dc3061b9299986709cad3a531d8793f134129c94482246f
|
||||
MISC metadata.xml 2949 SHA256 69319ade9d384d0f73b92c35b64050902f9830a5f9f9a9d1662002290581a1ca SHA512 8a349fcb7e9a915ceb37b766f9286ea701aac5aee65fca04357e7e734fd767b2f824525960fa6b860be9e52c2099396f05c2710ecebd020b5d42341849918a98 WHIRLPOOL 65b95389278286f2f0b92e88e0156062e16b98e3866b94831618f8b98f9324ad6d7e1952566bfb2b758c74129acaa8b9439b9d98dc4fdc49e86d6e1569fdf630
|
||||
|
@ -1,4 +1,6 @@
|
||||
DIST kompose-1.1.0.tar.gz 5090229 SHA256 912c6f1e1e609372e355237604cb8915d7b8b47147a3230c35ac5d9c2615eef3 SHA512 4082644a8bbe2ad23555e4d1ab72cc10f6e4cd70af3d654ee337bf344e3044b477577097886259944067959cbffc9be34140ac735c3f58f70a58ea18958fadab WHIRLPOOL 207910b2b624ad8314cad30f2759b3e0a67277623db1198c0f9db1678624ecde77b5d6cbe04de075efe4b0dc8adf216e44fe4838c18728617f95c2e0c2e70b6e
|
||||
DIST kompose-1.2.0.tar.gz 5091229 SHA256 9fb15d30c6e33025237801f401d6b57b164a142f205d48b1574edf1f9aa92434 SHA512 a01ee5366d748ddc3a21ffb31048759408968c0c51ab756b65ae4d02ae6a03041b94a23ae90e15765366c5947956d4e8e9a129ef5bf6cd74e586c6fad5ba5434 WHIRLPOOL 84dbbc9c1339e4838382fe6c23b8330866ea1a9370de93a0d5653093da454674f40471074740b4f23f61dedac2e5c2798299e2ad2800a8b3a2c2b25dd5bf8940
|
||||
EBUILD kompose-1.1.0.ebuild 886 SHA256 a05f028dc1cfce45d64ad62949fd28ef4702efc6191bccc8e712508a0dd317ce SHA512 9574a4a99dc574d37ce216da587d146154ff2295989eb3b5819bfe06fe4ff4c6335f83f059e1a9e7539de29734acc13d938bab5a0d9e8ba0bb10d34db882eb31 WHIRLPOOL bf8f445a54aead0c6d3c21504448a10a1845fe0436407ebb821d701987343f11e43a905cf01dbf6e8bc96937f69f104df4b9ede0549f1387777ff538bff091c4
|
||||
EBUILD kompose-1.2.0.ebuild 886 SHA256 1ae3c029d3b1d1fde1055474cecbc2e0099e7439a7f82a305e92552f2f63c834 SHA512 824599363b466e73ecdfc4ce9877e16b788c1650e330b8173203e047225ed0882c17f855e069d86447482fffa7d374b9d25f826c6f32ce61f75dfc1bf90d836a WHIRLPOOL 11593a0e0958a122b95dfba29148e00258d5056e876d5b08f58d07e8579e7c78df82c658f997f75f3b7946dc8feead9b6d18991ad31134c5a47575c67d1062a4
|
||||
MISC ChangeLog 347 SHA256 d0790ddd06a0fb4b66cbd8218e5133b48d83123901779f34374d13cb9c2774d6 SHA512 994657458b7bca0bf26b7d6c540005ce11555537257d6411896bc6794f2795c96fde797ad2981d74b82003b69326146408690fd0138c609d2d6c0fe123437e36 WHIRLPOOL d246419da647e361abd42ac0cbc70888debfa4713ff8dfaadd7936af2491a044d8624799673b7069452172de2bc5bbc41b909044c80563f3c26bfb411f78dd33
|
||||
MISC metadata.xml 328 SHA256 784cc118763cc0c5f4c0d3d0f4ac7ee72162fa1560538ba9d6490da5edc3ac22 SHA512 e2091ec84a909ad6c2453bd832817461e39b7c355c28bd99c19d9e85dc4a621606c34066f596a68585c3762b6b156455ca012495c5c336b9ba929d163b923042 WHIRLPOOL c20bd37669f25c96efef1a8dc03c4d79abb7e05fe86d48354c192293c258efcc3bbee4342cf4c576a872ac41e8aded91590a06466e3bed875c4e77dba785838d
|
||||
|
@ -0,0 +1,30 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
inherit golang-build golang-vcs-snapshot
|
||||
|
||||
EGO_PN="github.com/kubernetes/kompose"
|
||||
EGIT_COMMIT="v${PV}"
|
||||
COMPOSE_COMMIT="99f88ef"
|
||||
ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DESCRIPTION="Tool to move from docker-compose to Kubernetes"
|
||||
HOMEPAGE="https://github.com/kubernetes/kompose https://kompose.io"
|
||||
SRC_URI="${ARCHIVE_URI}"
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="hardened"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
src_compile() {
|
||||
export CGO_LDFLAGS="$(usex hardened '-fno-PIC ' '')"
|
||||
GOPATH="${S}" go build -ldflags="-X github.com/kubernetes/kompose/cmd.GITCOMMIT=${COMPOSE_COMMIT}" -o bin/kompose src/${EGO_PN}/main.go || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin bin/*
|
||||
dodoc -r src/${EGO_PN}/{docs,{README,RELEASE,ROADMAP,CHANGELOG,CONTRIBUTING}.md}
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
EGO_PN="gopkg.in/Netflix-Skunkworks/go-jira.v1"
|
||||
|
||||
inherit golang-build golang-vcs-snapshot
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DESCRIPTION="A simple JIRA commandline client in Go"
|
||||
HOMEPAGE="https://github.com/Netflix-Skunkworks/go-jira"
|
||||
SRC_URI="https://github.com/Netflix-Skunkworks/go-jira/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
${EGO_VENDOR_URI}"
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
src_compile() {
|
||||
pushd src/${EGO_PN} || die
|
||||
GOPATH="${WORKDIR}/${P}" go build -v -o jira cmd/jira/main.go || die
|
||||
popd || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin src/${EGO_PN}/jira
|
||||
dodoc src/${EGO_PN}/{CHANGELOG,README}.md
|
||||
}
|
@ -1,5 +1,7 @@
|
||||
DIST media-player-info-22.tar.gz 104833 SHA256 7ee7d7712834860533c46b16947238ef5b5d72f394fa7fb52783a15fba7b2336 SHA512 7686aadb559b5a2cd2b969b9aadcf4c2b35037702e6fef4db66c6b8c0860d400c9f46a3b46150b9ce573d4f1fca53a5302fa7c1cdf888942a6489613c4d3c071 WHIRLPOOL 65994db840df66a9fa1b819fae743f3c14e50591b36fe2d56a6a92346746cb0db1b5f2822944b0e2caa35a198fcf56fbd2af4aee62cc85053e4b3134f41eb977
|
||||
DIST media-player-info-23.tar.gz 100849 SHA256 a9ab6de0b497f6e13efc2cbe45a4fe06982145d786674c24274c3ed909ecc8cb SHA512 4555456945f6f8c2fb23c86f80dc61e8e5448f3c402ac685e7eccd2df9f7861cdd41da842b0917349f7d83200ef10c810eb8b75fa6d62829834fdbdb81560f04 WHIRLPOOL 7163746a410d976598f3549bd65421ef9c5967683c46b50a72fcbf2ce484c560dc2e921e02a2a567e498b023d58563ba56e6d7cdbaf0d65594922b6a46eb0e0a
|
||||
EBUILD media-player-info-22.ebuild 1063 SHA256 254897dd83dac06f9b2de1521dcc147f6f667f0dbe7cf644c52271f3859877c6 SHA512 0e3214f4a13d59b8188ee35908d9d60f767eebd3ea01e2cb617fc0e74c3dc97ad3df5fb1eba80f7fd36f7a7610c440c6bb5b07d60c1a701de6376de5d3a19100 WHIRLPOOL 9b465c51b65002853fb4188bb25ba7cb2797152c800ef60a8164f27de23f6a3c3e1e6f28e44bbeadd388a403bf2a6558c6daaeaa13d5cb0a5272de912b3a7f54
|
||||
EBUILD media-player-info-23.ebuild 1067 SHA256 8928961a28e01b446ce44849ff1ec1ac0e4dfded0d46cf3892f601fb0ffb420f SHA512 db5fff962e781adfe280ec80732cb4cb82cf735543c0e03a62684f91254fa6ddd863e3cb3b3b77048c6ee4c2eb9841243ea2791b81be203967e72894074fbc23 WHIRLPOOL b8b744a9f2e80e58985b06fb1b19d26bba271dba3f76d1322d71c61ef59719eeff43b8423ce00d4ad79a13bc9e4beae56e2053ded7d304d329c0286e63b100fa
|
||||
MISC ChangeLog 4407 SHA256 9e17d19f773db4aabd260be68d22e4636b95d2be55100b88d11ca1bf732d1f21 SHA512 029f4368e215b9784fdd8406950a5b66c681180103a651b542ab9a98d8a82cf4bddc5d7f380ce5b55805fa226fa7d6595be19223ea6c4654325c89e98de7fb65 WHIRLPOOL b146b65a15bbb082854144ca9b55b01fa3edf6347fbb1da09b24d27d285c64616e05bf8d744d67b610329cf5493c991b739217ac567e7f4a967ccbb40b33e931
|
||||
MISC ChangeLog-2015 6456 SHA256 a573e3922e2946da260422b2e3fea48810915bb217ffe9298202d2a4b031e209 SHA512 640adb4c7d03923cb358d0dbfc66d994348a47945f4a0fa5d9dad7d76ddbd100e03fbea8504c13165b4efe522234da6287d4203b5854f8ffd8399b4f5326ed15 WHIRLPOOL d2525dde9604cfa371a4f6a0fe79686b205b7a93f4e495ad078b92200d57d7f40538002ba0d0d08c444f217f192212e1ca5ac6c582d9f2b629ac70a21dd460d2
|
||||
MISC metadata.xml 266 SHA256 0fb19dc343b6776658fa3cd1d69453b5d65c5ac4e13c9d88bf6c5ca749fe7bcf SHA512 c4dde7027a929519d75bf240bdf01edee88b6ab874e56c9e524f783b801eb26b5e86a9378cf23b21f7fd2f0f9ee45764daa7deef9173a05e0fedd997e648313b WHIRLPOOL 7c2830d8f128d2b7a7144d8f4fb5c605ced98690ac6e2fea8b4f2f6710e3bdc719cc9fdad142a104a5c68ca9ba8e659c51475056df35edc2e2ee1a3255c1d55d
|
||||
|
@ -0,0 +1,36 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python3_{4,5,6} )
|
||||
|
||||
inherit eutils python-any-r1
|
||||
|
||||
DESCRIPTION="A repository of data files describing media player capabilities"
|
||||
HOMEPAGE="https://cgit.freedesktop.org/media-player-info/"
|
||||
SRC_URI="https://www.freedesktop.org/software/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86"
|
||||
IUSE=""
|
||||
|
||||
# https://cgit.freedesktop.org/media-player-info/commit/?id=d83dd01a0a1df6198ee08954da1c033b88a1004b
|
||||
RDEPEND=">=virtual/udev-208"
|
||||
DEPEND="${RDEPEND}
|
||||
${PYTHON_DEPS}
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
# This ebuild does not install any binaries
|
||||
RESTRICT="binchecks strip"
|
||||
|
||||
pkg_postinst() {
|
||||
# Run for /lib/udev/hwdb.d/20-usb-media-players.hwdb
|
||||
udevadm hwdb --update --root="${ROOT%/}"
|
||||
# https://cgit.freedesktop.org/systemd/systemd/commit/?id=1fab57c209035f7e66198343074e9cee06718bda
|
||||
if [[ ${ROOT} != "" ]] && [[ ${ROOT} != "/" ]]; then
|
||||
return 0
|
||||
fi
|
||||
udevadm control --reload
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="A small utility that measures throughput between stdin and stdout"
|
||||
HOMEPAGE="http://pipeworks.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/pipeworks/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_compile() {
|
||||
emake CC="$(tc-getCC) ${CFLAGS} ${LDFLAGS}" || die "emake failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin pipeworks || die "dobin failed"
|
||||
doman pipeworks.1
|
||||
dodoc Changelog README
|
||||
}
|
@ -1,29 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_4,3_5} )
|
||||
|
||||
inherit python-r1
|
||||
|
||||
DESCRIPTION="A helper program for maintaining the package.keyword and package.unmask files"
|
||||
HOMEPAGE="http://www.mpagano.com/blog/?page_id=3"
|
||||
SRC_URI="http://www.mpagano.com/downloads/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86 ~x86-fbsd"
|
||||
IUSE=""
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
DEPEND="${PYTHON_DEPS}"
|
||||
RDEPEND="${DEPEND}
|
||||
>=app-portage/gentoolkit-0.3.2-r1
|
||||
>=sys-apps/portage-2.3.3[${PYTHON_USEDEP}]"
|
||||
|
||||
src_install() {
|
||||
python_foreach_impl python_doscript ${PN}
|
||||
doman *.[0-9]
|
||||
}
|
@ -1,29 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_4,3_5} )
|
||||
|
||||
inherit python-r1
|
||||
|
||||
DESCRIPTION="A helper program for maintaining the package.keyword and package.unmask files"
|
||||
HOMEPAGE="http://www.mpagano.com/blog/?page_id=3"
|
||||
SRC_URI="http://www.mpagano.com/downloads/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86 ~x86-fbsd"
|
||||
IUSE=""
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
DEPEND="${PYTHON_DEPS}"
|
||||
RDEPEND="${DEPEND}
|
||||
>=app-portage/gentoolkit-0.3.2-r1
|
||||
>=sys-apps/portage-2.3.3[${PYTHON_USEDEP}]"
|
||||
|
||||
src_install() {
|
||||
python_foreach_impl python_doscript ${PN}
|
||||
doman *.[0-9]
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
EBUILD prefix-chain-setup-0.5.ebuild 6092 SHA256 40e3567bfa308232625ae87a1284fc6b3ec70a009ae5b65a5b9b5b2380e6936e SHA512 0615e9e39ce76aedd0c682ba098770c1a209ac92d849bbb702fc76091c3999dfc88aa1e8fab9cbe029f1a30f0eb1dcd7601add4b8f8de318bf76e3193010a36c WHIRLPOOL f8f7d345b3b1fd65e6dac678f787f7fe6f76304aede9cef9919e935c933477f3c4fdeee6013b957b427e0b3b7a48c6725bbd6d0fd19cd972dd4a32a93efd5e44
|
||||
EBUILD prefix-chain-setup-0.6.ebuild 6123 SHA256 298b8cb6b57c95eb69f3188e724a55b91e2bf1faa37bedcde306d3412fd8e8e2 SHA512 300c8ad213b746d5c62d07bbb918c6a3370184221d57b5dd3b19ea475c00aa22a7e0acf75cf40b8eab04e71e1fb58562c073964e7c77b747860c947cba15d602 WHIRLPOOL 8d615edd03c30ff3dd32d64c08aeb54a44ae4f3190c7edac5d1459824dc65db8e8a8c71c49f05ff95cd0253790f25ad154af179e360d5efdcfced4d5f8da7ead
|
||||
EBUILD prefix-chain-setup-0.7.ebuild 6577 SHA256 e344210f76957951f7c74c92896a0887bf5a72428c8de399079b76b15a588ecb SHA512 970799e19c57158fcaffe6af84bdebb0b28466014454d5987bffe40cbfe2605fbe948deb5c924ba70b1ad1abd72afbeff5c7605b48091d121535e9acce67294f WHIRLPOOL b982f622049d52e95d42a61cdf8bc24276064d189c0b7b986c82605267d155cafa6f3f6c954a2ceb975f9962668c611e314902be56fb7d8fdbfb005c9a2b6eef
|
||||
EBUILD prefix-chain-setup-0.7.ebuild 6610 SHA256 96af82ed07dc16e79b79c2b75db79cef2800e62ab897411e8fbed1bb4e2fdf63 SHA512 ee6013082cf657586aeac0261f7cab46bfff1b66190f70cc0b3cc842d7803ae246d25b41c18a0f94954c48d8da6ba51bf04174418b81ad43567c4f9ee1e200ba WHIRLPOOL bdd9f3f9ae74826b75b796dece4286c9da8efefb65c9f175ba3354c5782292f1e89f1a4976fd8c6dddb4506089a99e532ab4d81bfc5494bb441b2f9eace8e830
|
||||
MISC ChangeLog 2663 SHA256 f890acb2155ae94ba9cbf54ad58453ffdd1f70f1217735826302676f12759fc4 SHA512 4c0d894163a995d953fdb349eee7a4ed4f78c0e432affe0f5276da8cb87efafff64e46424f30b802a306a70a272e0cf909074975184cdf26881376312ae95432 WHIRLPOOL 599e93c6065f2851d5b216d8e831540e9e7742d04373c8877bc373f2af8df4ad64fd3db7b2b08af3e10ecedb08ebb2e7c16cb774e1aca5cd4052f414bdb0b70a
|
||||
MISC ChangeLog-2015 1566 SHA256 d16bc55408e0c2d99fc83fe70c374312f6b8f05abf19a948f51ff74af2f21bbc SHA512 eddb0024e9d9d6720a63cc3552290b1d6254dc66be3e7f50aa30b5980c3f9625a6dc71b4afde440e5beafdad954064e41fc9ec0846aee2cbfbe83e9fd659d629 WHIRLPOOL 08ddd55cfd3c2a7db491c349e0178cdcd95b7b79f30a50990d805cbb272e79ccdd46cb92551470a07b59075eb0a197ca19fbde5308d46853c5ffeff281bf2c0f
|
||||
MISC metadata.xml 243 SHA256 acb891975882d2b75bb5a1a76063f1d61ad1d96c799548e7f141e1623a0cc57e SHA512 8489be9ea6eac385511b0d193b1b61fad9c8e0d4cb86fd711e6faf04e66b2c935ae64ce6ce0a044d036e76de6787e5d440d67f831e89261a71e74b645a0999d9 WHIRLPOOL e06d2acbfdb38aa17edb0da41bcafece9c9a5d0542c9192ee3b74ae0b6250d24fb096e3a153f6a215a29d3dd7c5794f2c67f0917db3aa3f1cc65e86ea27e228f
|
||||
|
@ -1,6 +1,4 @@
|
||||
DIST thefuck-3.21.tar.gz 814519 SHA256 02e8db472200160bccfd882531f26117f09eae1da0f0bad0b068aa1c16759f70 SHA512 a75f05d7847305c53720399e039b2f5317756f1295f036eb6b3d476dc2a6ee694c5a28c7ec03f153474fbc33165edd3255cd567236f83634642f2f423e95e1a1 WHIRLPOOL df35c2bd76df422eb0763234673b3225d45eec74b755418a791bac753fbcc9955fb694dfbca53187f6d623c6a1b4d7e133bc0c8005f077d3d963741c177a77f9
|
||||
DIST thefuck-3.23.tar.gz 1353847 SHA256 36b0af52219a56dc34bb085e75afa822c479c5c05b9393598effc2c1b3c5eb32 SHA512 893700fcec88d7c0070bdc1ea90309cb77ebd7e21895cc633e2d5d2f99a83117e182b8dd386abee97b96affce3126a745613612522b5c731c2e7ab7a162b3814 WHIRLPOOL 88c0d7ffcb4d9a902cba8a54bfbf5939daa2c9d573bc6b7b3c326504dd57345041987b4ee0da2b0f3aaa97f687e9ff143d8e3fffddb68b69e9f8768078bbc2e0
|
||||
EBUILD thefuck-3.21.ebuild 976 SHA256 61376e925a95d4ed5a260c3ee9e5eb6415edbd769ff5bdbf811d4d04c9d685f4 SHA512 ff05b09aec15b8883d53dda2332ae5ec4b1a9ca54f9364216dbc3f5832c5e731f8f249e623cd78fd7ef3838cae255416ae5176346e92e003bcf646acd28bec95 WHIRLPOOL 4c34b3e57b208ac9b97029efc6be1c106233914c279041edef3fad87006d606afee319c0a3169b2c604f264db8f2c6b59a8ee1effbe770321e4642f85b153a82
|
||||
EBUILD thefuck-3.23.ebuild 933 SHA256 9f5c407da9140829c90a2ca8285ad3957427204b4e02c23eb25f868786b964e4 SHA512 5c8c06a1ddc030a158a8234f4434c23748255ce8573d99e77ffe40489ed43d9a16a78aab0aa97c1cb0f4699ab4e7adaec14a361b120ca3e665e28a06ba992e65 WHIRLPOOL 01a89585375c5e4a5d53a17d6698102919bd6ce95c16dba72638b1a9eb4ab66f762ccc2d3c28db84a944a61534027230e759b8c0631d858f7adb349c423a3d32
|
||||
MISC ChangeLog 2933 SHA256 2c7a8be7cb68ab67c65731a16cd5d309d8c6f441a5b1d65394bf2dc897647ee7 SHA512 a12624ef18fe7b927a70d4c00cb2ab9d59645d65651e60f73a3eb141759407f4f690777cf8cfd668af83feb6aeaa9a630c80d385300e6531528dfeadafd1aa77 WHIRLPOOL 77a88bae2ff0e59a76830bb917d964afd6d8efeadbbc9e6801ec95adb8a3afbdf0f8b1ed407dcd1b5e84b238b3940a6f84fc492f0917fb638887348ed1ce9fdc
|
||||
MISC metadata.xml 322 SHA256 305121f0199953c8f6c6a0491b2b7ffc5a6708701b75f644aef67890826df211 SHA512 0faa74548c8ebc0f28026e95964b230cdc584dfaebb46d1914fbe209845263cb052a09f326a599df778ce57a8242e16c2da3ae74c7b36d641b67e91d4a48137f WHIRLPOOL 221a7c7d092268592832f52937da73aa38b1bf59a7d30154c71b6577ec6ace46751acb445506ea294dd72a72b8ea83d2ad53378f76516913c88f2a9e7c143446
|
||||
|
@ -1,35 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=(python{2_7,3_4,3_5,3_6})
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Magnificent app which corrects your previous console command"
|
||||
HOMEPAGE="https://github.com/nvbn/thefuck"
|
||||
SRC_URI="https://github.com/nvbn/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="dev-python/psutil[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
dev-python/decorator[${PYTHON_USEDEP}]
|
||||
dev-python/colorama[${PYTHON_USEDEP}]
|
||||
$(python_gen_cond_dep 'dev-python/pathlib2[${PYTHON_USEDEP}]' python2_7)"
|
||||
DEPEND="test? ( ${RDEPEND}
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-mock[${PYTHON_USEDEP}] )
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e "/import pip/s/^/#/" -e "/pip.__version__/,+3 s/^/#/" setup.py || die
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
python_test() {
|
||||
py.test || die
|
||||
}
|
@ -1,33 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
if [[ ${PV} == 9999* ]] ; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/zsh-users/zsh-completions.git"
|
||||
else
|
||||
SRC_URI="https://github.com/zsh-users/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="amd64 ~arm ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Additional completion definitions for Zsh"
|
||||
HOMEPAGE="https://github.com/zsh-users/zsh-completions"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND="app-shells/zsh"
|
||||
|
||||
src_install() {
|
||||
insinto /usr/share/zsh/site-functions
|
||||
doins src/_*
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog
|
||||
elog "If you happen to compile your functions, you may need to delete"
|
||||
elog "~/.zcompdump{,.zwc} and recompile to make the new completions available"
|
||||
elog "to your shell."
|
||||
elog
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
DIST extract_url-1.6.2.tar.gz 16296 SHA256 5f0b568d5c9449f477527b4077d8269f1f5e6d6531dfa5eb6ca72dbacab6f336 SHA512 c95c52c096569d4fb24da95480c8c5262ee29bfce8ddc9cb70af45d17f4977edff6d95eda8aa7976f82fc75e7de262fab21a3498590e1c212cf9cf6435d2c4f1 WHIRLPOOL 535885571e6ed7870ff4943864883f774ad18d55239c76e4a2e82beaabe699f3e57775e4bf52167e06bd882befb7374f41a77d554d01f7caf97470936107d19e
|
||||
EBUILD extract_url-1.6.2.ebuild 640 SHA256 a8cc8a59956fde6330c9697e76d464387b136718e3cfc1caf55e015799841575 SHA512 ed7ce99f826c642f2bb92505c51d5d3fd8cff989a65dad5ea493d5d6f38cc9033c8eac2fe8a6a60d0afbd9d85d1c5da084f7e777098bb0d3f6479929f00478ff WHIRLPOOL 15265b1a6235a8a21b8b89477a392764286cb2f51486dc9cad833d27270bf66a78285eb70ce72cb3f0025d6b0ebf2c796ee7a5cf6d99269fc360dae79a33a32f
|
||||
MISC metadata.xml 332 SHA256 03e610750b63cf895fe50952a65013c182db63c6fbab5a16bbcb38234f21e58d SHA512 f10d426e688c66c2ecc76c7d8a6bbb87cbb5fb0e3ce237a82a63c65fff1a4d6ab8d981c679ccf6a2e3049479fc679277829fae1e66071d6c8ccf6da22b2b0fb5 WHIRLPOOL 155466d426b5791558efd6e2f7f7a5450f47c638eca2a3dda21ac4b76211d2462b91e838e5a9be6aa61a35c6b2db3e34708f3ec9bc9f50ea853abafecf9a9447
|
@ -0,0 +1,28 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="extracts URLs from correctly-encoded MIME email messages or plain text"
|
||||
HOMEPAGE="https://www.memoryhole.net/~kyle/extract_url/ https://github.com/m3m0ryh0l3/extracturl/"
|
||||
SRC_URI="https://github.com/m3m0ryh0l3/${PN/_/}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
dev-perl/MIME-tools
|
||||
dev-perl/HTML-Parser
|
||||
dev-perl/URI-Find
|
||||
dev-perl/Curses-UI
|
||||
dev-perl/TermReadKey
|
||||
"
|
||||
|
||||
S=${WORKDIR}/${P/_/}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
dodoc extract_urlview.sample
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>radhermit@gentoo.org</email>
|
||||
<name>Tim Harder</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">m3m0ryh0l3/extracturl</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1,5 +1,5 @@
|
||||
DIST jist-1.5.1.gem 13824 SHA256 0969d1c53b4e1be607f96afe8d0bc7662c9c80d79eea5a2e452ac712a2e06b81 SHA512 e59a0c5a5b0439a5cc3b847de3cbb0b9991685c1403fd8482ffd5564a77c8812587a7384ac19bb77cb812d0ece63df8ccd029c8757a242dc50a44da3e66b9936 WHIRLPOOL 1d246b371142476ba6550f01b7c0036c5c80af6985f80dbc7ba3d963543ace1957e7ae3e77e9c7f5ea4072823bfe1bdded1b808e60ec78aee411e16c81db01e5
|
||||
EBUILD jist-1.5.1-r1.ebuild 699 SHA256 95ef01e320c9a108b3c4ba45916d1bdc1cb0c65ade66d8d7dd195154bacb35eb SHA512 829a8959781c3baf5f0d7e79b8e3b5044a0708035efc8d104ceeb96fa7e4cd6f17334f78619752f75e959dfe9f3d52b6e1da644b6ff3bd9f1dd4d238dcd8b99e WHIRLPOOL d46ed28a24c3968a2a21bd6a0b797b3d76236f48b790c51575686b4fa8202461e954af7331337a07ff8265e1a369456f21e3471f081568bbec5d34d90f05c4a7
|
||||
EBUILD jist-1.5.1-r1.ebuild 700 SHA256 6fcbf560ab264d0dbcc0fc385c6176230e9a50305042b6ad3ca0cd38be3df94f SHA512 bfb364afb3287d941434a5143d1df1a330208bc3570a33dee3adf55aef74af0f78a17d18660bf55a36afef6c282e8cb8abd33fd4c2defc59843e13abba4bb6b0 WHIRLPOOL 634158d4962093271dcb12e7d216991b8fd35416a24dcd4fedbdd07b65a2694937f0808fdbe913ebc15978d9d8e102d4efc2d666f258c587406aa9fb80353de5
|
||||
MISC ChangeLog 3118 SHA256 b75b6a037a9db8b7772441fce629ec10eddcbaf2b425d772eee3a4a73b947dd9 SHA512 a5b0633b058e0b951ac61d04c3b04e8959bf34d13a42d1ccca237537f58c3b251e189fc64e13d7701930fdf2656f8ca28658fa28969299719c492c8c26578740 WHIRLPOOL e98a637f20ace87831f0007819b7df4e62db76444c58057d0e896d680147c79f7a14aefc38b1c440dfd399494babf56a91b6db91df460b95d766d2ce8eaf724c
|
||||
MISC ChangeLog-2015 2398 SHA256 4f6a316fff1d473ee7e6a68b77e5448aec81005beb6925bba7269552ebf23309 SHA512 d703f7bc96d8da339fd96567d525322f16511490b5323714419fc5e32baffaf735e3bbed777b3cc953956d5624bce0a24e01bdde92d39f2ba1e362ee94799d50 WHIRLPOOL a0e2d0ddabff919350b973b98636f642a246d4ae345f9d57ff4f50a4aa9f27f0ce79450b988eedd082c95ec8ff0f0c670f5a4362270d9d210f081767453815dd
|
||||
MISC metadata.xml 342 SHA256 94efad2a63d828ce20d5b0d11f6fc8bf3a81d7df55227883eaa460dcac68e55e SHA512 dd94324def89cb3c5745995b21180e8ddcc785f81d53352c0b920f64a3e007f4edaf216116debb65686d5c43cd17291e0fc98edfc7ac5dc8f8d916c467a2f6cd WHIRLPOOL 77cc9cd3a76b5c537140177a9a0fa612ed7642c4eb8ff48059dd0f4cd65976b909e0dfe20c950fdcb1219679de24f32c29c8bbdbbf24fad9b736b277dc61b44e
|
||||
|
@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>tommy@gentoo.org</email>
|
||||
<name>Thomas Sachau (Tommy[D])</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>java@gentoo.org</email>
|
||||
<name>Java</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
|
@ -1,743 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit flag-o-matic versionator systemd
|
||||
|
||||
DESCRIPTION="The PHP language runtime engine"
|
||||
HOMEPAGE="http://php.net/"
|
||||
SRC_URI="http://php.net/distributions/${P}.tar.xz"
|
||||
|
||||
LICENSE="PHP-3.01
|
||||
BSD
|
||||
Zend-2.0
|
||||
bcmath? ( LGPL-2.1+ )
|
||||
fpm? ( BSD-2 )
|
||||
gd? ( gd )
|
||||
unicode? ( BSD-2 LGPL-2.1 )"
|
||||
|
||||
SLOT="$(get_version_component_range 1-2)"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
|
||||
# We can build the following SAPIs in the given order
|
||||
SAPIS="embed cli cgi fpm apache2 phpdbg"
|
||||
|
||||
# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
|
||||
IUSE="${IUSE}
|
||||
${SAPIS/cli/+cli}
|
||||
threads"
|
||||
|
||||
IUSE="${IUSE} acl bcmath berkdb bzip2 calendar cdb cjk
|
||||
coverage crypt +ctype curl debug
|
||||
enchant exif +fileinfo +filter firebird
|
||||
flatfile ftp gd gdbm gmp +hash +iconv imap inifile
|
||||
intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit libressl
|
||||
mhash mssql mysql mysqli nls
|
||||
oci8-instant-client odbc +opcache pcntl pdo +phar +posix postgres qdbm
|
||||
readline recode selinux +session sharedmem
|
||||
+simplexml snmp soap sockets spell sqlite ssl
|
||||
sysvipc systemd tidy +tokenizer truetype unicode wddx webp
|
||||
+xml xmlreader xmlwriter xmlrpc xpm xslt zip zlib"
|
||||
|
||||
# The supported (that is, autodetected) versions of BDB are listed in
|
||||
# the ./configure script. Other versions *work*, but we need to stick to
|
||||
# the ones that can be detected to avoid a repeat of bug #564824.
|
||||
COMMON_DEPEND="
|
||||
>=app-eselect/eselect-php-0.9.1[apache2?,fpm?]
|
||||
>=dev-libs/libpcre-8.32[unicode]
|
||||
acl? ( sys-apps/acl )
|
||||
apache2? ( || ( >=www-servers/apache-2.4[apache2_modules_unixd,threads=]
|
||||
<www-servers/apache-2.4[threads=] ) )
|
||||
berkdb? ( || ( sys-libs/db:5.3
|
||||
sys-libs/db:5.1
|
||||
sys-libs/db:4.8
|
||||
sys-libs/db:4.7
|
||||
sys-libs/db:4.6
|
||||
sys-libs/db:4.5 ) )
|
||||
bzip2? ( app-arch/bzip2 )
|
||||
cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
|
||||
cjk? ( !gd? (
|
||||
virtual/jpeg:0
|
||||
media-libs/libpng:0=
|
||||
sys-libs/zlib
|
||||
) )
|
||||
coverage? ( dev-util/lcov )
|
||||
crypt? ( >=dev-libs/libmcrypt-2.4 )
|
||||
curl? ( >=net-misc/curl-7.10.5 )
|
||||
enchant? ( app-text/enchant )
|
||||
exif? ( !gd? (
|
||||
virtual/jpeg:0
|
||||
media-libs/libpng:0=
|
||||
sys-libs/zlib
|
||||
) )
|
||||
firebird? ( dev-db/firebird )
|
||||
gd? ( virtual/jpeg:0 media-libs/libpng:0= sys-libs/zlib )
|
||||
gdbm? ( >=sys-libs/gdbm-1.8.0 )
|
||||
gmp? ( dev-libs/gmp:0 )
|
||||
iconv? ( virtual/libiconv )
|
||||
imap? ( virtual/imap-c-client[ssl=] )
|
||||
intl? ( dev-libs/icu:= )
|
||||
iodbc? ( dev-db/libiodbc )
|
||||
kerberos? ( virtual/krb5 )
|
||||
ldap? ( >=net-nds/openldap-1.2.11 )
|
||||
ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
|
||||
libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
|
||||
mssql? ( dev-db/freetds[mssql] )
|
||||
nls? ( sys-devel/gettext )
|
||||
oci8-instant-client? ( dev-db/oracle-instantclient-basic )
|
||||
odbc? ( >=dev-db/unixODBC-1.8.13 )
|
||||
postgres? ( dev-db/postgresql:* )
|
||||
qdbm? ( dev-db/qdbm )
|
||||
readline? ( sys-libs/readline:0= )
|
||||
recode? ( app-text/recode )
|
||||
sharedmem? ( dev-libs/mm )
|
||||
simplexml? ( >=dev-libs/libxml2-2.6.8 )
|
||||
snmp? ( >=net-analyzer/net-snmp-5.2 )
|
||||
soap? ( >=dev-libs/libxml2-2.6.8 )
|
||||
spell? ( >=app-text/aspell-0.50 )
|
||||
sqlite? ( >=dev-db/sqlite-3.7.6.3 )
|
||||
ssl? (
|
||||
!libressl? ( dev-libs/openssl:0 )
|
||||
libressl? ( dev-libs/libressl )
|
||||
)
|
||||
tidy? ( app-text/htmltidy )
|
||||
truetype? (
|
||||
=media-libs/freetype-2*
|
||||
!gd? (
|
||||
virtual/jpeg:0 media-libs/libpng:0= sys-libs/zlib )
|
||||
)
|
||||
unicode? ( dev-libs/oniguruma:= )
|
||||
wddx? ( >=dev-libs/libxml2-2.6.8 )
|
||||
webp? ( media-libs/libwebp )
|
||||
xml? ( >=dev-libs/libxml2-2.6.8 )
|
||||
xmlrpc? ( >=dev-libs/libxml2-2.6.8 virtual/libiconv )
|
||||
xmlreader? ( >=dev-libs/libxml2-2.6.8 )
|
||||
xmlwriter? ( >=dev-libs/libxml2-2.6.8 )
|
||||
xpm? (
|
||||
x11-libs/libXpm
|
||||
virtual/jpeg:0
|
||||
media-libs/libpng:0= sys-libs/zlib
|
||||
)
|
||||
xslt? ( dev-libs/libxslt >=dev-libs/libxml2-2.6.8 )
|
||||
zip? ( sys-libs/zlib )
|
||||
zlib? ( sys-libs/zlib )
|
||||
"
|
||||
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
virtual/mta
|
||||
fpm? (
|
||||
selinux? ( sec-policy/selinux-phpfpm )
|
||||
systemd? ( sys-apps/systemd ) )"
|
||||
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
app-arch/xz-utils
|
||||
>=sys-devel/bison-3.0.1
|
||||
sys-devel/flex
|
||||
>=sys-devel/m4-1.4.3
|
||||
>=sys-devel/libtool-1.5.18"
|
||||
|
||||
# Without USE=readline or libedit, the interactive "php -a" CLI will hang.
|
||||
REQUIRED_USE="
|
||||
|| ( cli cgi fpm apache2 embed phpdbg )
|
||||
cli? ( ^^ ( readline libedit ) )
|
||||
truetype? ( gd )
|
||||
webp? ( gd )
|
||||
cjk? ( gd )
|
||||
exif? ( gd )
|
||||
xpm? ( gd )
|
||||
gd? ( zlib )
|
||||
simplexml? ( xml )
|
||||
soap? ( xml )
|
||||
wddx? ( xml )
|
||||
xmlrpc? ( || ( xml iconv ) )
|
||||
xmlreader? ( xml )
|
||||
xslt? ( xml )
|
||||
ldap-sasl? ( ldap )
|
||||
mhash? ( hash )
|
||||
phar? ( hash )
|
||||
qdbm? ( !gdbm )
|
||||
readline? ( !libedit )
|
||||
recode? ( !imap !mysqli !mysql )
|
||||
sharedmem? ( !threads )
|
||||
mysql? ( || ( mysqli pdo ) )
|
||||
"
|
||||
|
||||
PHP_MV="$(get_major_version)"
|
||||
|
||||
# Allow users to install production version if they want to
|
||||
if [[ "${PHP_INI_VERSION}" == "production" ]]; then
|
||||
PHP_INI_UPSTREAM="php.ini-production"
|
||||
else
|
||||
PHP_INI_UPSTREAM="php.ini-development"
|
||||
fi
|
||||
|
||||
php_install_ini() {
|
||||
local phpsapi="${1}"
|
||||
|
||||
# work out where we are installing the ini file
|
||||
php_set_ini_dir "${phpsapi}"
|
||||
|
||||
local phpinisrc="${PHP_INI_UPSTREAM}-${phpsapi}"
|
||||
cp "${PHP_INI_UPSTREAM}" "${phpinisrc}" || die
|
||||
|
||||
# default to /tmp for save_path, bug #282768
|
||||
sed -e 's|^;session.save_path .*$|session.save_path = "'"${EPREFIX}"'/tmp"|g' -i "${phpinisrc}" || die
|
||||
|
||||
# Set the extension dir
|
||||
sed -e "s|^extension_dir .*$|extension_dir = ${extension_dir}|g" -i "${phpinisrc}" || die
|
||||
|
||||
# Set the include path to point to where we want to find PEAR packages
|
||||
sed -e 's|^;include_path = ".:/php/includes".*|include_path = ".:'"${EPREFIX}"'/usr/share/php'${PHP_MV}':'"${EPREFIX}"'/usr/share/php"|' -i "${phpinisrc}" || die
|
||||
|
||||
dodir "${PHP_INI_DIR#${EPREFIX}}"
|
||||
insinto "${PHP_INI_DIR#${EPREFIX}}"
|
||||
newins "${phpinisrc}" php.ini
|
||||
|
||||
elog "Installing php.ini for ${phpsapi} into ${PHP_INI_DIR#${EPREFIX}}"
|
||||
elog
|
||||
|
||||
dodir "${PHP_EXT_INI_DIR#${EPREFIX}}"
|
||||
dodir "${PHP_EXT_INI_DIR_ACTIVE#${EPREFIX}}"
|
||||
|
||||
if use opcache; then
|
||||
elog "Adding opcache to $PHP_EXT_INI_DIR"
|
||||
echo "zend_extension=${PHP_DESTDIR}/$(get_libdir)/opcache.so" >> \
|
||||
"${D}/${PHP_EXT_INI_DIR}"/opcache.ini
|
||||
dosym "${PHP_EXT_INI_DIR#${EPREFIX}}/opcache.ini" \
|
||||
"${PHP_EXT_INI_DIR_ACTIVE#${EPREFIX}}/opcache.ini"
|
||||
fi
|
||||
|
||||
# SAPI-specific handling
|
||||
if [[ "${sapi}" == "fpm" ]] ; then
|
||||
einfo "Installing FPM config files php-fpm.conf and www.conf"
|
||||
insinto "${PHP_INI_DIR#${EPREFIX}}"
|
||||
doins sapi/fpm/php-fpm.conf
|
||||
insinto "${PHP_INI_DIR#${EPREFIX}}/fpm.d"
|
||||
doins sapi/fpm/www.conf
|
||||
fi
|
||||
|
||||
dodoc php.ini-development
|
||||
dodoc php.ini-production
|
||||
}
|
||||
|
||||
php_set_ini_dir() {
|
||||
PHP_INI_DIR="${EPREFIX}/etc/php/${1}-php${SLOT}"
|
||||
PHP_EXT_INI_DIR="${PHP_INI_DIR}/ext"
|
||||
PHP_EXT_INI_DIR_ACTIVE="${PHP_INI_DIR}/ext-active"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# In php-7.x, the FPM pool configuration files have been split off
|
||||
# of the main config. By default the pool config files go in
|
||||
# e.g. /etc/php-fpm.d, which isn't slotted. So here we move the
|
||||
# include directory to a subdirectory "fpm.d" of $PHP_INI_DIR. Later
|
||||
# we'll install the pool configuration file "www.conf" there.
|
||||
php_set_ini_dir fpm
|
||||
sed -i "s~^include=.*$~include=${PHP_INI_DIR}/fpm.d/*.conf~" \
|
||||
sapi/fpm/php-fpm.conf.in \
|
||||
|| die 'failed to move the include directory in php-fpm.conf'
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
addpredict /usr/share/snmp/mibs/.index
|
||||
addpredict /var/lib/net-snmp/mib_indexes
|
||||
|
||||
PHP_DESTDIR="${EPREFIX}/usr/$(get_libdir)/php${SLOT}"
|
||||
|
||||
# The php-fpm config file wants localstatedir to be ${EPREFIX}/var
|
||||
# and not the Gentoo default ${EPREFIX}/var/lib. See bug 572002.
|
||||
local our_conf=(
|
||||
--prefix="${PHP_DESTDIR}"
|
||||
--mandir="${PHP_DESTDIR}/man"
|
||||
--infodir="${PHP_DESTDIR}/info"
|
||||
--libdir="${PHP_DESTDIR}/lib"
|
||||
--with-libdir="$(get_libdir)"
|
||||
--localstatedir="${EPREFIX}/var"
|
||||
--without-pear
|
||||
$(use_enable threads maintainer-zts)
|
||||
)
|
||||
|
||||
our_conf+=(
|
||||
$(use_with acl fpm-acl)
|
||||
$(use_enable bcmath bcmath)
|
||||
$(use_with bzip2 bz2 "${EPREFIX}/usr")
|
||||
$(use_enable calendar calendar)
|
||||
$(use_enable coverage gcov)
|
||||
$(use_enable ctype ctype)
|
||||
$(use_with curl curl "${EPREFIX}/usr")
|
||||
$(use_enable xml dom)
|
||||
$(use_with enchant enchant "${EPREFIX}/usr")
|
||||
$(use_enable exif exif)
|
||||
$(use_enable fileinfo fileinfo)
|
||||
$(use_enable filter filter)
|
||||
$(use_enable ftp ftp)
|
||||
$(use_with nls gettext "${EPREFIX}/usr")
|
||||
$(use_with gmp gmp "${EPREFIX}/usr")
|
||||
$(use_enable hash hash)
|
||||
$(use_with mhash mhash "${EPREFIX}/usr")
|
||||
$(use_with iconv iconv \
|
||||
$(use elibc_glibc || use elibc_musl || echo "${EPREFIX}/usr"))
|
||||
$(use_enable intl intl)
|
||||
$(use_enable ipv6 ipv6)
|
||||
$(use_enable json json)
|
||||
$(use_with kerberos kerberos "${EPREFIX}/usr")
|
||||
$(use_enable xml libxml)
|
||||
$(use_with xml libxml-dir "${EPREFIX}/usr")
|
||||
$(use_enable unicode mbstring)
|
||||
$(use_with crypt mcrypt "${EPREFIX}/usr")
|
||||
$(use_with unicode onig "${EPREFIX}/usr")
|
||||
$(use_with ssl openssl "${EPREFIX}/usr")
|
||||
$(use_with ssl openssl-dir "${EPREFIX}/usr")
|
||||
$(use_enable pcntl pcntl)
|
||||
$(use_enable phar phar)
|
||||
$(use_enable pdo pdo)
|
||||
$(use_enable opcache opcache)
|
||||
$(use_with postgres pgsql "${EPREFIX}/usr")
|
||||
$(use_enable posix posix)
|
||||
$(use_with spell pspell "${EPREFIX}/usr")
|
||||
$(use_with recode recode "${EPREFIX}/usr")
|
||||
$(use_enable simplexml simplexml)
|
||||
$(use_enable sharedmem shmop)
|
||||
$(use_with snmp snmp "${EPREFIX}/usr")
|
||||
$(use_enable soap soap)
|
||||
$(use_enable sockets sockets)
|
||||
$(use_with sqlite sqlite3 "${EPREFIX}/usr")
|
||||
$(use_enable sysvipc sysvmsg)
|
||||
$(use_enable sysvipc sysvsem)
|
||||
$(use_enable sysvipc sysvshm)
|
||||
$(use_with systemd fpm-systemd)
|
||||
$(use_with tidy tidy "${EPREFIX}/usr")
|
||||
$(use_enable tokenizer tokenizer)
|
||||
$(use_enable wddx wddx)
|
||||
$(use_enable xml xml)
|
||||
$(use_enable xmlreader xmlreader)
|
||||
$(use_enable xmlwriter xmlwriter)
|
||||
$(use_with xmlrpc xmlrpc)
|
||||
$(use_with xslt xsl "${EPREFIX}/usr")
|
||||
$(use_enable zip zip)
|
||||
$(use_with zlib zlib "${EPREFIX}/usr")
|
||||
$(use_enable debug debug)
|
||||
)
|
||||
|
||||
# DBA support
|
||||
if use cdb || use berkdb || use flatfile || use gdbm || use inifile \
|
||||
|| use qdbm ; then
|
||||
our_conf+=( "--enable-dba${shared}" )
|
||||
fi
|
||||
|
||||
# DBA drivers support
|
||||
our_conf+=(
|
||||
$(use_with cdb cdb)
|
||||
$(use_with berkdb db4 "${EPREFIX}/usr")
|
||||
$(use_enable flatfile flatfile)
|
||||
$(use_with gdbm gdbm "${EPREFIX}/usr")
|
||||
$(use_enable inifile inifile)
|
||||
$(use_with qdbm qdbm "${EPREFIX}/usr")
|
||||
)
|
||||
|
||||
# Support for the GD graphics library
|
||||
our_conf+=(
|
||||
$(use_with truetype freetype-dir "${EPREFIX}/usr")
|
||||
$(use_enable cjk gd-jis-conv)
|
||||
$(use_with gd jpeg-dir "${EPREFIX}/usr")
|
||||
$(use_with gd png-dir "${EPREFIX}/usr")
|
||||
$(use_with xpm xpm-dir "${EPREFIX}/usr")
|
||||
)
|
||||
if use webp; then
|
||||
our_conf+=( --with-webp-dir="${EPREFIX}/usr" )
|
||||
fi
|
||||
# enable gd last, so configure can pick up the previous settings
|
||||
our_conf+=( $(use_with gd gd) )
|
||||
|
||||
# IMAP support
|
||||
if use imap ; then
|
||||
our_conf+=(
|
||||
$(use_with imap imap "${EPREFIX}/usr")
|
||||
$(use_with ssl imap-ssl "${EPREFIX}/usr")
|
||||
)
|
||||
fi
|
||||
|
||||
# Interbase/firebird support
|
||||
our_conf+=( $(use_with firebird interbase "${EPREFIX}/usr") )
|
||||
|
||||
# LDAP support
|
||||
if use ldap ; then
|
||||
our_conf+=(
|
||||
$(use_with ldap ldap "${EPREFIX}/usr")
|
||||
$(use_with ldap-sasl ldap-sasl "${EPREFIX}/usr")
|
||||
)
|
||||
fi
|
||||
|
||||
# MySQL support
|
||||
local mysqllib="mysqlnd"
|
||||
local mysqlilib="mysqlnd"
|
||||
|
||||
our_conf+=( $(use_with mysqli mysqli "${mysqlilib}") )
|
||||
|
||||
local mysqlsock="${EPREFIX}/var/run/mysqld/mysqld.sock"
|
||||
if use mysql || use mysqli ; then
|
||||
our_conf+=( $(use_with mysql mysql-sock "${mysqlsock}") )
|
||||
fi
|
||||
|
||||
# ODBC support
|
||||
our_conf+=(
|
||||
$(use_with odbc unixODBC "${EPREFIX}/usr")
|
||||
$(use_with iodbc iodbc "${EPREFIX}/usr")
|
||||
)
|
||||
|
||||
# Oracle support
|
||||
our_conf+=( $(use_with oci8-instant-client oci8) )
|
||||
|
||||
# PDO support
|
||||
if use pdo ; then
|
||||
our_conf+=(
|
||||
$(use_with mssql pdo-dblib "${EPREFIX}/usr")
|
||||
$(use_with mysql pdo-mysql "${mysqllib}")
|
||||
$(use_with postgres pdo-pgsql)
|
||||
$(use_with sqlite pdo-sqlite "${EPREFIX}/usr")
|
||||
$(use_with firebird pdo-firebird "${EPREFIX}/usr")
|
||||
$(use_with odbc pdo-odbc "unixODBC,${EPREFIX}/usr")
|
||||
$(use_with oci8-instant-client pdo-oci)
|
||||
)
|
||||
fi
|
||||
|
||||
# readline/libedit support
|
||||
our_conf+=(
|
||||
$(use_with readline readline "${EPREFIX}/usr")
|
||||
$(use_with libedit libedit "${EPREFIX}/usr")
|
||||
)
|
||||
|
||||
# Session support
|
||||
if use session ; then
|
||||
our_conf+=( $(use_with sharedmem mm "${EPREFIX}/usr") )
|
||||
else
|
||||
our_conf+=( $(use_enable session session) )
|
||||
fi
|
||||
|
||||
# Use pic for shared modules such as apache2's mod_php
|
||||
our_conf+=( --with-pic )
|
||||
|
||||
# we use the system copy of pcre
|
||||
# --with-pcre-regex affects ext/pcre
|
||||
# --with-pcre-dir affects ext/filter and ext/zip
|
||||
our_conf+=(
|
||||
--with-pcre-regex="${EPREFIX}/usr"
|
||||
--with-pcre-dir="${EPREFIX}/usr"
|
||||
)
|
||||
|
||||
# Catch CFLAGS problems
|
||||
# Fixes bug #14067.
|
||||
# Changed order to run it in reverse for bug #32022 and #12021.
|
||||
replace-cpu-flags "k6*" "i586"
|
||||
|
||||
# Support user-passed configuration parameters
|
||||
our_conf+=( ${EXTRA_ECONF:-} )
|
||||
|
||||
# Support the Apache2 extras, they must be set globally for all
|
||||
# SAPIs to work correctly, especially for external PHP extensions
|
||||
|
||||
mkdir -p "${WORKDIR}/sapis-build" || die
|
||||
for one_sapi in $SAPIS ; do
|
||||
use "${one_sapi}" || continue
|
||||
php_set_ini_dir "${one_sapi}"
|
||||
|
||||
# The BUILD_DIR variable is used to determine where to output
|
||||
# the files that autotools creates. This was all originally
|
||||
# based on the autotools-utils eclass.
|
||||
BUILD_DIR="${WORKDIR}/sapis-build/${one_sapi}"
|
||||
cp -a "${S}" "${BUILD_DIR}" || die
|
||||
cd "${BUILD_DIR}" || die
|
||||
|
||||
local sapi_conf=(
|
||||
--with-config-file-path="${PHP_INI_DIR}"
|
||||
--with-config-file-scan-dir="${PHP_EXT_INI_DIR_ACTIVE}"
|
||||
)
|
||||
|
||||
for sapi in $SAPIS ; do
|
||||
case "$sapi" in
|
||||
cli|cgi|embed|fpm|phpdbg)
|
||||
if [[ "${one_sapi}" == "${sapi}" ]] ; then
|
||||
sapi_conf+=( "--enable-${sapi}" )
|
||||
else
|
||||
sapi_conf+=( "--disable-${sapi}" )
|
||||
fi
|
||||
;;
|
||||
|
||||
apache2)
|
||||
if [[ "${one_sapi}" == "${sapi}" ]] ; then
|
||||
sapi_conf+=( --with-apxs2="${EPREFIX}/usr/bin/apxs" )
|
||||
else
|
||||
sapi_conf+=( --without-apxs2 )
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
# Construct the $myeconfargs array by concatenating $our_conf
|
||||
# (the common args) and $sapi_conf (the SAPI-specific args).
|
||||
local myeconfargs=( "${our_conf[@]}" )
|
||||
myeconfargs+=( "${sapi_conf[@]}" )
|
||||
|
||||
pushd "${BUILD_DIR}" > /dev/null || die
|
||||
econf "${myeconfargs[@]}"
|
||||
popd > /dev/null || die
|
||||
done
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# snmp seems to run during src_compile, too (bug #324739)
|
||||
addpredict /usr/share/snmp/mibs/.index
|
||||
addpredict /var/lib/net-snmp/mib_indexes
|
||||
|
||||
for sapi in ${SAPIS} ; do
|
||||
if use "${sapi}"; then
|
||||
cd "${WORKDIR}/sapis-build/$sapi" || \
|
||||
die "Failed to change dir to ${WORKDIR}/sapis-build/$1"
|
||||
emake
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# see bug #324739 for what happens when we don't have that
|
||||
addpredict /usr/share/snmp/mibs/.index
|
||||
|
||||
# grab the first SAPI that got built and install common files from there
|
||||
local first_sapi=""
|
||||
for sapi in $SAPIS ; do
|
||||
if use $sapi ; then
|
||||
first_sapi=$sapi
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
# Makefile forgets to create this before trying to write to it...
|
||||
dodir "${PHP_DESTDIR#${EPREFIX}}/bin"
|
||||
|
||||
# Install php environment (without any sapis)
|
||||
cd "${WORKDIR}/sapis-build/$first_sapi" || die
|
||||
emake INSTALL_ROOT="${D}" \
|
||||
install-build install-headers install-programs
|
||||
|
||||
local extension_dir="$("${ED}/${PHP_DESTDIR#${EPREFIX}}/bin/php-config" --extension-dir)"
|
||||
|
||||
# Create the directory where we'll put version-specific php scripts
|
||||
keepdir "/usr/share/php${PHP_MV}"
|
||||
|
||||
local sapi="", file=""
|
||||
local sapi_list=""
|
||||
|
||||
for sapi in ${SAPIS}; do
|
||||
if use "${sapi}" ; then
|
||||
einfo "Installing SAPI: ${sapi}"
|
||||
cd "${WORKDIR}/sapis-build/${sapi}" || die
|
||||
|
||||
if [[ "${sapi}" == "apache2" ]] ; then
|
||||
# We're specifically not using emake install-sapi as libtool
|
||||
# may cause unnecessary relink failures (see bug #351266)
|
||||
insinto "${PHP_DESTDIR#${EPREFIX}}/apache2/"
|
||||
newins ".libs/libphp${PHP_MV}$(get_libname)" \
|
||||
"libphp${PHP_MV}$(get_libname)"
|
||||
keepdir "/usr/$(get_libdir)/apache2/modules"
|
||||
else
|
||||
# needed each time, php_install_ini would reset it
|
||||
local dest="${PHP_DESTDIR#${EPREFIX}}"
|
||||
into "${dest}"
|
||||
case "$sapi" in
|
||||
cli)
|
||||
source="sapi/cli/php"
|
||||
;;
|
||||
cgi)
|
||||
source="sapi/cgi/php-cgi"
|
||||
;;
|
||||
fpm)
|
||||
source="sapi/fpm/php-fpm"
|
||||
;;
|
||||
embed)
|
||||
source="libs/libphp${PHP_MV}$(get_libname)"
|
||||
;;
|
||||
phpdbg)
|
||||
source="sapi/phpdbg/phpdbg"
|
||||
;;
|
||||
*)
|
||||
die "unhandled sapi in src_install"
|
||||
;;
|
||||
esac
|
||||
|
||||
if [[ "${source}" == *"$(get_libname)" ]]; then
|
||||
dolib.so "${source}"
|
||||
else
|
||||
dobin "${source}"
|
||||
local name="$(basename ${source})"
|
||||
dosym "${dest}/bin/${name}" "/usr/bin/${name}${SLOT}"
|
||||
fi
|
||||
fi
|
||||
|
||||
php_install_ini "${sapi}"
|
||||
|
||||
# construct correct SAPI string for php-config
|
||||
# thanks to ferringb for the bash voodoo
|
||||
if [[ "${sapi}" == "apache2" ]]; then
|
||||
sapi_list="${sapi_list:+${sapi_list} }apache2handler"
|
||||
else
|
||||
sapi_list="${sapi_list:+${sapi_list} }${sapi}"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
# Installing opcache module
|
||||
if use opcache ; then
|
||||
into "${PHP_DESTDIR#${EPREFIX}}"
|
||||
dolib.so "modules/opcache$(get_libname)"
|
||||
fi
|
||||
|
||||
# Install env.d files
|
||||
newenvd "${FILESDIR}/20php5-envd" "20php${SLOT}"
|
||||
sed -e "s|/lib/|/$(get_libdir)/|g" -i "${ED}/etc/env.d/20php${SLOT}" || die
|
||||
sed -e "s|php5|php${SLOT}|g" -i "${ED}/etc/env.d/20php${SLOT}" || die
|
||||
|
||||
# set php-config variable correctly (bug #278439)
|
||||
sed -e "s:^\(php_sapis=\)\".*\"$:\1\"${sapi_list}\":" -i \
|
||||
"${ED}/usr/$(get_libdir)/php${SLOT}/bin/php-config" || die
|
||||
|
||||
if use fpm ; then
|
||||
if use systemd; then
|
||||
systemd_newunit "${FILESDIR}/php-fpm_at.service" \
|
||||
"php-fpm@${SLOT}.service"
|
||||
else
|
||||
systemd_newunit "${FILESDIR}/php-fpm_at-simple.service" \
|
||||
"php-fpm@${SLOT}.service"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
echo ">>> Test phase [test]: ${CATEGORY}/${PF}"
|
||||
PHP_BIN="${WORKDIR}/sapis-build/cli/sapi/cli/php"
|
||||
if [[ ! -x "${PHP_BIN}" ]] ; then
|
||||
ewarn "Test phase requires USE=cli, skipping"
|
||||
return
|
||||
else
|
||||
export TEST_PHP_EXECUTABLE="${PHP_BIN}"
|
||||
fi
|
||||
|
||||
if [[ -x "${WORKDIR}/sapis/cgi/php-cgi" ]] ; then
|
||||
export TEST_PHP_CGI_EXECUTABLE="${WORKDIR}/sapis/cgi/php-cgi"
|
||||
fi
|
||||
|
||||
REPORT_EXIT_STATUS=1 "${TEST_PHP_EXECUTABLE}" -n -d \
|
||||
"session.save_path=${T}" \
|
||||
"${WORKDIR}/sapis-build/cli/run-tests.php" -n -q -d \
|
||||
"session.save_path=${T}"
|
||||
|
||||
for name in ${EXPECTED_TEST_FAILURES}; do
|
||||
mv "${name}.out" "${name}.out.orig" 2>/dev/null || die
|
||||
done
|
||||
|
||||
local failed="$(find -name '*.out')"
|
||||
if [[ ${failed} != "" ]] ; then
|
||||
ewarn "The following test cases failed unexpectedly:"
|
||||
for name in ${failed}; do
|
||||
ewarn " ${name/.out/}"
|
||||
done
|
||||
else
|
||||
einfo "No unexpected test failures, all fine"
|
||||
fi
|
||||
|
||||
if [[ ${PHP_SHOW_UNEXPECTED_TEST_PASS} == "1" ]] ; then
|
||||
local passed=""
|
||||
for name in ${EXPECTED_TEST_FAILURES}; do
|
||||
[[ -f "${name}.diff" ]] && continue
|
||||
passed="${passed} ${name}"
|
||||
done
|
||||
if [[ ${passed} != "" ]] ; then
|
||||
einfo "The following test cases passed unexpectedly:"
|
||||
for name in ${passed}; do
|
||||
ewarn " ${passed}"
|
||||
done
|
||||
else
|
||||
einfo "None of the known-to-fail tests passed, all fine"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Output some general info to the user
|
||||
if use apache2 ; then
|
||||
elog
|
||||
elog "To enable PHP in apache, you will need to add \"-D PHP\" to"
|
||||
elog "your apache2 command. OpenRC users can append that string to"
|
||||
elog "APACHE2_OPTS in /etc/conf.d/apache2."
|
||||
elog
|
||||
elog "The apache module configuration file 70_mod_php.conf is"
|
||||
elog "provided (and maintained) by eselect-php."
|
||||
elog
|
||||
fi
|
||||
|
||||
# Create the symlinks for php
|
||||
for m in ${SAPIS}; do
|
||||
[[ ${m} == 'embed' ]] && continue;
|
||||
if use $m ; then
|
||||
local ci=$(eselect php show $m)
|
||||
if [[ -z $ci ]]; then
|
||||
eselect php set $m php${SLOT} || die
|
||||
einfo "Switched ${m} to use php:${SLOT}"
|
||||
einfo
|
||||
elif [[ $ci != "php${SLOT}" ]] ; then
|
||||
elog "To switch $m to use php:${SLOT}, run"
|
||||
elog " eselect php set $m php${SLOT}"
|
||||
elog
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
# Remove dead symlinks for SAPIs that were just disabled. For
|
||||
# example, if the user has the cgi SAPI enabled, then he has an
|
||||
# eselect-php symlink for it. If he later reinstalls PHP with
|
||||
# USE="-cgi", that symlink will break. This call to eselect is
|
||||
# supposed to remove that dead link per bug 572436.
|
||||
eselect php cleanup || die
|
||||
|
||||
if ! has "php${SLOT/./-}" ${PHP_TARGETS}; then
|
||||
elog "To build extensions for this version of PHP, you will need to"
|
||||
elog "add php${SLOT/./-} to your PHP_TARGETS USE_EXPAND variable."
|
||||
elog
|
||||
fi
|
||||
|
||||
# Only mention PHP_INI_VERSION if the user doesn't have it set.
|
||||
case "${PHP_INI_VERSION}" in
|
||||
production|development)
|
||||
;;
|
||||
*)
|
||||
elog "This ebuild installed a version of php.ini based on"
|
||||
elog "${PHP_INI_UPSTREAM}. You can choose which version of"
|
||||
elog "php.ini to install by default by setting PHP_INI_VERSION"
|
||||
elog "to either 'production' or 'development' in your make.conf."
|
||||
elog "Both versions of php.ini can be found with the PHP docs in"
|
||||
elog "${EPREFIX}/usr/share/doc/${PF}"
|
||||
elog
|
||||
;;
|
||||
esac
|
||||
|
||||
elog "For details on how version slotting works, please see"
|
||||
elog "the wiki:"
|
||||
elog
|
||||
elog " https://wiki.gentoo.org/wiki/PHP"
|
||||
elog
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
# This serves two purposes. First, if we have just removed the last
|
||||
# installed version of PHP, then this will remove any dead symlinks
|
||||
# belonging to eselect-php. Second, if a user upgrades slots from
|
||||
# (say) 5.6 to 7.0 and depcleans the old slot, then this will update
|
||||
# his existing symlinks to point to the new 7.0 installation. The
|
||||
# latter is bug 432962.
|
||||
#
|
||||
# Note: the eselect-php package may not be installed at this point,
|
||||
# so we can't die() if this command fails.
|
||||
eselect php cleanup
|
||||
}
|
@ -0,0 +1,365 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
WANT_LIBTOOL="none"
|
||||
|
||||
inherit autotools eutils flag-o-matic multilib pax-utils python-utils-r1 toolchain-funcs multiprocessing
|
||||
|
||||
MY_P="Python-${PV}"
|
||||
PATCHSET_VERSION="2.7.14-0"
|
||||
|
||||
DESCRIPTION="An interpreted, interactive, object-oriented programming language"
|
||||
HOMEPAGE="https://www.python.org/"
|
||||
SRC_URI="https://www.python.org/ftp/python/${PV}/${MY_P}.tar.xz
|
||||
https://dev.gentoo.org/~floppym/python/python-gentoo-patches-${PATCHSET_VERSION}.tar.xz"
|
||||
|
||||
LICENSE="PSF-2"
|
||||
SLOT="2.7"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="-berkdb build doc elibc_uclibc examples gdbm hardened ipv6 libressl +ncurses +readline sqlite +ssl +threads tk +wide-unicode wininst +xml"
|
||||
|
||||
# Do not add a dependency on dev-lang/python to this ebuild.
|
||||
# If you need to apply a patch which requires python for bootstrapping, please
|
||||
# run the bootstrap code on your dev box and include the results in the
|
||||
# patchset. See bug 447752.
|
||||
|
||||
RDEPEND="app-arch/bzip2:0=
|
||||
>=sys-libs/zlib-1.1.3:0=
|
||||
virtual/libffi
|
||||
virtual/libintl
|
||||
berkdb? ( || (
|
||||
sys-libs/db:5.3
|
||||
sys-libs/db:5.2
|
||||
sys-libs/db:5.1
|
||||
sys-libs/db:5.0
|
||||
sys-libs/db:4.8
|
||||
sys-libs/db:4.7
|
||||
sys-libs/db:4.6
|
||||
sys-libs/db:4.5
|
||||
sys-libs/db:4.4
|
||||
sys-libs/db:4.3
|
||||
sys-libs/db:4.2
|
||||
) )
|
||||
gdbm? ( sys-libs/gdbm:0=[berkdb] )
|
||||
ncurses? (
|
||||
>=sys-libs/ncurses-5.2:0=
|
||||
readline? ( >=sys-libs/readline-4.1:0= )
|
||||
)
|
||||
sqlite? ( >=dev-db/sqlite-3.3.8:3= )
|
||||
ssl? (
|
||||
!libressl? ( dev-libs/openssl:0= )
|
||||
libressl? ( dev-libs/libressl:= )
|
||||
)
|
||||
tk? (
|
||||
>=dev-lang/tcl-8.0:0=
|
||||
>=dev-lang/tk-8.0:0=
|
||||
dev-tcltk/blt:0=
|
||||
dev-tcltk/tix
|
||||
)
|
||||
xml? ( >=dev-libs/expat-2.1 )
|
||||
!!<sys-apps/portage-2.1.9"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
>=sys-devel/autoconf-2.65
|
||||
!sys-devel/gcc[libffi(-)]"
|
||||
RDEPEND+=" !build? ( app-misc/mime-types )
|
||||
doc? ( dev-python/python-docs:${SLOT} )"
|
||||
PDEPEND=">=app-eselect/eselect-python-20140125-r1"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
pkg_setup() {
|
||||
if use berkdb; then
|
||||
ewarn "'bsddb' module is out-of-date and no longer maintained inside"
|
||||
ewarn "dev-lang/python. 'bsddb' and 'dbhash' modules have been additionally"
|
||||
ewarn "removed in Python 3. A maintained alternative of 'bsddb3' module"
|
||||
ewarn "is provided by dev-python/bsddb3."
|
||||
else
|
||||
if has_version "=${CATEGORY}/${PN}-${PV%%.*}*[berkdb]"; then
|
||||
ewarn "You are migrating from =${CATEGORY}/${PN}-${PV%%.*}*[berkdb]"
|
||||
ewarn "to =${CATEGORY}/${PN}-${PV%%.*}*[-berkdb]."
|
||||
ewarn "You might need to migrate your databases."
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Ensure that internal copies of expat, libffi and zlib are not used.
|
||||
rm -r Modules/expat || die
|
||||
rm -r Modules/_ctypes/libffi* || die
|
||||
rm -r Modules/zlib || die
|
||||
|
||||
if tc-is-cross-compiler; then
|
||||
local EPATCH_EXCLUDE="*_regenerate_platform-specific_modules.patch"
|
||||
fi
|
||||
|
||||
EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
|
||||
|
||||
# Fix for cross-compiling.
|
||||
epatch "${FILESDIR}/python-2.7.5-nonfatal-compileall.patch"
|
||||
epatch "${FILESDIR}/python-2.7.9-ncurses-pkg-config.patch"
|
||||
epatch "${FILESDIR}/python-2.7.10-cross-compile-warn-test.patch"
|
||||
epatch "${FILESDIR}/python-2.7.10-system-libffi.patch"
|
||||
|
||||
epatch_user
|
||||
|
||||
sed -i -e "s:@@GENTOO_LIBDIR@@:$(get_libdir):g" \
|
||||
Lib/distutils/command/install.py \
|
||||
Lib/distutils/sysconfig.py \
|
||||
Lib/site.py \
|
||||
Lib/sysconfig.py \
|
||||
Lib/test/test_site.py \
|
||||
Makefile.pre.in \
|
||||
Modules/Setup.dist \
|
||||
Modules/getpath.c \
|
||||
setup.py || die "sed failed to replace @@GENTOO_LIBDIR@@"
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# dbm module can be linked against berkdb or gdbm.
|
||||
# Defaults to gdbm when both are enabled, #204343.
|
||||
local disable
|
||||
use berkdb || use gdbm || disable+=" dbm"
|
||||
use berkdb || disable+=" _bsddb"
|
||||
use gdbm || disable+=" gdbm"
|
||||
use ncurses || disable+=" _curses _curses_panel"
|
||||
use readline || disable+=" readline"
|
||||
use sqlite || disable+=" _sqlite3"
|
||||
use ssl || export PYTHON_DISABLE_SSL="1"
|
||||
use tk || disable+=" _tkinter"
|
||||
use xml || disable+=" _elementtree pyexpat" # _elementtree uses pyexpat.
|
||||
export PYTHON_DISABLE_MODULES="${disable}"
|
||||
|
||||
if ! use xml; then
|
||||
ewarn "You have configured Python without XML support."
|
||||
ewarn "This is NOT a recommended configuration as you"
|
||||
ewarn "may face problems parsing any XML documents."
|
||||
fi
|
||||
|
||||
if [[ -n "${PYTHON_DISABLE_MODULES}" ]]; then
|
||||
einfo "Disabled modules: ${PYTHON_DISABLE_MODULES}"
|
||||
fi
|
||||
|
||||
if [[ "$(gcc-major-version)" -ge 4 ]]; then
|
||||
append-flags -fwrapv
|
||||
fi
|
||||
|
||||
filter-flags -malign-double
|
||||
|
||||
# https://bugs.gentoo.org/show_bug.cgi?id=50309
|
||||
if is-flagq -O3; then
|
||||
is-flagq -fstack-protector-all && replace-flags -O3 -O2
|
||||
use hardened && replace-flags -O3 -O2
|
||||
fi
|
||||
|
||||
if tc-is-cross-compiler; then
|
||||
# Force some tests that try to poke fs paths.
|
||||
export ac_cv_file__dev_ptc=no
|
||||
export ac_cv_file__dev_ptmx=yes
|
||||
fi
|
||||
|
||||
# Export CXX so it ends up in /usr/lib/python2.X/config/Makefile.
|
||||
tc-export CXX
|
||||
# The configure script fails to use pkg-config correctly.
|
||||
# http://bugs.python.org/issue15506
|
||||
export ac_cv_path_PKG_CONFIG=$(tc-getPKG_CONFIG)
|
||||
|
||||
# Set LDFLAGS so we link modules with -lpython2.7 correctly.
|
||||
# Needed on FreeBSD unless Python 2.7 is already installed.
|
||||
# Please query BSD team before removing this!
|
||||
append-ldflags "-L."
|
||||
|
||||
local dbmliborder
|
||||
if use gdbm; then
|
||||
dbmliborder+="${dbmliborder:+:}gdbm"
|
||||
fi
|
||||
if use berkdb; then
|
||||
dbmliborder+="${dbmliborder:+:}bdb"
|
||||
fi
|
||||
|
||||
BUILD_DIR="${WORKDIR}/${CHOST}"
|
||||
mkdir -p "${BUILD_DIR}" || die
|
||||
cd "${BUILD_DIR}" || die
|
||||
|
||||
ECONF_SOURCE="${S}" OPT="" \
|
||||
econf \
|
||||
--with-fpectl \
|
||||
--enable-shared \
|
||||
$(use_enable ipv6) \
|
||||
$(use_with threads) \
|
||||
$(use wide-unicode && echo "--enable-unicode=ucs4" || echo "--enable-unicode=ucs2") \
|
||||
--infodir='${prefix}/share/info' \
|
||||
--mandir='${prefix}/share/man' \
|
||||
--with-computed-gotos \
|
||||
--with-dbmliborder="${dbmliborder}" \
|
||||
--with-libc="" \
|
||||
--enable-loadable-sqlite-extensions \
|
||||
--with-system-expat \
|
||||
--with-system-ffi \
|
||||
--without-ensurepip
|
||||
|
||||
if use threads && grep -q "#define POSIX_SEMAPHORES_NOT_ENABLED 1" pyconfig.h; then
|
||||
eerror "configure has detected that the sem_open function is broken."
|
||||
eerror "Please ensure that /dev/shm is mounted as a tmpfs with mode 1777."
|
||||
die "Broken sem_open function (bug 496328)"
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Avoid invoking pgen for cross-compiles.
|
||||
touch Include/graminit.h Python/graminit.c
|
||||
|
||||
cd "${BUILD_DIR}" || die
|
||||
emake
|
||||
|
||||
# Work around bug 329499. See also bug 413751 and 457194.
|
||||
if has_version dev-libs/libffi[pax_kernel]; then
|
||||
pax-mark E python
|
||||
else
|
||||
pax-mark m python
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# Tests will not work when cross compiling.
|
||||
if tc-is-cross-compiler; then
|
||||
elog "Disabling tests due to crosscompiling."
|
||||
return
|
||||
fi
|
||||
|
||||
cd "${BUILD_DIR}" || die
|
||||
|
||||
# Skip failing tests.
|
||||
local skipped_tests="distutils gdb"
|
||||
|
||||
for test in ${skipped_tests}; do
|
||||
mv "${S}"/Lib/test/test_${test}.py "${T}"
|
||||
done
|
||||
|
||||
# Daylight saving time problem
|
||||
# https://bugs.python.org/issue22067
|
||||
# https://bugs.gentoo.org/610628
|
||||
local -x TZ=UTC
|
||||
|
||||
# Rerun failed tests in verbose mode (regrtest -w).
|
||||
emake test EXTRATESTOPTS="-w" < /dev/tty
|
||||
local result="$?"
|
||||
|
||||
for test in ${skipped_tests}; do
|
||||
mv "${T}/test_${test}.py" "${S}"/Lib/test
|
||||
done
|
||||
|
||||
elog "The following tests have been skipped:"
|
||||
for test in ${skipped_tests}; do
|
||||
elog "test_${test}.py"
|
||||
done
|
||||
|
||||
elog "If you would like to run them, you may:"
|
||||
elog "cd '${EPREFIX}/usr/$(get_libdir)/python${SLOT}/test'"
|
||||
elog "and run the tests separately."
|
||||
|
||||
if [[ "${result}" -ne 0 ]]; then
|
||||
die "emake test failed"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local libdir=${ED}/usr/$(get_libdir)/python${SLOT}
|
||||
|
||||
cd "${BUILD_DIR}" || die
|
||||
emake DESTDIR="${D}" altinstall
|
||||
|
||||
sed -e "s/\(LDFLAGS=\).*/\1/" -i "${libdir}/config/Makefile" || die "sed failed"
|
||||
|
||||
# Fix collisions between different slots of Python.
|
||||
mv "${ED}usr/bin/2to3" "${ED}usr/bin/2to3-${SLOT}"
|
||||
mv "${ED}usr/bin/pydoc" "${ED}usr/bin/pydoc${SLOT}"
|
||||
mv "${ED}usr/bin/idle" "${ED}usr/bin/idle${SLOT}"
|
||||
rm -f "${ED}usr/bin/smtpd.py"
|
||||
|
||||
use berkdb || rm -r "${libdir}/"{bsddb,dbhash.py*,test/test_bsddb*} || die
|
||||
use sqlite || rm -r "${libdir}/"{sqlite3,test/test_sqlite*} || die
|
||||
use tk || rm -r "${ED}usr/bin/idle${SLOT}" "${libdir}/"{idlelib,lib-tk} || die
|
||||
use elibc_uclibc && rm -fr "${libdir}/"{bsddb/test,test}
|
||||
|
||||
use threads || rm -r "${libdir}/multiprocessing" || die
|
||||
use wininst || rm -r "${libdir}/distutils/command/"wininst-*.exe || die
|
||||
|
||||
dodoc "${S}"/Misc/{ACKS,HISTORY,NEWS}
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}/examples
|
||||
doins -r "${S}"/Tools
|
||||
fi
|
||||
insinto /usr/share/gdb/auto-load/usr/$(get_libdir) #443510
|
||||
local libname=$(printf 'e:\n\t@echo $(INSTSONAME)\ninclude Makefile\n' | \
|
||||
emake --no-print-directory -s -f - 2>/dev/null)
|
||||
newins "${S}"/Tools/gdb/libpython.py "${libname}"-gdb.py
|
||||
|
||||
newconfd "${FILESDIR}/pydoc.conf" pydoc-${SLOT}
|
||||
newinitd "${FILESDIR}/pydoc.init" pydoc-${SLOT}
|
||||
sed \
|
||||
-e "s:@PYDOC_PORT_VARIABLE@:PYDOC${SLOT/./_}_PORT:" \
|
||||
-e "s:@PYDOC@:pydoc${SLOT}:" \
|
||||
-i "${ED}etc/conf.d/pydoc-${SLOT}" "${ED}etc/init.d/pydoc-${SLOT}" || die "sed failed"
|
||||
|
||||
# for python-exec
|
||||
local vars=( EPYTHON PYTHON_SITEDIR PYTHON_SCRIPTDIR )
|
||||
|
||||
# if not using a cross-compiler, use the fresh binary
|
||||
if ! tc-is-cross-compiler; then
|
||||
local -x PYTHON=./python
|
||||
local -x LD_LIBRARY_PATH=${LD_LIBRARY_PATH+${LD_LIBRARY_PATH}:}.
|
||||
else
|
||||
vars=( PYTHON "${vars[@]}" )
|
||||
fi
|
||||
|
||||
python_export "python${SLOT}" "${vars[@]}"
|
||||
echo "EPYTHON='${EPYTHON}'" > epython.py || die
|
||||
python_domodule epython.py
|
||||
|
||||
# python-exec wrapping support
|
||||
local pymajor=${SLOT%.*}
|
||||
mkdir -p "${D}${PYTHON_SCRIPTDIR}" || die
|
||||
# python and pythonX
|
||||
ln -s "../../../bin/python${SLOT}" \
|
||||
"${D}${PYTHON_SCRIPTDIR}/python${pymajor}" || die
|
||||
ln -s "python${pymajor}" \
|
||||
"${D}${PYTHON_SCRIPTDIR}/python" || die
|
||||
# python-config and pythonX-config
|
||||
ln -s "../../../bin/python${SLOT}-config" \
|
||||
"${D}${PYTHON_SCRIPTDIR}/python${pymajor}-config" || die
|
||||
ln -s "python${pymajor}-config" \
|
||||
"${D}${PYTHON_SCRIPTDIR}/python-config" || die
|
||||
# 2to3, pydoc, pyvenv
|
||||
ln -s "../../../bin/2to3-${SLOT}" \
|
||||
"${D}${PYTHON_SCRIPTDIR}/2to3" || die
|
||||
ln -s "../../../bin/pydoc${SLOT}" \
|
||||
"${D}${PYTHON_SCRIPTDIR}/pydoc" || die
|
||||
# idle
|
||||
if use tk; then
|
||||
ln -s "../../../bin/idle${SLOT}" \
|
||||
"${D}${PYTHON_SCRIPTDIR}/idle" || die
|
||||
fi
|
||||
}
|
||||
|
||||
eselect_python_update() {
|
||||
if [[ -z "$(eselect python show)" || ! -f "${EROOT}usr/bin/$(eselect python show)" ]]; then
|
||||
eselect python update
|
||||
fi
|
||||
|
||||
if [[ -z "$(eselect python show --python${PV%%.*})" || ! -f "${EROOT}usr/bin/$(eselect python show --python${PV%%.*})" ]]; then
|
||||
eselect python update --python${PV%%.*}
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
eselect_python_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
eselect_python_update
|
||||
}
|
@ -0,0 +1,362 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
WANT_LIBTOOL="none"
|
||||
|
||||
inherit autotools eutils flag-o-matic multilib pax-utils python-utils-r1 toolchain-funcs
|
||||
|
||||
MY_P="Python-${PV/_/}"
|
||||
PATCHSET_VERSION="3.5.4-0"
|
||||
|
||||
DESCRIPTION="An interpreted, interactive, object-oriented programming language"
|
||||
HOMEPAGE="https://www.python.org/"
|
||||
SRC_URI="https://www.python.org/ftp/python/${PV%_rc*}/${MY_P}.tar.xz
|
||||
https://dev.gentoo.org/~floppym/python/python-gentoo-patches-${PATCHSET_VERSION}.tar.xz"
|
||||
|
||||
LICENSE="PSF-2"
|
||||
SLOT="3.5/3.5m"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="build elibc_uclibc examples gdbm hardened ipv6 libressl +ncurses +readline sqlite +ssl +threads tk wininst +xml"
|
||||
|
||||
# Do not add a dependency on dev-lang/python to this ebuild.
|
||||
# If you need to apply a patch which requires python for bootstrapping, please
|
||||
# run the bootstrap code on your dev box and include the results in the
|
||||
# patchset. See bug 447752.
|
||||
|
||||
RDEPEND="app-arch/bzip2:0=
|
||||
app-arch/xz-utils:0=
|
||||
>=sys-libs/zlib-1.1.3:0=
|
||||
virtual/libffi
|
||||
virtual/libintl
|
||||
gdbm? ( sys-libs/gdbm:0=[berkdb] )
|
||||
ncurses? (
|
||||
>=sys-libs/ncurses-5.2:0=
|
||||
readline? ( >=sys-libs/readline-4.1:0= )
|
||||
)
|
||||
sqlite? ( >=dev-db/sqlite-3.3.8:3= )
|
||||
ssl? (
|
||||
!libressl? ( dev-libs/openssl:0= )
|
||||
libressl? ( dev-libs/libressl:= )
|
||||
)
|
||||
tk? (
|
||||
>=dev-lang/tcl-8.0:0=
|
||||
>=dev-lang/tk-8.0:0=
|
||||
dev-tcltk/blt:0=
|
||||
dev-tcltk/tix
|
||||
)
|
||||
xml? ( >=dev-libs/expat-2.1:0= )
|
||||
!!<sys-apps/sandbox-2.6-r1"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
!sys-devel/gcc[libffi(-)]"
|
||||
RDEPEND+=" !build? ( app-misc/mime-types )"
|
||||
PDEPEND=">=app-eselect/eselect-python-20140125-r1"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
PYVER=${SLOT%/*}
|
||||
|
||||
src_prepare() {
|
||||
# Ensure that internal copies of expat, libffi and zlib are not used.
|
||||
rm -fr Modules/expat
|
||||
rm -fr Modules/_ctypes/libffi*
|
||||
rm -fr Modules/zlib
|
||||
|
||||
if tc-is-cross-compiler; then
|
||||
# Invokes BUILDPYTHON, which is built for the host arch
|
||||
local EPATCH_EXCLUDE="*_regenerate_platform-specific_modules.patch"
|
||||
fi
|
||||
|
||||
EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
|
||||
epatch "${FILESDIR}/${PN}-3.4.3-ncurses-pkg-config.patch"
|
||||
epatch "${FILESDIR}/${PN}-3.5-distutils-OO-build.patch"
|
||||
|
||||
epatch_user
|
||||
|
||||
sed -i -e "s:@@GENTOO_LIBDIR@@:$(get_libdir):g" \
|
||||
configure.ac \
|
||||
Lib/distutils/command/install.py \
|
||||
Lib/distutils/sysconfig.py \
|
||||
Lib/site.py \
|
||||
Lib/sysconfig.py \
|
||||
Lib/test/test_site.py \
|
||||
Makefile.pre.in \
|
||||
Modules/getpath.c \
|
||||
Modules/Setup.dist \
|
||||
setup.py || die "sed failed to replace @@GENTOO_LIBDIR@@"
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local disable
|
||||
use gdbm || disable+=" gdbm"
|
||||
use ncurses || disable+=" _curses _curses_panel"
|
||||
use readline || disable+=" readline"
|
||||
use sqlite || disable+=" _sqlite3"
|
||||
use ssl || export PYTHON_DISABLE_SSL="1"
|
||||
use tk || disable+=" _tkinter"
|
||||
use xml || disable+=" _elementtree pyexpat" # _elementtree uses pyexpat.
|
||||
export PYTHON_DISABLE_MODULES="${disable}"
|
||||
|
||||
if ! use xml; then
|
||||
ewarn "You have configured Python without XML support."
|
||||
ewarn "This is NOT a recommended configuration as you"
|
||||
ewarn "may face problems parsing any XML documents."
|
||||
fi
|
||||
|
||||
if [[ -n "${PYTHON_DISABLE_MODULES}" ]]; then
|
||||
einfo "Disabled modules: ${PYTHON_DISABLE_MODULES}"
|
||||
fi
|
||||
|
||||
if [[ "$(gcc-major-version)" -ge 4 ]]; then
|
||||
append-flags -fwrapv
|
||||
fi
|
||||
|
||||
filter-flags -malign-double
|
||||
|
||||
# https://bugs.gentoo.org/show_bug.cgi?id=50309
|
||||
if is-flagq -O3; then
|
||||
is-flagq -fstack-protector-all && replace-flags -O3 -O2
|
||||
use hardened && replace-flags -O3 -O2
|
||||
fi
|
||||
|
||||
# Export CXX so it ends up in /usr/lib/python3.X/config/Makefile.
|
||||
tc-export CXX
|
||||
|
||||
# The configure script fails to use pkg-config correctly.
|
||||
# http://bugs.python.org/issue15506
|
||||
export ac_cv_path_PKG_CONFIG=$(tc-getPKG_CONFIG)
|
||||
|
||||
# Set LDFLAGS so we link modules with -lpython3.2 correctly.
|
||||
# Needed on FreeBSD unless Python 3.2 is already installed.
|
||||
# Please query BSD team before removing this!
|
||||
append-ldflags "-L."
|
||||
|
||||
local dbmliborder
|
||||
if use gdbm; then
|
||||
dbmliborder+="${dbmliborder:+:}gdbm"
|
||||
fi
|
||||
|
||||
BUILD_DIR="${WORKDIR}/${CHOST}"
|
||||
mkdir -p "${BUILD_DIR}" || die
|
||||
cd "${BUILD_DIR}" || die
|
||||
|
||||
local myeconfargs=(
|
||||
--with-fpectl
|
||||
--enable-shared
|
||||
$(use_enable ipv6)
|
||||
$(use_with threads)
|
||||
--infodir='${prefix}/share/info'
|
||||
--mandir='${prefix}/share/man'
|
||||
--with-computed-gotos
|
||||
--with-dbmliborder="${dbmliborder}"
|
||||
--with-libc=
|
||||
--enable-loadable-sqlite-extensions
|
||||
--without-ensurepip
|
||||
--with-system-expat
|
||||
--with-system-ffi
|
||||
)
|
||||
|
||||
ECONF_SOURCE="${S}" OPT="" econf "${myeconfargs[@]}"
|
||||
|
||||
if use threads && grep -q "#define POSIX_SEMAPHORES_NOT_ENABLED 1" pyconfig.h; then
|
||||
eerror "configure has detected that the sem_open function is broken."
|
||||
eerror "Please ensure that /dev/shm is mounted as a tmpfs with mode 1777."
|
||||
die "Broken sem_open function (bug 496328)"
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Ensure sed works as expected
|
||||
# https://bugs.gentoo.org/594768
|
||||
local -x LC_ALL=C
|
||||
|
||||
cd "${BUILD_DIR}" || die
|
||||
|
||||
emake CPPFLAGS= CFLAGS= LDFLAGS=
|
||||
|
||||
# Work around bug 329499. See also bug 413751 and 457194.
|
||||
if has_version dev-libs/libffi[pax_kernel]; then
|
||||
pax-mark E python
|
||||
else
|
||||
pax-mark m python
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# Tests will not work when cross compiling.
|
||||
if tc-is-cross-compiler; then
|
||||
elog "Disabling tests due to crosscompiling."
|
||||
return
|
||||
fi
|
||||
|
||||
cd "${BUILD_DIR}" || die
|
||||
|
||||
# Skip failing tests.
|
||||
local skipped_tests="gdb"
|
||||
|
||||
for test in ${skipped_tests}; do
|
||||
mv "${S}"/Lib/test/test_${test}.py "${T}"
|
||||
done
|
||||
|
||||
local -x PYTHONDONTWRITEBYTECODE=
|
||||
emake test EXTRATESTOPTS="-u-network" CPPFLAGS= CFLAGS= LDFLAGS= < /dev/tty
|
||||
local result=$?
|
||||
|
||||
for test in ${skipped_tests}; do
|
||||
mv "${T}/test_${test}.py" "${S}"/Lib/test
|
||||
done
|
||||
|
||||
elog "The following tests have been skipped:"
|
||||
for test in ${skipped_tests}; do
|
||||
elog "test_${test}.py"
|
||||
done
|
||||
|
||||
elog "If you would like to run them, you may:"
|
||||
elog "cd '${EPREFIX}/usr/$(get_libdir)/python${PYVER}/test'"
|
||||
elog "and run the tests separately."
|
||||
|
||||
if [[ ${result} -ne 0 ]]; then
|
||||
die "emake test failed"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local libdir=${ED}/usr/$(get_libdir)/python${PYVER}
|
||||
|
||||
cd "${BUILD_DIR}" || die
|
||||
|
||||
emake DESTDIR="${D}" altinstall
|
||||
|
||||
sed \
|
||||
-e "s/\(CONFIGURE_LDFLAGS=\).*/\1/" \
|
||||
-e "s/\(PY_LDFLAGS=\).*/\1/" \
|
||||
-i "${libdir}/config-${PYVER}"*/Makefile || die "sed failed"
|
||||
|
||||
# Fix collisions between different slots of Python.
|
||||
rm -f "${ED}usr/$(get_libdir)/libpython3.so"
|
||||
|
||||
# Cheap hack to get version with ABIFLAGS
|
||||
local abiver=$(cd "${ED}usr/include"; echo python*)
|
||||
if [[ ${abiver} != python${PYVER} ]]; then
|
||||
# Replace python3.X with a symlink to python3.Xm
|
||||
rm "${ED}usr/bin/python${PYVER}" || die
|
||||
dosym "${abiver}" "/usr/bin/python${PYVER}"
|
||||
# Create python3.X-config symlink
|
||||
dosym "${abiver}-config" "/usr/bin/python${PYVER}-config"
|
||||
# Create python-3.5m.pc symlink
|
||||
dosym "python-${PYVER}.pc" "/usr/$(get_libdir)/pkgconfig/${abiver/${PYVER}/-${PYVER}}.pc"
|
||||
fi
|
||||
|
||||
# python seems to get rebuilt in src_install (bug 569908)
|
||||
# Work around it for now.
|
||||
if has_version dev-libs/libffi[pax_kernel]; then
|
||||
pax-mark E "${ED}usr/bin/${abiver}"
|
||||
else
|
||||
pax-mark m "${ED}usr/bin/${abiver}"
|
||||
fi
|
||||
|
||||
use elibc_uclibc && rm -fr "${libdir}/test"
|
||||
use sqlite || rm -fr "${libdir}/"{sqlite3,test/test_sqlite*}
|
||||
use tk || rm -fr "${ED}usr/bin/idle${PYVER}" "${libdir}/"{idlelib,tkinter,test/test_tk*}
|
||||
|
||||
use threads || rm -fr "${libdir}/multiprocessing"
|
||||
use wininst || rm -f "${libdir}/distutils/command/"wininst-*.exe
|
||||
|
||||
dodoc "${S}"/Misc/{ACKS,HISTORY,NEWS}
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}/examples
|
||||
find "${S}"/Tools -name __pycache__ -print0 | xargs -0 rm -fr
|
||||
doins -r "${S}"/Tools
|
||||
fi
|
||||
insinto /usr/share/gdb/auto-load/usr/$(get_libdir) #443510
|
||||
local libname=$(printf 'e:\n\t@echo $(INSTSONAME)\ninclude Makefile\n' | \
|
||||
emake --no-print-directory -s -f - 2>/dev/null)
|
||||
newins "${S}"/Tools/gdb/libpython.py "${libname}"-gdb.py
|
||||
|
||||
newconfd "${FILESDIR}/pydoc.conf" pydoc-${PYVER}
|
||||
newinitd "${FILESDIR}/pydoc.init" pydoc-${PYVER}
|
||||
sed \
|
||||
-e "s:@PYDOC_PORT_VARIABLE@:PYDOC${PYVER/./_}_PORT:" \
|
||||
-e "s:@PYDOC@:pydoc${PYVER}:" \
|
||||
-i "${ED}etc/conf.d/pydoc-${PYVER}" "${ED}etc/init.d/pydoc-${PYVER}" || die "sed failed"
|
||||
|
||||
# for python-exec
|
||||
local vars=( EPYTHON PYTHON_SITEDIR PYTHON_SCRIPTDIR )
|
||||
|
||||
# if not using a cross-compiler, use the fresh binary
|
||||
if ! tc-is-cross-compiler; then
|
||||
local -x PYTHON=./python
|
||||
local -x LD_LIBRARY_PATH=${LD_LIBRARY_PATH+${LD_LIBRARY_PATH}:}.
|
||||
else
|
||||
vars=( PYTHON "${vars[@]}" )
|
||||
fi
|
||||
|
||||
python_export "python${PYVER}" "${vars[@]}"
|
||||
echo "EPYTHON='${EPYTHON}'" > epython.py || die
|
||||
python_domodule epython.py
|
||||
|
||||
# python-exec wrapping support
|
||||
local pymajor=${PYVER%.*}
|
||||
mkdir -p "${D}${PYTHON_SCRIPTDIR}" || die
|
||||
# python and pythonX
|
||||
ln -s "../../../bin/${abiver}" \
|
||||
"${D}${PYTHON_SCRIPTDIR}/python${pymajor}" || die
|
||||
ln -s "python${pymajor}" \
|
||||
"${D}${PYTHON_SCRIPTDIR}/python" || die
|
||||
# python-config and pythonX-config
|
||||
# note: we need to create a wrapper rather than symlinking it due
|
||||
# to some random dirname(argv[0]) magic performed by python-config
|
||||
cat > "${D}${PYTHON_SCRIPTDIR}/python${pymajor}-config" <<-EOF || die
|
||||
#!/bin/sh
|
||||
exec "${abiver}-config" "\${@}"
|
||||
EOF
|
||||
chmod +x "${D}${PYTHON_SCRIPTDIR}/python${pymajor}-config" || die
|
||||
ln -s "python${pymajor}-config" \
|
||||
"${D}${PYTHON_SCRIPTDIR}/python-config" || die
|
||||
# 2to3, pydoc, pyvenv
|
||||
ln -s "../../../bin/2to3-${PYVER}" \
|
||||
"${D}${PYTHON_SCRIPTDIR}/2to3" || die
|
||||
ln -s "../../../bin/pydoc${PYVER}" \
|
||||
"${D}${PYTHON_SCRIPTDIR}/pydoc" || die
|
||||
ln -s "../../../bin/pyvenv-${PYVER}" \
|
||||
"${D}${PYTHON_SCRIPTDIR}/pyvenv" || die
|
||||
# idle
|
||||
if use tk; then
|
||||
ln -s "../../../bin/idle${PYVER}" \
|
||||
"${D}${PYTHON_SCRIPTDIR}/idle" || die
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if has_version "<${CATEGORY}/${PN}-${PYVER}" && ! has_version ">=${CATEGORY}/${PN}-${PYVER}_alpha"; then
|
||||
python_updater_warning="1"
|
||||
fi
|
||||
}
|
||||
|
||||
eselect_python_update() {
|
||||
if [[ -z "$(eselect python show)" || ! -f "${EROOT}usr/bin/$(eselect python show)" ]]; then
|
||||
eselect python update
|
||||
fi
|
||||
|
||||
if [[ -z "$(eselect python show --python${PV%%.*})" || ! -f "${EROOT}usr/bin/$(eselect python show --python${PV%%.*})" ]]; then
|
||||
eselect python update --python${PV%%.*}
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
eselect_python_update
|
||||
|
||||
if [[ "${python_updater_warning}" == "1" ]]; then
|
||||
ewarn "You have just upgraded from an older version of Python."
|
||||
ewarn
|
||||
ewarn "Please adjust PYTHON_TARGETS (if so desired), and run emerge with the --newuse or --changed-use option to rebuild packages installing python modules."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
eselect_python_update
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
DIST libatasmart-0.19.tar.xz 251204 SHA256 61f0ea345f63d28ab2ff0dc352c22271661b66bf09642db3a4049ac9dbdb0f8d SHA512 ec9edb019c477873b01289ba365ad0ed0946505d651c1f6f83a63ef61b3976a5db6439c8a0c74d9a55325db9a3a587ad6f655f8d1af9387b0d08356eccabdb62 WHIRLPOOL edb1296494806bbc83054110a12f703e428cfe4f340936b4393d226c702a15e97e5c6c82310fbb745d288202a9036d15eed7dd8b1ef982391dc579814db2669e
|
||||
DIST libatasmart_0.19-2.debian.tar.gz 6511 SHA256 dcfe568cd42d952b1eb633894e213f913564a0e0e62e24ae37a4578bc420ac25 SHA512 78e86b0c1d2a56dddc8d9ac97ee325871e319ad2226f1fbd5a048d792cd05e5d8162d282c1f767086da5329cd1ee67b37fbb5a2fd3c950f84e9efab11abcf754 WHIRLPOOL 127e381b100076b9c343603d4ea76cd98264643db2f3240da4a3005a3514365ff0d15f1994e99c2b06c133640f04cc68f9fdb17e7f814a3520cb9b5591a0f8a6
|
||||
EBUILD libatasmart-0.19-r1.ebuild 947 SHA256 e4d58848c79c9d719d5a35df4465bd5f4873d7aa76eeb431d950fd5912e80f85 SHA512 9f01383cfd7db79cfa99d76f9a8b8c6fd2eb91d329c1b99ef32103c107fe731286b6103fa4748e304787ef16ff41e10d16db2b29788966b1854a19e7f6e478b0 WHIRLPOOL 14b4ad1a64d2c7366e9dc80e9984744e1c321ce43c646878543f9a4d6110b8bae3535426fb9314737712097c7ad606139ebd2885bf9ceefc46c31f994f870937
|
||||
EBUILD libatasmart-0.19-r2.ebuild 969 SHA256 4784a0707fb6dafe6569ea183cc0ded0f8569c42805162dd8969d1042a6840d2 SHA512 2ec8a04409eaee20a1606e2e142a9727d1bd5a81a5edc89f9195c2c7c39c4ed4e74e68ee45b067b6d71b23f229c75543e13a70a3d245f3cf72c81d66c1605bf6 WHIRLPOOL 863a3136ededd842bb64bb4378958462c111c1b54643229b199cbed60b584e3ccd10605e1906b87eeaa6c8e5f60b57b5bf64fadedf8c2dc5326ab6ff94d369da
|
||||
EBUILD libatasmart-0.19-r2.ebuild 968 SHA256 e2c48d859165f8dd1c6187fec68be32bfc868416d8ee805c03e38929d414d1fe SHA512 412dd5f193902480fd96737b5f30266f3bb95b723bc2a5f8a40ec082187414357531c4a7222e3d91f268d9513a23cc414361b17778db3ac96dac6dbd3214ec2b WHIRLPOOL 5e8fd69d702e6991e0d1951b672ad204d587b2d5bdd2f0ca526c50736fdc9ba414b3e5fb78a1769233cae8e694678202d5f918f9abcf7f95fc5c77c239d368c1
|
||||
MISC ChangeLog 3267 SHA256 4ec50624502888be40b259e36c00bf3cb6e38727bb86d40c4e21eca4f5bae34e SHA512 2dae7f524871fe7a52abec8bcccb9c85df9f9d04ca7330c0f54f1256a118f9a57751612dcb864e8f6ad61d7bdb18c394bd14fdd0222fdaca3a31e988c6341863 WHIRLPOOL ea90a355df96ff1f493ee92bb8ffa7f0e8994560ff5f46dfcd0db89f37d200a4d3240fa62e28763e92f97d680d41629de613ccafd0909f22c1be26cbcf8fd10e
|
||||
MISC ChangeLog-2015 6106 SHA256 338faee31bf33c444c9a0d7f1d6555bf444d408d07942857a2c025e521c5ed86 SHA512 f397e11b91b81010bba91d88f5bb1b5bb00ae9ba28078e0d28400810ed6eea67ddcaa704b5b24db606bc79fdf6dd2489972a55fd8f8ff28d0c9eca86751e8ba0 WHIRLPOOL 748a7eabc16539660d7da2e49ef33cdf9ca3dc9f9c5b105a8781847c630daffa3c1776115f5785f72192d4f4b885dd0c7064f357791014558d035bd24e3da550
|
||||
MISC metadata.xml 232 SHA256 6f828dfe6278daec9b0b3a9eeb589d072d79dba873dca6a50422e554c2f3582c SHA512 21ba416ac701f1c9deb55d07f8afbf9da930fb04d274d84c5cf0df5e549554059959228ee6a4b8523d985fe0762af1a7c36aaefcb0e5b3c7baa5866e2841cfb4 WHIRLPOOL 95b029eb4fea616dbf4f41cb372a67a13b7f5d67d9dad52bc27b4597bd1cf73b00fa34ddd8637495337a469162e3086075e8e69734a2147eb89d940fe048159a
|
||||
|
@ -0,0 +1,36 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DIST_AUTHOR=BDFOY
|
||||
DIST_VERSION=1.131
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="International Standard Music Numbers"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-perl/Tie-Cycle-1.210.0
|
||||
virtual/perl-Scalar-List-Utils
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=virtual/perl-ExtUtils-MakeMaker-6.640.0
|
||||
virtual/perl-File-Spec
|
||||
test? ( >=virtual/perl-Test-Simple-0.950.0 )
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e '/use Test::Manifest/d' \
|
||||
-e '/test_manifest/d' \
|
||||
Makefile.PL || die "Can't defang Test::Manifest"
|
||||
perl-module_src_prepare
|
||||
}
|
||||
|
||||
src_test() {
|
||||
perl_rm_files t/pod.t t/pod_coverage.t
|
||||
perl-module_src_test
|
||||
}
|
@ -1,5 +1,7 @@
|
||||
DIST Business-ISMN-1.13.tar.gz 9703 SHA256 89b598dcde116732f8621b18660fec9a6989b1ad5bf96599b98fbcaecad9a132 SHA512 bad9fdfe16a6b62c823019af4162e0cb2f97dbda8cc5cad01ff3a6e80d22e5fa1d260ef410ad1393d03fc750f7976f06932ac948390cdeb995cc458e1d3cd984 WHIRLPOOL fe1bf9401fa4b973388028451d5cd06df8ac3ccc8887b6ef714b4a1f4e9c0e38a2c65ba8a5a500b55b59ffaa37067ad97e5724e47778a3642138cd6085c7cf55
|
||||
DIST Business-ISMN-1.131.tar.gz 14347 SHA256 8fa479a0c6a846dd3aed86811d57266f07270a0d3abff333188976c2483fccf7 SHA512 affe7112ec6901d93a48823c98ea3d646134d8ebb204777119f4bfae49fd0e76772519e07d35392160e2fbc9845dc2c05ce2554ed0614e53c9dc19859ded6cda WHIRLPOOL ff1edcff30d20340a98c0fc2b259820df9602aae882772146ad52ed538082eabac3b84aa3eddba2a2b08101625100ca55ba73959270438270d15ab9a9fe1655c
|
||||
EBUILD Business-ISMN-1.130.0.ebuild 571 SHA256 5df7a87c759b269a83f9f60d50b0c6390f7388a94cf8f8a749ae53335306da1f SHA512 c082f3578815179156a00f95cf33c7c83e435be2fc0f8c5bebb7740a8812ad231f2f92e8792cc2ea606dea50be41201db0e812704cf9a97641fafac60659f544 WHIRLPOOL 96c623eb54de121a070bd8535de2964ea7ddc2fedc302cae0d8c5f7589d5f44dc6aae6d920c4b1d63f5332db1db9c25b699b984c94e5a2cba655c836996eeea8
|
||||
EBUILD Business-ISMN-1.131.0.ebuild 726 SHA256 a914562271dd21821378ed546283dc440a56c4850ea83af8f8b8e8e2a8ba4444 SHA512 7569d7693ed37d3c87f8dfa9cce4e4ac9d65eff8667e60a586a5c4d7967c55beffc4534bf2143c3cdb1b93b0e07491267f8cbc776131957693efb1881d110212 WHIRLPOOL 2721bdccb33a03043644815f83bbda024c8957b8f353f3174ff5a27a017f1543462f57dfd9a4d5204970dd0010303619f3c6a2097d80e840aa3a9737b57bffa8
|
||||
MISC ChangeLog 2985 SHA256 65334d388f7305b96d9063a164adef13f7f38f277904d0515d55110c9a893e2b SHA512 eed16f80c99e1aa54b3ebb7cd04982ca16ecbdc513fcc52ed5f08f4b758ffdc7eee503284c8f77a0313ef663cff33f4aeca36518813b140988632357144b4850 WHIRLPOOL f9a01f098e0f7d401c7f9e797acc20e18a29aed56a668171a2e762346eb85c020828751906f3bae73c99be5ac70573b78d797f51323a963f3cb786529b54bbfb
|
||||
MISC ChangeLog-2015 755 SHA256 058078de13e46df5fce606d0c15cd1c2362159fd23efd93fb9ca781cf52ebb5a SHA512 015d8aee9662aea1349d68f0b5d630ad51b4fc0697613569e410673b24140a4010b8211985b403c3b95b77f107ec88659f9f9b347ef5a54e2a6d77ebf9bb56fe WHIRLPOOL 728e843829724bebd6f90e74e84e35add5e3c5433e976815597f252117e1eb3d3b341f2fbaf2b56718d07bc0c3240994678cc19b7dfdcb976abb431725eb6176
|
||||
MISC metadata.xml 451 SHA256 9bfdf7523e29618fe9013110aa11add425e7f743361d3e075b13b0ce33056992 SHA512 f9a6a60b617ca184bc57bea95b47f7e965a4f6f0849b77d2ff05d724686733d64714279b1c5b069f3d906267c90a89fadc6e023c4a5b0acac073d0047e67d42a WHIRLPOOL 47687287b021afbe14186d2c7d42febbc50b5474a87e277cd3084a7b693416dca9f49ba770de44bdd28d6ca517f16091ac0f6fbd14376029e8935a7049e504ba
|
||||
|
@ -0,0 +1,26 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
DIST_AUTHOR=BIGPRESH
|
||||
DIST_VERSION=1.11
|
||||
DIST_EXAMPLES=("examples/*")
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="A class for european VAT numbers validation"
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
>=dev-perl/HTTP-Message-1.0.0
|
||||
>=dev-perl/libwww-perl-1.0.0
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/perl-ExtUtils-MakeMaker
|
||||
"
|
||||
src_test() {
|
||||
perl_rm_files t/pod{,-coverage}.t
|
||||
perl-module_src_test
|
||||
}
|
@ -1,7 +1,8 @@
|
||||
AUX Convert-Binary-C-0.780.0-perl-526.patch 5389 SHA256 d2d734dbc5ffbbe172bea1bb386df6204624ca42e508df220acf6b7dd11b22c8 SHA512 c6bffca0fe3bdf47d32821f6fff033828f03c4a26e23c4097556f0134a40e01bc47cae5672707cd875f11b9f63a1877b096eec76349e35e99ba4a1c4284aad4a WHIRLPOOL bb841e3e80b69e97627ed01fe9bf9e4f32150ebd11113e67483c74ed3926ed076253d4b9eb5e81a55e34e98bc48da8d92fc8b1bac1c29672e56a4c1c041eadad
|
||||
DIST Convert-Binary-C-0.77.tar.gz 1562435 SHA256 fe33824fbdd20920658b36e0cd50bcb0d2924c83ab3240b861340d558dd7fc91 SHA512 662f1dc2080f3e432727553067826f09d20f30f0dbe09154eea4cbbdd5020d32f6839806365741e4aa54e8cb85eb948787904204cb2e029b9ec7eae605599d45 WHIRLPOOL 35227fcf1d1833c92ad9ea6a9e28a122307868285f0a7709c7392c6d626477b6e1a9c35a399590303c18f08dc48f35a7e17b6384a5ddb84d39b566dda148c9b8
|
||||
DIST Convert-Binary-C-0.78.tar.gz 1564698 SHA256 24008c3f89117005d308bb2fd2317db6d086a265be6e98855109bbc12a52f2ea SHA512 d9b85ce2ae870c2de6c2fa0838a6b20000ec8d33f19a989f8ebe1b026f2796ae7e924391a0fe387310a3217c75dcd797ea819ff964a9c3e448d007c16d41040c WHIRLPOOL b8511643c2bdc5912a68db90136678d6854a47d4f2061e1835cf1da9d6324dfe9f2650dc032f6ba159ad295ec9bb2e652a9485c7e3357abc8b5f0f853f68395e
|
||||
EBUILD Convert-Binary-C-0.770.0.ebuild 339 SHA256 a79985d305e2758d7db9c4ec241ba91474f98e0c65f0db3a699ac1dceb5f79c6 SHA512 1e825508ebce3bc19df93e75b48a95cc6bd3f56a316cf278cb34e198346137471432db67e5fee0f89d91333923bde7712615a651819adaf703b7ebcfa328342f WHIRLPOOL bf8675a36cafa03fb5ce5f4fbbec6f9dd3204e86c04fd726976a51d661a2c10d534f2e7f96525daed32aa00701539e941c15e89056739b3eb2751d3a5153f9d6
|
||||
EBUILD Convert-Binary-C-0.780.0.ebuild 492 SHA256 9dbb47397510472f48cd8afcb11e0432319181aa7449a012b95f4ea67bab5b7f SHA512 d35e6f48c4c09f4c30faf18da5a3946c3241dcdb326c3e04e1c1d68dac228d01d41e12aaef7dca084e53d8d59b0f47e1c2db64596fb738b92fe707b54f51d561 WHIRLPOOL 001ea6fb40a9d86e48a80ee420b61029abdb960f20434c1844c4c7d1b1d4766a7ae1f0bb2238e08503f12d8c2eac057eb2aeda884c07a69251c0f4cebbd1d616
|
||||
EBUILD Convert-Binary-C-0.780.0-r1.ebuild 537 SHA256 92826e9ee8a9d4d6e77a1c22ef6a393c7162289b970f5bdcedf6e663111d357e SHA512 c828268031aafaf69e73bdda36d7600a3d0d5c457da5c70458b9d14ca1d299014984723ada067e412925c403acbb34c4b71e5d7dfb6458c5d8b46ff7c34596a6 WHIRLPOOL 4d34001152e3560ccf4db27c557e764f497ea9c00476327d0abf8c512df664bcaab33dd39f084c48cfeda442bb92cb3bf5374027499ff2aadec97072275ccaf1
|
||||
MISC ChangeLog 3805 SHA256 442bd681ba6abf4cb5f71218876f9049770816e9190a6be50112aeea3890ede5 SHA512 890f52d076f6501ff5e8e8a4c3b6af7603a5b33d46663a5cabc9a8ef9998a6d790152bb5240019ed4fe120f5669196069afc14c3f3a73155bb7c64c0c589f41c WHIRLPOOL a83b9cfe078e4080d8abe36bec5d53c671af5fcb1f2f7374332d86fc2fcc2064c5b653bec07b61a584025eb0b5020d3b6f1b166fb5e0adb0225ed71019da8167
|
||||
MISC ChangeLog-2015 2223 SHA256 5f4a48e1903f425a0b8431b66d16c59ab1ba7f6b5e4423f95aead5557d1e29e9 SHA512 3a1411d771b54f4f34942b588307cd4aa61b2b0f4505f48e16b5dd889619ab4b29c86001cabc93ad6b77b565cf3a80407e90e8667414027f99e22100ab3091da WHIRLPOOL 5cef1a74eeedd40055d137d7ec3427db8aea0ca1cf44f25a806d47cba77915ddc99f97d68eba0796e88d4d21b428c47b83588f0b0d0bf66fa1871cd8595b47d5
|
||||
MISC metadata.xml 478 SHA256 d631f121a192c419ef5e20870784a54cef87cfbda8bebd559c69e1a179ccd8a9 SHA512 589fee143714f35bf258db7a23b2d7539dd311b891f1c5132a8018f911296aa38fa45237a72be8fcbe38b890fb401d60bcb380cd1793eccfbc4287c114c0cda5 WHIRLPOOL 7f160cade4fdf887088155b174afd0e216404e8798be5d50ec001549a7d738f29b8deb415e0759e0fadf7aa8fcc98d45962ad310b80f3236b0856512da09392f
|
||||
|
@ -0,0 +1,181 @@
|
||||
From 26c2c60f11cf649f348a5af2c15f83525f02bf30 Mon Sep 17 00:00:00 2001
|
||||
From: Kent Fredric <kentfredric@gmail.com>
|
||||
Date: Wed, 20 Sep 2017 08:00:50 +1200
|
||||
Subject: Fix tests for Perl 5.26
|
||||
|
||||
Bug: https://rt.cpan.org/Public/Bug/Display.html?id=121039
|
||||
Bug: https://bugs.gentoo.org/615106
|
||||
Bug: https://github.com/mhx/Convert-Binary-C/pull/6
|
||||
---
|
||||
bin/perltypes.PL | 3 ++-
|
||||
tests/206_parse.t | 4 ++--
|
||||
tests/209_sourcify.t | 2 +-
|
||||
tests/210_depend.t | 2 +-
|
||||
tests/211_clone.t | 2 +-
|
||||
tests/215_local.t | 2 +-
|
||||
tests/218_member.t | 2 +-
|
||||
tests/223_initializer.t | 2 +-
|
||||
tests/230_compiler.t | 2 +-
|
||||
tests/601_speed.t | 2 +-
|
||||
tests/602_threads.t | 2 +-
|
||||
11 files changed, 13 insertions(+), 12 deletions(-)
|
||||
|
||||
diff --git a/bin/perltypes.PL b/bin/perltypes.PL
|
||||
index 09ca5d2..be63ffd 100755
|
||||
--- a/bin/perltypes.PL
|
||||
+++ b/bin/perltypes.PL
|
||||
@@ -21,10 +21,11 @@ print OUT <<'!NO!SUBS!';
|
||||
|
||||
use Convert::Binary::C;
|
||||
use Data::Dumper;
|
||||
+use File::Spec::Functions qw(rel2abs);
|
||||
use strict;
|
||||
|
||||
my $base;
|
||||
--d "$_/include" and $base = "$_/include" and last for qw( tests ../tests );
|
||||
+-d "$_/include" and $base = rel2abs("$_/include") and last for qw( tests ../tests );
|
||||
defined $base or die <<MSG;
|
||||
Please run this script from either the 'examples' directory
|
||||
or the distribution base directory.
|
||||
diff --git a/tests/206_parse.t b/tests/206_parse.t
|
||||
index 6e34d63..a4c403f 100644
|
||||
--- a/tests/206_parse.t
|
||||
+++ b/tests/206_parse.t
|
||||
@@ -13,7 +13,7 @@ $^W = 1;
|
||||
|
||||
BEGIN { plan tests => 116 }
|
||||
|
||||
-my $CCCFG = require 'tests/include/config.pl';
|
||||
+my $CCCFG = require './tests/include/config.pl';
|
||||
|
||||
#===================================================================
|
||||
# create object (1 tests)
|
||||
@@ -140,7 +140,7 @@ ok($s1,329,"incorrect number of typedef identifiers");
|
||||
# check if all sizes are correct (1 big test)
|
||||
#===================================================================
|
||||
|
||||
-do 'tests/include/sizeof.pl';
|
||||
+do './tests/include/sizeof.pl';
|
||||
$max_size = 0;
|
||||
@fail = ();
|
||||
@success = ();
|
||||
diff --git a/tests/209_sourcify.t b/tests/209_sourcify.t
|
||||
index 3fbdae6..0f34e83 100644
|
||||
--- a/tests/209_sourcify.t
|
||||
+++ b/tests/209_sourcify.t
|
||||
@@ -13,7 +13,7 @@ $^W = 1;
|
||||
|
||||
BEGIN { plan tests => 98 }
|
||||
|
||||
-my $CCCFG = require 'tests/include/config.pl';
|
||||
+my $CCCFG = require './tests/include/config.pl';
|
||||
|
||||
eval {
|
||||
$orig = new Convert::Binary::C %$CCCFG;
|
||||
diff --git a/tests/210_depend.t b/tests/210_depend.t
|
||||
index b46fdf7..e2705fd 100644
|
||||
--- a/tests/210_depend.t
|
||||
+++ b/tests/210_depend.t
|
||||
@@ -13,7 +13,7 @@ $^W = 1;
|
||||
|
||||
BEGIN { plan tests => 483 }
|
||||
|
||||
-my $CCCFG = require 'tests/include/config.pl';
|
||||
+my $CCCFG = require './tests/include/config.pl';
|
||||
|
||||
eval {
|
||||
$c1 = new Convert::Binary::C Include => ['tests/include/files'];
|
||||
diff --git a/tests/211_clone.t b/tests/211_clone.t
|
||||
index 252554f..144de70 100644
|
||||
--- a/tests/211_clone.t
|
||||
+++ b/tests/211_clone.t
|
||||
@@ -13,7 +13,7 @@ $^W = 1;
|
||||
|
||||
BEGIN { plan tests => 35 }
|
||||
|
||||
-my $CCCFG = require 'tests/include/config.pl';
|
||||
+my $CCCFG = require './tests/include/config.pl';
|
||||
|
||||
eval {
|
||||
$orig = new Convert::Binary::C %$CCCFG;
|
||||
diff --git a/tests/215_local.t b/tests/215_local.t
|
||||
index dabf7fc..2f2dffe 100644
|
||||
--- a/tests/215_local.t
|
||||
+++ b/tests/215_local.t
|
||||
@@ -15,7 +15,7 @@ BEGIN {
|
||||
plan tests => 10;
|
||||
}
|
||||
|
||||
-my $CCCFG = require 'tests/include/config.pl';
|
||||
+my $CCCFG = require './tests/include/config.pl';
|
||||
|
||||
eval {
|
||||
$c = new Convert::Binary::C;
|
||||
diff --git a/tests/218_member.t b/tests/218_member.t
|
||||
index e212160..7966e44 100644
|
||||
--- a/tests/218_member.t
|
||||
+++ b/tests/218_member.t
|
||||
@@ -15,7 +15,7 @@ BEGIN {
|
||||
plan tests => 1907;
|
||||
}
|
||||
|
||||
-my $CCCFG = require 'tests/include/config.pl';
|
||||
+my $CCCFG = require './tests/include/config.pl';
|
||||
|
||||
%basic = ( char => 1, short => 1, int => 1,
|
||||
long => 1, signed => 1, unsigned => 1,
|
||||
diff --git a/tests/223_initializer.t b/tests/223_initializer.t
|
||||
index a80d741..f1d6b26 100644
|
||||
--- a/tests/223_initializer.t
|
||||
+++ b/tests/223_initializer.t
|
||||
@@ -13,7 +13,7 @@ $^W = 1;
|
||||
|
||||
BEGIN { plan tests => 27 }
|
||||
|
||||
-my $CCCFG = require 'tests/include/config.pl';
|
||||
+my $CCCFG = require './tests/include/config.pl';
|
||||
|
||||
$c = eval { new Convert::Binary::C %$CCCFG };
|
||||
ok($@,'',"failed to create Convert::Binary::C objects");
|
||||
diff --git a/tests/230_compiler.t b/tests/230_compiler.t
|
||||
index 1cc67f1..276275a 100644
|
||||
--- a/tests/230_compiler.t
|
||||
+++ b/tests/230_compiler.t
|
||||
@@ -37,7 +37,7 @@ for my $cur (sort keys %cc) {
|
||||
$bin =~ s/\s+//gms;
|
||||
$bin = pack "H*", $bin;
|
||||
|
||||
- do $cc{$cur}{cfg};
|
||||
+ do "./$cc{$cur}{cfg}";
|
||||
|
||||
my $c = new Convert::Binary::C %config;
|
||||
$c->parse_file('tests/compiler/test.h');
|
||||
diff --git a/tests/601_speed.t b/tests/601_speed.t
|
||||
index 27f1fc9..d399e38 100644
|
||||
--- a/tests/601_speed.t
|
||||
+++ b/tests/601_speed.t
|
||||
@@ -16,7 +16,7 @@ BEGIN {
|
||||
plan tests => 11;
|
||||
}
|
||||
|
||||
-my $CCCFG = require 'tests/include/config.pl';
|
||||
+my $CCCFG = require './tests/include/config.pl';
|
||||
|
||||
eval { require Data::Dumper }; $Data_Dumper = $@;
|
||||
eval { require IO::File }; $IO_File = $@;
|
||||
diff --git a/tests/602_threads.t b/tests/602_threads.t
|
||||
index 8e45b0d..968939b 100644
|
||||
--- a/tests/602_threads.t
|
||||
+++ b/tests/602_threads.t
|
||||
@@ -17,7 +17,7 @@ BEGIN {
|
||||
plan tests => NUM_THREADS
|
||||
}
|
||||
|
||||
-my $CCCFG = require 'tests/include/config.pl';
|
||||
+my $CCCFG = require './tests/include/config.pl';
|
||||
|
||||
#===================================================================
|
||||
# load appropriate threads module and start a couple of threads
|
||||
--
|
||||
2.14.1
|
||||
|
@ -1,3 +1,3 @@
|
||||
DIST Digest-GOST-0.06.tar.gz 39496 SHA256 b2b800f55e407d819de68580cad87038b679be8fc9f3e9ad26430b0ce239a976 SHA512 7df9e5ce9cdc72da417207d197ae41e80ff4405d5fef1f6279a6043708b7688f4ca25c9d634b83a93be633b3ce7e672f6a697bfcc5ffa956379f9375f995e94e WHIRLPOOL 7d0e13a1f1ec76771a5c06897222a2d5ee2528c3124781ee04f3c81f12c14f29c5e03bbbb276c1063e6c692a2df2fe44b05ce2245a1f5e6d74f57af600397498
|
||||
EBUILD Digest-GOST-0.60.0.ebuild 499 SHA256 460926999f78de8d2bcf268eda2f9d1d1c927bcdcc612078725a6fd214f2715d SHA512 510eda9a9247b7842516b50693d156a3fcb205f0b61b35c873238587d16ce0ef47d3f5f4b92941aa8304bde772481f1a95cebe6d277050464e26657ebac4d705 WHIRLPOOL 956ebac2a53a9962515e978e5c1918f8faeeb342a1e048880c57db057a433537e1b6bc2d756cacd200b505d8a090b5d972670b1a696b629a2d16ef8b3fb1930e
|
||||
EBUILD Digest-GOST-0.60.0.ebuild 498 SHA256 65909c8e9aafc5a43efe888440509658b9df7248b5ee052d5b0c7ac56847d3b0 SHA512 16340ae69d9b85e509828be95680d46901365feef290817d080bfab58b698f077a68ce081b72c81f5d8f9cdd0a43740a81e8e73f3fdbf71663ab616c8746e169 WHIRLPOOL c411fe83f9feac1a5da418d50d9b51067b6c932e5410324297e9b11a4ca531133dba0d29697a2a8de69e7d78c728d1eaf35af3db66f50ec27cb7cd6d47da5a3d
|
||||
MISC metadata.xml 464 SHA256 10ce4d5b6fb42e746c1fd288b19422f6c1d124106a09b027b2f1a56eeb02f9ee SHA512 a2f394c73a87325c515b5d2420d85b300e6619d53962f0f68a9ffbbc4e610d281eac1a0d071a5917eadb7361ca9d0886db43f3c8efd3a6cdd9cc43f3c6e83eda WHIRLPOOL cba897ebfe1be6504789ec24a4573a0d593dd7a27767927e3c04cb084dda3e5a388d0d2ced8b542ee927c50560034619848cb2435a729a1a69ee71842f52ff40
|
||||
|
@ -0,0 +1,33 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DIST_AUTHOR=MONSIEURP
|
||||
DIST_VERSION=0.004000
|
||||
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="Readily merge Pull Requests from the Gentoo Github repository"
|
||||
HOMEPAGE="https://github.com/monsieurp/Gentoo-App-Pram"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="
|
||||
virtual/perl-Encode
|
||||
virtual/perl-File-Temp
|
||||
dev-perl/File-Which
|
||||
dev-vcs/git
|
||||
virtual/perl-Getopt-Long
|
||||
virtual/perl-HTTP-Tiny
|
||||
>=dev-perl/IO-Socket-SSL-1.560.0
|
||||
>=dev-perl/Net-SSLeay-1.490.0
|
||||
virtual/perl-Term-ANSIColor
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-perl/Module-Build-Tiny-0.34.0
|
||||
test? (
|
||||
>=virtual/perl-Test-Simple-0.890.0
|
||||
)
|
||||
"
|
@ -1,4 +1,5 @@
|
||||
DIST Gentoo-App-Pram-0.004000.tar.gz 10992 SHA256 47de2c596f7ca43a8cf60d4d075d81ebd9b87f9cf73a74bd5d368145a28bee30 SHA512 2ed50f524702a729a0f7bfc88ee6569e7706151586d1ca63b275868a6584684a1a9c8c58b63e2dd5e0ed98fa8b0395579975adedc031236fd8915cf195e88453 WHIRLPOOL 12df8300deec0d33f531da0628af133626144ece6782f22b6983de51cded0d7d50769dcffb5212dd8b9dff87031ffccaf14b574232affbd0ba952f3d8d4e89d0
|
||||
EBUILD Gentoo-App-Pram-0.4.0-r1.ebuild 701 SHA256 0103cdb24b9dbb56df3ce0b07aecd207612d13c98de26e3f1246d49206073402 SHA512 0898b9957dccc046bebb6a83823cd38095fb98aa8d89af77a0b4e16276055f8f54bd1aa9d6300c8e75ae6e52567b3cdeb16db927d186147788a49a6f8e90ec0b WHIRLPOOL 2680fd70dd7ff921c0fd80e37316f69db891857868c2356e428af6d7e904847d76ef36dd9be889a49110b05572fa275b26ce3244bf59c6ad66e33439b607093e
|
||||
EBUILD Gentoo-App-Pram-0.4.0.ebuild 471 SHA256 d3406c90d26bafec034841b484236b5eccc48513f47f0be2cc34fec30d87bad9 SHA512 21fac1118d121137fba979b6c2bc973927881417bc4df75aa3d389f8c5ab2b6899b05f538707a87e90ee16b19d8a9df09866eff8e3e6f53a4338432cb62ea09a WHIRLPOOL 6f29a9497a37d29acaf74805e67b8fdc249312e6a34f8815f2a7b49046bcaa5729131703e57ea3983ed40453a1e7444a9634b436581bb69b4324c0ec11de23f1
|
||||
MISC ChangeLog 2095 SHA256 4fc0cd6241fe909c92c75209972a3479bf089aa85d57b89ab2d54f0fc88802cc SHA512 fe09e789413dbb1c2168365f7611eb5afd3df466db25761bc30bd65e3550eb9718f46666fa11f4c109fb7bf04e050302eaad25126e26fddbcdcaa51e4ffcb263 WHIRLPOOL 5b82128885945483b2303e39378c5d0bd0016b9e9e329c1e2f52b47a7fc68195f2087dc22d3f4aad15cac1c5722b073b7a2829f18a3f90fc44e767e61d4d113f
|
||||
MISC metadata.xml 588 SHA256 6953c0ee69bd3e3cd60c889a2d79f19f8480a032ae6ac2e61498c6dd232f5e2d SHA512 025fe962b70faee06d6a09532e8ab70b7513572f57d42052c97efa0955eb8f37e944989daed5f9dbe67f7ef155033280f8f2b40cdaaa6b3a8a824383de74a26d WHIRLPOOL 64304b5f45143b6e3907b94271c5d1f1d22c2d2ee86b23a9249fcf27e12211da0bb31ff6882ff14dd2d905bd3faffd6f37d62c618aaf0cbe3fbc8662a86fad71
|
||||
|
@ -1,5 +1,5 @@
|
||||
DIST Net-DNS-SEC-1.02.tar.gz 35915 SHA256 e78090addfd4a5d4068b173e6e071d984ae8b67dd803f8f33b73eb7692085fbf SHA512 cbbf0a4eb6948047a991cf473b0824cfa69c7f7e2d07190fbc9fe62be79106635ebfc02ab02a559079f2936ff354f5ff9275fd16cf37d7bc2d78a87cf0b103b0 WHIRLPOOL 299823533e31d1c90fb637179711053c3a658f8435699acb27f07983a1600b065e025d61f4bbebce5a6808b2c81767ff6665ef5b17b9476d29b28a32deecc704
|
||||
EBUILD Net-DNS-SEC-1.20.0.ebuild 641 SHA256 8a8f2e1285bf8069a39f0c8a15a565f9baaf533620b04f0d3c29f8ea9b74a079 SHA512 8f840fb49bbf8873ffa998b5176174db2b8aac795130e97921a1cff9d77087dd2068fe12e11ceb257ec11f53c486ced2dc9ba4a12b4061603882c3538fe2cafa WHIRLPOOL f5953c7fbd51759603e1f42343c526224e6a9d6d034291810f998a57305dea900df2a8f1b01812c86cb5c34cad834c57002cc89511d885a47d286e1fbb6b6132
|
||||
EBUILD Net-DNS-SEC-1.20.0.ebuild 640 SHA256 69b459160b9460c032dc3585329dd2a3a801166754079f2ae4819228355ef809 SHA512 b63553e1bf7816ccbfde7605014a4b1972bdb75fe52fc01653448a5f1ae759648f12335575e21a3bcb1f37e9e8c79116a687a5b4b6938229b38da96933038075 WHIRLPOOL 3a1da10e3a2180085e57d0e6614445abb836db33b4bf59830ac44df35e20d540161170464e904657dc94c931eb3a10df231f3742c045d1363e6560387069f1ed
|
||||
MISC ChangeLog 2753 SHA256 c9686f057a0052a4a57af055b0dd2694312b8bbdd34437bbf4cd247d29bd58bb SHA512 5f47c3b464fc1466b081905ff2a7e76a76e0fde44f749836ca658f4acf68006377a3317210115ad4290ce7aab6c8d66f0e507ae8d10660a79553a6e63a6777cb WHIRLPOOL 9fd0da7375bd2f9afeea22113ffb3c2d0da478189cfca3ab168ac0839a573127c4d6928e63b257169effce4ece22c9eaa08a372064acef4f60588d02976bb536
|
||||
MISC ChangeLog-2015 385 SHA256 730c4116a81f2a054bfa1dd68d7648c6c9123142335f4e399d2829fd13a94eab SHA512 08ec69ca0656c72a9ee8d17fbe00d36982390554a4f66685f9d0f00178ef92554537f2ee3d11a5a3b047f4dff836ad93408561b55e2da84b7860e383e2931f98 WHIRLPOOL 5828fd17a79acf45d1ebcf0b540cd9fd82e394311a394be3a9836aa56fce69823acf5c4ee273ce40873d284faa3f9cf88f13bbb142b6b82be579a76305abeed9
|
||||
MISC metadata.xml 1211 SHA256 d7cfbcb299eef5778cf9a79aca1629831589982a8530cc487f6afacef91eb3ac SHA512 07a13916b5c7a9f01481df5921ebfda3732df93065836514e68967dac04d742946210a188bc7dfcb1bb975049bd85241cc74d1d96eb79d9f4b62e917eed9134f WHIRLPOOL 5a9630962eb546971a353b5d95c5652c30c4a3218c990297386aba7b6dbf4ef8317a7738c5b4d94f4dbb30d6c48958689eddcf599e9503e3686338cab658a4b2
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue