parent
a0e65dac81
commit
f6a3676c4a
@ -0,0 +1,14 @@
|
||||
DIST consul-template-0.9.0.tar.gz 69085 SHA256 5277cc43b61d531630854d707cd7a51bdd84328d8c30bc330dd2e2aa8898ede8 SHA512 39da6029d818f3ee0b9aba332f0a645c9e381b1115549dcc6945245c4dee53cd3d503e3dc3da4c4394192989798b242994b53e3256755ffe02c4b3c9296139d3 WHIRLPOOL 1ba0d1c2a2a9c8617338901f85916e25460155979dda9604752bc62c289e40d904ad27f2c31ca2491936289519d4f09fe72bbe4c176035880f01c789fdf74db2
|
||||
DIST copystructure-6fc66267e9da7d155a9d3bd489e00dad02666dc6.tar.gz 4028 SHA256 4e7271e88e101ac324f799c421b1c8c1477d1f54048d6b6b1ff3930498870272 SHA512 3c804e126f676cb7a6c5af775b7fdf6a3b591b42315707ebb83a66a96f583eac414e01402bc489d9b218b64db7780f57bd5a4bd922aff59dca068b869f825de5 WHIRLPOOL 3be054304612292adef0361bbd2d94d51c4186d4a66bf949d326345da0f7f5c6f5558c0db62fb1ed1144899155f5c63ceeb9243c267b82605b024cf6898f31ba
|
||||
DIST errwrap-7554cd9344cec97297fa6649b055a8c98c2a1e55.tar.gz 8320 SHA256 e77d6aa78ef6342b21358d689edcd043778c5623af5a9b2690ed8e3fa4ea7db0 SHA512 da45b1696253bebe012f3d0e624a63dd11ad1a613d81cc302f2ea6f096f29a8d81015b9c00363bd2590c4cacc59de52a27e84435a7b4ad6512485cdd87df11c0 WHIRLPOOL 5c6013d852711e001a0eca6a3ad11f64e006be527cfc0b46db21049af97506730b48cfe1b2fac10bcfc66f61dce69023f20b06c83558e80ce337d75a127aa90d
|
||||
DIST go-metrics-a54701ebec11868993bc198c3f315353e9de2ed6.tar.gz 11268 SHA256 2f4206d5d50eaab383cdc4f5c57179e285b93649c028a69dd9e2a4a45b69afe3 SHA512 e3da3f7b98edd32da5c3381afc3e92021b92416d7ea9de0423a05c06bc9ff808e28d29ca9f689c0029809a4b1643819954039516d6ab5890bb5512f5fe99fd6d WHIRLPOOL 815f83ae08bb6a37ee1774a718a8c3b4087ee9a95f190b8a77453f0d1ba1ca88a331e8be12b2f63d0c1fdb9472f2ff35786b94eaf1f61f5cb33fe1e6d9e4e460
|
||||
DIST go-msgpack-71c2886f5a673a35f909803f38ece5810165097b.tar.gz 49485 SHA256 c32b90e67762a375981b38154cae65222bb1aaa7722727d0225d5f8de773e4c8 SHA512 e4141e664c3237f7ab4c283b110d04e933bfb36a9d57af374ab42fed00a4ad6d8399e3399b206eebe76c5e142746412b2ada6c20b1ec09088f3bb7d82a7b01a9 WHIRLPOOL 1434e72897de4063515a0d3319e96b066406c110e3e36f710970886ba6ec9411f71908d9696a4528ee0fcb88bea54ab9c064faa230761ce38b82bb5506a2c073
|
||||
DIST go-multierror-fcdddc395df1ddf4247c69bd436e84cfa0733f7e.tar.gz 8058 SHA256 af90f9be029c091eb011ff25d270772fdb51edf3c6396cf99f224c4e7ad724c3 SHA512 f5cb12407f9bc986867a274c623037edab04f8e2b664c7d4db3bb7e32f970dd073a3d233d18549a5f01b5e88abff0eb0c1fcf79b6696a531c208e6fe8137080e WHIRLPOOL c997792a5c1b3029b32d0fad3a55a281b5ced2bef306367a1fd49df75cab831b93a3752e76f8a18ce5d08e155f66b3826aa5d9878fb9655821cef7a69b71de31
|
||||
DIST go-radix-0bab926c3433cfd6490c6d3c504a7b471362390c.tar.gz 5446 SHA256 f4e628adceee06d7717dce0bf566d5ebd8c009599807f2436b3cda259011b331 SHA512 350904076752e2fda17e9c2891a50b037d2ca165924880d6d5e466b8ed76685d79ff00bbbfbe9a665668e0ebde23c87129d3c1c4bf27ffe0c034df160db9d08f WHIRLPOOL 8571b9e818904a56ea16c35883725013d2009dc294acfdf4f28920a03baff36ffcd3d4d6d8be0ecfc78eefbfeef57e4b2ca224f2ce37d665caae724389346f88
|
||||
DIST go-syslog-42a2b573b664dbf281bd48c3cc12c086b17a39ba.tar.gz 4397 SHA256 378f5249729661db9d0c65030fbf636f6ec1d60ee926e67abf8c6dd7921d3907 SHA512 42257d0599936bb215f4a9f9189518418f02bc43e4d7417823ea460bfc45c6fd1f9b0bf5a35dd73881b57cd9e892c702b813a68fe6e417e82dd31c6635c1b24e WHIRLPOOL 26cf1464bf0899ae9bad0067481f57a121433c5fe7c93fef92523a157d7906b8c1c4216c2a4fe738222e4afaa85fc0a7b7b29149254125a3e8b2e7064add6cb1
|
||||
DIST go-zookeeper-d0e0d8e11f318e000a8cc434616d69e329edc374.tar.gz 24950 SHA256 773f4428d6eb2bcc53726fc2af7f495d30fd6d962ed182b7ec2edc8f8ad55ef3 SHA512 c1ac076b2abf9106c185c29158fdf8b3a74ea41458f336b5ebc2f5f13168ec6f06be14cbc3df61c1307a0fa4381d2f4f7cd8b569411152ae748c7fe12896bd24 WHIRLPOOL 94bb9b02d4c7e8eafa0fce1d6d9b79a6cf8007d9774a42267cb92673a89d9c30e60a7eb4d2cd464fbdc5e2e644649d3a980a3c92d6badfbf092f99a99306729e
|
||||
DIST golang-lru-995efda3e073b6946b175ed93901d729ad47466a.tar.gz 7872 SHA256 cac6e889020e8b31e46d50b98e0af9acbb44bf352ad0ca9d30db79b6235849e2 SHA512 29eee70cbdc9c712d1cece1f911f3a74ebfd44318b91dcd1932f0bff031286f0a80db93772dd04be350c0cca3cc77c0676659ef0f85229f31a1140e23c1fc3f5 WHIRLPOOL c4711d30caf5c2d880aeec7330bc06011dc4e741e305f6dcac8d983734b3706cb5967b06755f7684370ca61a91f356a97c9866ffda0e275e26bb11d3a74d0145
|
||||
DIST hcl-513e04c400ee2e81e97f5e011c08fb42c6f69b84.tar.gz 28692 SHA256 109ec067ff8ff7f30538e0d2ba1384c1fe25694c99d56972003b1c669d19d0b2 SHA512 90f568373d20cccbb56ada29257bd2ea808bbacb668fd1b82e71abf8f5e2592b4a58dc5d3f1174a2b38c660316cd0227eb333e747aae7a846e94168ebe9d2297 WHIRLPOOL cf5685f25d3c3b69d330e30ad089e2cbc9c6636b0f2ac4933638d6bcad06aa5a50f92d5228a1f1ddabd5e0f8187bc5b16f38f4a3bd86bbbf161a5409d5102ec0
|
||||
DIST logutils-367a65d59043b4f846d179341d138f01f988c186.tar.gz 7704 SHA256 9b2173d9277574adbc45400101cb0b65534a5cd3defe62eeb3bff652eeb3e34c SHA512 9a4444fbae3bd1c0b2391981edf2f8155ebdd90a14a367f718bc7bcdced68b37b563ae38141fc3cb35409ff70820bd32b5a44cb218630418bce37f78181ef109 WHIRLPOOL 4973a7ef035807c9ef1135cface87cce4707910e6c33cece87dc8200df5e3d3c351d129ce20214e2cbf6bf58a7b040e9d1c5e12f5414cf37e45890a6a8ec439c
|
||||
DIST mapstructure-442e588f213303bec7936deba67901f8fc8f18b1.tar.gz 12220 SHA256 b4fa5d3b888734f849c5d6784fc1c5749e4ece168fda65c604676fca39c085d2 SHA512 de79f2579a086cccc047b280ae7e2b5dc5f8a95d504ead9d7f0cbaf01e70d37cb4eea8e7ab9aec446a7c2f1771152add3e2e488c18963d63ca3dac43ed2a33b7 WHIRLPOOL ecf8bd2bc9e50bb9e5ad3b6ebb04f5fdc10cf0e515f25d1381bbd1591c074887706b7c25f03a749ff212555fc537534056dab58eaece9357de9045ba2edd9a51
|
||||
DIST reflectwalk-242be0c275dedfba00a616563e6db75ab8f279ec.tar.gz 4290 SHA256 70ccfe92748dcc9e23460f6cedaeb4dd3f4807cc76241298b954beb71448cce6 SHA512 50ceea50f26307903138d5a0e0c395863ae662993a58d2053fce79ca49b0a17f9ba863adcdf4053cd9eb6592c91de02671be486ec4693449439b2b634be55fc1 WHIRLPOOL 4f88fd9ea461838acbf1344be39e9ecc1494ac8ae060917e27f16a6e5b19833b41be23dd8c0638c22933991b802f2f6dfc72e0bb772828bb43b020a08f22f1b1
|
@ -0,0 +1,103 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/consul-template/consul-template-0.9.0.ebuild,v 1.1 2015/05/26 03:54:54 zmedico Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit systemd user
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
DESCRIPTION="Generic template rendering and notifications with Consul"
|
||||
GO_PN="github.com/hashicorp/${PN}"
|
||||
HOMEPAGE="http://${GO_PN}"
|
||||
LICENSE="MPL-2.0"
|
||||
SLOT="0"
|
||||
IUSE="test"
|
||||
|
||||
DEPEND=">=dev-lang/go-1.4
|
||||
test? ( dev-go/go-tools )
|
||||
app-admin/consul
|
||||
app-admin/vault"
|
||||
RDEPEND=""
|
||||
|
||||
SRC_URI="https://${GO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
https://github.com/hashicorp/go-multierror/archive/fcdddc395df1ddf4247c69bd436e84cfa0733f7e.tar.gz -> go-multierror-fcdddc395df1ddf4247c69bd436e84cfa0733f7e.tar.gz
|
||||
https://github.com/armon/go-radix/archive/0bab926c3433cfd6490c6d3c504a7b471362390c.tar.gz -> go-radix-0bab926c3433cfd6490c6d3c504a7b471362390c.tar.gz
|
||||
https://github.com/hashicorp/errwrap/archive/7554cd9344cec97297fa6649b055a8c98c2a1e55.tar.gz -> errwrap-7554cd9344cec97297fa6649b055a8c98c2a1e55.tar.gz
|
||||
https://github.com/armon/go-metrics/archive/a54701ebec11868993bc198c3f315353e9de2ed6.tar.gz -> go-metrics-a54701ebec11868993bc198c3f315353e9de2ed6.tar.gz
|
||||
https://github.com/hashicorp/go-msgpack/archive/71c2886f5a673a35f909803f38ece5810165097b.tar.gz -> go-msgpack-71c2886f5a673a35f909803f38ece5810165097b.tar.gz
|
||||
https://github.com/hashicorp/go-syslog/archive/42a2b573b664dbf281bd48c3cc12c086b17a39ba.tar.gz -> go-syslog-42a2b573b664dbf281bd48c3cc12c086b17a39ba.tar.gz
|
||||
https://github.com/hashicorp/golang-lru/archive/995efda3e073b6946b175ed93901d729ad47466a.tar.gz -> golang-lru-995efda3e073b6946b175ed93901d729ad47466a.tar.gz
|
||||
https://github.com/hashicorp/hcl/archive/513e04c400ee2e81e97f5e011c08fb42c6f69b84.tar.gz -> hcl-513e04c400ee2e81e97f5e011c08fb42c6f69b84.tar.gz
|
||||
https://github.com/hashicorp/logutils/archive/367a65d59043b4f846d179341d138f01f988c186.tar.gz -> logutils-367a65d59043b4f846d179341d138f01f988c186.tar.gz
|
||||
https://github.com/mitchellh/copystructure/archive/6fc66267e9da7d155a9d3bd489e00dad02666dc6.tar.gz -> copystructure-6fc66267e9da7d155a9d3bd489e00dad02666dc6.tar.gz
|
||||
https://github.com/mitchellh/mapstructure/archive/442e588f213303bec7936deba67901f8fc8f18b1.tar.gz -> mapstructure-442e588f213303bec7936deba67901f8fc8f18b1.tar.gz
|
||||
https://github.com/mitchellh/reflectwalk/archive/242be0c275dedfba00a616563e6db75ab8f279ec.tar.gz -> reflectwalk-242be0c275dedfba00a616563e6db75ab8f279ec.tar.gz
|
||||
https://github.com/samuel/go-zookeeper/archive/d0e0d8e11f318e000a8cc434616d69e329edc374.tar.gz -> go-zookeeper-d0e0d8e11f318e000a8cc434616d69e329edc374.tar.gz"
|
||||
STRIP_MASK="*.a"
|
||||
S="${WORKDIR}/src/${GO_PN}"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup ${PN}
|
||||
enewuser ${PN} -1 -1 -1 ${PN}
|
||||
}
|
||||
|
||||
get_archive_go_package() {
|
||||
local archive=${1} uri x
|
||||
for x in ${SRC_URI}; do
|
||||
if [[ ${x} == http* ]]; then
|
||||
uri=${x}
|
||||
elif [[ ${x} == ${archive} ]]; then
|
||||
break
|
||||
fi
|
||||
done
|
||||
uri=${uri#https://}
|
||||
echo ${uri%/archive/*}
|
||||
}
|
||||
|
||||
unpack_go_packages() {
|
||||
local go_package x
|
||||
# Unpack packages to appropriate locations for GOPATH
|
||||
for x in ${A}; do
|
||||
unpack ${x}
|
||||
go_package=$(get_archive_go_package ${x})
|
||||
mkdir -p src/${go_package%/*}
|
||||
mv ${go_package##*/}-* src/${go_package} || die
|
||||
done
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack_go_packages
|
||||
export GOPATH=${WORKDIR}
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
sed -e 's|build: deps|build:|' -e 's|test: deps|test:|' \
|
||||
-i Makefile || die
|
||||
|
||||
# Disable tests that fail under network-sandbox
|
||||
sed -e 's:TestRun_onceFlag(:_\0:' -i cli_test.go || die
|
||||
sed -e 's:TestRunner_quiescence(:_\0:' -i runner_test.go || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local x
|
||||
|
||||
dobin bin/${PN}
|
||||
dodoc README.md
|
||||
|
||||
keepdir /var/log/${PN}
|
||||
fowners ${PN}:${PN} /var/log/${PN}
|
||||
|
||||
newinitd "${FILESDIR}/${PN}.initd" "${PN}"
|
||||
newconfd "${FILESDIR}/${PN}.confd" "${PN}"
|
||||
systemd_dounit "${FILESDIR}/${PN}.service"
|
||||
|
||||
keepdir /etc/${PN}.d
|
||||
insinto /etc/${PN}.d
|
||||
doins "${FILESDIR}/"*.json.example
|
||||
}
|
@ -0,0 +1,69 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/consul-template/consul-template-9999.ebuild,v 1.1 2015/05/26 03:54:54 zmedico Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit git-r3 systemd user
|
||||
|
||||
KEYWORDS=""
|
||||
DESCRIPTION="Generic template rendering and notifications with Consul"
|
||||
GO_PN="github.com/hashicorp/${PN}"
|
||||
HOMEPAGE="http://${GO_PN}"
|
||||
EGIT_REPO_URI="git://${GO_PN}.git"
|
||||
LICENSE="MPL-2.0"
|
||||
SLOT="0"
|
||||
IUSE="test"
|
||||
|
||||
DEPEND=">=dev-lang/go-1.4
|
||||
test? ( dev-go/go-tools )
|
||||
app-admin/consul
|
||||
app-admin/vault"
|
||||
RDEPEND=""
|
||||
|
||||
SRC_URI=""
|
||||
STRIP_MASK="*.a"
|
||||
S="${WORKDIR}/src/${GO_PN}"
|
||||
EGIT_CHECKOUT_DIR="${S}"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup ${PN}
|
||||
enewuser ${PN} -1 -1 -1 ${PN}
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
export GOPATH=${WORKDIR}
|
||||
git-r3_src_unpack
|
||||
go get -d -v ./... $(go list -f '{{range .TestImports}}{{.}} {{end}}' ./...) || die
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
sed -e 's|build: deps|build:|' -e 's|test: deps|test:|' \
|
||||
-i Makefile || die
|
||||
|
||||
# Disable tests that fail under network-sandbox
|
||||
sed -e 's:TestRun_onceFlag(:_\0:' -i cli_test.go || die
|
||||
sed -e 's:TestRunner_quiescence(:_\0:' -i runner_test.go || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local x
|
||||
|
||||
dobin bin/${PN}
|
||||
dodoc README.md
|
||||
|
||||
keepdir /var/log/${PN}
|
||||
fowners ${PN}:${PN} /var/log/${PN}
|
||||
|
||||
newinitd "${FILESDIR}/${PN}.initd" "${PN}"
|
||||
newconfd "${FILESDIR}/${PN}.confd" "${PN}"
|
||||
systemd_dounit "${FILESDIR}/${PN}.service"
|
||||
|
||||
keepdir /etc/${PN}.d
|
||||
insinto /etc/${PN}.d
|
||||
doins "${FILESDIR}/"*.json.example
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
# you can change the init script behavior by setting those parameters
|
||||
# - group (default: consul-template)
|
||||
# - pidfile (default: /run/consul-template/consul-template.pid)
|
||||
# - user (default: consul-template)
|
||||
|
||||
# extra arguments for the consul agent
|
||||
command_args="-config=/etc/consul-template.d"
|
@ -0,0 +1,25 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/consul-template/files/consul-template.initd,v 1.1 2015/05/26 03:54:54 zmedico Exp $
|
||||
|
||||
description="consul-template agent"
|
||||
group=${group:-${SVCNAME}}
|
||||
pidfile=${pidfile:-"/run/${SVCNAME}/${SVCNAME}.pid"}
|
||||
user=${user:-${SVCNAME}}
|
||||
|
||||
command="/usr/bin/${SVCNAME}"
|
||||
command_args="agent -config-dir=/etc/consul-template.d ${command_args}"
|
||||
command_background="true"
|
||||
start_stop_daemon_args="--user ${user} --group ${group} \
|
||||
--stdout /var/log/${SVCNAME}/${SVCNAME}.log \
|
||||
--stderr /var/log/${SVCNAME}/${SVCNAME}.log"
|
||||
|
||||
depend() {
|
||||
need net
|
||||
after net
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
checkpath -d -m 0755 -o "${user}":"${group}" "${pidfile%/*}"
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=consul-template daemon
|
||||
Requires=network-online.target
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
User=consul-template
|
||||
Environment=CONSUL_TEMPLATE_DAEMON_OPTS="-config=/etc/consul-template.d"
|
||||
ExecStart=/usr/bin/consul-template $CONSUL_TEMPLATE_DAEMON_OPTS
|
||||
Restart=on-failure
|
||||
SuccessExitStatus=12
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
@ -0,0 +1 @@
|
||||
consul = "127.0.0.1:8500"
|
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer>
|
||||
<email>zmedico@gentoo.org</email>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
@ -0,0 +1,3 @@
|
||||
DIST gox-0.3.0.tar.gz 13735 SHA256 29dc6b689f670a5444cc54cd9111549ccb01501901bc9197d0e1325a35157802 SHA512 cbc737a780403d1233af10a85b30676e0fcfbfbe99a740d0eff69bef4fd557c65d102c43b3b0dde0b8b935967be8cb33fab50d2baf481d27fa53285be6b1aef2 WHIRLPOOL f3a10a965c4cfe0707bad2f8307162564b00d2b0279d61311445714f28a17d97a4ee4d5a442a7aaaf25b9f44eff656a8b84485bdb0e5776cc7a1014350cff216
|
||||
DIST iochan-b584a329b193e206025682ae6c10cdbe03b0cd77.tar.gz 1110 SHA256 27aa65991036fe736d3c383378e49758097f5a11a20b40f44cc434eac97659f7 SHA512 a4314506416d6ab84c9cd96aeadc8d08c88df8f2a146b1e6a51e5f756c2e2409f39adf274487998d0229a46d81b2d0899717064459966f4dbfa5571cc9e85400 WHIRLPOOL 9fd40b227de5452642696326b0b0a66d95e2ddf738a1b6e7e712e201101bb84cc854161609836cae82515ba95ba1e5efd331ce68abdf79c654a9d7a874f849f3
|
||||
DIST vault-0.1.2.tar.gz 1158880 SHA256 b8d56f1ebd11f5d80a6a6728b6c9ac399c7e507e3e9fe8830966be50ba15d1b3 SHA512 49488d4fac62521e485a623a3f5fa384643e84bb9aff616efec2169d84731f9892b5ffa1ae475ce905032f6f8e816a372535bc328daf4ee5caf0344a3cd2e9bc WHIRLPOOL f1d678145fad5b8a988dacb8aabf02394a81b267aeabdd2a2968c0efc9576997e980800fe0f08fb70d2f6052fce5d9d94c6d46ee0b50d97ca68b404a78c2c381
|
@ -0,0 +1,9 @@
|
||||
backend "consul" {
|
||||
address = "127.0.0.1:8500"
|
||||
path = "vault"
|
||||
}
|
||||
|
||||
listener "tcp" {
|
||||
address = "127.0.0.1:8200"
|
||||
tls_disable = 1
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
# you can change the init script behavior by setting those parameters
|
||||
# - group (default: vault)
|
||||
# - pidfile (default: /run/vault/vault.pid)
|
||||
# - user (default: vault)
|
||||
|
||||
# extra arguments for the consul agent
|
||||
command_args="-config=/etc/consul.d"
|
@ -0,0 +1,25 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/vault/files/vault.initd,v 1.1 2015/05/26 03:17:37 zmedico Exp $
|
||||
|
||||
description="vault server"
|
||||
group=${group:-${SVCNAME}}
|
||||
pidfile=${pidfile:-"/run/${SVCNAME}/${SVCNAME}.pid"}
|
||||
user=${user:-${SVCNAME}}
|
||||
|
||||
command="/usr/sbin/${SVCNAME}"
|
||||
command_args="agent -config-dir=/etc/vault.d ${command_args}"
|
||||
command_background="true"
|
||||
start_stop_daemon_args="--user ${user} --group ${group} \
|
||||
--stdout /var/log/${SVCNAME}/${SVCNAME}.log \
|
||||
--stderr /var/log/${SVCNAME}/${SVCNAME}.log"
|
||||
|
||||
depend() {
|
||||
need net
|
||||
after net
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
checkpath -d -m 0755 -o "${user}":"${group}" "${pidfile%/*}"
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=vault server
|
||||
Requires=network-online.target
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
User=vault
|
||||
Environment=VAULT_SERVER_OPTS="-config=/etc/vault.d"
|
||||
ExecStart=/usr/bin/vault server $VAULT_SERVER_OPTS
|
||||
CapabilityBoundingSet=CAP_IPC_LOCK
|
||||
Capabilities=CAP_IPC_LOCK=eip
|
||||
SecureBits=keep-caps
|
||||
Restart=on-failure
|
||||
SuccessExitStatus=2
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer>
|
||||
<email>zmedico@gentoo.org</email>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
@ -0,0 +1,100 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/vault/vault-0.1.2.ebuild,v 1.1 2015/05/26 03:17:37 zmedico Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit fcaps systemd user
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
DESCRIPTION="A tool for managing secrets"
|
||||
HOMEPAGE="https://vaultproject.io/"
|
||||
GO_PN="github.com/hashicorp/${PN}"
|
||||
LICENSE="MPL-2.0"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=">=dev-lang/go-1.4
|
||||
dev-go/go-oauth2"
|
||||
RDEPEND=""
|
||||
|
||||
SRC_URI="https://${GO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
https://github.com/mitchellh/gox/archive/v0.3.0.tar.gz -> gox-0.3.0.tar.gz
|
||||
https://github.com/mitchellh/iochan/archive/b584a329b193e206025682ae6c10cdbe03b0cd77.tar.gz -> iochan-b584a329b193e206025682ae6c10cdbe03b0cd77.tar.gz"
|
||||
STRIP_MASK="*.a"
|
||||
S="${WORKDIR}/src/${GO_PN}"
|
||||
|
||||
FILECAPS=(
|
||||
-m 755 'cap_ipc_lock=+ei' usr/bin/${PN}
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup ${PN}
|
||||
enewuser ${PN} -1 -1 -1 ${PN}
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
local x
|
||||
|
||||
default
|
||||
mkdir -p src/${GO_PN%/*} || die
|
||||
mv ${P} src/${GO_PN} || die
|
||||
|
||||
# Create a writable GOROOT in order to avoid sandbox violations.
|
||||
export GOROOT="${WORKDIR}/goroot"
|
||||
cp -sR "${EPREFIX}"/usr/lib/go "${GOROOT}" || die
|
||||
rm -rf "${GOROOT}/src/${GO_PN}" || die
|
||||
|
||||
export GOPATH=${WORKDIR}:${WORKDIR}/src/github.com/hashicorp/vault/Godeps/_workspace
|
||||
|
||||
while read -r -d '' x; do
|
||||
rm -rf "${GOROOT}/src/${x}" "${GOROOT}/pkg/${KERNEL}_${ARCH}/${x}"{,.a} || die
|
||||
done < <(find "${WORKDIR}/src/github.com/hashicorp/vault/Godeps/_workspace/src" -maxdepth 3 -mindepth 3 -type d -print0)
|
||||
|
||||
mkdir -p "${GOROOT}/src/github.com/mitchellh" || die
|
||||
rm -rf "${GOROOT}/src/github.com/mitchellh/gox" || die
|
||||
mv gox-0.3.0 "${GOROOT}/src/github.com/mitchellh/gox" || die
|
||||
rm -rf "${GOROOT}/src/github.com/mitchellh/iochan" || die
|
||||
mv iochan-* "${GOROOT}/src/github.com/mitchellh/iochan" || die
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Avoid the need to have a git checkout
|
||||
sed -e 's:^GIT.*::' \
|
||||
-e 's:-ldflags.*:\\:' \
|
||||
-i scripts/build.sh || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
go install -v -x github.com/mitchellh/gox || die
|
||||
PATH=${GOROOT}/bin:${PATH} emake dev
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local x
|
||||
|
||||
newinitd "${FILESDIR}/${PN}.initd" "${PN}"
|
||||
newconfd "${FILESDIR}/${PN}.confd" "${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}
|
||||
find "${WORKDIR}"/{pkg,src} -name '.git*' -exec rm -rf {} \; 2>/dev/null
|
||||
find "${WORKDIR}"/src/${GO_PN} -mindepth 1 -maxdepth 1 -type f -delete
|
||||
while read -r -d '' x; do
|
||||
x=${x#${WORKDIR}/src}
|
||||
[[ -d ${WORKDIR}/pkg/${KERNEL}_${ARCH}/${x} ||
|
||||
-f ${WORKDIR}/pkg/${KERNEL}_${ARCH}/${x}.a ]] && continue
|
||||
rm -rf "${WORKDIR}"/src/${x}
|
||||
done < <(find "${WORKDIR}"/src/${GO_PN} -mindepth 1 -maxdepth 1 -type d -print0)
|
||||
insinto /usr/lib/go/pkg/${KERNEL}_${ARCH}/${GO_PN%/*}
|
||||
doins -r "${WORKDIR}"/pkg/${KERNEL}_${ARCH}/${GO_PN}
|
||||
insinto /usr/lib/go/src/${GO_PN%/*}
|
||||
doins -r "${WORKDIR}"/src/${GO_PN}
|
||||
}
|
@ -0,0 +1,96 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/vault/vault-9999.ebuild,v 1.2 2015/05/26 05:28:24 patrick Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit fcaps git-r3 systemd user
|
||||
|
||||
KEYWORDS=""
|
||||
DESCRIPTION="A tool for managing secrets"
|
||||
HOMEPAGE="https://vaultproject.io/"
|
||||
GO_PN="github.com/hashicorp/${PN}"
|
||||
EGIT_REPO_URI="git://${GO_PN}.git"
|
||||
LICENSE="MPL-2.0"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=">=dev-lang/go-1.4
|
||||
dev-go/go-oauth2"
|
||||
RDEPEND=""
|
||||
|
||||
SRC_URI=""
|
||||
STRIP_MASK="*.a"
|
||||
S="${WORKDIR}/src/${GO_PN}"
|
||||
EGIT_CHECKOUT_DIR="${S}"
|
||||
|
||||
FILECAPS=(
|
||||
-m 755 'cap_ipc_lock=+ei' usr/bin/${PN}
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup ${PN}
|
||||
enewuser ${PN} -1 -1 -1 ${PN}
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
local x
|
||||
|
||||
git-r3_src_unpack
|
||||
|
||||
# Create a writable GOROOT in order to avoid sandbox violations.
|
||||
export GOROOT="${WORKDIR}/goroot"
|
||||
cp -sR "${EPREFIX}"/usr/lib/go "${GOROOT}" || die
|
||||
rm -rf "${GOROOT}/src/${GO_PN}" || die
|
||||
|
||||
export GOPATH=${WORKDIR}:${WORKDIR}/src/github.com/hashicorp/vault/Godeps/_workspace
|
||||
|
||||
while read -r -d '' x; do
|
||||
rm -rf "${GOROOT}/src/${x}" "${GOROOT}/pkg/${KERNEL}_${ARCH}/${x}"{,.a} || die
|
||||
done < <(find "${WORKDIR}/src/github.com/hashicorp/vault/Godeps/_workspace/src" -maxdepth 3 -mindepth 3 -type d -print0)
|
||||
|
||||
rm -rf "${WORKDIR}/src/github.com/hashicorp/vault/Godeps/_workspace/src/github.com/awslabs"
|
||||
go get -d -v -x github.com/awslabs/aws-sdk-go || die
|
||||
|
||||
if ! type -P gox >/dev/null; then
|
||||
pushd "${S}" >/dev/null || die
|
||||
go get -d -v -x github.com/mitchellh/gox || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
go install -v -x github.com/awslabs/aws-sdk-go || die
|
||||
if ! type -P gox >/dev/null; then
|
||||
go install -v -x github.com/mitchellh/gox || die
|
||||
fi
|
||||
PATH=${WORKDIR}/bin:${GOROOT}/bin:${PATH} emake dev
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local x
|
||||
|
||||
newinitd "${FILESDIR}/${PN}.initd" "${PN}"
|
||||
newconfd "${FILESDIR}/${PN}.confd" "${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}
|
||||
find "${WORKDIR}"/{pkg,src} -name '.git*' -exec rm -rf {} \; 2>/dev/null
|
||||
find "${WORKDIR}"/src/${GO_PN} -mindepth 1 -maxdepth 1 -type f -delete
|
||||
while read -r -d '' x; do
|
||||
x=${x#${WORKDIR}/src}
|
||||
[[ -d ${WORKDIR}/pkg/${KERNEL}_${ARCH}/${x} ||
|
||||
-f ${WORKDIR}/pkg/${KERNEL}_${ARCH}/${x}.a ]] && continue
|
||||
rm -rf "${WORKDIR}"/src/${x}
|
||||
done < <(find "${WORKDIR}"/src/${GO_PN} -mindepth 1 -maxdepth 1 -type d -print0)
|
||||
insinto /usr/lib/go/pkg/${KERNEL}_${ARCH}/${GO_PN%/*}
|
||||
doins -r "${WORKDIR}"/pkg/${KERNEL}_${ARCH}/${GO_PN}
|
||||
insinto /usr/lib/go/src/${GO_PN%/*}
|
||||
doins -r "${WORKDIR}"/src/${GO_PN}
|
||||
}
|
@ -1 +1 @@
|
||||
DIST jrobin-1.5.14.tar.bz2 2139781 SHA256 0712f748388c60d38ed4aa0800987d5bf46e975fd86d1b3795abfe589509126c SHA512 85eae86ed0bec97fbeb81e41964e72345434df266f24da68c89c81d15e45b38cdd33a9cdaf5bae9a6854203ca9ea2f7f1619a76ee1dea27e74fbc92ad2281dff WHIRLPOOL c2b129ca0a9f069f3a6455677703e256d26ec160f2b69e727ecb9fedc7ca9b7df7da926162c7b2f56b1bd59c52812058bd61c342813f5747e72790b48a066a0f
|
||||
DIST jrobin-1.6.0-1.tar.gz 7340700 SHA256 0e00afc9b0fdd45bd7e62b3857fc7bd40f08e5f0cf155e0ba614cdabe58fcf5b SHA512 c5428906bf975f6c31f90185da3f0cbcaaff74d68e35e37b5e425340899fe01290d3d9813f1ecd60bd599512e3d62f635de290db9a9a1bd45292ac9c187b15c7 WHIRLPOOL b83007fb4aea92aaad62842b56b4e3bff98ce6ee509684536176420869228c8a86057f03bcebc2a1a637a9ffd2ba794d05756cc479901fff2765ced352ef5d25
|
||||
|
@ -1,39 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/jrobin/jrobin-1.5.14.ebuild,v 1.1 2012/05/07 08:24:39 sera Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="JRobin is a 100% pure Java alternative to RRDTool"
|
||||
HOMEPAGE="http://www.jrobin.org/"
|
||||
SRC_URI="mirror://sourceforge/jrobin/${P}.tar.bz2"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
# Require jdk6. #402485
|
||||
RDEPEND="virtual/jre:1.6"
|
||||
DEPEND="virtual/jdk:1.6"
|
||||
|
||||
java_prepare() {
|
||||
find -name '*.jar' -exec rm -v {} + || die
|
||||
}
|
||||
|
||||
EANT_BUILD_XML="ant/build.xml"
|
||||
EANT_BUILD_TARGET="${PN}"
|
||||
|
||||
src_install() {
|
||||
for jar in convertor inspector ${PN}; do
|
||||
java-pkg_newjar lib/${jar}-*.jar ${jar}.jar
|
||||
done
|
||||
java-pkg_dolauncher ${PN} --main org.jrobin.cmd.RrdCommander
|
||||
|
||||
use source && java-pkg_dosrc src/*
|
||||
use doc && java-pkg_dojavadoc doc/javadoc
|
||||
}
|
@ -0,0 +1,60 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/jrobin/jrobin-1.6.0.ebuild,v 1.1 2015/05/25 20:58:14 chewi Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
|
||||
inherit java-pkg-2 java-pkg-simple
|
||||
|
||||
DESCRIPTION="JRobin is a 100% pure Java alternative to RRDTool"
|
||||
HOMEPAGE="http://www.jrobin.org/"
|
||||
SRC_URI="https://github.com/OpenNMS/${PN}/archive/${P}-1.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND=">=virtual/jre-1.6"
|
||||
DEPEND=">=virtual/jdk-1.6
|
||||
test? ( dev-java/asm:4
|
||||
>=dev-java/cglib-3.1:3
|
||||
dev-java/easymock:3.2
|
||||
dev-java/junit:4
|
||||
dev-java/objenesis:0 )"
|
||||
|
||||
S="${WORKDIR}/${PN}-${P}-1/src"
|
||||
JAVA_SRC_DIR="main/java"
|
||||
|
||||
java_prepare() {
|
||||
find "${WORKDIR}" -name "*.jar" -delete || die
|
||||
|
||||
# The tests need the resources in this directory for some reason.
|
||||
mkdir -p test/java/target/classes || die
|
||||
cd test/java/target/classes || die
|
||||
ln -snf ../../../../main/resources/* . || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
java-pkg-simple_src_compile
|
||||
jar uf "${PN}.jar" -C main/resources . || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg-simple_src_install
|
||||
java-pkg_dolauncher rrdtool --main org.jrobin.cmd.RrdCommander
|
||||
}
|
||||
|
||||
src_test() {
|
||||
cd test/java || die
|
||||
|
||||
local CP=".:${S}/${PN}.jar:$(java-pkg_getjars asm-4,cglib-3,easymock-3.2,junit-4,objenesis)"
|
||||
local TESTS=$(find * -name "*Test.java")
|
||||
TESTS="${TESTS//.java}"
|
||||
TESTS="${TESTS//\//.}"
|
||||
|
||||
ejavac -cp "${CP}" -d . $(find * -name "*.java")
|
||||
ejunit4 -classpath "${CP}" ${TESTS}
|
||||
}
|
@ -1,7 +1,5 @@
|
||||
DIST ocaml-3.11.2.tar.bz2 2346284 SHA256 86f3387a0d7e7c8be2a3c53af083a5a726e333686208d5ea0dd6bb5ac3f58143 SHA512 69888797bdab8f7baa5e398db08a723388876ed5920b62e9bf29a5214badde1c2024365f88bcbd89d43a0c8d9e4d1bd15486e4b12e8432f1c1bcedd17782faaf WHIRLPOOL d1e6d0851f8f1315f95cd0a470bb61dc1d39ec70f2ec23169ffc9aa74b2d02f5419e3474093319cb47125e7534a0d121751fd1971653e43bdca167f823d4c94a
|
||||
DIST ocaml-3.12.1.tar.bz2 2949124 SHA256 edcf563da75e0b91f09765649caa98ab1535e0c7498f0737b5591b7de084958d SHA512 cbb050aabcbe19a4aa070d6cb74f3774cb136692dfd9433ca977f0f9520ad2f583b6cfb1a9cedfedc92e7dc794ac4a869e20aa5a67a4739002feb290435dc7e7 WHIRLPOOL b7bf4844452ab52027e6b785159df6e4defc548d2f3d31eb73dc0dc05214e7c19ed654c8b3ff234a85691599df0be568ba02fafe257856be7f603177584a7ca0
|
||||
DIST ocaml-4.01.0.tar.bz2 3691090 SHA256 b1ca708994180236917ae79e17606da5bd334ca6acd6873a550027e1c0ec874a SHA512 b0a4efa89d0e48e5c01922156a73a8ed67c58efa07170710eaef9de1138e1d6fff8a440b2c81860fc63c604f3a4e189b795bb08a5e9d8df60778fcd468985f6e WHIRLPOOL a31cc2c46e19ca1c5ca65ffdee77ef42b7269b1584f81629e29b725b167c7e3d9eb467a3e8171aaba7d2cf1d8aea31d1822c5631fe3e209ce7731c16112a11d3
|
||||
DIST ocaml-4.02.1.tar.xz 2031244 SHA256 68c4b01be54c23bc20fc0a8beaa5c7433b8483f8950490129cfe7662e0c6f4dc SHA512 79d257210c0ddfb0367250a688ffb58f143fcc8c159f7d6e149d42b074e811eaf69449b66ad39da399e1bdcb2bab5924d195fc7c5ebc29d44cb637c093b9931d WHIRLPOOL 2c9849f73a705a63c0d0d4682d1ab1225a3150f68bda98805dc2d2b11f100ee7206200b9dc49b07d39d1b737f45671f3662a9bf2c069d6795f26e1f9b9b65ead
|
||||
DIST ocaml-patches-1.tar.bz2 3108 SHA256 ad1c252cba7cc50f70d19049fcd78aa359672e436ab9906424548229a04afa49 SHA512 36042cfec68ec06a172f07c7e8ac7904fccd0619a0d5ae2ffc6c87216be7450463fdbeeb9544e5df9d7d93ce9cd52b1502d4b74ee196a911c9f9273bc41d4396 WHIRLPOOL 2f04b3859295973b20bd83e718812f0ab1a993dc143523ebeab7b3d23cfda2bfe0f1eeb2ca1dc1393ae00192337e0cdc9d1472c5681fb719390d337a7d1ddc0e
|
||||
DIST ocaml-patches-3.tar.bz2 4101 SHA256 c4ceb604f4480c78d1cf4f848b0903c8d37798d9761f582d8d1643d4e38b8658 SHA512 8be5c44de5a6b0b7c14723e41d92fe807b881b218cc5eee38ea7519c0f971415cb7fe30035303da275089dcb8a61c4f334c4a88e0bdbced3953503794b8308a7 WHIRLPOOL f1920606785702c44dead01b1426145653bc1931acba2d614c6818baddc051e4f74ca0322cae66ade63ba0cd0df5651cfd67f511fca5f12973b67a0c50ebab6d
|
||||
DIST ocaml-patches-6.tar.bz2 2197 SHA256 7acfa3d056c2b3f7dfc3b1f96a2557d81802c837c2ba0abc1487de10627e5e07 SHA512 88afa904044192b945b537cbfc3c17308e333ed1d241332212b9500d01c14bb306905b03f2b48ec64dd2f428df1f7179772d742b77b4402da108ba7790239bf6 WHIRLPOOL d2001a8a3e799080c3981be87bcef62635c11cab037d6d92da186643614c6e2a568543f82f3566bfb099c063ad344cab2238edf863a9fb02081f4e20f442d9f8
|
||||
|
@ -1,135 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/ocaml/ocaml-3.11.2.ebuild,v 1.9 2014/01/18 13:12:48 gienah Exp $
|
||||
|
||||
EAPI="1"
|
||||
|
||||
inherit flag-o-matic eutils multilib versionator toolchain-funcs
|
||||
|
||||
PATCHLEVEL="1"
|
||||
MY_P="${P/_/+}"
|
||||
DESCRIPTION="Fast modern type-inferring functional programming language descended from the ML family"
|
||||
HOMEPAGE="http://www.ocaml.org/"
|
||||
SRC_URI="ftp://ftp.inria.fr/INRIA/Projects/cristal/ocaml/ocaml-$(get_version_component_range 1-2)/${MY_P}.tar.bz2
|
||||
mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.bz2"
|
||||
|
||||
LICENSE="QPL-1.0 LGPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd"
|
||||
IUSE="emacs gdbm latex ncurses +ocamlopt tk X xemacs"
|
||||
|
||||
RDEPEND="tk? ( >=dev-lang/tk-3.3.3 )
|
||||
ncurses? ( sys-libs/ncurses )
|
||||
X? ( x11-libs/libX11 x11-proto/xproto )
|
||||
gdbm? ( sys-libs/gdbm )"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
PDEPEND="emacs? ( app-emacs/ocaml-mode )
|
||||
xemacs? ( app-xemacs/ocaml )"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
pkg_setup() {
|
||||
# dev-lang/ocaml creates its own objects but calls gcc for linking, which will
|
||||
# results in relocations if gcc wants to create a PIE executable
|
||||
if gcc-specs-pie ; then
|
||||
append-ldflags -nopie
|
||||
ewarn "Ocaml generates its own native asm, you're using a PIE compiler"
|
||||
ewarn "We have appended -nopie to ocaml build options"
|
||||
ewarn "because linking an executable with pie while the objects are not pic will not work"
|
||||
fi
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
|
||||
# Bug #459512
|
||||
epatch "${FILESDIR}/${PN}-4.01.0-pkg-config-ncurses.patch"
|
||||
# Upstream bug: http://caml.inria.fr/mantis/view.php?id=5237
|
||||
epatch "${FILESDIR}/${PN}-3.11.2-Fix-ocamlopt-w.r.t.-binutils-2.21.patch"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
export LC_ALL=C
|
||||
local myconf=""
|
||||
|
||||
# Causes build failures because it builds some programs with -pg,
|
||||
# bug #270920
|
||||
filter-flags -fomit-frame-pointer
|
||||
# Bug #285993
|
||||
filter-mfpmath sse
|
||||
|
||||
# It doesn't compile on alpha without this LDFLAGS
|
||||
use alpha && append-ldflags "-Wl,--no-relax"
|
||||
# Fails to build on arm if >O0 is used
|
||||
use arm && replace-flags "-O?" -O0
|
||||
|
||||
use tk || myconf="${myconf} -no-tk"
|
||||
use ncurses || myconf="${myconf} -no-curses"
|
||||
use X || myconf="${myconf} -no-graph"
|
||||
use gdbm || myconf="${myconf} -no-dbm"
|
||||
|
||||
# ocaml uses a home-brewn configure script, preventing it to use econf.
|
||||
RAW_LDFLAGS="$(raw-ldflags)" ./configure -prefix /usr \
|
||||
--bindir /usr/bin \
|
||||
--libdir /usr/$(get_libdir)/ocaml \
|
||||
--mandir /usr/share/man \
|
||||
-host "${CHOST}" \
|
||||
-cc "$(tc-getCC)" \
|
||||
-as "$(tc-getAS)" \
|
||||
-aspp "$(tc-getCC) -c" \
|
||||
-partialld "$(tc-getLD) -r" \
|
||||
--with-pthread ${myconf} || die "configure failed!"
|
||||
|
||||
emake -j1 world || die "make world failed!"
|
||||
|
||||
# Native code generation can be disabled now
|
||||
if use ocamlopt ; then
|
||||
# bug #279968
|
||||
emake -j1 opt || die "make opt failed!"
|
||||
emake -j1 opt.opt || die "make opt.opt failed!"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make BINDIR="${D}"/usr/bin \
|
||||
LIBDIR="${D}"/usr/$(get_libdir)/ocaml \
|
||||
MANDIR="${D}"/usr/share/man \
|
||||
install || die "make install failed!"
|
||||
|
||||
# Install the compiler libs
|
||||
dodir /usr/$(get_libdir)/ocaml/compiler-libs
|
||||
insinto /usr/$(get_libdir)/ocaml/compiler-libs
|
||||
doins {utils,typing,parsing}/*.{mli,cmi,cmo}
|
||||
use ocamlopt && doins {utils,typing,parsing}/*.{cmx,o}
|
||||
|
||||
# Symlink the headers to the right place
|
||||
dodir /usr/include
|
||||
dosym /usr/$(get_libdir)/ocaml/caml /usr/include/
|
||||
|
||||
# Remove ${D} from ld.conf, as the buildsystem isn't $(DESTDIR) aware
|
||||
dosed "s:${D}::g" /usr/$(get_libdir)/ocaml/ld.conf
|
||||
|
||||
dodoc Changes INSTALL README Upgrading
|
||||
|
||||
# Create and envd entry for latex input files (this definitely belongs into
|
||||
# CONTENT and not in pkg_postinst.
|
||||
if use latex ; then
|
||||
echo "TEXINPUTS=/usr/$(get_libdir)/ocaml/ocamldoc:" > "${T}"/99ocamldoc
|
||||
doenvd "${T}"/99ocamldoc
|
||||
fi
|
||||
|
||||
# Install ocaml-rebuild.sh script rather than keeping it in $PORTDIR
|
||||
dosbin "${FILESDIR}/ocaml-rebuild.sh"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
echo
|
||||
ewarn "OCaml is not binary compatible from version to version, so you"
|
||||
ewarn "need to rebuild all packages depending on it, that are actually"
|
||||
ewarn "installed on your system. To do so, you can run:"
|
||||
ewarn "/usr/sbin/ocaml-rebuild.sh [-h | emerge options]"
|
||||
ewarn "Which will call emerge on all old packages with the given options"
|
||||
echo
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST python-exec-2.0.1.tar.bz2 80965 SHA256 3eddcb0d6c682a5c182c62578bb8d6ce1140a009873747e9ba1bf9de72ed7efd SHA512 0396e2617c759a66b16e57b0ca60b57e03f3c8096ae4a7f2e402eafcbee4ffd839bf0c6e4d259c6ba90940f9ba7e3f191125e395080cce3ef82e5f52053d0462 WHIRLPOOL 50c0cac1c7e2b5d2a21125647874c83caeabee293b87ef01926474d492b79b7837754c2d26173282977e9d00024559bb070f8d76bb5227df1776e937cd280c32
|
||||
DIST python-exec-2.0.2.tar.bz2 82217 SHA256 c411638fe94953c1e8ff57e7b66f601a817633fbc9cb7d410982778042051bb0 SHA512 96198dda88a73b902d617a32f10ddf2ac981b1871fb5eaf5003d77453df8a0aacf299c39c6e49ebaa620994a30e57ee7a1128fb4ba41aa4f503031fa2addef7f WHIRLPOOL 603b494c7b87f0f3f0cfba35378e1a2e231879a01b730657e09ecf798957fa4dfd54a6d852074c2aa9ae3c15e5d1d3203584b8a120e5dd0dee2117319706a5ce
|
||||
|
@ -0,0 +1,37 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/python-exec/python-exec-2.0.2.ebuild,v 1.1 2015/05/26 09:35:01 mgorny Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
# Kids, don't do this at home!
|
||||
inherit python-utils-r1
|
||||
PYTHON_COMPAT=( "${_PYTHON_ALL_IMPLS[@]}" )
|
||||
|
||||
inherit autotools-utils python-r1
|
||||
|
||||
DESCRIPTION="Python script wrapper"
|
||||
HOMEPAGE="https://bitbucket.org/mgorny/python-exec/"
|
||||
SRC_URI="https://www.bitbucket.org/mgorny/${PN}/downloads/${P}.tar.bz2"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="2"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="!<dev-python/python-exec-10000"
|
||||
|
||||
src_configure() {
|
||||
local pyimpls i EPYTHON
|
||||
for i in "${PYTHON_COMPAT[@]}"; do
|
||||
python_export "${i}" EPYTHON
|
||||
pyimpls+=" ${EPYTHON}"
|
||||
done
|
||||
|
||||
local myeconfargs=(
|
||||
--with-eprefix="${EPREFIX}"
|
||||
--with-python-impls="${pyimpls}"
|
||||
)
|
||||
|
||||
autotools-utils_src_configure
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST xerces-c-3.1.1.tar.gz 5051308 SHA256 a42785f71e0b91d5fd273831c87410ce60a73ccfdd207de1b805d26d44968736 SHA512 bf9d139e0d921d59a14813884548380d0f6040cce6759ce45d8af2832720513f2781ea4d88cf73c6d5c5ffe83b17be3ce0cb40cdf536046736fbf9be386e9841 WHIRLPOOL 9c9d6c8f62536b0f2112f8061eb59bd8d4478fc56d32682eb56d1ca85c46d8530c7c9b09dafd8dca718d0a6375198368a3d09e6442ab8508cb8dc12de81fa27d
|
||||
DIST xerces-c-3.1.2.tar.gz 6959894 SHA256 743bd0a029bf8de56a587c270d97031e0099fe2b7142cef03e0da16e282655a0 SHA512 89b61c336b270e124f7773534606706787da02437cf0b9d0374481027eb235692990b99e8ead383cb2d6da52dab2ae5f14fafcf30aba748900e1a0c32957fdc8 WHIRLPOOL 768e6f653345ed30de2b3840f437bd22df381e8c341ddfdaedd08ed48d2331937e2431cdbc503c9d1a9180848cbc6a13f0a0fe359b6d8b7e846f0b49e9e2a43b
|
||||
|
@ -0,0 +1,99 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/xerces-c/xerces-c-3.1.2.ebuild,v 1.1 2015/05/26 09:15:35 pinkbyte Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="A validating XML parser written in a portable subset of C++"
|
||||
HOMEPAGE="http://xerces.apache.org/xerces-c/"
|
||||
SRC_URI="mirror://apache/xerces/c/3/sources/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
|
||||
|
||||
IUSE="cpu_flags_x86_sse2 curl doc elibc_Darwin elibc_FreeBSD iconv icu static-libs threads"
|
||||
|
||||
RDEPEND="icu? ( dev-libs/icu:0= )
|
||||
curl? ( net-misc/curl )
|
||||
virtual/libiconv"
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( app-doc/doxygen )"
|
||||
|
||||
DOCS=( CREDITS KEYS NOTICE README version.incl )
|
||||
|
||||
pkg_setup() {
|
||||
export ICUROOT="/usr"
|
||||
|
||||
if use iconv && use icu ; then
|
||||
ewarn "This package can use iconv or icu for loading messages"
|
||||
ewarn "and transcoding, but not both. ICU will precede."
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
use threads || epatch "${FILESDIR}/3.1.1-disable-thread-tests.patch"
|
||||
|
||||
sed -i \
|
||||
-e 's|$(prefix)/msg|$(DESTDIR)/$(prefix)/share/xerces-c/msg|' \
|
||||
-e 's/@mkdir_p@/@MKDIR_P@/' \
|
||||
src/xercesc/util/MsgLoaders/MsgCatalog/Makefile.in || die
|
||||
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mloader="inmemory"
|
||||
use iconv && mloader="iconv"
|
||||
use icu && mloader="icu"
|
||||
|
||||
local transcoder="gnuiconv"
|
||||
use elibc_FreeBSD && transcoder="iconv"
|
||||
use elibc_Darwin && transcoder="macosunicodeconverter"
|
||||
use icu && transcoder="icu"
|
||||
# for interix maybe: transcoder="windows"
|
||||
|
||||
# 'cfurl' is only available on OSX and 'socket' isn't supposed to work.
|
||||
# But the docs aren't clear about it, so we would need some testing...
|
||||
local netaccessor="socket"
|
||||
use elibc_Darwin && netaccessor="cfurl"
|
||||
use curl && netaccessor="curl"
|
||||
|
||||
econf \
|
||||
--disable-pretty-make \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_enable threads) \
|
||||
--enable-msgloader-${mloader} \
|
||||
--enable-netaccessor-${netaccessor} \
|
||||
--enable-transcoder-${transcoder} \
|
||||
$(use_enable cpu_flags_x86_sse2 sse2)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
|
||||
if use doc ; then
|
||||
cd "${S}/doc"
|
||||
doxygen || die "making docs failed"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install () {
|
||||
default
|
||||
prune_libtool_files
|
||||
|
||||
# To make sure an appropriate NLS msg file is around when using the iconv msgloader
|
||||
# ICU has the messages compiled in.
|
||||
if use iconv && ! use icu ; then
|
||||
doenvd "${FILESDIR}/50xerces-c"
|
||||
fi
|
||||
|
||||
if use doc; then
|
||||
insinto /usr/share/doc/${PF}
|
||||
rm -rf samples/Makefile* samples/runConfigure samples/src/*/Makefile* samples/.libs
|
||||
doins -r samples
|
||||
dohtml -r doc/html/*
|
||||
fi
|
||||
}
|
@ -0,0 +1,51 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/flask-restful/flask-restful-0.3.3.ebuild,v 1.1 2015/05/26 06:46:30 patrick Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Simple framework for creating REST APIs"
|
||||
HOMEPAGE="http://flask-restful.readthedocs.org/ https://github.com/twilio/flask-restful/"
|
||||
SRC_URI="https://github.com/twilio/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc examples paging test"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/aniso8601-0.82[${PYTHON_USEDEP}]
|
||||
>=dev-python/flask-0.8[${PYTHON_USEDEP}]
|
||||
>=dev-python/six-1.3.0[${PYTHON_USEDEP}]
|
||||
dev-python/pytz[${PYTHON_USEDEP}]
|
||||
paging? ( >=dev-python/pycrypto-2.6[${PYTHON_USEDEP}] )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/sphinx[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
dev-python/nose[${PYTHON_USEDEP}]
|
||||
dev-python/pycrypto[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
python_test() {
|
||||
nosetests -v || die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
cd docs || die
|
||||
emake man $(usex doc html "")
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( docs/_build/html/. )
|
||||
use examples && local EXAMPLES=( examples/. )
|
||||
local DOCS=( AUTHORS.md CHANGES.md CONTRIBUTING.md README.md )
|
||||
|
||||
doman docs/_build/man/*
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST gst-python-0.10.22.tar.bz2 632651 SHA256 8f26f519a5bccd770864317e098e5e307fc5ad1201eb96329634b6508b253178 SHA512 bbbd6b661778cca990da0e216294d86da31a6e472049905989a3311459dd1227bf8f2ae3699a3cdbb66a16288569764352f1e1b93e696d3db4b0728bc38e5b12 WHIRLPOOL c6902554bc8f390b5d295d05598ee60fd6b2637d290125d83a48fc40bbd4e6e261a711430259831c96a30fee4c5ec5c89aea444424b117fb5d62c946b0263454
|
||||
DIST gst-python-1.2.1.tar.bz2 410887 SHA256 8823e5a9ffc51212df412652da44dc3f2a0e23295da769de2d111c770280efd4 SHA512 ed318d94831d34687224d82b84735984b946c6f33704e6bda56847b633af06212f394b709257007cec5d3a3597b200fbe6b19eade6b76e7855e8668c5ebc270e WHIRLPOOL 959e976c5a481367eb298d24eed4b3bf125d173662ff30cf02506906c88cd369259e0f5cb2bbd31bae31c39934b4a894d2eae13a5e411301f055aef030dcebbb
|
||||
DIST gst-python-1.4.0.tar.xz 350316 SHA256 b1e40c29ceb41b03f08d38aca6056054f0341d0706276326dceeec6ac8d53d3e SHA512 b970fd16a3b9d82f343fbf20642d165bff25fb815cfe20cc51db8c04c298a8fbd9b96f41811c2d26982eadf1f9a84495c70fbdad553778c68604f828e4773a94 WHIRLPOOL 248d91fc0aac1314c4f7b40866579601a8024c947a29a90b5b6c3585358984f1a50eb6d56aec26609d37fc9144fdf38d5edd7ad61364481d25b7cebfaeff1a96
|
||||
|
@ -0,0 +1,49 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/gst-python/gst-python-1.4.0.ebuild,v 1.1 2015/05/25 17:17:37 eva Exp $
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
|
||||
|
||||
inherit python-r1
|
||||
|
||||
DESCRIPTION="A Python Interface to GStreamer"
|
||||
HOMEPAGE="http://gstreamer.freedesktop.org/"
|
||||
SRC_URI="http://gstreamer.freedesktop.org/src/${PN}/${P}.tar.xz"
|
||||
|
||||
LICENSE="LGPL-2"
|
||||
SLOT="1.0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~x86-solaris"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/libxml2
|
||||
>=dev-python/pygobject-3:3[${PYTHON_USEDEP}]
|
||||
>=media-libs/gstreamer-1.4:1.0
|
||||
>=media-libs/gst-plugins-base-1.4:1.0
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
"
|
||||
# XXX: unittests are not ported to 1.0 yet.
|
||||
|
||||
src_prepare() {
|
||||
prepare_gst() {
|
||||
mkdir -p "${BUILD_DIR}" || die
|
||||
}
|
||||
python_foreach_impl prepare_gst
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
ECONF_SOURCE="${S}" python_foreach_impl run_in_build_dir econf
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
python_foreach_impl run_in_build_dir default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
python_foreach_impl run_in_build_dir default
|
||||
prune_libtool_files --modules
|
||||
einstalldocs
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST keepassx-0.0.3.tar.gz 15041 SHA256 d8cada98caf2aa77472de67efbec9818e5eb9c4e7a2d39a58ac02e5c2553c5ba SHA512 97ca5b00f8f565595ea78f43a152c752e7ae868ba15d8d3c48f3b75e56d266e28e99d1e61badec646f585bdeca42c49c0d2e19efd46bd79e9838d54293f5e784 WHIRLPOOL 89091f89248f0f4bb525e5dc47ccf228d401524968a76cf6605a790b86983ab9cbe0195dd4b067441975ebd9c58067ed4200f689bc3564427fc07d4620567797
|
@ -0,0 +1,33 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/keepassx/keepassx-0.0.3.ebuild,v 1.1 2015/05/26 09:07:43 jlec Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python API and CLI for KeePassX"
|
||||
HOMEPAGE="https://github.com/jamesls/python-keepassx https://pypi.python.org/pypi/keepassx"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/pycrypto[${PYTHON_USEDEP}]
|
||||
dev-python/prettytable[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? ( dev-python/pytest[${PYTHON_USEDEP}] )
|
||||
"
|
||||
|
||||
src_test() {
|
||||
py.test keepassx || die
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>python</herd>
|
||||
<maintainer>
|
||||
<email>jlec@gentoo.org</email>
|
||||
<name>Justin Lecher</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
@ -1,2 +1,3 @@
|
||||
DIST M2Crypto-0.21.1.tar.gz 413563 SHA256 25b94498505c2d800ee465db0cc1aff097b1615adc3ac042a1c85ceca264fc0a SHA512 b261eed84b3bda8a664c065241c2007f6443235a0fbcdd856c5a0b1f015e75662724b72a56e94aeb174414fff5c8dd71dfcb4b18f677f576ab7e30811a8adf9b WHIRLPOOL 88f184452a660cff934371d18e0065974dec3cea052cf78ef0bbecf35ed2ef6d69f8a40016f1b3fbac24fa06697b7e4c5e9e1f6afd20d30ff63fa1c22b69e8d0
|
||||
DIST M2Crypto-0.22.3.tar.gz 74795 SHA256 6071bfc817d94723e9b458a010d565365104f84aa73f7fe11919871f7562ff72 SHA512 c179d3cf03ced77aed24285ca3f1527d5e05bbfe091a1522bff94a940fd390213fbb9b83d7ccd43ceae49626b427ae8790782cf93ead85be1e063bc4121c62e0 WHIRLPOOL 66a9a6e7c9b195814048a1bcecf6ef71a269bebb9dbda73801c88b3ba27330b555a46d05c53bbd0778f9c1e1bb5f9c6e7e860de443bf16baffc2072ee5996e31
|
||||
DIST m2crypto-0.21.1-backports.tar.gz 10385 SHA256 d3f7cefc85b6da2f848b24e033ebab069b759bd27f479ded790090fa1b859919 SHA512 4cf68d92c78d103dc2846c0db6f5253ad5ec270569c51565fa1b9981b9f73cb73a6edcc70a44f4392f2388102b76704c974e82c0f272a9d91ebaf503ea1b6b50 WHIRLPOOL 2eccbe1ba488d6d6425db2c47bef7e318d258fca0dfc702e41a435a90a9173c2cf71767d5ecb057b1a2844d2f047869edbde2241f7c97df2527257065ce40335
|
||||
|
@ -0,0 +1,56 @@
|
||||
From 017d82b1f17446f38339589e25e9aba98f87f9f4 Mon Sep 17 00:00:00 2001
|
||||
From: Mike Gilbert <floppym@gentoo.org>
|
||||
Date: Mon, 25 May 2015 13:09:35 -0400
|
||||
Subject: [PATCH] Gentoo-specific packaging fixes
|
||||
|
||||
Fix cross-compiles
|
||||
EPREFIX support
|
||||
Revert custom build and install classes
|
||||
---
|
||||
setup.py | 11 ++++-------
|
||||
1 file changed, 4 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/setup.py b/setup.py
|
||||
index 0967216..bca474a 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -66,8 +66,8 @@ class _M2CryptoBuildExt(build_ext.build_ext):
|
||||
opensslIncludeDir = os.path.join(self.openssl, 'include', 'openssl')
|
||||
opensslLibraryDir = os.path.join(self.openssl, 'lib')
|
||||
|
||||
- self.swig_opts = ['-I%s' % i for i in self.include_dirs + \
|
||||
- [opensslIncludeDir, includeDir]]
|
||||
+ eprefix = os.getenv('EPREFIX', '')
|
||||
+ self.swig_opts = ['-I' + eprefix + '/usr/include']
|
||||
if get_platform() == 'linux-x86_64':
|
||||
self.swig_opts.append('-D__x86_64__')
|
||||
self.swig_opts.append('-outdir')
|
||||
@@ -76,8 +76,7 @@ class _M2CryptoBuildExt(build_ext.build_ext):
|
||||
#self.swig_opts.append('-D__i386__') # Uncomment for early OpenSSL 0.9.7 versions, or on Fedora Core if build fails
|
||||
#self.swig_opts.append('-DOPENSSL_NO_EC') # Try uncommenting if you can't build with EC disabled
|
||||
|
||||
- self.include_dirs += [os.path.join(self.openssl, opensslIncludeDir),
|
||||
- os.path.join(os.getcwd(), 'SWIG')]
|
||||
+ self.include_dirs += [os.path.join(os.getcwd(), 'SWIG')]
|
||||
|
||||
if sys.platform == 'cygwin':
|
||||
# Cygwin SHOULD work (there's code in distutils), but
|
||||
@@ -87,8 +86,6 @@ class _M2CryptoBuildExt(build_ext.build_ext):
|
||||
# Someday distutils will be fixed and this won't be needed.
|
||||
self.library_dirs += [os.path.join(self.openssl, 'bin')]
|
||||
|
||||
- self.library_dirs += [os.path.join(self.openssl, opensslLibraryDir)]
|
||||
-
|
||||
|
||||
if sys.version_info < (2,4):
|
||||
|
||||
@@ -182,5 +179,5 @@ used to provide SSL for Twisted.''',
|
||||
|
||||
ext_modules = [m2crypto],
|
||||
test_suite='tests.alltests.suite',
|
||||
- cmdclass = {'build': CustomBuild, 'install': CustomInstall, 'build_ext': _M2CryptoBuildExt}
|
||||
+ cmdclass = {'build_ext': _M2CryptoBuildExt}
|
||||
)
|
||||
--
|
||||
2.4.1
|
||||
|
@ -0,0 +1,138 @@
|
||||
From 803188070e486030cb1d2e53692b39305c742b17 Mon Sep 17 00:00:00 2001
|
||||
From: Joe Julian <jjulian@io.com>
|
||||
Date: Tue, 19 May 2015 23:54:08 -0700
|
||||
Subject: [PATCH] Use swig generated python loader
|
||||
|
||||
---
|
||||
.gitignore | 6 +++++-
|
||||
M2Crypto/__init__.py | 4 ++--
|
||||
M2Crypto/m2.py | 4 +---
|
||||
SWIG/_m2crypto.def | 2 +-
|
||||
SWIG/_m2crypto.i | 2 +-
|
||||
setup.py | 25 +++++++++++++++++++++----
|
||||
6 files changed, 31 insertions(+), 12 deletions(-)
|
||||
|
||||
diff --git a/M2Crypto/__init__.py b/M2Crypto/__init__.py
|
||||
index 647e057..38dbbd5 100644
|
||||
--- a/M2Crypto/__init__.py
|
||||
+++ b/M2Crypto/__init__.py
|
||||
@@ -19,7 +19,7 @@ Copyright 2008-2011 Heikki Toivonen. All rights reserved.
|
||||
version_info = (0, 22)
|
||||
version = '.'.join([str(_v) for _v in version_info])
|
||||
|
||||
-import __m2crypto
|
||||
+import m2crypto
|
||||
import m2
|
||||
import ASN1
|
||||
import AuthCookie
|
||||
@@ -47,4 +47,4 @@ import m2xmlrpclib
|
||||
import threading
|
||||
import util
|
||||
|
||||
-__m2crypto.lib_init()
|
||||
+m2crypto.lib_init()
|
||||
diff --git a/M2Crypto/m2.py b/M2Crypto/m2.py
|
||||
index e4bb695..516cadb 100644
|
||||
--- a/M2Crypto/m2.py
|
||||
+++ b/M2Crypto/m2.py
|
||||
@@ -25,7 +25,5 @@ Portions created by Open Source Applications Foundation (OSAF) are
|
||||
Copyright (C) 2004 OSAF. All Rights Reserved.
|
||||
"""
|
||||
|
||||
-from __m2crypto import *
|
||||
+from m2crypto import *
|
||||
lib_init()
|
||||
-
|
||||
-
|
||||
diff --git a/SWIG/_m2crypto.def b/SWIG/_m2crypto.def
|
||||
index 753db2c..3e9d5bc 100644
|
||||
--- a/SWIG/_m2crypto.def
|
||||
+++ b/SWIG/_m2crypto.def
|
||||
@@ -1,2 +1,2 @@
|
||||
EXPORTS
|
||||
-init__m2crypto
|
||||
+init_m2crypto
|
||||
diff --git a/SWIG/_m2crypto.i b/SWIG/_m2crypto.i
|
||||
index 50be5c3..e491222 100644
|
||||
--- a/SWIG/_m2crypto.i
|
||||
+++ b/SWIG/_m2crypto.i
|
||||
@@ -8,7 +8,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
-%module(threads=1) _m2crypto
|
||||
+%module(threads=1) m2crypto
|
||||
/* We really don't need threadblock (PyGILState_Ensure() etc.) anywhere.
|
||||
Disable threadallow as well, only enable it for operations likely to
|
||||
block. */
|
||||
diff --git a/setup.py b/setup.py
|
||||
index bac6f9f..fc89513 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -17,9 +17,22 @@ import os, sys, platform
|
||||
from setuptools import setup
|
||||
from setuptools.command import build_ext
|
||||
|
||||
+from distutils.util import get_platform
|
||||
from distutils.core import Extension
|
||||
from distutils.spawn import find_executable
|
||||
|
||||
+from distutils.command.build import build
|
||||
+from setuptools.command.install import install
|
||||
+
|
||||
+class CustomBuild(build):
|
||||
+ def run(self):
|
||||
+ self.run_command('build_ext')
|
||||
+ build.run(self)
|
||||
+
|
||||
+class CustomInstall(install):
|
||||
+ def run(self):
|
||||
+ self.run_command('build_ext')
|
||||
+ self.do_egg_install()
|
||||
|
||||
class _M2CryptoBuildExt(build_ext.build_ext):
|
||||
'''Specialization of build_ext to enable swig_opts to inherit any
|
||||
@@ -70,11 +83,12 @@ class _M2CryptoBuildExt(build_ext.build_ext):
|
||||
|
||||
self.add_multiarch_paths()
|
||||
|
||||
- opensslIncludeDir = os.path.join(self.openssl, 'include')
|
||||
+ includeDir = os.path.join(self.openssl, 'include')
|
||||
+ opensslIncludeDir = os.path.join(self.openssl, 'include', 'openssl')
|
||||
opensslLibraryDir = os.path.join(self.openssl, 'lib')
|
||||
|
||||
self.swig_opts = ['-I%s' % i for i in self.include_dirs + \
|
||||
- [opensslIncludeDir, os.path.join(opensslIncludeDir, "openssl")]]
|
||||
+ [opensslIncludeDir, includeDir]]
|
||||
self.swig_opts.append('-includeall')
|
||||
self.swig_opts.append('-modern')
|
||||
|
||||
@@ -85,6 +99,9 @@ class _M2CryptoBuildExt(build_ext.build_ext):
|
||||
elif platform.architecture()[0] == '32bit':
|
||||
self.swig_opts.append('-D__i386__')
|
||||
|
||||
+ self.swig_opts.append('-outdir')
|
||||
+ self.swig_opts.append(os.path.join(os.getcwd(),'M2Crypto'))
|
||||
+
|
||||
self.include_dirs += [os.path.join(self.openssl, opensslIncludeDir),
|
||||
os.path.join(os.getcwd(), 'SWIG')]
|
||||
|
||||
@@ -103,7 +120,7 @@ if sys.platform == 'darwin':
|
||||
else:
|
||||
my_extra_compile_args = []
|
||||
|
||||
-m2crypto = Extension(name = 'M2Crypto.__m2crypto',
|
||||
+m2crypto = Extension(name = 'M2Crypto._m2crypto',
|
||||
sources = ['SWIG/_m2crypto.i'],
|
||||
extra_compile_args = ['-DTHREADING'] + my_extra_compile_args,
|
||||
#extra_link_args = ['-Wl,-search_paths_first'], # Uncomment to build Universal Mac binaries
|
||||
@@ -145,5 +162,5 @@ interface.''',
|
||||
|
||||
ext_modules = [m2crypto],
|
||||
test_suite='tests.alltests.suite',
|
||||
- cmdclass = {'build_ext': _M2CryptoBuildExt}
|
||||
+ cmdclass = {'build': CustomBuild, 'install': CustomInstall, 'build_ext': _M2CryptoBuildExt}
|
||||
)
|
||||
--
|
||||
2.4.1
|
||||
|
@ -0,0 +1,68 @@
|
||||
From d307a38515c5d050bbf8555d79aff3e4ce78af78 Mon Sep 17 00:00:00 2001
|
||||
From: Mike Gilbert <floppym@gentoo.org>
|
||||
Date: Mon, 25 May 2015 12:08:47 -0400
|
||||
Subject: [PATCH] Gentoo-specific packaging fixes
|
||||
|
||||
Fix cross-compiles
|
||||
EPREFIX support
|
||||
Revert custom build and install classes
|
||||
---
|
||||
setup.py | 20 ++++----------------
|
||||
1 file changed, 4 insertions(+), 16 deletions(-)
|
||||
|
||||
diff --git a/setup.py b/setup.py
|
||||
index fc89513..806464f 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -81,29 +81,19 @@ class _M2CryptoBuildExt(build_ext.build_ext):
|
||||
|
||||
build_ext.build_ext.finalize_options(self)
|
||||
|
||||
- self.add_multiarch_paths()
|
||||
-
|
||||
includeDir = os.path.join(self.openssl, 'include')
|
||||
opensslIncludeDir = os.path.join(self.openssl, 'include', 'openssl')
|
||||
opensslLibraryDir = os.path.join(self.openssl, 'lib')
|
||||
|
||||
- self.swig_opts = ['-I%s' % i for i in self.include_dirs + \
|
||||
- [opensslIncludeDir, includeDir]]
|
||||
+ eprefix = os.getenv('EPREFIX', '')
|
||||
+ self.swig_opts = ['-I' + eprefix + '/usr/include']
|
||||
self.swig_opts.append('-includeall')
|
||||
self.swig_opts.append('-modern')
|
||||
|
||||
- # Fedora does hat tricks.
|
||||
- if platform.linux_distribution()[0] in ['Fedora', 'CentOS']:
|
||||
- if platform.architecture()[0] == '64bit':
|
||||
- self.swig_opts.append('-D__x86_64__')
|
||||
- elif platform.architecture()[0] == '32bit':
|
||||
- self.swig_opts.append('-D__i386__')
|
||||
-
|
||||
self.swig_opts.append('-outdir')
|
||||
self.swig_opts.append(os.path.join(os.getcwd(),'M2Crypto'))
|
||||
|
||||
- self.include_dirs += [os.path.join(self.openssl, opensslIncludeDir),
|
||||
- os.path.join(os.getcwd(), 'SWIG')]
|
||||
+ self.include_dirs += [os.path.join(os.getcwd(), 'SWIG')]
|
||||
|
||||
if sys.platform == 'cygwin':
|
||||
# Cygwin SHOULD work (there's code in distutils), but
|
||||
@@ -113,8 +103,6 @@ class _M2CryptoBuildExt(build_ext.build_ext):
|
||||
# Someday distutils will be fixed and this won't be needed.
|
||||
self.library_dirs += [os.path.join(self.openssl, 'bin')]
|
||||
|
||||
- self.library_dirs += [os.path.join(self.openssl, opensslLibraryDir)]
|
||||
-
|
||||
if sys.platform == 'darwin':
|
||||
my_extra_compile_args = ["-Wno-deprecated-declarations"]
|
||||
else:
|
||||
@@ -162,5 +150,5 @@ interface.''',
|
||||
|
||||
ext_modules = [m2crypto],
|
||||
test_suite='tests.alltests.suite',
|
||||
- cmdclass = {'build': CustomBuild, 'install': CustomInstall, 'build_ext': _M2CryptoBuildExt}
|
||||
+ cmdclass = {'build_ext': _M2CryptoBuildExt}
|
||||
)
|
||||
--
|
||||
2.4.1
|
||||
|
@ -0,0 +1,45 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/m2crypto/m2crypto-0.21.1-r3.ebuild,v 1.3 2015/05/26 00:35:30 floppym Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
MY_PN="M2Crypto"
|
||||
|
||||
DESCRIPTION="M2Crypto: A Python crypto and SSL toolkit"
|
||||
HOMEPAGE="http://chandlerproject.org/bin/view/Projects/MeTooCrypto http://pypi.python.org/pypi/M2Crypto"
|
||||
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz
|
||||
http://dev.gentoo.org/~floppym/dist/m2crypto-0.21.1-backports.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="doc examples"
|
||||
|
||||
# swig-3.0.5 results in broken constants, #538920
|
||||
RDEPEND=">=dev-libs/openssl-0.9.8:0="
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-lang/swig-1.3.28
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
doc? ( dev-python/epydoc[${PYTHON_USEDEP}] )"
|
||||
|
||||
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||
|
||||
# Tests access network, and fail randomly. Bug #431458.
|
||||
RESTRICT=test
|
||||
|
||||
PATCHES=(
|
||||
"${WORKDIR}"/patch/0.21.1-0001-Fixed-invalid-variable-name.patch
|
||||
"${WORKDIR}"/patch/0.21.1-0002-Fixing-memory-leaks-in-the-SWIG-wrapper.patch
|
||||
"${WORKDIR}"/patch/0.21.1-0003-Use-swig-generated-python-loader.patch
|
||||
"${FILESDIR}"/0.21.1-packaging.patch
|
||||
)
|
||||
|
||||
python_test() {
|
||||
esetup.py test
|
||||
}
|
@ -0,0 +1,42 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/m2crypto/m2crypto-0.22.3-r4.ebuild,v 1.3 2015/05/26 00:28:19 floppym Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
MY_PN="M2Crypto"
|
||||
|
||||
DESCRIPTION="M2Crypto: A Python crypto and SSL toolkit"
|
||||
HOMEPAGE="https://github.com/martinpaljak/M2Crypto http://pypi.python.org/pypi/M2Crypto"
|
||||
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE=""
|
||||
|
||||
# swig-3.0.5 results in broken constants, #538920
|
||||
RDEPEND=">=dev-libs/openssl-0.9.8:0="
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-lang/swig-1.3.28:0
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||
|
||||
# Tests access network, and fail randomly. Bug #431458.
|
||||
RESTRICT=test
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/0.22.3-Use-swig-generated-python-loader.patch
|
||||
"${FILESDIR}"/0.22.3-packaging.patch
|
||||
)
|
||||
|
||||
python_test() {
|
||||
esetup.py test
|
||||
}
|
@ -1,2 +1,2 @@
|
||||
DIST prettytable-0.6.tar.gz 19663 SHA256 6414f9f5ddba04fcca39f09a9852ec3585b92b67e9319ea865671044d3ed2299 SHA512 ebf53f86ebaaa0c9436808530409bf30069b4722d5dac4c891bd6a9953c3ef1afb3d3f0b494bd4b7b474c98c2e0532c73123fb71827d4b3a5bbb497d32d30af4 WHIRLPOOL 1f932621d100ec67f1764e05164658f80d9328e3e3e770d1a46acdee0e7e35c4c71194f2473439e37a5f6c9d59a5e27f625cf3d38731a648a3b5225b2610d3a3
|
||||
DIST prettytable-0.7.1.tar.gz 24448 SHA256 686bda277474e5cc3cff02596d72c2d6f171170225af3dedffe78cbf958c6348 SHA512 5389f3c31cb7482f6796c7f369fc9ef79e2029c783e33c0845dd28a1a6394e66395a1d452072ed89aeb2c38705b8f631a20d093b1bd817c3175e32367f552147 WHIRLPOOL daf155240cd35ce87ac333211a234edee0bf2960bf7bf7ad240d566a803f958b9ada977bbd3a51e85006e333565a950c4070e94290ec7e7bc45f8ccbb63328b7
|
||||
DIST prettytable-0.7.1.tar.bz2 21499 SHA256 599bc5b4b9602e28294cf795733c889c26dd934aa7e0ee9cff9b905d4fbad188 SHA512 1a7aa604f608483b107401ddca9721ddea673ea1415d2a514948f7399835784e0a9025f0e5236f4109890e5924da345bd111893200730501b496c136465c204f WHIRLPOOL cbde4e7053eb82749a21f1ac7e0a9ab7368f9dfbe64f0e434da085dc30f24931110e87c508c500bb340adec6d928dae53f1652d1601a5718311a9e414a2b789c
|
||||
DIST prettytable-0.7.2.tar.bz2 21755 SHA256 853c116513625c738dc3ce1aee148b5b5757a86727e67eff6502c7ca59d43c36 SHA512 f3a3fe6fa29f4ef090ff6cac06549ebd9db8b387e7b25fc64c4e37c8444586f50355c5573f38caabc72360aa68054aa189a67aa37f0bd13b872862ecd9151e71 WHIRLPOOL 1b27332ea8b2c83ec13b981508f429881bacacb87ac4a8c51a42b6071daa6d1278a48f3359547efae2c7f9eb1fe5d6b13e2d4232543722aa3aab1f30f9fccfbe
|
||||
|
@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>openstack</herd>
|
||||
<upstream>
|
||||
<remote-id type="google-code">prettytable</remote-id>
|
||||
</upstream>
|
||||
<herd>openstack</herd>
|
||||
<upstream>
|
||||
<remote-id type="google-code">prettytable</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
|
@ -1,22 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/prettytable/prettytable-0.6-r1.ebuild,v 1.3 2015/04/08 08:05:25 mgorny Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_3} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A Python library for easily displaying tabular data in a
|
||||
visually appealing ASCII table format."
|
||||
HOMEPAGE="https://code.google.com/p/prettytable/"
|
||||
SRC_URI="https://prettytable.googlecode.com/files/prettytable-0.6.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-python/setuptools"
|
||||
RDEPEND="${DEPEND}"
|
@ -1,23 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/prettytable/prettytable-0.6.ebuild,v 1.2 2013/03/11 00:17:10 prometheanfire Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
PYTHON_DEPEND="2:2.6 3"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
|
||||
inherit distutils
|
||||
|
||||
DESCRIPTION="A Python library for easily displaying tabular data in a
|
||||
visually appealing ASCII table format."
|
||||
HOMEPAGE="https://code.google.com/p/prettytable/"
|
||||
SRC_URI="https://prettytable.googlecode.com/files/prettytable-0.6.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-python/setuptools"
|
||||
RDEPEND="${DEPEND}"
|
@ -1,25 +1,25 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/prettytable/prettytable-0.7.1.ebuild,v 1.6 2015/04/08 08:05:25 mgorny Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/prettytable/prettytable-0.7.2.ebuild,v 1.1 2015/05/26 10:13:44 jlec Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A Python library for easily displaying tabular data in a
|
||||
visually appealing ASCII table format."
|
||||
DESCRIPTION="Easily displaying tabular data in a visually appealing ASCII table format"
|
||||
HOMEPAGE="https://code.google.com/p/prettytable/"
|
||||
SRC_URI="https://${PN}.googlecode.com/files/${P}.tar.gz"
|
||||
SRC_URI="mirror://pypi/P/PrettyTable/${P}.tar.bz2"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="test"
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
RDEPEND=""
|
||||
|
||||
python_test() {
|
||||
"${PYTHON}" prettytable_test.py || die
|
||||
"${PYTHON}" prettytable_test.py || die "tests failed under ${EPYTHON}"
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/pytest/pytest-2.7.1.ebuild,v 1.1 2015/05/26 07:57:05 patrick Exp $
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy pypy3 )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="py.test: simple powerful testing with Python"
|
||||
HOMEPAGE="http://pytest.org/ http://pypi.python.org/pypi/pytest"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="doc test"
|
||||
|
||||
# When bumping, please check setup.py for the proper py version
|
||||
PY_VER="1.4.25"
|
||||
RDEPEND=">=dev-python/py-${PY_VER}[${PYTHON_USEDEP}]"
|
||||
|
||||
#pexpect dep based on https://bitbucket.org/hpk42/pytest/issue/386/tests-fail-with-pexpect-30
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? ( dev-python/pexpect[${PYTHON_USEDEP}] )
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
|
||||
|
||||
python_prepare_all() {
|
||||
# Disable versioning of py.test script to avoid collision with
|
||||
# versioning performed by the eclass.
|
||||
sed -e "s/return points/return {'py.test': target}/" -i setup.py || die "sed failed"
|
||||
grep -qF "py>=${PY_VER}" setup.py || die "Incorrect dev-python/py dependency"
|
||||
|
||||
# Prevent un-needed d'loading
|
||||
sed -e "s/'sphinx.ext.intersphinx', //" -i doc/en/conf.py || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
if use doc; then
|
||||
mkdir doc/en/.build || die
|
||||
emake -C doc/en html
|
||||
fi
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# test_nose.py not written to suit py3.2 in pypy3
|
||||
if [[ "${EPYTHON}" == pypy3 ]]; then
|
||||
"${PYTHON}" "${BUILD_DIR}"/lib/pytest.py \
|
||||
--ignore=testing/test_nose.py \
|
||||
|| die "tests failed with ${EPYTHON}"
|
||||
else
|
||||
"${PYTHON}" "${BUILD_DIR}"/lib/pytest.py \
|
||||
|| die "tests failed with ${EPYTHON}"
|
||||
fi
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && dohtml -r doc/en/_build/html/
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST PyX-0.12.1.tar.gz 561989 SHA256 e837b26a8b1c27524cf3f3dd6c0d563451249159edaa2e366d87e7143a867e8e SHA512 4941f5aa21aff3743546495fb073c10d2657ff42b2aff401903498638093d0e31e344cce778980f28a7170c6d29eab72ac074277b9d4088376e8692dc71e55c1 WHIRLPOOL a4d4a21e78b72841ca38dea87296d21f0bc8255e428cb0733fbee9d71c3bfb031d8a9f9fff988dbf0e2af7222553918a9aa924769891c50beb607c6ce3fe2fa4
|
||||
DIST PyX-0.13.tar.gz 1237082 SHA256 1952962c965000d8e04a00d1b85c600cdef4588cea88c9face2adbedf21d42c6 SHA512 cab0c22f0862ae20cff92504ededf4fcf5820d5773130fb258de1a95d295ca4fe657b85d5ccd52021a4f84403e6db8eebe9f676fa405781738502456123eb05c WHIRLPOOL 0a6159cd5f2683c70b33aac71278ad6f0df3ae54897d0ab31a9b61897be9b4e531cc41c7772a60a152b3b7a39d383ba669be7401c503704f14cbbf3ceca25c41
|
||||
DIST PyX-0.14.tar.gz 2475559 SHA256 b0ea832e97156338010767a7edacbf6147a75cdd5ac1b147bd73afd514eed370 SHA512 328b917e406e29f656dff00ff54fc5b82296cdc4b134f45ef380d0b1e7011311e4c149be59f5089064c183e8ade3adca27a2304b3bafd2e735f256e6de8b8b3b WHIRLPOOL 34ee7b2723618a493d15e2509456e1539acfc9d0010a202c14ba353505ef1394c753cfc083b557d0250918e501d9931dc7949ec6f623b00be63d16a5e3db6839
|
||||
|
@ -0,0 +1,47 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/pyx/pyx-0.14.ebuild,v 1.1 2015/05/26 08:14:12 patrick Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python3_{3,4} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
MY_P="${P/pyx/PyX}"
|
||||
|
||||
DESCRIPTION="Python package for the generation of encapsulated PostScript figures"
|
||||
HOMEPAGE="http://pyx.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/pyx/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="doc"
|
||||
|
||||
RDEPEND="virtual/tex-base
|
||||
dev-texlive/texlive-basic"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( virtual/latex-base
|
||||
dev-python/sphinx[latex,${PYTHON_USEDEP}] )"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_prepare() {
|
||||
distutils-r1_src_prepare
|
||||
sed -i \
|
||||
-e 's/^build_t1code=.*/build_t1code=1/' \
|
||||
-e 's/^build_pykpathsea=.*/build_pykpathsea=1/' \
|
||||
setup.cfg || die "setup.cfg fix failed"
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
if use doc; then
|
||||
VARTEXFONTS="${T}"/fonts emake -C "${S}"/faq latexpdf
|
||||
fi
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && dodoc faq/_build/latex/pyxfaq.pdf
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST sphinx_rtd_theme-0.1.6.tar.gz 217067 SHA256 0f29f544f6d037989fa0c7729a9eab7e4d8ea50d6f0ef37363f472756c1edca6 SHA512 f79e8192264ef01675240853e9be8a5bd0c86808f0e918e60c7c6e0c078caeef87c76421db795149214ef4edc1389e7c2001a98436611292ff826e7b9b9d0f15 WHIRLPOOL 110494f3c9bb6e838557fa4bcb1ac8f33e91b30d2da780720e897cfc4f635c0a14f502d5aac50115495bcc591de79eae83a2e359b81b917e524c9459194420f6
|
||||
DIST sphinx_rtd_theme-0.1.7.tar.gz 220230 SHA256 9a490c861f6cf96a0050c29a92d5d1e01eda02ae6f50760ad5c96a327cdf14e8 SHA512 390f007ecba0a59ef92e1aab3457e7c09fa7ff45690f9351857d8aa635371c81329b12e7d4052ba9abaabb82a28a911334c4dc601105ee97cb0eb2b1be0ae426 WHIRLPOOL 00150c49a8e1a56aa378cac795b7ed7a681aef59c7a70294b1b3e582fa1d13ce7abc251567219422fa495c610dfda2a40c1255c2c8306af72188294fa1a84ec2
|
||||
DIST sphinx_rtd_theme-0.1.8.tar.gz 424804 SHA256 74f633ed3a61da1d1d59c3185483c81a9d7346bf0e7b5f29ad0764a6f159b68a SHA512 2ade6b86f88fa9e8fa3242b4f5fcf665016098a3819e08400fbe216ccb8ab6e1d0786fba20c1ed722525bc5fd088bc70ceb93c0ed4c5a8ac79ab6499a0a98994 WHIRLPOOL 7bfdd8679d4300a9cef03ca5bbff01cc2cfbc241244f26f08c0356aba8da5bcfdd2bba4603cc687ba5bfbc2b3c7dbf69a5169d88c215173d3dd686fed035704b
|
||||
|
@ -0,0 +1,20 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/sphinx_rtd_theme/sphinx_rtd_theme-0.1.8.ebuild,v 1.1 2015/05/26 06:37:11 patrick Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="ReadTheDocs.org theme for Sphinx"
|
||||
HOMEPAGE="https://github.com/snide/sphinx_rtd_theme/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
PDEPEND="dev-python/sphinx[${PYTHON_USEDEP}]"
|
@ -0,0 +1,85 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/sqlalchemy/sqlalchemy-1.0.4.ebuild,v 1.1 2015/05/26 02:29:17 patrick Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy )
|
||||
PYTHON_REQ_USE="sqlite?"
|
||||
|
||||
inherit distutils-r1 flag-o-matic
|
||||
|
||||
MY_PN="SQLAlchemy"
|
||||
MY_P="${MY_PN}-${PV/_beta/b}"
|
||||
|
||||
DESCRIPTION="Python SQL toolkit and Object Relational Mapper"
|
||||
HOMEPAGE="http://www.sqlalchemy.org/ http://pypi.python.org/pypi/SQLAlchemy"
|
||||
SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="doc examples +sqlite test"
|
||||
REQUIRED_USE="test? ( sqlite )"
|
||||
|
||||
RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( dev-python/pytest[${PYTHON_USEDEP}]
|
||||
$(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7 pypy)
|
||||
)"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
python_prepare_all() {
|
||||
# Disable tests hardcoding function call counts specific to Python versions.
|
||||
rm -r test/aaa_profiling || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
if ! python_is_python3; then
|
||||
local CFLAGS=${CFLAGS}
|
||||
append-cflags -fno-strict-aliasing
|
||||
fi
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# Create copies of necessary files in BUILD_DIR.
|
||||
# https://bitbucket.org/zzzeek/sqlalchemy/issue/3144/
|
||||
cp -pR examples sqla_nose.py setup.cfg test "${BUILD_DIR}" || die
|
||||
pushd "${BUILD_DIR}" > /dev/null
|
||||
if [[ "${EPYTHON}" == "python3.2" ]]; then
|
||||
2to3 --no-diffs -w test
|
||||
fi
|
||||
# Recently upstream elected to make the testsuite also pytest capable
|
||||
# "${PYTHON}" sqla_nose.py || die "Testsuite failed under ${EPYTHON}"
|
||||
py.test test || die "Testsuite failed under ${EPYTHON}"
|
||||
popd > /dev/null
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && HTML_DOCS=( doc/. )
|
||||
|
||||
use examples && local EXAMPLES=( examples/. )
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -z ${REPLACING_VERSIONS} ]]; then
|
||||
if ! has_version dev-python/mysql-python; then
|
||||
elog "For MySQL support, install dev-python/mysql-python"
|
||||
fi
|
||||
|
||||
if ! has_version dev-python/pymssql; then
|
||||
elog "For mssql support, install dev-python/pymssql"
|
||||
fi
|
||||
|
||||
if ! has_version dev-python/psycopg:2; then
|
||||
elog "For postgresql support, install dev-python/psycopg:2"
|
||||
fi
|
||||
fi
|
||||
|
||||
elog "mysql backend support can be enabled by installing mysql-python for cpython py2.7 only,"
|
||||
elog "or mysql-connector-python for support of cpythons 2.7 3.3 and 3.4"
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-conch/twisted-conch-15.2.1.ebuild,v 1.1 2015/05/26 06:13:43 patrick Exp $
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit twisted-r1
|
||||
|
||||
DESCRIPTION="Twisted SSHv2 implementation"
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="
|
||||
=dev-python/twisted-core-${TWISTED_RELEASE}*[${PYTHON_USEDEP}]
|
||||
dev-python/pyasn1[${PYTHON_USEDEP}]
|
||||
dev-python/pycrypto[${PYTHON_USEDEP}]"
|
||||
RDEPEND="${DEPEND}"
|
@ -0,0 +1,119 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-core/twisted-core-15.2.1.ebuild,v 1.1 2015/05/26 06:16:00 patrick Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit eutils flag-o-matic twisted-r1
|
||||
|
||||
DESCRIPTION="An asynchronous networking framework written in Python"
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~x86 ~x86-fbsd ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="crypt gtk serial test"
|
||||
|
||||
RDEPEND=">=dev-python/zope-interface-3.6.0[${PYTHON_USEDEP}]
|
||||
crypt? ( >=dev-python/pyopenssl-0.10[${PYTHON_USEDEP}]
|
||||
dev-python/service_identity[${PYTHON_USEDEP}] )
|
||||
gtk? ( dev-python/pygtk:2[${PYTHON_USEDEP}] )
|
||||
serial? ( dev-python/pyserial[${PYTHON_USEDEP}] )"
|
||||
DEPEND="test? ( ${RDEPEND} )"
|
||||
|
||||
PATCHES=(
|
||||
# Respect TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE variable.
|
||||
"${FILESDIR}/${PN}-9.0.0-respect_TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE.patch"
|
||||
)
|
||||
|
||||
python_prepare_all() {
|
||||
if [[ "${EUID}" -eq 0 ]]; then
|
||||
# Disable tests failing with root permissions.
|
||||
sed \
|
||||
-e "s/test_newPluginsOnReadOnlyPath/_&/" \
|
||||
-e "s/test_deployedMode/_&/" \
|
||||
-i twisted/test/test_plugin.py
|
||||
fi
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
if ! python_is_python3; then
|
||||
# Needed to make the sendmsg extension work
|
||||
# (see http://twistedmatrix.com/trac/ticket/5701 )
|
||||
local -x CFLAGS="${CFLAGS} -fno-strict-aliasing"
|
||||
local -x CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
|
||||
fi
|
||||
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
|
||||
python_test() {
|
||||
distutils_install_for_testing
|
||||
|
||||
pushd "${TEST_DIR}"/lib > /dev/null || die
|
||||
|
||||
# Skip broken tests.
|
||||
|
||||
# http://twistedmatrix.com/trac/ticket/5375
|
||||
sed -e "/class ZshIntegrationTestCase/,/^$/d" -i twisted/scripts/test/test_scripts.py \
|
||||
|| die "sed failed"
|
||||
|
||||
# Prevent it from pulling in plugins from already installed twisted packages.
|
||||
rm -f twisted/plugins/__init__.py
|
||||
|
||||
# An empty file doesn't work because the tests check for doc strings in all packages.
|
||||
echo "'''plugins stub'''" > twisted/plugins/__init__.py || die
|
||||
|
||||
# https://twistedmatrix.com/trac/ticket/6920 6921
|
||||
# Just re-exposing them to list a full list of deficits
|
||||
# sed -e 's:test_basicOperation:_&:' -i twisted/scripts/test/test_tap2deb.py || die
|
||||
# sed -e 's:test_inspectCertificate:_&:' -i twisted/test/test_sslverify.py || die
|
||||
|
||||
# Requires twisted-web, twisted-lore and twisted-names, creating a circ. dep and fail even if installed.
|
||||
# test_loreDeprecation and test_exist failures appeared in version 14.0.0.
|
||||
# Possibly due to over taxing of the distutils_install_for_testing function
|
||||
rm -f twisted/python/test/test_release.py || die
|
||||
sed -e 's:test_loreDeprecation:_&:' -i twisted/test/test_twisted.py || die
|
||||
sed -e 's:test_exist:_&:' -i twisted/python/test/test_dist3.py || die
|
||||
|
||||
# Requires connection to the network
|
||||
sed -e 's:test_multiListen:_&:' -i twisted/test/test_udp.py || die
|
||||
|
||||
# Appeared in version 14.0.0; https://twistedmatrix.com/trac/ticket/7422; known failures
|
||||
# Upstream somewhat unreceptive
|
||||
# The last of these invokes a hang or a long delay
|
||||
sed -e 's:test_dataReceivedThrows:_&:' \
|
||||
-e 's:test_resumeProducingThrows:_&:' \
|
||||
-e 's:test_resumeProducingAbortLater:_&:' \
|
||||
-e 's:test_resumeProducingAbort:_&:' \
|
||||
-e 's:test_fullWriteBufferAfterByteExchange:_&:' \
|
||||
-i twisted/internet/test/test_tcp.py || die
|
||||
sed -e 's:test_logPrefix:_&:' -i twisted/internet/test/connectionmixins.py || die
|
||||
|
||||
if ! "${TEST_DIR}"/scripts/trial twisted; then
|
||||
die "Tests failed with ${EPYTHON}"
|
||||
fi
|
||||
|
||||
popd > /dev/null || die
|
||||
}
|
||||
|
||||
python_install() {
|
||||
distutils-r1_python_install
|
||||
|
||||
cd "${D%/}$(python_get_sitedir)" || die
|
||||
|
||||
# create 'Twisted' egg wrt bug #299736
|
||||
local egg=( Twisted_Core*.egg-info )
|
||||
[[ -f ${egg[0]} ]] || die "Twisted_Core*.egg-info not found"
|
||||
ln -s "${egg[0]}" "${egg[0]/_Core/}" || die
|
||||
|
||||
# own the dropin.cache so we don't leave orphans
|
||||
touch twisted/plugins/dropin.cache || die
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
newconfd "${FILESDIR}/twistd.conf" twistd
|
||||
newinitd "${FILESDIR}/twistd.init" twistd
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-lore/twisted-lore-15.2.1.ebuild,v 1.1 2015/05/26 06:17:14 patrick Exp $
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit twisted-r1
|
||||
|
||||
DESCRIPTION="Twisted documentation system"
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~ppc64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="=dev-python/twisted-core-${TWISTED_RELEASE}*[${PYTHON_USEDEP}]
|
||||
=dev-python/twisted-web-${TWISTED_RELEASE}*[${PYTHON_USEDEP}]"
|
||||
RDEPEND="${DEPEND}"
|
@ -0,0 +1,17 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-mail/twisted-mail-15.2.1.ebuild,v 1.1 2015/05/26 06:17:58 patrick Exp $
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit twisted-r1
|
||||
|
||||
DESCRIPTION="A Twisted Mail library, server and client"
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~x86 ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="=dev-python/twisted-core-${TWISTED_RELEASE}*[${PYTHON_USEDEP}]
|
||||
=dev-python/twisted-names-${TWISTED_RELEASE}*[${PYTHON_USEDEP}]"
|
||||
RDEPEND="${DEPEND}"
|
@ -0,0 +1,16 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-names/twisted-names-15.2.1.ebuild,v 1.1 2015/05/26 06:18:45 patrick Exp $
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit twisted-r1
|
||||
|
||||
DESCRIPTION="A Twisted DNS implementation"
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~x86 ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="=dev-python/twisted-core-${TWISTED_RELEASE}*[${PYTHON_USEDEP}]"
|
||||
RDEPEND="${DEPEND}"
|
@ -0,0 +1,17 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-news/twisted-news-15.2.1.ebuild,v 1.1 2015/05/26 06:19:31 patrick Exp $
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit twisted-r1
|
||||
|
||||
DESCRIPTION="Twisted News is an NNTP server and programming library"
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~ppc64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="=dev-python/twisted-core-${TWISTED_RELEASE}*[${PYTHON_USEDEP}]
|
||||
=dev-python/twisted-mail-${TWISTED_RELEASE}*[${PYTHON_USEDEP}]"
|
||||
RDEPEND="${DEPEND}"
|
@ -0,0 +1,20 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-pair/twisted-pair-15.2.1.ebuild,v 1.1 2015/05/26 06:20:07 patrick Exp $
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit twisted-r1
|
||||
|
||||
DESCRIPTION="Twisted low-level networking"
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="=dev-python/twisted-core-${TWISTED_RELEASE}*[${PYTHON_USEDEP}]
|
||||
dev-python/eunuchs[${PYTHON_USEDEP}]"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
# https://twistedmatrix.com/trac/ticket/7433
|
||||
PATCHES=( "${FILESDIR}"/14.0.0-tests.patch )
|
@ -0,0 +1,16 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-runner/twisted-runner-15.2.1.ebuild,v 1.1 2015/05/26 06:20:50 patrick Exp $
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit twisted-r1
|
||||
|
||||
DESCRIPTION="Twisted Runner is a process management library and inetd replacement"
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~ppc64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="=dev-python/twisted-core-${TWISTED_RELEASE}*[${PYTHON_USEDEP}]"
|
||||
RDEPEND="${DEPEND}"
|
@ -0,0 +1,31 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-web/twisted-web-15.2.1.ebuild,v 1.1 2015/05/26 06:21:32 patrick Exp $
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit twisted-r1
|
||||
|
||||
MY_PN="TwistedWeb"
|
||||
DESCRIPTION="Twisted web server, programmable in Python"
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="soap"
|
||||
|
||||
DEPEND="=dev-python/twisted-core-${TWISTED_RELEASE}*[${PYTHON_USEDEP}]
|
||||
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
||||
soap? ( dev-python/soappy[${PYTHON_USEDEP}] )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
python_prepare_all() {
|
||||
if [[ "${EUID}" -eq 0 ]]; then
|
||||
# Disable tests failing with root permissions.
|
||||
sed -e "s/test_forbiddenResource/_&/" -i twisted/web/test/test_static.py
|
||||
sed -e "s/testDownloadPageError3/_&/" -i twisted/web/test/test_webclient.py
|
||||
fi
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
# testsuite has a PYTHONPATH oddity, currently appears to require a system install to effectively import,
|
||||
# putting in question as to whether it is a testsuite
|
@ -0,0 +1,17 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-words/twisted-words-15.2.1.ebuild,v 1.1 2015/05/26 06:22:15 patrick Exp $
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit twisted-r1
|
||||
|
||||
DESCRIPTION="Twisted Words contains Instant Messaging implementations"
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="=dev-python/twisted-core-${TWISTED_RELEASE}*[${PYTHON_USEDEP}]
|
||||
=dev-python/twisted-web-${TWISTED_RELEASE}*[${PYTHON_USEDEP}]"
|
||||
RDEPEND="${DEPEND}"
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue