parent
8cd4c9b34c
commit
991612b414
Binary file not shown.
Binary file not shown.
@ -1,2 +1,2 @@
|
||||
DIST calamares-3.1.11.tar.gz 2273213 BLAKE2B da746957ca583db2cf2b89814e9b6b8a94130b890263a851248aa83ebb0ac481805a4193e2ca2fc6fdae3e86c871a6dd9b922aa3f06b4af73db28dd6bdc093cc SHA512 5aa47b07c238d7de89aac4417b577fb6cf87d2ede7fd3d4e272381cb1f90ce967f5478134e9fe728adaf32361335f2f590956200c8daf265bfeab9d979057e8c
|
||||
DIST calamares-3.1.7.tar.gz 2275893 BLAKE2B b60127a34b2f79be78540c5fd9affabde2889d335a3a41a61950adc48c9200e357f3e0b23e6c94f117c64a08fa4312ae8cbcb5e42e0ea5893d38378a583e4b7e SHA512 eaf516db4d97b89a5854c5dac5fd556a2deb47bebb88e7c55e2bb7d4ce050e913afbf08c6536503f5c3af7427a43b75f67bfa317e1601bb5a6f05f17c5bf6760
|
||||
DIST calamares-3.1.12.tar.gz 2272996 BLAKE2B f9fd2edd6922262b2a0e5a28818c79e477c9cc2105a4d4d3cb8367cb6a399af1011f6333f43790699aea04d31668e7fa2b9b79225098af6b1f31093de8988e87 SHA512 10ab898c06d4d936c5bf25e5d461e40d98914636b2fddca22b80b949b6a1225170887ffc6ceebb3848276b6d4812db863751b608b6671bb829a98a0dc6e7bf72
|
||||
|
@ -1,61 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils bash-completion-r1
|
||||
|
||||
DESCRIPTION="Gentoo's multi-purpose configuration and management tool"
|
||||
HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Eselect"
|
||||
SRC_URI="https://dev.gentoo.org/~ulm/eselect/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2+ || ( GPL-2+ CC-BY-SA-3.0 )"
|
||||
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 ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="doc emacs vim-syntax"
|
||||
|
||||
RDEPEND="sys-apps/sed
|
||||
|| (
|
||||
sys-apps/coreutils
|
||||
sys-freebsd/freebsd-bin
|
||||
app-misc/realpath
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( dev-python/docutils )"
|
||||
RDEPEND="${RDEPEND}
|
||||
sys-apps/file
|
||||
sys-libs/ncurses:0"
|
||||
|
||||
PDEPEND="emacs? ( app-emacs/eselect-mode )
|
||||
vim-syntax? ( app-vim/eselect-syntax )"
|
||||
|
||||
src_compile() {
|
||||
emake
|
||||
use doc && emake html
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
newbashcomp misc/${PN}.bashcomp ${PN}
|
||||
dodoc AUTHORS ChangeLog NEWS README TODO doc/*.txt
|
||||
if use doc; then
|
||||
docinto html
|
||||
dodoc *.html doc/*.html doc/*.css
|
||||
fi
|
||||
|
||||
# needed by news module
|
||||
keepdir /var/lib/gentoo/news
|
||||
if ! use prefix; then
|
||||
fowners root:portage /var/lib/gentoo/news
|
||||
fperms g+w /var/lib/gentoo/news
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# fowners in src_install doesn't work for the portage group:
|
||||
# merging changes the group back to root
|
||||
if ! use prefix; then
|
||||
chgrp portage "${EROOT}/var/lib/gentoo/news" \
|
||||
&& chmod g+w "${EROOT}/var/lib/gentoo/news"
|
||||
fi
|
||||
}
|
@ -0,0 +1,151 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
EGO_PN="k8s.io/helm"
|
||||
|
||||
EGO_VENDOR=(
|
||||
"cloud.google.com/go 3b1ae45394a234c385be014e9a488f2bb6eef821 github.com/GoogleCloudPlatform/gcloud-golang"
|
||||
"github.com/aokoli/goutils 9c37978a95bd5c709a15883b6242714ea6709e64"
|
||||
"github.com/asaskevich/govalidator 7664702784775e51966f0885f5cd27435916517b"
|
||||
"github.com/aws/aws-sdk-go 760741802ad40f49ae9fc4a69ef6706d2527d62e"
|
||||
"github.com/Azure/go-ansiterm 19f72df4d05d31cbe1c56bfc8045c96babff6c7e"
|
||||
"github.com/Azure/go-autorest 58f6f26e200fa5dfb40c9cd1c83f3e2c860d779d"
|
||||
"github.com/beorn7/perks 3ac7bf7a47d159a033b107610db8a1b6575507a4"
|
||||
"github.com/BurntSushi/toml b26d9c308763d68093482582cea63d69be07a0f0"
|
||||
"github.com/chai2010/gettext-go bf70f2a70fb1b1f36d90d671a72795984eab0fcb"
|
||||
"github.com/cpuguy83/go-md2man 71acacd42f85e5e82f70a55327789582a5200a90"
|
||||
"github.com/davecgh/go-spew 782f4967f2dc4564575ca782fe2d04090b5faca8"
|
||||
"github.com/dgrijalva/jwt-go 01aeca54ebda6e0fbfafd0a524d234159c05ec20"
|
||||
"github.com/docker/distribution edc3ab29cdff8694dd6feb85cfeb4b5f1b38ed9c"
|
||||
"github.com/docker/docker 4f3616fb1c112e206b88cb7a9922bf49067a7756"
|
||||
"github.com/docker/go-connections 3ede32e2033de7505e6500d6c868c2b9ed9f169d"
|
||||
"github.com/docker/go-units 9e638d38cf6977a37a8ea0078f3ee75a7cdb2dd1"
|
||||
"github.com/docker/spdystream 449fdfce4d962303d702fec724ef0ad181c92528"
|
||||
"github.com/emicklei/go-restful ff4f55a206334ef123e4f79bbf348980da81ca46"
|
||||
"github.com/emicklei/go-restful-swagger12 dcef7f55730566d41eae5db10e7d6981829720f6"
|
||||
"github.com/evanphx/json-patch 944e07253867aacae43c04b2e6a239005443f33a"
|
||||
"github.com/exponent-io/jsonpath d6023ce2651d8eafb5c75bb0c7167536102ec9f5"
|
||||
"github.com/fatih/camelcase f6a740d52f961c60348ebb109adde9f4635d7540"
|
||||
"github.com/ghodss/yaml 73d445a93680fa1a78ae23a5839bad48f32ba1ee"
|
||||
"github.com/go-ini/ini 300e940a926eb277d3901b20bdfcc54928ad3642"
|
||||
"github.com/go-openapi/jsonpointer 46af16f9f7b149af66e5d1bd010e3574dc06de98"
|
||||
"github.com/go-openapi/jsonreference 13c6e3589ad90f49bd3e3bbe2c2cb3d7a4142272"
|
||||
"github.com/go-openapi/spec 6aced65f8501fe1217321abf0749d354824ba2ff"
|
||||
"github.com/go-openapi/swag 1d0bd113de87027671077d3c71eb3ac5d7dbba72"
|
||||
"github.com/gobwas/glob bea32b9cd2d6f55753d94a28e959b13f0244797a"
|
||||
"github.com/gogo/protobuf c0656edd0d9eab7c66d1eb0c568f9039345796f7"
|
||||
"github.com/golang/glog 44145f04b68cf362d9c4df2182967c2275eaefed"
|
||||
"github.com/golang/groupcache 02826c3e79038b59d737d3b1c0a1d937f71a4433"
|
||||
"github.com/golang/protobuf 4bd1920723d7b7c925de087aa32e2187708897f7"
|
||||
"github.com/google/btree 7d79101e329e5a3adf994758c578dab82b90c017"
|
||||
"github.com/google/gofuzz 44d81051d367757e1c7c6a5a86423ece9afcf63c"
|
||||
"github.com/googleapis/gnostic 0c5108395e2debce0d731cf0287ddf7242066aba"
|
||||
"github.com/gophercloud/gophercloud 2bf16b94fdd9b01557c4d076e567fe5cbbe5a961"
|
||||
"github.com/gosuri/uitable 36ee7e946282a3fb1cfecd476ddc9b35d8847e42"
|
||||
"github.com/gregjones/httpcache 787624de3eb7bd915c329cba748687a3b22666a6"
|
||||
"github.com/grpc-ecosystem/go-grpc-prometheus 0c1b191dbfe51efdabe3c14b9f6f3b96429e0722"
|
||||
"github.com/hashicorp/golang-lru a0d98a5f288019575c6d1f4bb1573fef2d1fcdc4"
|
||||
"github.com/howeyc/gopass bf9dde6d0d2c004a008c27aaee91170c786f6db8"
|
||||
"github.com/huandu/xstrings 3959339b333561bf62a38b424fd41517c2c90f40"
|
||||
"github.com/imdario/mergo 6633656539c1639d9d78127b7d47c622b5d7b6dc"
|
||||
"github.com/inconshreveable/mousetrap 76626ae9c91c4f2a10f34cad8ce83ea42c93bb75"
|
||||
"github.com/jmespath/go-jmespath 0b12d6b521d83fc7f755e7cfc1b1fbdd35a01a74"
|
||||
"github.com/json-iterator/go 36b14963da70d11297d313183d7e6388c8510e1e"
|
||||
"github.com/juju/ratelimit 5b9ff866471762aa2ab2dced63c9fb6f53921342"
|
||||
"github.com/mailru/easyjson d5b7844b561a7bc640052f1b935f7b800330d7e0"
|
||||
"github.com/MakeNowJust/heredoc bb23615498cded5e105af4ce27de75b089cbe851"
|
||||
"github.com/Masterminds/semver 517734cc7d6470c0d07130e40fd40bdeb9bcd3fd"
|
||||
"github.com/Masterminds/sprig b217b9c388de2cacde4354c536e520c52c055563"
|
||||
"github.com/Masterminds/vcs 3084677c2c188840777bff30054f2b553729d329"
|
||||
"github.com/mattn/go-runewidth d6bea18f789704b5f83375793155289da36a3c7f"
|
||||
"github.com/matttproud/golang_protobuf_extensions fc2b8d3a73c4867e51861bbdd5ae3c1f0869dd6a"
|
||||
"github.com/mitchellh/go-wordwrap ad45545899c7b13c020ea92b2072220eefad42b8"
|
||||
"github.com/naoina/go-stringutil 6b638e95a32d0c1131db0e7fe83775cbea4a0d0b"
|
||||
"github.com/opencontainers/go-digest a6d0ee40d4207ea02364bd3b9e8e77b9159ba1eb"
|
||||
"github.com/opencontainers/image-spec 372ad780f63454fbbbbcc7cf80e5b90245c13e13"
|
||||
"github.com/pborman/uuid ca53cad383cad2479bbba7f7a1a05797ec1386e4"
|
||||
"github.com/peterbourgon/diskv 5f041e8faa004a95c88a202771f4cc3e991971e6"
|
||||
"github.com/prometheus/client_golang c5b7fccd204277076155f10851dad72b76a49317"
|
||||
"github.com/prometheus/client_model fa8ad6fec33561be4280a8f0514318c79d7f6cb6"
|
||||
"github.com/prometheus/common 13ba4ddd0caa9c28ca7b7bffe1dfa9ed8d5ef207"
|
||||
"github.com/prometheus/procfs 65c1f6f8f0fc1e2185eb9863a3bc751496404259"
|
||||
"github.com/PuerkitoBio/purell 8a290539e2e8629dbc4e6bad948158f790ec31f4"
|
||||
"github.com/PuerkitoBio/urlesc 5bd2802263f21d8788851d5305584c82a5c75d7e"
|
||||
"github.com/russross/blackfriday 300106c228d52c8941d4b3de6054a6062a86dda3"
|
||||
"github.com/satori/go.uuid 879c5887cd475cd7864858769793b2ceb0d44feb"
|
||||
"github.com/shurcooL/sanitized_anchor_name 10ef21a441db47d8b13ebcc5fd2310f636973c77"
|
||||
"github.com/sirupsen/logrus 89742aefa4b206dcf400792f3bd35b542998eb3b"
|
||||
"github.com/spf13/cobra f62e98d28ab7ad31d707ba837a966378465c7b57"
|
||||
"github.com/spf13/pflag 9ff6c6923cfffbcd502984b8e0c80539a94968b7"
|
||||
"github.com/technosophos/moniker ab470f5e105a44d0c87ea21bacd6a335c4816d83"
|
||||
"golang.org/x/crypto 81e90905daefcd6fd217b62423c0908922eadb30 github.com/golang/crypto"
|
||||
"golang.org/x/net 1c05540f6879653db88113bc4a2b70aec4bd491f github.com/golang/net"
|
||||
"golang.org/x/oauth2 a6bd8cefa1811bd24b86f8902872e4e8225f74c4 github.com/golang/oauth2"
|
||||
"golang.org/x/sys 43eea11bc92608addb41b8a406b0407495c106f6 github.com/golang/sys"
|
||||
"golang.org/x/text b19bf474d317b857955b12035d2c5acb57ce8b01 github.com/golang/text"
|
||||
"google.golang.org/appengine 12d5545dc1cfa6047a286d5e853841b6471f4c19 github.com/golang/appengine"
|
||||
"google.golang.org/genproto 09f6ed296fc66555a25fe4ce95173148778dfa85 github.com/google/go-genproto"
|
||||
"google.golang.org/grpc 5ffe3083946d5603a0578721101dc8165b1d5b5f github.com/grpc/grpc-go"
|
||||
"gopkg.in/gcfg.v1 27e4946190b4a327b539185f2b5b1f7c84730728 github.com/go-gcfg/gcfg"
|
||||
"gopkg.in/inf.v0 3887ee99ecf07df5b447e9b00d9c0b2adaa9f3e4 github.com/go-inf/inf"
|
||||
"gopkg.in/warnings.v0 8a331561fe74dadba6edfc59f3be66c22c3b065d github.com/go-warnings/warnings"
|
||||
"gopkg.in/yaml.v2 53feefa2559fb8dfa8d81baad31be332c97d6c77 github.com/go-yaml/yaml"
|
||||
"k8s.io/apiextensions-apiserver a5bbfd114a9b122acd741c61d88c84812375d9e1 github.com/kubernetes/apiextensions-apiserver"
|
||||
"k8s.io/apimachinery 3b05bbfa0a45413bfa184edbf9af617e277962fb github.com/kubernetes/apimachinery"
|
||||
"k8s.io/apiserver c1e53d745d0fe45bf7d5d44697e6eface25fceca github.com/kubernetes/apiserver"
|
||||
"k8s.io/client-go 82aa063804cf055e16e8911250f888bc216e8b61 github.com/kubernetes/client-go"
|
||||
"k8s.io/kube-openapi 39a7bf85c140f972372c2a0d1ee40adbf0c8bfe1 github.com/kubernetes/kube-openapi"
|
||||
"k8s.io/kubernetes 3a1c9449a956b6026f075fa3134ff92f7d55f812 github.com/kubernetes/kubernetes"
|
||||
"k8s.io/utils aedf551cdb8b0119df3a19c65fde413a13b34997 github.com/kubernetes/utils"
|
||||
"vbom.ml/util db5cfe13f5cc80a4990d98e2e1b0707a4d1a5394 github.com/fvbommel/util"
|
||||
)
|
||||
|
||||
inherit golang-build golang-vcs-snapshot bash-completion-r1
|
||||
|
||||
GIT_COMMIT="14af25f1de6832228539259b821949d20069a222"
|
||||
|
||||
ARCHIVE_URI="https://github.com/kubernetes/helm/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
${EGO_VENDOR_URI}"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DESCRIPTION="Kubernetes Package Manager"
|
||||
HOMEPAGE="https://github.com/kubernetes/helm https://helm.sh"
|
||||
SRC_URI="${ARCHIVE_URI}"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -i -e "s/git rev-parse HEAD/echo ${GIT_COMMIT}/"\
|
||||
-e "s/git rev-parse --short HEAD/echo ${GIT_COMMIT:0:7}/"\
|
||||
-e "s#git describe --tags --abbrev=0 --exact-match 2>/dev/null#echo v${PV}#"\
|
||||
-e 's/test -n "`git status --porcelain`" && echo "dirty" ||//' src/${EGO_PN}/versioning.mk || die
|
||||
|
||||
rm -rf src/${EGO_PN}/vendor/*/*/vendor src/${EGO_PN}/vendor/*/*/*/vendor || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
pushd src/${EGO_PN} || die
|
||||
GOPATH="${S}" go build -o bin/protoc-gen-go ./vendor/github.com/golang/protobuf/protoc-gen-go || die
|
||||
./scripts/setup-apimachinery.sh || die
|
||||
GOBINDIR="$(pwd)/bin" GOPATH="${S}"\
|
||||
go install -v -ldflags "-X k8s.io/helm/pkg/version.Version=v${PV} -X k8s.io/helm/pkg/version.BuildMetadata= -X k8s.io/helm/pkg/version.GitCommit=${GIT_COMMIT} -X k8s.io/helm/pkg/version.GitTreeState=clean" k8s.io/helm/cmd/... || die
|
||||
popd || die
|
||||
bin/${PN} completion bash > ${PN}.bash || die
|
||||
bin/${PN} completion zsh > ${PN}.zsh || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
newbashcomp ${PN}.bash ${PN}
|
||||
insinto /usr/share/zsh/site-functions
|
||||
newins ${PN}.zsh _${PN}
|
||||
|
||||
dobin bin/${PN} bin/tiller
|
||||
dodoc src/${EGO_PN}/README.md
|
||||
}
|
@ -1,5 +1,2 @@
|
||||
DIST salt-2015.5.10.tar.gz 5693422 BLAKE2B 99ba6321b998c111704178f55495327eb6b9122e4eb6efacab40eaa4d8be0cae91c6d72d6fb2732e4ae5c05170b4af772b6210d129e5849f86c7be6252768c67 SHA512 78a4cbe5c771208e957360689a25ae4e44566987e07e7fda54e6db9028485eacc6ad016c65c981090f9b5d95331e46048a094aecc27703b3956c06ab6ebad95d
|
||||
DIST salt-2015.8.13.tar.gz 7036243 BLAKE2B 0b222f91d5bc42621c96fcd46223b064a480185d79b164e0f7ba8782b502f68edc21691b661dd9ec0547d1363320aae3c6560137875570a73c8536d6ea695603 SHA512 ec8626f7360542bfeea90fc3d6fd9d9d015da4c2a6adf9957c22501ed9531b0a44d2cbc4853c41856b4cd46c142d2441884ec99700f3c0a5310cc428f9f1ec2a
|
||||
DIST salt-2016.11.8.tar.gz 10142142 BLAKE2B e6805dae84c0d2e39109c95f603fcb54e1b7d7ff6c27ce555379b69274b3a5d72a1e372081a62c18440deb0955c1ef24a41c5d855a5e622f2ffe51276bd87b25 SHA512 0adc544ca460d13d2adb11b04575bd079a3dad1be3468bea7d32d0b74416b78546e4c86c75551bba09786be8e9810a6e30232414c4f5851cbc9a0fb4b894e0de
|
||||
DIST salt-2016.3.8.tar.gz 8519835 BLAKE2B a3936f36a513dfd4a9fd1ece41bf7abfc893d1788c8e5e85b28a2898c321e1d9ab2141dc3ab346e243c0c9c5dbf119abf7506e1dbc6be66995e30d09a1723122 SHA512 bba41d4c70e278aa7196d292fb27b926dce32f4cc67c5b23b6c219ad59178b1a8b26e8adeb3a7bd587c25cc1c8ff36a207ea2a2f68d13d64f37a34f96f35ecd1
|
||||
DIST salt-2017.7.2.tar.gz 11471191 BLAKE2B 0b7184eb4dcb29f2a9603117d1c6fb9c729093c1ff11e18370929ec3fdbfe7bf8c0914f17260c3f613842c23359205a4a84d3e0bcd67476705e50f805bcd7b69 SHA512 959cec404f0fa7c00f78427cba902b8b9c2c0d95016fc70925d8da6d0b97a0284fc034ac92a5c5c313763db4fdcbd1b0391318596b77fe8e0cd1c7e4b3fa928b
|
||||
|
@ -1,133 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=(python2_7)
|
||||
|
||||
inherit eutils systemd distutils-r1
|
||||
|
||||
DESCRIPTION="Salt is a remote execution and configuration manager"
|
||||
HOMEPAGE="https://saltstack.com/community/"
|
||||
|
||||
if [[ ${PV} == 9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/${PN}stack/${PN}.git"
|
||||
EGIT_BRANCH="develop"
|
||||
SRC_URI=""
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
KEYWORDS="~x86 ~amd64"
|
||||
fi
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="cherrypy ldap libcloud libvirt gnupg keyring mako mongodb mysql neutron nova"
|
||||
IUSE+=" openssl portage redis selinux test timelib raet +zeromq vim-syntax"
|
||||
|
||||
RDEPEND="sys-apps/pciutils
|
||||
dev-python/jinja[${PYTHON_USEDEP}]
|
||||
>=dev-python/msgpack-0.3[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
dev-python/markupsafe[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-1.0.0[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
>=www-servers/tornado-4.0[${PYTHON_USEDEP}]
|
||||
libcloud? ( >=dev-python/libcloud-0.14.0[${PYTHON_USEDEP}] )
|
||||
mako? ( dev-python/mako[${PYTHON_USEDEP}] )
|
||||
ldap? ( dev-python/python-ldap[${PYTHON_USEDEP}] )
|
||||
libvirt? ( dev-python/libvirt-python[${PYTHON_USEDEP}] )
|
||||
openssl? (
|
||||
dev-libs/openssl:*[-bindist]
|
||||
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
||||
)
|
||||
raet? (
|
||||
>=dev-python/libnacl-1.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/ioflo-1.1.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/raet-0.6.0[${PYTHON_USEDEP}]
|
||||
)
|
||||
zeromq? (
|
||||
>=dev-python/pyzmq-2.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/m2crypto-0.22.3[${PYTHON_USEDEP}]
|
||||
dev-python/pycrypto[${PYTHON_USEDEP}]
|
||||
)
|
||||
cherrypy? ( >=dev-python/cherrypy-3.2.2[${PYTHON_USEDEP}] )
|
||||
mongodb? ( dev-python/pymongo[${PYTHON_USEDEP}] )
|
||||
portage? ( sys-apps/portage[${PYTHON_USEDEP}] )
|
||||
keyring? ( dev-python/keyring[${PYTHON_USEDEP}] )
|
||||
mysql? ( dev-python/mysql-python[${PYTHON_USEDEP}] )
|
||||
redis? ( dev-python/redis-py[${PYTHON_USEDEP}] )
|
||||
selinux? ( sec-policy/selinux-salt )
|
||||
timelib? ( dev-python/timelib[${PYTHON_USEDEP}] )
|
||||
nova? ( >=dev-python/python-novaclient-2.17.0[${PYTHON_USEDEP}] )
|
||||
neutron? ( >=dev-python/python-neutronclient-2.3.6[${PYTHON_USEDEP}] )
|
||||
gnupg? ( dev-python/python-gnupg[${PYTHON_USEDEP}] )
|
||||
vim-syntax? ( app-vim/salt-vim )"
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/pip[${PYTHON_USEDEP}]
|
||||
dev-python/virtualenv[${PYTHON_USEDEP}]
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
dev-python/timelib[${PYTHON_USEDEP}]
|
||||
>=dev-python/boto-2.32.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/moto-0.3.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/SaltTesting-2015.2.16[${PYTHON_USEDEP}]
|
||||
${RDEPEND}
|
||||
)"
|
||||
|
||||
DOCS=(README.rst AUTHORS)
|
||||
|
||||
REQUIRED_USE="|| ( raet zeromq )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-2014.7.1-remove-pydsl-includes-test.patch"
|
||||
"${FILESDIR}/${PN}-2015.5.5-auth-tests.patch"
|
||||
"${FILESDIR}/${PN}-2015.5.5-cron-tests.patch"
|
||||
"${FILESDIR}/${PN}-2015.5.5-remove-buggy-tests.patch"
|
||||
"${FILESDIR}/${PN}-2015.5.7-tmpdir.patch"
|
||||
"${FILESDIR}/${PN}-2015.5.10-buggy-tests.patch"
|
||||
)
|
||||
|
||||
python_prepare() {
|
||||
# this test fails because it trys to "pip install distribute"
|
||||
rm tests/unit/{modules,states}/zcbuildout_test.py \
|
||||
tests/unit/modules/{rh_ip,win_network}_test.py \
|
||||
|| die "Failed to remove broken tests"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
local svc
|
||||
USE_SETUPTOOLS=1 distutils-r1_python_install_all
|
||||
|
||||
for svc in minion master syndic api; do
|
||||
newinitd "${FILESDIR}"/${svc}-initd-4 salt-${svc}
|
||||
newconfd "${FILESDIR}"/${svc}-confd-1 salt-${svc}
|
||||
systemd_dounit "${FILESDIR}"/salt-${svc}.service
|
||||
done
|
||||
|
||||
insinto /etc/${PN}
|
||||
doins -r conf/*
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local tempdir
|
||||
# testsuite likes lots of files
|
||||
ulimit -n 3072
|
||||
|
||||
# ${T} is too long a path for the tests to work
|
||||
tempdir="$(mktemp -dup /tmp salt-XXX)"
|
||||
mkdir "${T}/$(basename "${tempdir}")"
|
||||
|
||||
(
|
||||
cleanup() { rm -f "${tempdir}"; }
|
||||
trap cleanup EXIT
|
||||
|
||||
addwrite "${tempdir}"
|
||||
ln -s "$(realpath --relative-to=/tmp "${T}/$(basename "${tempdir}")")" "${tempdir}"
|
||||
|
||||
USE_SETUPTOOLS=1 SHELL="/bin/bash" TMPDIR="${tempdir}" \
|
||||
${EPYTHON} tests/runtests.py \
|
||||
--unit-tests --no-report --verbose
|
||||
|
||||
) || die "testing failed"
|
||||
}
|
@ -1,141 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=(python2_7)
|
||||
|
||||
inherit eutils systemd distutils-r1
|
||||
|
||||
DESCRIPTION="Salt is a remote execution and configuration manager"
|
||||
HOMEPAGE="https://saltstack.com/community/"
|
||||
|
||||
if [[ ${PV} == 9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/${PN}stack/${PN}.git"
|
||||
EGIT_BRANCH="develop"
|
||||
SRC_URI=""
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
KEYWORDS="~x86 ~amd64"
|
||||
fi
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="cherrypy ldap libcloud libvirt gnupg keyring mako mongodb mysql neutron nova"
|
||||
IUSE+=" openssl portage profile redis selinux test timelib raet +zeromq vim-syntax"
|
||||
|
||||
RDEPEND="sys-apps/pciutils
|
||||
dev-python/jinja[${PYTHON_USEDEP}]
|
||||
>=dev-python/msgpack-0.3[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
dev-python/markupsafe[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-1.0.0[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
>=www-servers/tornado-4.2.1[${PYTHON_USEDEP}]
|
||||
virtual/python-futures[${PYTHON_USEDEP}]
|
||||
libcloud? ( >=dev-python/libcloud-0.14.0[${PYTHON_USEDEP}] )
|
||||
mako? ( dev-python/mako[${PYTHON_USEDEP}] )
|
||||
ldap? ( dev-python/python-ldap[${PYTHON_USEDEP}] )
|
||||
libvirt? ( dev-python/libvirt-python[${PYTHON_USEDEP}] )
|
||||
openssl? (
|
||||
dev-libs/openssl:*[-bindist]
|
||||
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
||||
)
|
||||
raet? (
|
||||
>=dev-python/libnacl-1.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/ioflo-1.1.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/raet-0.6.0[${PYTHON_USEDEP}]
|
||||
)
|
||||
zeromq? (
|
||||
>=dev-python/pyzmq-2.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pycrypto-2.6.1[${PYTHON_USEDEP}]
|
||||
)
|
||||
cherrypy? ( >=dev-python/cherrypy-3.2.2[${PYTHON_USEDEP}] )
|
||||
mongodb? ( dev-python/pymongo[${PYTHON_USEDEP}] )
|
||||
portage? ( sys-apps/portage[${PYTHON_USEDEP}] )
|
||||
keyring? ( dev-python/keyring[${PYTHON_USEDEP}] )
|
||||
mysql? ( dev-python/mysql-python[${PYTHON_USEDEP}] )
|
||||
redis? ( dev-python/redis-py[${PYTHON_USEDEP}] )
|
||||
selinux? ( sec-policy/selinux-salt )
|
||||
timelib? ( dev-python/timelib[${PYTHON_USEDEP}] )
|
||||
nova? ( >=dev-python/python-novaclient-2.17.0[${PYTHON_USEDEP}] )
|
||||
neutron? ( >=dev-python/python-neutronclient-2.3.6[${PYTHON_USEDEP}] )
|
||||
gnupg? ( dev-python/python-gnupg[${PYTHON_USEDEP}] )
|
||||
profile? ( dev-python/yappi[${PYTHON_USEDEP}] )
|
||||
vim-syntax? ( app-vim/salt-vim )"
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/psutil[${PYTHON_USEDEP}]
|
||||
dev-python/pip[${PYTHON_USEDEP}]
|
||||
dev-python/virtualenv[${PYTHON_USEDEP}]
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
dev-python/timelib[${PYTHON_USEDEP}]
|
||||
>=dev-python/boto-2.32.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/moto-0.3.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/SaltTesting-2015.2.16[${PYTHON_USEDEP}]
|
||||
${RDEPEND}
|
||||
)"
|
||||
|
||||
DOCS=(README.rst AUTHORS)
|
||||
|
||||
REQUIRED_USE="|| ( raet zeromq )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-2015.8.0-remove-buggy-tests.patch"
|
||||
"${FILESDIR}/${PN}-2015.5.5-auth-tests.patch"
|
||||
"${FILESDIR}/${PN}-2015.5.5-cron-tests.patch"
|
||||
"${FILESDIR}/${PN}-2015.5.5-remove-buggy-tests.patch"
|
||||
"${FILESDIR}/${PN}-2015.8.2-tmpdir.patch"
|
||||
"${FILESDIR}/${PN}-2015.8.10-remove-failing-boto-test.patch"
|
||||
"${FILESDIR}/${PN}-2015.8.13-failing-gateway-tests.patch"
|
||||
"${FILESDIR}/${PN}-2015.8.13-sanitize-minion-name.patch"
|
||||
)
|
||||
|
||||
python_prepare() {
|
||||
# this test fails because it trys to "pip install distribute"
|
||||
rm tests/unit/{modules,states}/zcbuildout_test.py \
|
||||
tests/unit/modules/{rh_ip,win_network,random_org}_test.py
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
local svc
|
||||
USE_SETUPTOOLS=1 distutils-r1_python_install_all
|
||||
|
||||
for svc in minion master syndic api; do
|
||||
newinitd "${FILESDIR}"/${svc}-initd-4 salt-${svc}
|
||||
newconfd "${FILESDIR}"/${svc}-confd-1 salt-${svc}
|
||||
if [[ -e pkg/salt-${svc}.service ]]; then
|
||||
sed -i -r 's/After=(.*)/After=syslog.target \1/' pkg/salt-${svc}.service || die
|
||||
systemd_dounit pkg/salt-${svc}.service
|
||||
elif [[ -e "${FILESDIR}"/salt-${svc}.service ]]; then
|
||||
systemd_dounit "${FILESDIR}"/salt-${svc}.service
|
||||
fi
|
||||
done
|
||||
|
||||
insinto /etc/${PN}
|
||||
doins -r conf/*
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local tempdir
|
||||
# testsuite likes lots of files
|
||||
ulimit -n 3072
|
||||
|
||||
# ${T} is too long a path for the tests to work
|
||||
tempdir="$(mktemp -dup /tmp salt-XXX)"
|
||||
mkdir "${T}/$(basename "${tempdir}")"
|
||||
|
||||
(
|
||||
cleanup() { rm -f "${tempdir}"; }
|
||||
trap cleanup EXIT
|
||||
|
||||
addwrite "${tempdir}"
|
||||
ln -s "$(realpath --relative-to=/tmp "${T}/$(basename "${tempdir}")")" "${tempdir}"
|
||||
|
||||
USE_SETUPTOOLS=1 SHELL="/bin/bash" TMPDIR="${tempdir}" \
|
||||
${EPYTHON} tests/runtests.py \
|
||||
--unit-tests --no-report --verbose
|
||||
|
||||
) || die "testing failed"
|
||||
}
|
@ -1,140 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=(python2_7)
|
||||
|
||||
inherit eutils systemd distutils-r1
|
||||
|
||||
DESCRIPTION="Salt is a remote execution and configuration manager"
|
||||
HOMEPAGE="https://saltstack.com/community/"
|
||||
|
||||
if [[ ${PV} == 9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/${PN}stack/${PN}.git"
|
||||
EGIT_BRANCH="develop"
|
||||
SRC_URI=""
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
KEYWORDS="~x86 ~amd64"
|
||||
fi
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="cherrypy ldap libcloud libvirt gnupg keyring mako mongodb mysql neutron nova"
|
||||
IUSE+=" openssl portage profile redis selinux test timelib raet +zeromq vim-syntax"
|
||||
|
||||
RDEPEND="sys-apps/pciutils
|
||||
dev-python/jinja[${PYTHON_USEDEP}]
|
||||
>=dev-python/msgpack-0.3[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
dev-python/markupsafe[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-1.0.0[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
>=www-servers/tornado-4.2.1[${PYTHON_USEDEP}]
|
||||
virtual/python-futures[${PYTHON_USEDEP}]
|
||||
libcloud? ( >=dev-python/libcloud-0.14.0[${PYTHON_USEDEP}] )
|
||||
mako? ( dev-python/mako[${PYTHON_USEDEP}] )
|
||||
ldap? ( dev-python/python-ldap[${PYTHON_USEDEP}] )
|
||||
libvirt? ( dev-python/libvirt-python[${PYTHON_USEDEP}] )
|
||||
openssl? (
|
||||
dev-libs/openssl:*[-bindist]
|
||||
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
||||
)
|
||||
raet? (
|
||||
>=dev-python/libnacl-1.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/ioflo-1.1.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/raet-0.6.0[${PYTHON_USEDEP}]
|
||||
)
|
||||
zeromq? (
|
||||
>=dev-python/pyzmq-2.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pycrypto-2.6.1[${PYTHON_USEDEP}]
|
||||
)
|
||||
cherrypy? ( >=dev-python/cherrypy-3.2.2[${PYTHON_USEDEP}] )
|
||||
mongodb? ( dev-python/pymongo[${PYTHON_USEDEP}] )
|
||||
portage? ( sys-apps/portage[${PYTHON_USEDEP}] )
|
||||
keyring? ( dev-python/keyring[${PYTHON_USEDEP}] )
|
||||
mysql? ( dev-python/mysql-python[${PYTHON_USEDEP}] )
|
||||
redis? ( dev-python/redis-py[${PYTHON_USEDEP}] )
|
||||
selinux? ( sec-policy/selinux-salt )
|
||||
timelib? ( dev-python/timelib[${PYTHON_USEDEP}] )
|
||||
nova? ( >=dev-python/python-novaclient-2.17.0[${PYTHON_USEDEP}] )
|
||||
neutron? ( >=dev-python/python-neutronclient-2.3.6[${PYTHON_USEDEP}] )
|
||||
gnupg? ( dev-python/python-gnupg[${PYTHON_USEDEP}] )
|
||||
profile? ( dev-python/yappi[${PYTHON_USEDEP}] )
|
||||
vim-syntax? ( app-vim/salt-vim )"
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/psutil[${PYTHON_USEDEP}]
|
||||
dev-python/pip[${PYTHON_USEDEP}]
|
||||
dev-python/virtualenv[${PYTHON_USEDEP}]
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
dev-python/timelib[${PYTHON_USEDEP}]
|
||||
>=dev-python/boto-2.32.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/moto-0.3.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/SaltTesting-2015.2.16[${PYTHON_USEDEP}]
|
||||
${RDEPEND}
|
||||
)"
|
||||
|
||||
DOCS=(README.rst AUTHORS)
|
||||
|
||||
REQUIRED_USE="|| ( raet zeromq )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-2015.8.0-remove-buggy-tests.patch"
|
||||
"${FILESDIR}/${PN}-2015.5.5-auth-tests.patch"
|
||||
"${FILESDIR}/${PN}-2015.5.5-cron-tests.patch"
|
||||
"${FILESDIR}/${PN}-2015.5.5-remove-buggy-tests.patch"
|
||||
"${FILESDIR}/${PN}-2015.8.2-tmpdir.patch"
|
||||
"${FILESDIR}/${PN}-2015.8.10-remove-failing-boto-test.patch"
|
||||
"${FILESDIR}/${PN}-2015.8.13-failing-gateway-tests.patch"
|
||||
)
|
||||
|
||||
python_prepare() {
|
||||
# this test fails because it trys to "pip install distribute"
|
||||
rm tests/unit/{modules,states}/zcbuildout_test.py \
|
||||
tests/unit/modules/{rh_ip,win_network,random_org}_test.py
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
local svc
|
||||
USE_SETUPTOOLS=1 distutils-r1_python_install_all
|
||||
|
||||
for svc in minion master syndic api; do
|
||||
newinitd "${FILESDIR}"/${svc}-initd-4 salt-${svc}
|
||||
newconfd "${FILESDIR}"/${svc}-confd-1 salt-${svc}
|
||||
if [[ -e pkg/salt-${svc}.service ]]; then
|
||||
sed -i -r 's/After=(.*)/After=syslog.target \1/' pkg/salt-${svc}.service || die
|
||||
systemd_dounit pkg/salt-${svc}.service
|
||||
elif [[ -e "${FILESDIR}"/salt-${svc}.service ]]; then
|
||||
systemd_dounit "${FILESDIR}"/salt-${svc}.service
|
||||
fi
|
||||
done
|
||||
|
||||
insinto /etc/${PN}
|
||||
doins -r conf/*
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local tempdir
|
||||
# testsuite likes lots of files
|
||||
ulimit -n 3072
|
||||
|
||||
# ${T} is too long a path for the tests to work
|
||||
tempdir="$(mktemp -dup /tmp salt-XXX)"
|
||||
mkdir "${T}/$(basename "${tempdir}")"
|
||||
|
||||
(
|
||||
cleanup() { rm -f "${tempdir}"; }
|
||||
trap cleanup EXIT
|
||||
|
||||
addwrite "${tempdir}"
|
||||
ln -s "$(realpath --relative-to=/tmp "${T}/$(basename "${tempdir}")")" "${tempdir}"
|
||||
|
||||
USE_SETUPTOOLS=1 SHELL="/bin/bash" TMPDIR="${tempdir}" \
|
||||
${EPYTHON} tests/runtests.py \
|
||||
--unit-tests --no-report --verbose
|
||||
|
||||
) || die "testing failed"
|
||||
}
|
@ -1,147 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit eutils systemd distutils-r1
|
||||
|
||||
DESCRIPTION="Salt is a remote execution and configuration manager"
|
||||
HOMEPAGE="https://saltstack.com/community/"
|
||||
|
||||
if [[ ${PV} == 9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/${PN}stack/${PN}.git"
|
||||
EGIT_BRANCH="develop"
|
||||
SRC_URI=""
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
KEYWORDS="~x86 ~amd64"
|
||||
fi
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="cherrypy ldap libcloud libvirt gnupg keyring mako mongodb mysql neutron nova"
|
||||
IUSE+=" openssl portage profile redis selinux test timelib raet +zeromq vim-syntax"
|
||||
|
||||
RDEPEND="sys-apps/pciutils
|
||||
dev-python/jinja[${PYTHON_USEDEP}]
|
||||
>=dev-python/msgpack-0.3[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
dev-python/markupsafe[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-1.0.0[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
>=www-servers/tornado-4.2.1[${PYTHON_USEDEP}]
|
||||
virtual/python-futures[${PYTHON_USEDEP}]
|
||||
libcloud? ( >=dev-python/libcloud-0.14.0[${PYTHON_USEDEP}] )
|
||||
mako? ( dev-python/mako[${PYTHON_USEDEP}] )
|
||||
ldap? ( dev-python/python-ldap[${PYTHON_USEDEP}] )
|
||||
libvirt? ( dev-python/libvirt-python[${PYTHON_USEDEP}] )
|
||||
openssl? (
|
||||
dev-libs/openssl:*[-bindist]
|
||||
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
||||
)
|
||||
raet? (
|
||||
>=dev-python/libnacl-1.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/ioflo-1.1.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/raet-0.6.0[${PYTHON_USEDEP}]
|
||||
)
|
||||
zeromq? (
|
||||
>=dev-python/pyzmq-2.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pycrypto-2.6.1[${PYTHON_USEDEP}]
|
||||
)
|
||||
cherrypy? ( >=dev-python/cherrypy-3.2.2[${PYTHON_USEDEP}] )
|
||||
mongodb? ( dev-python/pymongo[${PYTHON_USEDEP}] )
|
||||
portage? ( sys-apps/portage[${PYTHON_USEDEP}] )
|
||||
keyring? ( dev-python/keyring[${PYTHON_USEDEP}] )
|
||||
mysql? ( dev-python/mysql-python[${PYTHON_USEDEP}] )
|
||||
redis? ( dev-python/redis-py[${PYTHON_USEDEP}] )
|
||||
selinux? ( sec-policy/selinux-salt )
|
||||
timelib? ( dev-python/timelib[${PYTHON_USEDEP}] )
|
||||
nova? ( >=dev-python/python-novaclient-2.17.0[${PYTHON_USEDEP}] )
|
||||
neutron? ( >=dev-python/python-neutronclient-2.3.6[${PYTHON_USEDEP}] )
|
||||
gnupg? ( dev-python/python-gnupg[${PYTHON_USEDEP}] )
|
||||
profile? ( dev-python/yappi[${PYTHON_USEDEP}] )
|
||||
vim-syntax? ( app-vim/salt-vim )"
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/psutil[${PYTHON_USEDEP}]
|
||||
dev-python/pip[${PYTHON_USEDEP}]
|
||||
dev-python/virtualenv[${PYTHON_USEDEP}]
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
dev-python/timelib[${PYTHON_USEDEP}]
|
||||
>=dev-python/boto-2.32.1[${PYTHON_USEDEP}]
|
||||
!x86? ( dev-python/boto3[${PYTHON_USEDEP}] )
|
||||
>=dev-python/moto-0.3.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/SaltTesting-2016.5.11[${PYTHON_USEDEP}]
|
||||
>=dev-python/libcloud-0.14.0[${PYTHON_USEDEP}]
|
||||
${RDEPEND}
|
||||
)"
|
||||
|
||||
DOCS=( README.rst AUTHORS )
|
||||
|
||||
REQUIRED_USE="|| ( raet zeromq )"
|
||||
RESTRICT="x86? ( test )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-2016.3.5-tmpdir.patch"
|
||||
"${FILESDIR}/${PN}-2016.3.1-dont-realpath-tmpdir.patch"
|
||||
"${FILESDIR}/${PN}-2016.3.4-test-nonexist-dirs.patch"
|
||||
"${FILESDIR}/${PN}-2016.3.4-dont-test-ordering.patch"
|
||||
)
|
||||
|
||||
python_prepare() {
|
||||
# this test fails because it trys to "pip install distribute"
|
||||
rm tests/unit/{modules,states}/zcbuildout_test.py \
|
||||
tests/unit/modules/{rh_ip,win_network,random_org}_test.py || die
|
||||
|
||||
# apparently libcloud does not know about this?
|
||||
rm tests/unit/cloud/clouds/dimensiondata_test.py || die
|
||||
|
||||
# seriously? "ValueError: Missing (or not readable) key file: '/home/dany/PRIVKEY.pem'"
|
||||
rm tests/unit/cloud/clouds/gce_test.py || die
|
||||
|
||||
# needs network access
|
||||
rm tests/unit/modules/boto_{vpc,elb,secgroup}_test.py || die
|
||||
rm tests/unit/states/boto_vpc_test.py || die
|
||||
rm tests/unit/transport/{zeromq,tcp,req}_test.py || die
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
local svc
|
||||
USE_SETUPTOOLS=1 distutils-r1_python_install_all
|
||||
|
||||
for svc in minion master syndic api; do
|
||||
newinitd "${FILESDIR}"/${svc}-initd-4 salt-${svc}
|
||||
newconfd "${FILESDIR}"/${svc}-confd-1 salt-${svc}
|
||||
systemd_dounit "${FILESDIR}"/salt-${svc}.service
|
||||
done
|
||||
|
||||
insinto /etc/${PN}
|
||||
doins -r conf/*
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local tempdir
|
||||
# testsuite likes lots of files
|
||||
ulimit -n 3072 || die
|
||||
|
||||
# ${T} is too long a path for the tests to work
|
||||
tempdir="$(mktemp -dup /tmp salt-XXX)"
|
||||
mkdir "${T}/$(basename "${tempdir}")"
|
||||
|
||||
(
|
||||
cleanup() { rm -f "${tempdir}"; }
|
||||
trap cleanup EXIT
|
||||
|
||||
addwrite "${tempdir}"
|
||||
ln -s "$(realpath --relative-to=/tmp "${T}/$(basename "${tempdir}")")" "${tempdir}"
|
||||
|
||||
USE_SETUPTOOLS=1 SHELL="/bin/bash" \
|
||||
TMPDIR="${tempdir}" \
|
||||
${EPYTHON} tests/runtests.py \
|
||||
--unit-tests --no-report --verbose
|
||||
|
||||
) || die "testing failed"
|
||||
}
|
Binary file not shown.
@ -1,139 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils flag-o-matic user systemd
|
||||
|
||||
DESCRIPTION="Clam Anti-Virus Scanner"
|
||||
HOMEPAGE="http://www.clamav.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris"
|
||||
IUSE="bzip2 clamdtop iconv ipv6 libressl milter metadata-analysis-api selinux static-libs uclibc"
|
||||
|
||||
CDEPEND="bzip2? ( app-arch/bzip2 )
|
||||
clamdtop? ( sys-libs/ncurses:0 )
|
||||
iconv? ( virtual/libiconv )
|
||||
metadata-analysis-api? ( dev-libs/json-c:= )
|
||||
milter? ( || ( mail-filter/libmilter mail-mta/sendmail ) )
|
||||
dev-libs/libtommath
|
||||
>=sys-libs/zlib-1.2.2
|
||||
!libressl? ( dev-libs/openssl:0= )
|
||||
libressl? ( dev-libs/libressl:0= )
|
||||
sys-devel/libtool"
|
||||
# openssl is now *required* see this link as to why
|
||||
# http://blog.clamav.net/2014/02/introducing-openssl-as-dependency-to.html
|
||||
DEPEND="${CDEPEND}
|
||||
virtual/pkgconfig"
|
||||
RDEPEND="${CDEPEND}
|
||||
selinux? ( sec-policy/selinux-clamav )"
|
||||
|
||||
DOCS=( AUTHORS BUGS ChangeLog FAQ INSTALL NEWS README UPGRADE )
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup clamav
|
||||
enewuser clamav -1 -1 /dev/null clamav
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
use ppc64 && append-flags -mminimal-toc
|
||||
use uclibc && export ac_cv_type_error_t=yes
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--disable-experimental \
|
||||
--disable-fanotify \
|
||||
--enable-id-check \
|
||||
--with-dbdir="${EPREFIX}"/var/lib/clamav \
|
||||
--with-system-tommath \
|
||||
--with-zlib="${EPREFIX}"/usr \
|
||||
$(use_enable bzip2) \
|
||||
$(use_enable clamdtop) \
|
||||
$(use_enable ipv6) \
|
||||
$(use_enable milter) \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_with iconv) \
|
||||
$(use_with metadata-analysis-api libjson /usr)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
rm -rf "${ED}"/var/lib/clamav
|
||||
newinitd "${FILESDIR}"/clamd.initd-r6 clamd
|
||||
newconfd "${FILESDIR}"/clamd.conf-r1 clamd
|
||||
|
||||
systemd_dotmpfilesd "${FILESDIR}/tmpfiles.d/clamav.conf"
|
||||
systemd_newunit "${FILESDIR}/clamd_at.service" "clamd@.service"
|
||||
systemd_dounit "${FILESDIR}/clamd.service"
|
||||
systemd_dounit "${FILESDIR}/freshclamd.service"
|
||||
|
||||
keepdir /var/lib/clamav
|
||||
fowners clamav:clamav /var/lib/clamav
|
||||
keepdir /var/log/clamav
|
||||
fowners clamav:clamav /var/log/clamav
|
||||
|
||||
dodir /etc/logrotate.d
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}"/clamav.logrotate clamav
|
||||
|
||||
# Modify /etc/{clamd,freshclam}.conf to be usable out of the box
|
||||
sed -i -e "s:^\(Example\):\# \1:" \
|
||||
-e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/clamd.pid:" \
|
||||
-e "s:.*\(LocalSocket\) .*:\1 ${EPREFIX}/var/run/clamav/clamd.sock:" \
|
||||
-e "s:.*\(User\) .*:\1 clamav:" \
|
||||
-e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamd.log:" \
|
||||
-e "s:^\#\(LogTime\).*:\1 yes:" \
|
||||
-e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \
|
||||
"${ED}"/etc/clamd.conf.sample || die
|
||||
sed -i -e "s:^\(Example\):\# \1:" \
|
||||
-e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/freshclam.pid:" \
|
||||
-e "s:.*\(DatabaseOwner\) .*:\1 clamav:" \
|
||||
-e "s:^\#\(UpdateLogFile\) .*:\1 ${EPREFIX}/var/log/clamav/freshclam.log:" \
|
||||
-e "s:^\#\(NotifyClamd\).*:\1 ${EPREFIX}/etc/clamd.conf:" \
|
||||
-e "s:^\#\(ScriptedUpdates\).*:\1 yes:" \
|
||||
-e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \
|
||||
"${ED}"/etc/freshclam.conf.sample || die
|
||||
|
||||
if use milter ; then
|
||||
# MilterSocket one to include ' /' because there is a 2nd line for
|
||||
# inet: which we want to leave
|
||||
dodoc "${FILESDIR}"/clamav-milter.README.gentoo
|
||||
sed -i -e "s:^\(Example\):\# \1:" \
|
||||
-e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/clamav-milter.pid:" \
|
||||
-e "s+^\#\(ClamdSocket\) .*+\1 unix:${EPREFIX}/var/run/clamav/clamd.sock+" \
|
||||
-e "s:.*\(User\) .*:\1 clamav:" \
|
||||
-e "s+^\#\(MilterSocket\) /.*+\1 unix:${EPREFIX}/var/run/clamav/clamav-milter.sock+" \
|
||||
-e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \
|
||||
-e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamav-milter.log:" \
|
||||
"${ED}"/etc/clamav-milter.conf.sample || die
|
||||
cat >> "${ED}"/etc/conf.d/clamd <<-EOF
|
||||
MILTER_NICELEVEL=19
|
||||
START_MILTER=no
|
||||
EOF
|
||||
|
||||
systemd_newunit "${FILESDIR}/clamav-milter.service-r1" clamav-milter.service
|
||||
fi
|
||||
|
||||
for i in clamd freshclam clamav-milter
|
||||
do
|
||||
[[ -f "${D}"/etc/"${i}".conf.sample ]] && mv "${D}"/etc/"${i}".conf{.sample,}
|
||||
done
|
||||
|
||||
prune_libtool_files --all
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use milter ; then
|
||||
elog "For simple instructions how to setup the clamav-milter read the"
|
||||
elog "clamav-milter.README.gentoo in /usr/share/doc/${PF}"
|
||||
fi
|
||||
if test -z $(find "${ROOT}"var/lib/clamav -maxdepth 1 -name 'main.c*' -print -quit) ; then
|
||||
ewarn "You must run freshclam manually to populate the virus database files"
|
||||
ewarn "before starting clamav for the first time.\n"
|
||||
fi
|
||||
}
|
@ -1,138 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils flag-o-matic user systemd
|
||||
|
||||
DESCRIPTION="Clam Anti-Virus Scanner"
|
||||
HOMEPAGE="http://www.clamav.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris"
|
||||
IUSE="bzip2 clamdtop iconv ipv6 milter metadata-analysis-api selinux static-libs uclibc"
|
||||
|
||||
CDEPEND="bzip2? ( app-arch/bzip2 )
|
||||
clamdtop? ( sys-libs/ncurses:0= )
|
||||
iconv? ( virtual/libiconv )
|
||||
metadata-analysis-api? ( dev-libs/json-c:= )
|
||||
milter? ( || ( mail-filter/libmilter mail-mta/sendmail ) )
|
||||
dev-libs/libtommath
|
||||
>=sys-libs/zlib-1.2.2
|
||||
dev-libs/openssl:0
|
||||
sys-devel/libtool"
|
||||
# openssl is now *required* see this link as to why
|
||||
# http://blog.clamav.net/2014/02/introducing-openssl-as-dependency-to.html
|
||||
DEPEND="${CDEPEND}
|
||||
virtual/pkgconfig"
|
||||
RDEPEND="${CDEPEND}
|
||||
selinux? ( sec-policy/selinux-clamav )"
|
||||
|
||||
DOCS=( AUTHORS BUGS ChangeLog FAQ INSTALL NEWS README UPGRADE )
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup clamav
|
||||
enewuser clamav -1 -1 /dev/null clamav
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
use ppc64 && append-flags -mminimal-toc
|
||||
use uclibc && export ac_cv_type_error_t=yes
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--disable-experimental \
|
||||
--disable-fanotify \
|
||||
--enable-id-check \
|
||||
--with-dbdir="${EPREFIX}"/var/lib/clamav \
|
||||
--with-system-tommath \
|
||||
--with-zlib="${EPREFIX}"/usr \
|
||||
$(use_enable bzip2) \
|
||||
$(use_enable clamdtop) \
|
||||
$(use_enable ipv6) \
|
||||
$(use_enable milter) \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_with iconv) \
|
||||
$(use_with metadata-analysis-api libjson /usr)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
rm -rf "${ED}"/var/lib/clamav
|
||||
newinitd "${FILESDIR}"/clamd.initd-r6 clamd
|
||||
newconfd "${FILESDIR}"/clamd.conf-r1 clamd
|
||||
|
||||
systemd_dotmpfilesd "${FILESDIR}/tmpfiles.d/clamav.conf"
|
||||
systemd_newunit "${FILESDIR}/clamd_at.service" "clamd@.service"
|
||||
systemd_dounit "${FILESDIR}/clamd.service"
|
||||
systemd_dounit "${FILESDIR}/freshclamd.service"
|
||||
|
||||
keepdir /var/lib/clamav
|
||||
fowners clamav:clamav /var/lib/clamav
|
||||
keepdir /var/log/clamav
|
||||
fowners clamav:clamav /var/log/clamav
|
||||
|
||||
dodir /etc/logrotate.d
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}"/clamav.logrotate clamav
|
||||
|
||||
# Modify /etc/{clamd,freshclam}.conf to be usable out of the box
|
||||
sed -i -e "s:^\(Example\):\# \1:" \
|
||||
-e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/clamd.pid:" \
|
||||
-e "s:.*\(LocalSocket\) .*:\1 ${EPREFIX}/var/run/clamav/clamd.sock:" \
|
||||
-e "s:.*\(User\) .*:\1 clamav:" \
|
||||
-e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamd.log:" \
|
||||
-e "s:^\#\(LogTime\).*:\1 yes:" \
|
||||
-e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \
|
||||
"${ED}"/etc/clamd.conf.sample || die
|
||||
sed -i -e "s:^\(Example\):\# \1:" \
|
||||
-e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/freshclam.pid:" \
|
||||
-e "s:.*\(DatabaseOwner\) .*:\1 clamav:" \
|
||||
-e "s:^\#\(UpdateLogFile\) .*:\1 ${EPREFIX}/var/log/clamav/freshclam.log:" \
|
||||
-e "s:^\#\(NotifyClamd\).*:\1 ${EPREFIX}/etc/clamd.conf:" \
|
||||
-e "s:^\#\(ScriptedUpdates\).*:\1 yes:" \
|
||||
-e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \
|
||||
"${ED}"/etc/freshclam.conf.sample || die
|
||||
|
||||
if use milter ; then
|
||||
# MilterSocket one to include ' /' because there is a 2nd line for
|
||||
# inet: which we want to leave
|
||||
dodoc "${FILESDIR}"/clamav-milter.README.gentoo
|
||||
sed -i -e "s:^\(Example\):\# \1:" \
|
||||
-e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/clamav-milter.pid:" \
|
||||
-e "s+^\#\(ClamdSocket\) .*+\1 unix:${EPREFIX}/var/run/clamav/clamd.sock+" \
|
||||
-e "s:.*\(User\) .*:\1 clamav:" \
|
||||
-e "s+^\#\(MilterSocket\) /.*+\1 unix:${EPREFIX}/var/run/clamav/clamav-milter.sock+" \
|
||||
-e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \
|
||||
-e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamav-milter.log:" \
|
||||
"${ED}"/etc/clamav-milter.conf.sample || die
|
||||
cat >> "${ED}"/etc/conf.d/clamd <<-EOF
|
||||
MILTER_NICELEVEL=19
|
||||
START_MILTER=no
|
||||
EOF
|
||||
|
||||
systemd_newunit "${FILESDIR}/clamav-milter.service-r1" clamav-milter.service
|
||||
fi
|
||||
|
||||
for i in clamd freshclam clamav-milter
|
||||
do
|
||||
[[ -f "${D}"/etc/"${i}".conf.sample ]] && mv "${D}"/etc/"${i}".conf{.sample,}
|
||||
done
|
||||
|
||||
prune_libtool_files --all
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use milter ; then
|
||||
elog "For simple instructions how to setup the clamav-milter read the"
|
||||
elog "clamav-milter.README.gentoo in /usr/share/doc/${PF}"
|
||||
fi
|
||||
if test -z $(find "${ROOT}"var/lib/clamav -maxdepth 1 -name 'main.c*' -print -quit) ; then
|
||||
ewarn "You must run freshclam manually to populate the virus database files"
|
||||
ewarn "before starting clamav for the first time.\n"
|
||||
fi
|
||||
}
|
@ -1,145 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit autotools eutils flag-o-matic user systemd
|
||||
|
||||
DESCRIPTION="Clam Anti-Virus Scanner"
|
||||
HOMEPAGE="http://www.clamav.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris"
|
||||
IUSE="bzip2 clamdtop iconv ipv6 libressl milter metadata-analysis-api selinux static-libs uclibc"
|
||||
|
||||
CDEPEND="bzip2? ( app-arch/bzip2 )
|
||||
clamdtop? ( sys-libs/ncurses:0 )
|
||||
iconv? ( virtual/libiconv )
|
||||
metadata-analysis-api? ( dev-libs/json-c:= )
|
||||
milter? ( || ( mail-filter/libmilter mail-mta/sendmail ) )
|
||||
dev-libs/libtommath
|
||||
>=sys-libs/zlib-1.2.2
|
||||
!libressl? ( dev-libs/openssl:0= )
|
||||
libressl? ( dev-libs/libressl:0= )
|
||||
sys-devel/libtool
|
||||
>dev-libs/libpcre-6
|
||||
!!<app-antivirus/clamav-0.99"
|
||||
# hard block clamav < 0.99 due to linking problems Bug #567680
|
||||
# openssl is now *required* see this link as to why
|
||||
# http://blog.clamav.net/2014/02/introducing-openssl-as-dependency-to.html
|
||||
DEPEND="${CDEPEND}
|
||||
virtual/pkgconfig"
|
||||
RDEPEND="${CDEPEND}
|
||||
selinux? ( sec-policy/selinux-clamav )"
|
||||
|
||||
DOCS=( AUTHORS BUGS ChangeLog FAQ INSTALL NEWS README UPGRADE )
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup clamav
|
||||
enewuser clamav -1 -1 /dev/null clamav
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
use ppc64 && append-flags -mminimal-toc
|
||||
use uclibc && export ac_cv_type_error_t=yes
|
||||
|
||||
epatch "${FILESDIR}"/${PN}-0.99-zlib.patch # 604650, fixed in upstream HEAD
|
||||
eautoconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--disable-experimental \
|
||||
--disable-fanotify \
|
||||
--enable-id-check \
|
||||
--with-dbdir="${EPREFIX}"/var/lib/clamav \
|
||||
--with-system-tommath \
|
||||
--with-zlib="${EPREFIX}"/usr \
|
||||
$(use_enable bzip2) \
|
||||
$(use_enable clamdtop) \
|
||||
$(use_enable ipv6) \
|
||||
$(use_enable milter) \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_with iconv) \
|
||||
$(use_with metadata-analysis-api libjson /usr)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
rm -rf "${ED}"/var/lib/clamav
|
||||
newinitd "${FILESDIR}"/clamd.initd-r6 clamd
|
||||
newconfd "${FILESDIR}"/clamd.conf-r1 clamd
|
||||
|
||||
systemd_dotmpfilesd "${FILESDIR}/tmpfiles.d/clamav.conf"
|
||||
systemd_newunit "${FILESDIR}/clamd_at.service" "clamd@.service"
|
||||
systemd_dounit "${FILESDIR}/clamd.service"
|
||||
systemd_dounit "${FILESDIR}/freshclamd.service"
|
||||
|
||||
keepdir /var/lib/clamav
|
||||
fowners clamav:clamav /var/lib/clamav
|
||||
keepdir /var/log/clamav
|
||||
fowners clamav:clamav /var/log/clamav
|
||||
|
||||
dodir /etc/logrotate.d
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}"/clamav.logrotate clamav
|
||||
|
||||
# Modify /etc/{clamd,freshclam}.conf to be usable out of the box
|
||||
sed -i -e "s:^\(Example\):\# \1:" \
|
||||
-e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/clamd.pid:" \
|
||||
-e "s:.*\(LocalSocket\) .*:\1 ${EPREFIX}/var/run/clamav/clamd.sock:" \
|
||||
-e "s:.*\(User\) .*:\1 clamav:" \
|
||||
-e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamd.log:" \
|
||||
-e "s:^\#\(LogTime\).*:\1 yes:" \
|
||||
-e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \
|
||||
"${ED}"/etc/clamd.conf.sample || die
|
||||
sed -i -e "s:^\(Example\):\# \1:" \
|
||||
-e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/freshclam.pid:" \
|
||||
-e "s:.*\(DatabaseOwner\) .*:\1 clamav:" \
|
||||
-e "s:^\#\(UpdateLogFile\) .*:\1 ${EPREFIX}/var/log/clamav/freshclam.log:" \
|
||||
-e "s:^\#\(NotifyClamd\).*:\1 ${EPREFIX}/etc/clamd.conf:" \
|
||||
-e "s:^\#\(ScriptedUpdates\).*:\1 yes:" \
|
||||
-e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \
|
||||
"${ED}"/etc/freshclam.conf.sample || die
|
||||
|
||||
if use milter ; then
|
||||
# MilterSocket one to include ' /' because there is a 2nd line for
|
||||
# inet: which we want to leave
|
||||
dodoc "${FILESDIR}"/clamav-milter.README.gentoo
|
||||
sed -i -e "s:^\(Example\):\# \1:" \
|
||||
-e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/clamav-milter.pid:" \
|
||||
-e "s+^\#\(ClamdSocket\) .*+\1 unix:${EPREFIX}/var/run/clamav/clamd.sock+" \
|
||||
-e "s:.*\(User\) .*:\1 clamav:" \
|
||||
-e "s+^\#\(MilterSocket\) /.*+\1 unix:${EPREFIX}/var/run/clamav/clamav-milter.sock+" \
|
||||
-e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \
|
||||
-e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamav-milter.log:" \
|
||||
"${ED}"/etc/clamav-milter.conf.sample || die
|
||||
cat >> "${ED}"/etc/conf.d/clamd <<-EOF
|
||||
MILTER_NICELEVEL=19
|
||||
START_MILTER=no
|
||||
EOF
|
||||
|
||||
systemd_newunit "${FILESDIR}/clamav-milter.service-r1" clamav-milter.service
|
||||
fi
|
||||
|
||||
for i in clamd freshclam clamav-milter
|
||||
do
|
||||
[[ -f "${D}"/etc/"${i}".conf.sample ]] && mv "${D}"/etc/"${i}".conf{.sample,}
|
||||
done
|
||||
|
||||
prune_libtool_files --all
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use milter ; then
|
||||
elog "For simple instructions how to setup the clamav-milter read the"
|
||||
elog "clamav-milter.README.gentoo in /usr/share/doc/${PF}"
|
||||
fi
|
||||
if test -z $(find "${ROOT}"var/lib/clamav -maxdepth 1 -name 'main.c*' -print -quit) ; then
|
||||
ewarn "You must run freshclam manually to populate the virus database files"
|
||||
ewarn "before starting clamav for the first time.\n"
|
||||
fi
|
||||
}
|
@ -1,147 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit autotools eutils flag-o-matic user systemd
|
||||
|
||||
DESCRIPTION="Clam Anti-Virus Scanner"
|
||||
HOMEPAGE="http://www.clamav.net/"
|
||||
# no longer on sf.net from 0.99.2 onwards
|
||||
SRC_URI="https://www.clamav.net/downloads/production/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris"
|
||||
IUSE="bzip2 clamdtop iconv ipv6 libressl milter metadata-analysis-api selinux static-libs uclibc"
|
||||
|
||||
CDEPEND="bzip2? ( app-arch/bzip2 )
|
||||
clamdtop? ( sys-libs/ncurses:0 )
|
||||
iconv? ( virtual/libiconv )
|
||||
metadata-analysis-api? ( dev-libs/json-c:= )
|
||||
milter? ( || ( mail-filter/libmilter mail-mta/sendmail ) )
|
||||
dev-libs/libtommath
|
||||
>=sys-libs/zlib-1.2.2
|
||||
!libressl? ( dev-libs/openssl:0= )
|
||||
libressl? ( dev-libs/libressl:0= )
|
||||
sys-devel/libtool
|
||||
>dev-libs/libpcre-6
|
||||
!!<app-antivirus/clamav-0.99"
|
||||
# hard block clamav < 0.99 due to linking problems Bug #567680
|
||||
# openssl is now *required* see this link as to why
|
||||
# http://blog.clamav.net/2014/02/introducing-openssl-as-dependency-to.html
|
||||
DEPEND="${CDEPEND}
|
||||
virtual/pkgconfig"
|
||||
RDEPEND="${CDEPEND}
|
||||
selinux? ( sec-policy/selinux-clamav )"
|
||||
|
||||
DOCS=( AUTHORS BUGS ChangeLog FAQ INSTALL NEWS README UPGRADE )
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup clamav
|
||||
enewuser clamav -1 -1 /dev/null clamav
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
use ppc64 && append-flags -mminimal-toc
|
||||
use uclibc && export ac_cv_type_error_t=yes
|
||||
|
||||
epatch "${FILESDIR}"/${P}-gcc-6.patch #592432
|
||||
epatch "${FILESDIR}"/${PN}-0.99-zlib.patch # 604650, fixed in upstream HEAD
|
||||
eautoconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--disable-experimental \
|
||||
--disable-fanotify \
|
||||
--enable-id-check \
|
||||
--with-dbdir="${EPREFIX}"/var/lib/clamav \
|
||||
--with-system-tommath \
|
||||
--with-zlib="${EPREFIX}"/usr \
|
||||
$(use_enable bzip2) \
|
||||
$(use_enable clamdtop) \
|
||||
$(use_enable ipv6) \
|
||||
$(use_enable milter) \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_with iconv) \
|
||||
$(use_with metadata-analysis-api libjson /usr)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
rm -rf "${ED}"/var/lib/clamav
|
||||
newinitd "${FILESDIR}"/clamd.initd-r6 clamd
|
||||
newconfd "${FILESDIR}"/clamd.conf-r1 clamd
|
||||
|
||||
systemd_dotmpfilesd "${FILESDIR}/tmpfiles.d/clamav.conf"
|
||||
systemd_newunit "${FILESDIR}/clamd_at.service" "clamd@.service"
|
||||
systemd_dounit "${FILESDIR}/clamd.service"
|
||||
systemd_dounit "${FILESDIR}/freshclamd.service"
|
||||
|
||||
keepdir /var/lib/clamav
|
||||
fowners clamav:clamav /var/lib/clamav
|
||||
keepdir /var/log/clamav
|
||||
fowners clamav:clamav /var/log/clamav
|
||||
|
||||
dodir /etc/logrotate.d
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}"/clamav.logrotate clamav
|
||||
|
||||
# Modify /etc/{clamd,freshclam}.conf to be usable out of the box
|
||||
sed -i -e "s:^\(Example\):\# \1:" \
|
||||
-e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/clamd.pid:" \
|
||||
-e "s:.*\(LocalSocket\) .*:\1 ${EPREFIX}/var/run/clamav/clamd.sock:" \
|
||||
-e "s:.*\(User\) .*:\1 clamav:" \
|
||||
-e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamd.log:" \
|
||||
-e "s:^\#\(LogTime\).*:\1 yes:" \
|
||||
-e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \
|
||||
"${ED}"/etc/clamd.conf.sample || die
|
||||
sed -i -e "s:^\(Example\):\# \1:" \
|
||||
-e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/freshclam.pid:" \
|
||||
-e "s:.*\(DatabaseOwner\) .*:\1 clamav:" \
|
||||
-e "s:^\#\(UpdateLogFile\) .*:\1 ${EPREFIX}/var/log/clamav/freshclam.log:" \
|
||||
-e "s:^\#\(NotifyClamd\).*:\1 ${EPREFIX}/etc/clamd.conf:" \
|
||||
-e "s:^\#\(ScriptedUpdates\).*:\1 yes:" \
|
||||
-e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \
|
||||
"${ED}"/etc/freshclam.conf.sample || die
|
||||
|
||||
if use milter ; then
|
||||
# MilterSocket one to include ' /' because there is a 2nd line for
|
||||
# inet: which we want to leave
|
||||
dodoc "${FILESDIR}"/clamav-milter.README.gentoo
|
||||
sed -i -e "s:^\(Example\):\# \1:" \
|
||||
-e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/clamav-milter.pid:" \
|
||||
-e "s+^\#\(ClamdSocket\) .*+\1 unix:${EPREFIX}/var/run/clamav/clamd.sock+" \
|
||||
-e "s:.*\(User\) .*:\1 clamav:" \
|
||||
-e "s+^\#\(MilterSocket\) /.*+\1 unix:${EPREFIX}/var/run/clamav/clamav-milter.sock+" \
|
||||
-e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \
|
||||
-e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamav-milter.log:" \
|
||||
"${ED}"/etc/clamav-milter.conf.sample || die
|
||||
cat >> "${ED}"/etc/conf.d/clamd <<-EOF
|
||||
MILTER_NICELEVEL=19
|
||||
START_MILTER=no
|
||||
EOF
|
||||
|
||||
systemd_newunit "${FILESDIR}/clamav-milter.service-r1" clamav-milter.service
|
||||
fi
|
||||
|
||||
for i in clamd freshclam clamav-milter
|
||||
do
|
||||
[[ -f "${D}"/etc/"${i}".conf.sample ]] && mv "${D}"/etc/"${i}".conf{.sample,}
|
||||
done
|
||||
|
||||
prune_libtool_files --all
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use milter ; then
|
||||
elog "For simple instructions how to setup the clamav-milter read the"
|
||||
elog "clamav-milter.README.gentoo in /usr/share/doc/${PF}"
|
||||
fi
|
||||
if test -z $(find "${ROOT}"var/lib/clamav -maxdepth 1 -name 'main.c*' -print -quit) ; then
|
||||
ewarn "You must run freshclam manually to populate the virus database files"
|
||||
ewarn "before starting clamav for the first time.\n"
|
||||
fi
|
||||
}
|
@ -1,146 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit autotools eutils flag-o-matic user systemd
|
||||
|
||||
DESCRIPTION="Clam Anti-Virus Scanner"
|
||||
HOMEPAGE="http://www.clamav.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris"
|
||||
IUSE="bzip2 clamdtop iconv ipv6 libressl milter metadata-analysis-api selinux static-libs uclibc"
|
||||
|
||||
CDEPEND="bzip2? ( app-arch/bzip2 )
|
||||
clamdtop? ( sys-libs/ncurses:0 )
|
||||
iconv? ( virtual/libiconv )
|
||||
metadata-analysis-api? ( dev-libs/json-c:= )
|
||||
milter? ( || ( mail-filter/libmilter mail-mta/sendmail ) )
|
||||
dev-libs/libtommath
|
||||
>=sys-libs/zlib-1.2.2
|
||||
!libressl? ( dev-libs/openssl:0= )
|
||||
libressl? ( dev-libs/libressl:0= )
|
||||
sys-devel/libtool
|
||||
>dev-libs/libpcre-6
|
||||
!!<app-antivirus/clamav-0.99"
|
||||
# hard block clamav < 0.99 due to linking problems Bug #567680
|
||||
# openssl is now *required* see this link as to why
|
||||
# http://blog.clamav.net/2014/02/introducing-openssl-as-dependency-to.html
|
||||
DEPEND="${CDEPEND}
|
||||
virtual/pkgconfig"
|
||||
RDEPEND="${CDEPEND}
|
||||
selinux? ( sec-policy/selinux-clamav )"
|
||||
|
||||
DOCS=( AUTHORS BUGS ChangeLog FAQ INSTALL NEWS README UPGRADE )
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup clamav
|
||||
enewuser clamav -1 -1 /dev/null clamav
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
use ppc64 && append-flags -mminimal-toc
|
||||
use uclibc && export ac_cv_type_error_t=yes
|
||||
|
||||
epatch "${FILESDIR}"/${P}-zlib.patch # 604650, fixed in upstream HEAD
|
||||
eautoconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--disable-experimental \
|
||||
--disable-fanotify \
|
||||
--disable-zlib-vcheck \
|
||||
--enable-id-check \
|
||||
--with-dbdir="${EPREFIX}"/var/lib/clamav \
|
||||
--with-system-tommath \
|
||||
--with-zlib="${EPREFIX}"/usr \
|
||||
$(use_enable bzip2) \
|
||||
$(use_enable clamdtop) \
|
||||
$(use_enable ipv6) \
|
||||
$(use_enable milter) \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_with iconv) \
|
||||
$(use_with metadata-analysis-api libjson /usr)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
rm -rf "${ED}"/var/lib/clamav
|
||||
newinitd "${FILESDIR}"/clamd.initd-r6 clamd
|
||||
newconfd "${FILESDIR}"/clamd.conf-r1 clamd
|
||||
|
||||
systemd_dotmpfilesd "${FILESDIR}/tmpfiles.d/clamav.conf"
|
||||
systemd_newunit "${FILESDIR}/clamd_at.service" "clamd@.service"
|
||||
systemd_dounit "${FILESDIR}/clamd.service"
|
||||
systemd_dounit "${FILESDIR}/freshclamd.service"
|
||||
|
||||
keepdir /var/lib/clamav
|
||||
fowners clamav:clamav /var/lib/clamav
|
||||
keepdir /var/log/clamav
|
||||
fowners clamav:clamav /var/log/clamav
|
||||
|
||||
dodir /etc/logrotate.d
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}"/clamav.logrotate clamav
|
||||
|
||||
# Modify /etc/{clamd,freshclam}.conf to be usable out of the box
|
||||
sed -i -e "s:^\(Example\):\# \1:" \
|
||||
-e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/clamd.pid:" \
|
||||
-e "s:.*\(LocalSocket\) .*:\1 ${EPREFIX}/var/run/clamav/clamd.sock:" \
|
||||
-e "s:.*\(User\) .*:\1 clamav:" \
|
||||
-e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamd.log:" \
|
||||
-e "s:^\#\(LogTime\).*:\1 yes:" \
|
||||
-e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \
|
||||
"${ED}"/etc/clamd.conf.sample || die
|
||||
sed -i -e "s:^\(Example\):\# \1:" \
|
||||
-e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/freshclam.pid:" \
|
||||
-e "s:.*\(DatabaseOwner\) .*:\1 clamav:" \
|
||||
-e "s:^\#\(UpdateLogFile\) .*:\1 ${EPREFIX}/var/log/clamav/freshclam.log:" \
|
||||
-e "s:^\#\(NotifyClamd\).*:\1 ${EPREFIX}/etc/clamd.conf:" \
|
||||
-e "s:^\#\(ScriptedUpdates\).*:\1 yes:" \
|
||||
-e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \
|
||||
"${ED}"/etc/freshclam.conf.sample || die
|
||||
|
||||
if use milter ; then
|
||||
# MilterSocket one to include ' /' because there is a 2nd line for
|
||||
# inet: which we want to leave
|
||||
dodoc "${FILESDIR}"/clamav-milter.README.gentoo
|
||||
sed -i -e "s:^\(Example\):\# \1:" \
|
||||
-e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/clamav-milter.pid:" \
|
||||
-e "s+^\#\(ClamdSocket\) .*+\1 unix:${EPREFIX}/var/run/clamav/clamd.sock+" \
|
||||
-e "s:.*\(User\) .*:\1 clamav:" \
|
||||
-e "s+^\#\(MilterSocket\) /.*+\1 unix:${EPREFIX}/var/run/clamav/clamav-milter.sock+" \
|
||||
-e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \
|
||||
-e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamav-milter.log:" \
|
||||
"${ED}"/etc/clamav-milter.conf.sample || die
|
||||
cat >> "${ED}"/etc/conf.d/clamd <<-EOF
|
||||
MILTER_NICELEVEL=19
|
||||
START_MILTER=no
|
||||
EOF
|
||||
|
||||
systemd_newunit "${FILESDIR}/clamav-milter.service-r1" clamav-milter.service
|
||||
fi
|
||||
|
||||
for i in clamd freshclam clamav-milter
|
||||
do
|
||||
[[ -f "${D}"/etc/"${i}".conf.sample ]] && mv "${D}"/etc/"${i}".conf{.sample,}
|
||||
done
|
||||
|
||||
prune_libtool_files --all
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use milter ; then
|
||||
elog "For simple instructions how to setup the clamav-milter read the"
|
||||
elog "clamav-milter.README.gentoo in /usr/share/doc/${PF}"
|
||||
fi
|
||||
if test -z $(find "${ROOT}"var/lib/clamav -maxdepth 1 -name 'main.c*' -print -quit) ; then
|
||||
ewarn "You must run freshclam manually to populate the virus database files"
|
||||
ewarn "before starting clamav for the first time.\n"
|
||||
fi
|
||||
}
|
Binary file not shown.
@ -1,4 +1,3 @@
|
||||
DIST chkrootkit-0.50-gentoo.diff.bz2 5010 BLAKE2B db004fbdd94552d95bb4386fe82614811334e01239c2086d309e4a23e1d107dcae107becb3a8d16953624cda68664e8d4eee53e2fd3aa6214e8dd5a85dad1b04 SHA512 067a0a33fad2389a7ef942f76a63bed6c206d08576a77fd758ae171960804fb74d3164bc6eb582f5d8b722e9e863dc4380f5632940bc9a8c1821b46ed1062a50
|
||||
DIST chkrootkit-0.50.tar.gz 38616 BLAKE2B f72d78471f804c2c80d4036452beae04cd49770b18b46cabd78e9a27ea0b3e3cff3833ab6a804fa16c70c2c32f9b45d4f0d50986d680256f1f92603da948497b SHA512 9f26fd34e85b58b13dedc5f38a889ae258bb2c0f1ff40e99c149e23f93890e956f94204b1bb2241584454e99168c53b583f52777083454237f3ba343424dba1c
|
||||
DIST chkrootkit-0.51-gentoo.diff.xz 4708 BLAKE2B 0dacba47222319d9e5bb5d39e0eb4b7074fb3025be885c5fd9564c10f592e04ba4afe2d0c792a2e54fe4c9b1103e366f65af949e7c0db730bf61981fe8fe2364 SHA512 13dca9c272d85d35d736e14896058612f62e1781aac034f06882fe63d956f074a3c67bf308c104f0080323bb127ba01373967b2c28481741d17d83310fe52dd0
|
||||
DIST chkrootkit-0.51.tar 174080 BLAKE2B 36acd12801d2ac599b71d0c59165c1489309df0365442aa575bb4c505bbfea5d0daad837fa9b7b40c2aa3841fceda199f37fe5832f0685ad3a0a82ff5e653a3b SHA512 adef6823d069b32305605d0eaa3d3701c6a87900646d9509cebe0fd8a2fec0523595d0dcb4576b32245e7638388d3b43858dbc42be68de9971ac8461fcfdeb34
|
||||
DIST chkrootkit-0.52.tar 40031 BLAKE2B 8bd3518edc11a22dbc7e866de622454f55baa9fcd06a4034489596c0a24d867fec16d134dbc0aaf8b936640177d7dee8e061e39813a3ed261ae657d70f54a47d SHA512 45d66227c185c60166c9ea2a1f89f4594fa7c943c280fd6da5b59b5b355d5fe0d36806ef133fb29f9b2cac0bc05e9c10773ed4fae923a7115cc900818a596d42
|
||||
|
@ -1,24 +1,29 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
EAPI=6
|
||||
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
DESCRIPTION="Tool to locally check for signs of a rootkit"
|
||||
HOMEPAGE="http://www.chkrootkit.org/"
|
||||
SRC_URI="ftp://ftp.pangeia.com.br/pub/seg/pac/${P}.tar.gz
|
||||
https://dev.gentoo.org/~xmw/${P}-gentoo.diff.bz2"
|
||||
# Upstream named their *uncompressed* tarball .tar.gz (*sigh*)
|
||||
SRC_URI="ftp://ftp.pangeia.com.br/pub/seg/pac/${P}.tar.gz -> ${P}.tar
|
||||
https://dev.gentoo.org/~polynomial-c/${PN}-0.51-gentoo.diff.xz"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm ~hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
|
||||
IUSE="+cron"
|
||||
|
||||
RDEPEND="cron? ( virtual/cron )"
|
||||
|
||||
PATCHES=(
|
||||
"${WORKDIR}"/${PN}-0.51-gentoo.diff
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
epatch "${WORKDIR}"/${P}-gentoo.diff
|
||||
default
|
||||
sed -e 's:/var/adm/:/var/log/:g' \
|
||||
-i chklastlog.c || die
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,34 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python Application for sending sms over multiple ISPs"
|
||||
HOMEPAGE="http://pysmssend.silverarrow.org/"
|
||||
SRC_URI="http://pysmssend.silverarrow.org/files/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=">dev-python/mechanize-0.1.7b[${PYTHON_USEDEP}]"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
python_install() {
|
||||
distutils-r1_python_install
|
||||
python_doscript pysmssendcmd
|
||||
ln -s pysmssendcmd "${D}$(python_get_scriptdir)"/pysmssend || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils-r1_src_install
|
||||
dosym pysmssendcmd /usr/bin/pysmssend
|
||||
einstalldocs
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST yq-2.1.2.tar.gz 4704 BLAKE2B 980f0025ed397d620cf4883b3603411e7d969d641a50b6ad7f8be2ed9cb326772b0d79b36b0fe1c1f168e9b859bab63be3c0a6e267fef9ae15e8aa66574dbd67 SHA512 88f32e58aacd82deb06deee6910f5a145e54d20829f438cd47248d560119dd8112e0813ea8d55708664ac29ef011bbc3fd6b882e1c538ef44aaa9aa119584e99
|
||||
DIST yq-2.3.0.tar.gz 5165 BLAKE2B 5d317d78e4e9e0fbe3064c004b33cb267fe0947d011ea3f12b873a2a31b16695c57bd932b2f2e5145afa22f9cccb43bed0a34847c4975f83bf63651e6b3b5372 SHA512 f256d1766b697f6bcb88bb8129e587bb99929154e13167f179bff1669b08b5444af90d7a17382b4f434092110ddb9e578c1f374b56aba03b4a4406fc25b76d6a
|
||||
DIST yq-2.3.3.tar.gz 5486 BLAKE2B fa02b7466d54dbb5ddd4090329e1dd1d3826aa12d647563296236122fa34a85e7ee3e7f06edc227264db8fc18a215f39a5b171c18e498132bf701ef25def7936 SHA512 58461c74f907be241047197967ec316ea6ffe2accd99c8b97a158369d06f32c758c56edaeea30d3e4988e295a58fabeb47d960097b136c6b0bf16c2792b7f75d
|
||||
DIST yq-2.3.4.tar.gz 5657 BLAKE2B d7e6a37ed157ff2a23b648a54cf729cda1413a627f1169ba938ae89d4bd175270cdc5fa39ca5ea3c31d55d562439296bcce391cb22cd2faccc5f545f2577a12d SHA512 ea530d3f501a8697474b1b77644fdf439326e49fbae158a862e58fba6f939ee5f3ba50f82cc5e990b1ed05c4e7aa9c205635290e6d2507d46e53b68ee467d5e1
|
||||
|
@ -0,0 +1,24 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Command-line YAML processor - jq wrapper for YAML documents"
|
||||
HOMEPAGE="https://yq.readthedocs.io/ https://github.com/kislyuk/yq/ https://pypi.python.org/pypi/yq"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="app-misc/jq
|
||||
>=dev-python/pyyaml-3.11[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
|
||||
python_test() {
|
||||
./test/test.py || die
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,147 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit cmake-utils flag-o-matic virtualx
|
||||
|
||||
DESCRIPTION="Personal finance manager by KDE"
|
||||
HOMEPAGE="https://kmymoney.org/"
|
||||
SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="4"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="calendar debug doc +handbook hbci ofx quotes test weboob"
|
||||
|
||||
COMMON_DEPEND="
|
||||
>=app-crypt/gpgme-1.7.0[cxx]
|
||||
<app-office/libalkimia-6.0.0
|
||||
dev-libs/gmp:0=
|
||||
dev-libs/libgpg-error
|
||||
dev-qt/qtcore:4[ssl]
|
||||
dev-qt/qtdbus:4
|
||||
dev-qt/qtgui:4
|
||||
dev-qt/qtsql:4
|
||||
dev-qt/qtsvg:4
|
||||
kde-frameworks/kdelibs:4
|
||||
x11-misc/shared-mime-info
|
||||
calendar? ( dev-libs/libical:= )
|
||||
hbci? (
|
||||
>=net-libs/aqbanking-5.5.1
|
||||
>=sys-libs/gwenhywfar-4.15.3[qt4]
|
||||
)
|
||||
ofx? ( >=dev-libs/libofx-0.9.4 )
|
||||
weboob? ( www-client/weboob )
|
||||
"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
kde-frameworks/oxygen-icons:*
|
||||
handbook? ( kde-frameworks/kdelibs:4[handbook] )
|
||||
quotes? ( dev-perl/Finance-Quote )
|
||||
"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
dev-libs/boost
|
||||
virtual/pkgconfig
|
||||
doc? ( app-doc/doxygen )
|
||||
handbook? (
|
||||
app-text/docbook-xml-dtd:4.2
|
||||
app-text/docbook-xsl-stylesheets
|
||||
)
|
||||
test? ( dev-qt/qttest:4 )
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
cmake-utils_src_prepare
|
||||
|
||||
if [[ -v LINGUAS ]] ; then
|
||||
pushd po > /dev/null || die
|
||||
local lang
|
||||
for lang in *; do
|
||||
if [[ -e ${lang} ]] && ! has ${lang/.po/} ${LINGUAS} ; then
|
||||
case ${lang} in
|
||||
CMakeLists.txt) ;;
|
||||
*) rm -r ${lang} || die ;;
|
||||
esac
|
||||
cmake_comment_add_subdirectory ${lang}
|
||||
sed -e "/add_subdirectory([[:space:]]*${lang}\/.*[[:space:]]*)/d" \
|
||||
-i CMakeLists.txt || die
|
||||
fi
|
||||
done
|
||||
popd > /dev/null || die
|
||||
fi
|
||||
|
||||
if ! use handbook; then
|
||||
cmake_comment_add_subdirectory doc
|
||||
else
|
||||
if [[ -d doc && -v LINGUAS ]] ; then
|
||||
pushd doc > /dev/null || die
|
||||
local lang
|
||||
for lang in *; do
|
||||
if ! has ${lang} ${LINGUAS} && [[ ${lang} != "en_US" ]]; then
|
||||
cmake_comment_add_subdirectory ${lang}
|
||||
fi
|
||||
done
|
||||
popd > /dev/null || die
|
||||
fi
|
||||
fi
|
||||
|
||||
# don't install as executable
|
||||
sed -i kmymoney/CMakeLists.txt \
|
||||
-e "/install.*kmymoney.appdata/ s/PROGRAMS/FILES/" || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
use debug || append-cppflags -DQT_NO_DEBUG
|
||||
|
||||
local mycmakeargs=(
|
||||
-DUSE_QT_DESIGNER=OFF
|
||||
-DENABLE_LIBICAL=$(usex calendar)
|
||||
-DUSE_DEVELOPER_DOC=$(usex doc)
|
||||
-DENABLE_KBANKING=$(usex hbci)
|
||||
-DENABLE_LIBOFX=$(usex ofx)
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_KdepimLibs=ON
|
||||
-DKDE4_BUILD_TESTS=$(usex test)
|
||||
-DENABLE_WEBOOB=$(usex weboob)
|
||||
)
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake-utils_src_compile
|
||||
use doc && cmake-utils_src_compile apidoc
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local kded4_pid
|
||||
|
||||
_test_runner() {
|
||||
export $(dbus-launch)
|
||||
kded4 2>&1 > /dev/null &
|
||||
kded4_pid=$!
|
||||
|
||||
cmake-utils_src_test
|
||||
}
|
||||
|
||||
unset DBUS_SESSION_BUS_ADDRESS DBUS_SESSION_BUS_PID
|
||||
|
||||
local myctestargs=( -E "(kmymoney-querytabletest)" ) # requires ktimezoned
|
||||
virtx _test_runner
|
||||
|
||||
if [[ -n "${kded4_pid}" ]] ; then
|
||||
kill ${kded4_pid}
|
||||
fi
|
||||
|
||||
if [[ -n "${DBUS_SESSION_BUS_PID}" ]] ; then
|
||||
kill ${DBUS_SESSION_BUS_PID}
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
use doc && HTML_DOCS=( "${BUILD_DIR}/apidocs/html/." )
|
||||
cmake-utils_src_install
|
||||
|
||||
# We don't want /usr/share/doc/HTML to be compressed,
|
||||
# because then khelpcenter can't find the docs
|
||||
[[ -d ${ED%/}/usr/share/doc/HTML ]] &&
|
||||
docompress -x /usr/share/doc/HTML
|
||||
}
|
@ -1,75 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
KDE_HANDBOOK="optional"
|
||||
SQL_REQUIRED="always"
|
||||
VIRTUALX_REQUIRED="test"
|
||||
VIRTUALDBUS_TEST="true"
|
||||
inherit kde4-base
|
||||
|
||||
DESCRIPTION="Personal finance manager by KDE"
|
||||
HOMEPAGE="https://kmymoney.org/"
|
||||
if [[ ${KDE_BUILD_TYPE} = release ]]; then
|
||||
SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="4"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="calendar debug doc hbci ofx quotes weboob"
|
||||
|
||||
COMMON_DEPEND="
|
||||
>=app-crypt/gpgme-1.7.0[cxx]
|
||||
<app-office/libalkimia-6.0.0
|
||||
dev-libs/gmp:0=
|
||||
dev-libs/libgpg-error
|
||||
x11-misc/shared-mime-info
|
||||
calendar? ( dev-libs/libical:= )
|
||||
hbci? (
|
||||
>=net-libs/aqbanking-5.5.1
|
||||
>=sys-libs/gwenhywfar-4.15.3[qt4]
|
||||
)
|
||||
ofx? ( >=dev-libs/libofx-0.9.4 )
|
||||
weboob? ( www-client/weboob )
|
||||
"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
quotes? ( dev-perl/Finance-Quote )
|
||||
"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
dev-libs/boost
|
||||
virtual/pkgconfig
|
||||
doc? ( app-doc/doxygen )
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
kde4-base_src_prepare
|
||||
|
||||
# don't install as executable
|
||||
sed -i kmymoney/CMakeLists.txt \
|
||||
-e "/install.*kmymoney.appdata/ s/PROGRAMS/FILES/" || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DUSE_QT_DESIGNER=OFF
|
||||
-DENABLE_LIBICAL=$(usex calendar)
|
||||
-DUSE_DEVELOPER_DOC=$(usex doc)
|
||||
-DENABLE_KBANKING=$(usex hbci)
|
||||
-DENABLE_LIBOFX=$(usex ofx)
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_KdepimLibs=ON
|
||||
-DENABLE_WEBOOB=$(usex weboob)
|
||||
)
|
||||
kde4-base_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
kde4-base_src_compile
|
||||
use doc && kde4-base_src_compile apidoc
|
||||
}
|
||||
|
||||
src_install() {
|
||||
use doc && HTML_DOCS=("${BUILD_DIR}/apidocs/html/")
|
||||
kde4-base_src_install
|
||||
}
|
@ -0,0 +1,73 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit cmake-utils xdg-utils gnome2-utils qmake-utils
|
||||
|
||||
MY_P=${P/tex/TeX}-src
|
||||
|
||||
DESCRIPTION="Wysiwyg text processor with high-quality maths"
|
||||
HOMEPAGE="http://www.texmacs.org/"
|
||||
SRC_URI="ftp://ftp.texmacs.org/pub/TeXmacs/tmftp/source/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
IUSE="jpeg netpbm sqlite svg spell"
|
||||
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
RDEPEND="
|
||||
app-text/ghostscript-gpl
|
||||
<dev-scheme/guile-1.9[deprecated]
|
||||
media-libs/freetype
|
||||
x11-apps/xmodmap
|
||||
x11-libs/libXext
|
||||
virtual/latex-base
|
||||
>=dev-qt/qtcore-5.9.1:5
|
||||
>=dev-qt/qtgui-5.9.1:5
|
||||
>=dev-qt/qtwidgets-5.9.1:5
|
||||
>=dev-qt/qtprintsupport-5.9.1:5
|
||||
sqlite? ( dev-db/sqlite )
|
||||
jpeg? ( || ( media-gfx/imagemagick media-gfx/jpeg2ps ) )
|
||||
netpbm? ( media-libs/netpbm )
|
||||
spell? ( app-text/aspell )
|
||||
svg? ( || ( media-gfx/inkscape gnome-base/librsvg:2 ) )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
x11-proto/xproto"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
PATCHES=(
|
||||
# respect LDFLAGS, bug #338459
|
||||
"${FILESDIR}"/${PN}-plugins-1.patch
|
||||
|
||||
# dont update mime and desktop databases and icon cache
|
||||
"${FILESDIR}"/${PN}-updates.patch
|
||||
|
||||
"${FILESDIR}"/${PN}-1.99.2-desktop.patch
|
||||
|
||||
# remove new/delete declarations, bug 590002
|
||||
"${FILESDIR}"/${PN}-1.99-remove-new-declaration.patch
|
||||
|
||||
"${FILESDIR}"/${PN}-1.99.6-math_util.patch
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DUSE_SQLITE=$(usex sqlite sqlite3)
|
||||
)
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_desktop_database_update
|
||||
xdg_mimeinfo_database_update
|
||||
gnome2_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_desktop_database_update
|
||||
xdg_mimeinfo_database_update
|
||||
gnome2_icon_cache_update
|
||||
}
|
Binary file not shown.
@ -1,3 +1,2 @@
|
||||
DIST gemato-10.0.tar.gz 62507 BLAKE2B db3a779d3749a80a784da410766e6b3e1b790df58693dc6c5bd928a9b8b3bd488e2b2efc8a4a37aa081856ba1336c039d33868b20e1ce723ce799a981e51d96c SHA512 bb00aaa6eeba053d66fc4f638b0e1d88059a7877aa376d873aa0b5a91c150cd45deccf01c3af85339a268f2ea46b2893cdb27d2b72a626b4fd0deca4fdca2d3d
|
||||
DIST gemato-9.2.tar.gz 60217 BLAKE2B f46cb35b5ae71fe1743c7a43bfeff42a9d77517ef48dca1dd05c5c8cd569d5dcd9bdb0c0957d81d2db6b8d873099463fd6132121be04e0fd6f55bb130df48c2e SHA512 bb40abb910b528e455bdc01ed528071ca6f1390a8a5ae670692c93e6c3fc8fd7fc7e95d7321c81ad5144fc8a042676a8dac634c7b3f68e7f725edc98edd30c94
|
||||
DIST gemato-10.2.tar.gz 63273 BLAKE2B 650f3f9d1c43ee4c8fe1fd53c71fdb818c296141ffdba06371a588d08e6c3f4760c9cd46c4944a11d87cb7026fe13d4576c966275077757f8939452eb1ca15c1 SHA512 51dd55b98acfd22cf3d02a5cb608f6021fd0582c36ef52ac2f0fcb0a66d53ed6abfa546010c2315cabeda839965c8b36da484834bbb2cf6dc23a92b6430acd91
|
||||
DIST gemato-9.3.tar.gz 60601 BLAKE2B d85bf5910736da2ca887567799dee1823e9be6af9b17a8f9deb84ee24bb725c3550aafffa51b15484acb7d37ddbd5996aa4175a8f307b6e3a593f8b5497822be SHA512 7f81409b3b9bd65d295cd760af5cabfc7daf257740f00015f07cd7a0cffd02a40f219b59378179b58bf53b321fb543b308457d3a8b7adcb02981562282f1f46f
|
||||
|
@ -1,47 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
# backports.lzma is broken with pypy
|
||||
# pyblake2 & pysha3 are broken with pypy3
|
||||
PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Stand-alone Manifest generation & verification tool"
|
||||
HOMEPAGE="https://github.com/mgorny/gemato"
|
||||
SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE="+blake2 bzip2 +gpg lzma +portage-postsync sha3 test"
|
||||
|
||||
# pyliblzma installs an incompatible 'lzma' module (fixed properly in -9999)
|
||||
# https://bugs.gentoo.org/643254
|
||||
MODULE_RDEPEND="
|
||||
$(python_gen_cond_dep '!!dev-python/pyliblzma' python2_7)
|
||||
blake2? ( $(python_gen_cond_dep 'dev-python/pyblake2[${PYTHON_USEDEP}]' python{2_7,3_4,3_5} pypy{,3}) )
|
||||
bzip2? ( $(python_gen_cond_dep 'dev-python/bz2file[${PYTHON_USEDEP}]' python2_7 pypy) )
|
||||
gpg? ( app-crypt/gnupg )
|
||||
lzma? ( $(python_gen_cond_dep 'dev-python/backports-lzma[${PYTHON_USEDEP}]' python2_7 pypy) )
|
||||
sha3? ( $(python_gen_cond_dep 'dev-python/pysha3[${PYTHON_USEDEP}]' python{2_7,3_4,3_5} pypy{,3}) )"
|
||||
|
||||
RDEPEND="${MODULE_RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
portage-postsync? ( app-crypt/gentoo-keys )"
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? ( ${MODULE_RDEPEND} )"
|
||||
|
||||
python_test() {
|
||||
esetup.py test
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
if use portage-postsync; then
|
||||
exeinto /etc/portage/repo.postsync.d
|
||||
doexe utils/repo.postsync.d/00gemato
|
||||
fi
|
||||
}
|
Binary file not shown.
@ -1,2 +1 @@
|
||||
DIST webgen-1.4.0.gem 200192 BLAKE2B 3a317fd97e72a4d2f052954df439724125345e2c2c75d280cea323b91057e46bbeeca0e24136f1deeae5f2417efe1f852cdd19ddc3c3f8547fb8dd8b7cda60a7 SHA512 4f18c247b96a159925769c44379e8fce1ff55d4a901f55e81ba102cb57b4a59c5f7428c491391f23fab4450dc3884463924274e34d4c40fe9487efbe25e4fac1
|
||||
DIST webgen-1.4.1.gem 200192 BLAKE2B b52e8bf55fa93776fcd41a35ab495c03e775bb0fb9cfa0f4882ced4556d65403724de09531f80f3b3c51809295fc1abb692b9d709bd3ac65885a22066db83736 SHA512 ee21edbaa6592496101bff5b20b4b3041ac9a313e3ce5a00118f2011797330c5e274d468d2793ca29133d4f7301eda741e25a6f135dc6e2153c04780c2f5332b
|
||||
|
@ -1,43 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby20 ruby21 ruby22"
|
||||
|
||||
RUBY_FAKEGEM_DOCDIR="htmldoc/rdoc"
|
||||
RUBY_FAKEGEM_EXTRADOC="AUTHORS THANKS"
|
||||
RUBY_FAKEGEM_EXTRAINSTALL="data"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="A template-based static website generator"
|
||||
HOMEPAGE="http://webgen.gettalong.org"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="builder highlight markdown"
|
||||
|
||||
ruby_add_bdepend "doc? ( dev-ruby/rdoc )
|
||||
test? ( dev-ruby/kramdown
|
||||
dev-ruby/minitest:5
|
||||
dev-ruby/rdiscount
|
||||
>=dev-ruby/sass-3.2:0 )"
|
||||
|
||||
ruby_add_rdepend ">=dev-ruby/cmdparse-3.0.1:3
|
||||
>=dev-ruby/systemu-2.5
|
||||
>=dev-ruby/kramdown-1.3
|
||||
builder? ( >=dev-ruby/builder-2.1.0:* )
|
||||
highlight? ( >=dev-ruby/coderay-1.0 )
|
||||
markdown? ( dev-ruby/maruku )"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Avoid a test fragile for sass version differences
|
||||
sed -i -e '/test_static_call/,/^ end/ s:^:#:' test/webgen/content_processor/test_sass.rb || die
|
||||
}
|
||||
|
||||
all_ruby_install() {
|
||||
all_fakegem_install
|
||||
|
||||
doman man/man1/webgen.1
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -1,4 +1,6 @@
|
||||
DIST etcd-2.3.8.tar.gz 2206562 BLAKE2B 754930b4b5f0e90386b2b4765a9dbb6790ae509a81d3430c3f7c2c828d90318db3b01a2faea0c7075078096ce74302f2be7444245047534749f49d13a927851e SHA512 4268de32797cab23e9e47784d31d5abd6982068c53d3cc9735a06719740dba45b73f4e067cbc7aa8aef5ca7c56d8be067f1076685ac82f64012b760d8b7f2bfc
|
||||
DIST etcd-3.2.13.tar.gz 3047049 BLAKE2B f0ac987aef60fcc28636cfb60d5f4e00daee29a3d5167900599760090c3fa3d7932abb6224df5fb66ea5bdbc29a9ce7f7263a0e81522853ab190be94a6551ebc SHA512 4f3c5856ecf9e8a725d0ef80bb584e7b2edaf7215635a5c74fe32b175ce9f8d07ba57685586dfd79b893d04641d4169382d22f2eea442efc1112fa91c8175d45
|
||||
DIST etcd-3.2.14.tar.gz 3047100 BLAKE2B 5b956042542e7daeec3985f0dbd02b2766ca27287b55b0e1fd67c4296103ca9bf05b2ccc0e93640949c85e8099503b5a22d36c2f03d9904762ae1bbb59d35ac4 SHA512 f48cdb368906b36e7ce80c60933b0e9bc4415104c31f2da9346940f040febf27dbd9109e7f659a281c7038cadfb02b0dad614685a15ff46c87c600471c5de432
|
||||
DIST etcd-3.2.15.tar.gz 3047626 BLAKE2B 81f312fd5df6b64bf9e13994500387ab11ce145e296538492ccc71b94659f93e84e191cd2347d53d6d20e070cb1eb2760d4abd467655af53eaeb3c40cff7b500 SHA512 3ae11dfe918d409893e3168fbf31da0e910ce498a13f6bb31c3dd3a2027d72550f086d55b702803f2783de815dd349537bd581334146f8c4d05b9b3f4d3d56fb
|
||||
DIST etcd-3.3.0_rc2.tar.gz 3358540 BLAKE2B 8df7b2bbe84c5440c1b778107e7817def6b7a14a8568e6c1d7b5eba5479cf58ad6901482937df149b658a7e06844037cad95b57196c23810b309ae638c8961c0 SHA512 4c9513fbc599b218072bf441a6a37e622554df1597e18d0b72efab3f85d8ffb2b21d915a78289a865de68bc25e4401df15f291521f3dd22d19c2ae37941c0e4b
|
||||
DIST etcd-3.3.0_rc4.tar.gz 3359330 BLAKE2B deb5fb6df059039864cebebb74498637163a3331de3191948d34f792a6a579eede32951176f18e4535020c7b06917796bf3c36640087c73c948ae2bd8ed7504a SHA512 754457ce230273b3f79d864f6175fd6c0456e1eebf244003d92e54090f1cecc262ff8228f2c6b56fd41f3b500070cf2ef9a9f949946d88a9af86510f174b7a02
|
||||
|
@ -0,0 +1,63 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit user systemd golang-vcs-snapshot
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
EGO_PN="github.com/coreos/etcd"
|
||||
DESCRIPTION="Highly-available key value store for shared configuration and service discovery"
|
||||
HOMEPAGE="https://github.com/coreos/etcd"
|
||||
SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="doc"
|
||||
DEPEND=">=dev-lang/go-1.8:="
|
||||
RDEPEND="!dev-db/etcdctl"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -e 's|GIT_SHA=.*|GIT_SHA=v${PV}|'\
|
||||
-i "${S}"/src/${EGO_PN}/build || die
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup ${PN}
|
||||
enewuser ${PN} -1 -1 /var/lib/${PN} ${PN}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
export GOPATH=${S}
|
||||
pushd src/${EGO_PN} || die
|
||||
./build || die
|
||||
popd || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
pushd src/${EGO_PN} || die
|
||||
insinto /etc/${PN}
|
||||
doins "${FILESDIR}/${PN}.conf"
|
||||
dobin bin/*
|
||||
dodoc README.md
|
||||
use doc && dodoc -r Documentation
|
||||
systemd_dounit "${FILESDIR}/${PN}.service"
|
||||
systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles.d.conf" ${PN}.conf
|
||||
newinitd "${FILESDIR}"/${PN}.initd ${PN}
|
||||
newconfd "${FILESDIR}"/${PN}.confd ${PN}
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/${PN}.logrotated" "${PN}"
|
||||
dodir /var/lib/${PN}
|
||||
fowners ${PN}:${PN} /var/lib/${PN}
|
||||
fperms 0700 /var/lib/${PN}
|
||||
dodir /var/log/${PN}
|
||||
fowners ${PN}:${PN} /var/log/${PN}
|
||||
fperms 755 /var/log/${PN}
|
||||
popd || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
pushd src/${EGO_PN} || die
|
||||
./test || die
|
||||
popd || die
|
||||
}
|
@ -0,0 +1,64 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit user systemd golang-vcs-snapshot
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
EGO_PN="github.com/coreos/etcd"
|
||||
MY_PV="${PV/_rc/-rc.}"
|
||||
DESCRIPTION="Highly-available key value store for shared configuration and service discovery"
|
||||
HOMEPAGE="https://github.com/coreos/etcd"
|
||||
SRC_URI="https://${EGO_PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="doc"
|
||||
DEPEND=">=dev-lang/go-1.9:="
|
||||
RDEPEND="!dev-db/etcdctl"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -e 's|GIT_SHA=.*|GIT_SHA=v${PV}|'\
|
||||
-i "${S}"/src/${EGO_PN}/build || die
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup ${PN}
|
||||
enewuser ${PN} -1 -1 /var/lib/${PN} ${PN}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
export GOPATH=${S}
|
||||
pushd src/${EGO_PN} || die
|
||||
./build || die
|
||||
popd || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
pushd src/${EGO_PN} || die
|
||||
insinto /etc/${PN}
|
||||
doins "${FILESDIR}/${PN}.conf"
|
||||
dobin bin/*
|
||||
dodoc README.md
|
||||
use doc && dodoc -r Documentation
|
||||
systemd_dounit "${FILESDIR}/${PN}.service"
|
||||
systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles.d.conf" ${PN}.conf
|
||||
newinitd "${FILESDIR}"/${PN}.initd ${PN}
|
||||
newconfd "${FILESDIR}"/${PN}.confd ${PN}
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/${PN}.logrotated" "${PN}"
|
||||
dodir /var/lib/${PN}
|
||||
fowners ${PN}:${PN} /var/lib/${PN}
|
||||
fperms 0700 /var/lib/${PN}
|
||||
dodir /var/log/${PN}
|
||||
fowners ${PN}:${PN} /var/log/${PN}
|
||||
fperms 755 /var/log/${PN}
|
||||
popd || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
pushd src/${EGO_PN} || die
|
||||
./test || die
|
||||
popd || die
|
||||
}
|
@ -1,159 +0,0 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
extra_commands="checkconfig"
|
||||
|
||||
depend() {
|
||||
use net.lo
|
||||
# localmount needed for $basedir
|
||||
need localmount
|
||||
}
|
||||
|
||||
get_config() {
|
||||
my_print_defaults --config-file="$1" mysqld |
|
||||
sed -n -e "s/^--$2=//p"
|
||||
}
|
||||
|
||||
mysql_svcname() {
|
||||
local ebextra=
|
||||
case "${SVCNAME}" in
|
||||
mysql*) ;;
|
||||
*) ebextra=" (mysql)" ;;
|
||||
esac
|
||||
echo "${SVCNAME}${ebextra}"
|
||||
}
|
||||
|
||||
start() {
|
||||
# Check for old conf.d variables that mean migration was not yet done.
|
||||
set | egrep -sq '^(mysql_slot_|MYSQL_BLOG_PID_FILE|STOPTIMEOUT)'
|
||||
rc=$?
|
||||
# Yes, MYSQL_INIT_I_KNOW_WHAT_I_AM_DOING is a hidden variable.
|
||||
# It does have a use in testing, as it is possible to build a config file
|
||||
# that works with both the old and new init scripts simulateously.
|
||||
if [ "${rc}" = 0 -a -z "${MYSQL_INIT_I_KNOW_WHAT_I_AM_DOING}" ]; then
|
||||
eerror "You have not updated your conf.d for the new mysql-init-scripts-2 revamp."
|
||||
eerror "Not proceeding because it may be dangerous."
|
||||
return 1
|
||||
fi
|
||||
|
||||
# Check the config or die
|
||||
checkconfig || return 1
|
||||
|
||||
# Now we can startup
|
||||
ebegin "Starting $(mysql_svcname)"
|
||||
|
||||
MY_CNF="${MY_CNF:-/etc/${SVCNAME}/my.cnf}"
|
||||
|
||||
if [ ! -r "${MY_CNF}" ] ; then
|
||||
eerror "Cannot read the configuration file \`${MY_CNF}'"
|
||||
return 1
|
||||
fi
|
||||
|
||||
# tail -n1 is critical as these we only want the last instance of the option
|
||||
local basedir=$(get_config "${MY_CNF}" basedir | tail -n1)
|
||||
local datadir=$(get_config "${MY_CNF}" datadir | tail -n1)
|
||||
local pidfile=$(get_config "${MY_CNF}" pid-file | tail -n1)
|
||||
local socket=$(get_config "${MY_CNF}" socket | tail -n1)
|
||||
local chroot=$(get_config "${MY_CNF}" chroot | tail -n1)
|
||||
|
||||
if [ -n "${chroot}" ] ; then
|
||||
socket="${chroot}/${socket}"
|
||||
pidfile="${chroot}/${pidfile}"
|
||||
fi
|
||||
|
||||
if [ ! -d "${datadir}" ] ; then
|
||||
eerror "MySQL datadir \`${datadir}' is empty or invalid"
|
||||
eerror "Please check your config file \`${MY_CNF}'"
|
||||
return 1
|
||||
fi
|
||||
|
||||
if [ ! -d "${datadir}"/mysql ] ; then
|
||||
# find which package is installed to report an error
|
||||
local EROOT=$(portageq envvar EROOT)
|
||||
local DBPKG_P=$(portageq match ${EROOT} $(portageq expand_virtual ${EROOT} virtual/mysql | head -n1))
|
||||
if [ -z ${DBPKG_P} ] ; then
|
||||
eerror "You don't appear to have a server package installed yet."
|
||||
else
|
||||
eerror "You don't appear to have the mysql database installed yet."
|
||||
eerror "Please run \`emerge --config =${DBPKG_P}\` to have this done..."
|
||||
fi
|
||||
return 1
|
||||
fi
|
||||
|
||||
local piddir="${pidfile%/*}"
|
||||
checkpath -d --owner mysql:mysql --mode 0755 "$piddir"
|
||||
rc=$?
|
||||
if [ $rc -ne 0 ]; then
|
||||
eerror "Directory $piddir for pidfile does not exist and cannot be created"
|
||||
return 1
|
||||
fi
|
||||
|
||||
local startup_timeout=${STARTUP_TIMEOUT:-900}
|
||||
local startup_early_timeout=${STARTUP_EARLY_TIMEOUT:-1000}
|
||||
local tmpnice="${NICE:+"--nicelevel "}${NICE}"
|
||||
local tmpionice="${IONICE:+"--ionice "}${IONICE}"
|
||||
start-stop-daemon \
|
||||
${DEBUG:+"--verbose"} \
|
||||
--start \
|
||||
--exec "${basedir}"/sbin/mysqld \
|
||||
--pidfile "${pidfile}" \
|
||||
--background \
|
||||
--wait ${startup_early_timeout} \
|
||||
${tmpnice} \
|
||||
${tmpionice} \
|
||||
-- --defaults-file="${MY_CNF}" ${MY_ARGS}
|
||||
local ret=$?
|
||||
if [ ${ret} -ne 0 ] ; then
|
||||
eend ${ret}
|
||||
return ${ret}
|
||||
fi
|
||||
|
||||
ewaitfile ${startup_timeout} "${socket}"
|
||||
eend $? || return 1
|
||||
|
||||
save_options pidfile "${pidfile}"
|
||||
save_options basedir "${basedir}"
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping $(mysql_svcname)"
|
||||
|
||||
local pidfile="$(get_options pidfile)"
|
||||
local basedir="$(get_options basedir)"
|
||||
local stop_timeout=${STOP_TIMEOUT:-120}
|
||||
|
||||
start-stop-daemon \
|
||||
${DEBUG:+"--verbose"} \
|
||||
--stop \
|
||||
--exec "${basedir}"/sbin/mysqld \
|
||||
--pidfile "${pidfile}" \
|
||||
--retry ${stop_timeout}
|
||||
eend $?
|
||||
}
|
||||
|
||||
checkconfig() {
|
||||
local my_cnf="${MY_CNF:-/etc/${SVCNAME}/my.cnf}"
|
||||
local basedir=$(get_config "${my_cnf}" basedir | tail -n1)
|
||||
local svc_name=$(mysql_svcname)
|
||||
ebegin "Checking mysqld configuration for ${svc_name}"
|
||||
|
||||
if [ ${RC_CMD} = "checkconfig" ] ; then
|
||||
# We are calling checkconfig specifically. Print warnings regardless.
|
||||
"${basedir}"/sbin/mysqld --defaults-file="${my_cnf}" --help --verbose > /dev/null
|
||||
else
|
||||
# Suppress output to check the return value
|
||||
"${basedir}"/sbin/mysqld --defaults-file="${my_cnf}" --help --verbose > /dev/null 2>&1
|
||||
|
||||
# If the above command does not return 0,
|
||||
# then there is an error to echo to the user
|
||||
if [ $? -ne 0 ] ; then
|
||||
"${basedir}"/sbin/mysqld --defaults-file="${my_cnf}" --help --verbose > /dev/null
|
||||
fi
|
||||
fi
|
||||
|
||||
eend $? "${svc_name} config check failed"
|
||||
}
|
||||
|
||||
# vim: filetype=gentoo-init-d sw=2 ts=2 sts=2 noet:
|
||||
|
@ -1,128 +0,0 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
depend() {
|
||||
use net.lo
|
||||
# localmount needed for $basedir
|
||||
need localmount s6-svscan
|
||||
}
|
||||
|
||||
get_config() {
|
||||
my_print_defaults --config-file="$1" mysqld |
|
||||
sed -n -e "s/^--$2=//p"
|
||||
}
|
||||
|
||||
mysql_svcname() {
|
||||
local ebextra=
|
||||
case "${svc_name}" in
|
||||
mysql*) ;;
|
||||
*) ebextra=" (mysql)" ;;
|
||||
esac
|
||||
echo "${svc_name}${ebextra}"
|
||||
}
|
||||
|
||||
extra_commands="checkconfig"
|
||||
supervisor=s6
|
||||
name=$(mysql_svcname)
|
||||
s6_service_timeout_stop="$((1000*${STOP_TIMEOUT:-120}))"
|
||||
#s6_svwait_options_start="-U -t $((1000*${STARTUP_EARLY_TIMEOUT:-1000}))"
|
||||
svc_name=${RC_SVCNAME%-s6}
|
||||
s6_service_path=/var/svc.d/${svc_name}
|
||||
|
||||
start_pre() {
|
||||
# Check the config or die
|
||||
checkconfig || return 1
|
||||
|
||||
MY_CNF="${MY_CNF:-/etc/${svc_name}/my.cnf}"
|
||||
|
||||
if [ ! -r "${MY_CNF}" ] ; then
|
||||
eerror "Cannot read the configuration file \`${MY_CNF}'"
|
||||
return 1
|
||||
fi
|
||||
|
||||
# tail -n1 is critical as these we only want the last instance of the option
|
||||
local basedir=$(get_config "${MY_CNF}" basedir | tail -n1)
|
||||
local datadir=$(get_config "${MY_CNF}" datadir | tail -n1)
|
||||
local pidfile=$(get_config "${MY_CNF}" pid-file | tail -n1)
|
||||
local socket=$(get_config "${MY_CNF}" socket | tail -n1)
|
||||
local chroot=$(get_config "${MY_CNF}" chroot | tail -n1)
|
||||
|
||||
if [ -n "${chroot}" ] ; then
|
||||
socket="${chroot}/${socket}"
|
||||
pidfile="${chroot}/${pidfile}"
|
||||
fi
|
||||
|
||||
if [ ! -d "${datadir}" ] ; then
|
||||
eerror "MySQL datadir \`${datadir}' is empty or invalid"
|
||||
eerror "Please check your config file \`${MY_CNF}'"
|
||||
return 1
|
||||
fi
|
||||
|
||||
if [ ! -d "${datadir}"/mysql ] ; then
|
||||
# find which package is installed to report an error
|
||||
local EROOT=$(portageq envvar EROOT)
|
||||
local DBPKG_P=$(portageq match ${EROOT} $(portageq expand_virtual ${EROOT} virtual/mysql | head -n1))
|
||||
if [ -z ${DBPKG_P} ] ; then
|
||||
eerror "You don't appear to have a server package installed yet."
|
||||
else
|
||||
eerror "You don't appear to have the mysql database installed yet."
|
||||
eerror "Please run \`emerge --config =${DBPKG_P}\` to have this done..."
|
||||
fi
|
||||
return 1
|
||||
fi
|
||||
|
||||
local piddir="${pidfile%/*}"
|
||||
checkpath -d --owner mysql:mysql --mode 0755 "$piddir"
|
||||
rc=$?
|
||||
if [ $rc -ne 0 ]; then
|
||||
eerror "Directory $piddir for pidfile does not exist and cannot be created"
|
||||
return 1
|
||||
fi
|
||||
|
||||
# Prepare env files to source
|
||||
mkdir -p "/var/svc.d/${svc_name}"
|
||||
echo "MY_CNF=\"${MY_CNF}\"" > "/var/svc.d/${svc_name}/env"
|
||||
echo "MY_ARGS=\"${MY_ARGS}\"" >> "/var/svc.d/${svc_name}/env"
|
||||
echo "basedir=\"${basedir}\"" >> "/var/svc.d/${svc_name}/env"
|
||||
mkdir -p "/var/svc.d/${svc_name}/log"
|
||||
echo "SVCNAME=\"${svc_name}\"" > "/var/svc.d/${svc_name}/log/env"
|
||||
echo "S6_LOG_OPTIONS=\"${S6_LOG_OPTIONS}\"" > "/var/svc.d/${svc_name}/log/env"
|
||||
}
|
||||
|
||||
start_post() {
|
||||
local socket=$(get_config "${MY_CNF}" socket | tail -n1)
|
||||
local chroot=$(get_config "${MY_CNF}" chroot | tail -n1)
|
||||
local startup_timeout=${STARTUP_TIMEOUT:-900}
|
||||
|
||||
if [ -n "${chroot}" ] ; then
|
||||
socket="${chroot}/${socket}"
|
||||
fi
|
||||
ewaitfile ${startup_timeout} "${socket}"
|
||||
}
|
||||
|
||||
checkconfig() {
|
||||
local my_cnf="${MY_CNF:-/etc/${svc_name}/my.cnf}"
|
||||
local basedir=$(get_config "${my_cnf}" basedir | tail -n1)
|
||||
local svc_name=$(mysql_svcname)
|
||||
ebegin "Checking mysqld configuration for ${svc_name}"
|
||||
|
||||
if [ ${RC_CMD} = "checkconfig" ] ; then
|
||||
# We are calling checkconfig specifically. Print warnings regardless.
|
||||
"${basedir}"/sbin/mysqld --defaults-file="${my_cnf}" --help --verbose > /dev/null
|
||||
else
|
||||
# Suppress output to check the return value
|
||||
"${basedir}"/sbin/mysqld --defaults-file="${my_cnf}" --help --verbose > /dev/null 2>&1
|
||||
|
||||
# If the above command does not return 0,
|
||||
# then there is an error to echo to the user
|
||||
if [ $? -ne 0 ] ; then
|
||||
"${basedir}"/sbin/mysqld --defaults-file="${my_cnf}" --help --verbose > /dev/null
|
||||
fi
|
||||
fi
|
||||
|
||||
eend $? "${svc_name} config check failed"
|
||||
}
|
||||
|
||||
# vim: filetype=gentoo-init-d sw=2 ts=2 sts=2 noet:
|
||||
|
@ -1,63 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit systemd s6
|
||||
|
||||
DESCRIPTION="Gentoo MySQL init scripts."
|
||||
HOMEPAGE="https://www.gentoo.org/"
|
||||
SRC_URI=""
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~x86-fbsd"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
# This _will_ break with MySQL 5.0, 4.x, 3.x
|
||||
# It also NEEDS openrc for the save_options/get_options builtins.
|
||||
# The s6 support was added after openrc 0.16.2
|
||||
RDEPEND="
|
||||
!<dev-db/mysql-5.1
|
||||
!<sys-apps/openrc-0.16.2
|
||||
"
|
||||
# Need to set S due to PMS saying we need it existing, but no SRC_URI
|
||||
S=${WORKDIR}
|
||||
|
||||
src_install() {
|
||||
newconfd "${FILESDIR}/conf.d-2.0" "mysql"
|
||||
|
||||
# s6 init scripts
|
||||
if use amd64 || use x86 ; then
|
||||
newconfd "${FILESDIR}/conf.d-2.0" "mysql-s6"
|
||||
newinitd "${FILESDIR}/init.d-s6" "mysql-s6"
|
||||
s6_install_service mysql "${FILESDIR}/run-s6"
|
||||
s6_install_service mysql/log "${FILESDIR}/log-s6"
|
||||
fi
|
||||
|
||||
newinitd "${FILESDIR}/init.d-2.0" "mysql"
|
||||
|
||||
# systemd unit installation
|
||||
exeinto /usr/libexec
|
||||
doexe "${FILESDIR}"/mysqld-wait-ready
|
||||
systemd_newunit "${FILESDIR}/mysqld-v2.service" "mysqld.service"
|
||||
systemd_newunit "${FILESDIR}/mysqld_at-v2.service" "mysqld@.service"
|
||||
systemd_dotmpfilesd "${FILESDIR}/mysql.conf"
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/logrotate.mysql" "mysql"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use amd64 || use x86 ; then
|
||||
einfo ""
|
||||
elog "To use the mysql-s6 script, you need to install the optional sys-apps/s6 package."
|
||||
elog "If you wish to use s6 logging support, comment out the log-error setting in your my.cnf"
|
||||
fi
|
||||
|
||||
einfo ""
|
||||
elog "Starting with version 10.1.8, MariaDB includes an improved systemd unit named mariadb.service"
|
||||
elog "You should prefer that unit over this package's mysqld.service."
|
||||
einfo ""
|
||||
}
|
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST gitrev-1.2.0.tar.gz 3238 BLAKE2B 09d1a3bc132c7e28d65246e3805323f610f5d9f9f129e1f0f26316523c11639ddb44d8b439b7de979976431d4257940387ba6ae8311058fb1eac3aa3d19e1360 SHA512 ba794dfdec21a5b8ca19dff3ce712cb31f254ac59e166aad4fd33435649a7a5209fe9952cff230edc88d81e3622fe3b4f6199f3ef89e153d6e31cc6bca14d303
|
||||
DIST gitrev-1.3.1.tar.gz 3756 BLAKE2B 6871cb2c036bba9d6e727749778e0e16939a4ff84cf5ca74caf0c198a998265a8cbeea2019ba12e1e6190413499ed1b82874bd002416d620b70bcfd85bfcce1f SHA512 8639e356490fba3461f8d7030326a6913846427255524213a73ee2ac5abf708f75efed99a0d9d574a73a2db88833814d1b634e6a5ec93c4bc03052435e0ea4cd
|
||||
|
@ -0,0 +1,25 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
# ebuild generated by hackport 0.5.4
|
||||
|
||||
CABAL_FEATURES="lib profile haddock hoogle hscolour"
|
||||
inherit haskell-cabal
|
||||
|
||||
DESCRIPTION="Compile git revision info into Haskell projects"
|
||||
HOMEPAGE="https://github.com/acfoltzer/gitrev"
|
||||
SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=dev-haskell/base-compat-0.6.0:=[profile?]
|
||||
>=dev-lang/ghc-7.6.1:=
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-haskell/cabal-1.16.0
|
||||
"
|
@ -0,0 +1 @@
|
||||
DIST language-docker-2.0.1.tar.gz 31658 BLAKE2B d2f4ed51db1f6367ccb53aafc25e7473d4b7b1cf1b0d4f4e0692ca5db4b2f245ade1b80b37f9989c0a50be6b76996107c1b8e06024981e68ed1c9d96fb2f209d SHA512 f716f99dc23bf9e0de68e658330ee90befb3724a53ae97604c9a8369535db679dd9a5851c2961996619f4a3cf3ea462df487063a3e08afff7cd0c47538fc624a
|
@ -0,0 +1,39 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
# ebuild generated by hackport 0.5.4
|
||||
|
||||
CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
|
||||
inherit haskell-cabal
|
||||
|
||||
DESCRIPTION="Dockerfile parser, pretty-printer and embedded DSL"
|
||||
HOMEPAGE="https://github.com/hadolint/language-docker#readme"
|
||||
SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-haskell/aeson:=[profile?]
|
||||
dev-haskell/free:=[profile?]
|
||||
dev-haskell/glob:=[profile?]
|
||||
dev-haskell/mtl:=[profile?]
|
||||
>=dev-haskell/parsec-3.1:=[profile?]
|
||||
dev-haskell/semigroups:=[profile?]
|
||||
>=dev-haskell/split-0.2:=[profile?]
|
||||
dev-haskell/text:=[profile?]
|
||||
dev-haskell/th-lift:=[profile?]
|
||||
dev-haskell/th-lift-instances:=[profile?]
|
||||
dev-haskell/unordered-containers:=[profile?]
|
||||
dev-haskell/yaml:=[profile?]
|
||||
>=dev-lang/ghc-7.10.1:=
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-haskell/cabal-1.22.2.0
|
||||
test? ( dev-haskell/hspec
|
||||
>=dev-haskell/hunit-1.2
|
||||
dev-haskell/quickcheck )
|
||||
"
|
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>mrueg@gentoo.org</email>
|
||||
<name>Manuel Rüger</name>
|
||||
</maintainer>
|
||||
<longdescription>
|
||||
All functions for parsing, printing and writting Dockerfiles are exported through @Language.Docker@. For more fine-grained operations look for specific modules that implement a certain functionality.
|
||||
See the https://github.com/hadolint/language-docker GitHub project for the source-code and examples.
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
Binary file not shown.
@ -1,238 +0,0 @@
|
||||
--- make_linux.mak 2009-05-24 18:38:39.000000000 +0300
|
||||
+++ make_linux.mak.fixed 2009-05-24 19:38:51.000000000 +0300
|
||||
@@ -64,7 +64,7 @@
|
||||
# Uncomment for Native Stats tool
|
||||
#NATIVE_STATS = -DNATIVE_STATS
|
||||
|
||||
-MOZILLACFLAGS = -O \
|
||||
+MOZILLACFLAGS = $(CXXFLAGS) \
|
||||
-DSWT_VERSION=$(SWT_VERSION) \
|
||||
$(NATIVE_STATS) \
|
||||
-DMOZILLA_STRICT_API=1 \
|
||||
@@ -92,15 +92,14 @@
|
||||
XPCOMINIT_OBJECTS = swt.o xpcominit.o xpcominit_structs.o xpcominit_stats.o
|
||||
GLX_OBJECTS = swt.o glx.o glx_structs.o glx_stats.o
|
||||
|
||||
-CFLAGS = -O -Wall \
|
||||
- -DSWT_VERSION=$(SWT_VERSION) \
|
||||
+CFLAGS += -DSWT_VERSION=$(SWT_VERSION) \
|
||||
$(NATIVE_STATS) \
|
||||
-DLINUX -DGTK \
|
||||
-I$(JAVA_HOME)/include \
|
||||
-I$(JAVA_HOME)/include/linux \
|
||||
-fPIC \
|
||||
${SWT_PTR_CFLAGS}
|
||||
-LIBS = -shared -fPIC
|
||||
+LIBS = -shared -fPIC $(LDFLAGS)
|
||||
|
||||
ifndef NO_STRIP
|
||||
AWT_LIBS := $(AWT_LIBS) -s
|
||||
@@ -122,7 +121,7 @@
|
||||
$(CC) $(CFLAGS) -DUSE_ASSEMBLER -c callback.c
|
||||
|
||||
$(SWTPI_LIB): $(SWTPI_OBJECTS)
|
||||
- $(CC) $(LIBS) $(GTKLIBS) -o $(SWTPI_LIB) $(SWTPI_OBJECTS)
|
||||
+ $(CC) $(LIBS) -o $(SWTPI_LIB) $(SWTPI_OBJECTS) $(GTKLIBS)
|
||||
|
||||
swt.o: swt.c swt.h
|
||||
$(CC) $(CFLAGS) -c swt.c
|
||||
@@ -141,7 +140,7 @@
|
||||
make_cairo: $(CAIRO_LIB)
|
||||
|
||||
$(CAIRO_LIB): $(CAIRO_OBJECTS)
|
||||
- $(CC) $(LIBS) $(CAIROLIBS) -o $(CAIRO_LIB) $(CAIRO_OBJECTS)
|
||||
+ $(CC) $(LIBS) -o $(CAIRO_LIB) $(CAIRO_OBJECTS) $(CAIROLIBS)
|
||||
|
||||
cairo.o: cairo.c cairo.h swt.h
|
||||
$(CC) $(CFLAGS) $(CAIROCFLAGS) -c cairo.c
|
||||
@@ -157,7 +156,7 @@
|
||||
make_cde: $(CDE_LIB)
|
||||
|
||||
$(CDE_LIB): $(CDE_OBJECTS)
|
||||
- $(CC) $(LIBS) $(CDE_LIBS) -o $(CDE_LIB) $(CDE_OBJECTS)
|
||||
+ $(CC) $(LIBS) -o $(CDE_LIB) $(CDE_OBJECTS) $(CDE_LIBS)
|
||||
|
||||
#
|
||||
# AWT lib
|
||||
@@ -165,7 +164,7 @@
|
||||
make_awt:$(AWT_LIB)
|
||||
|
||||
$(AWT_LIB): $(AWT_OBJECTS)
|
||||
- $(CC) $(AWT_LIBS) -o $(AWT_LIB) $(AWT_OBJECTS)
|
||||
+ $(CC) $(LDFLAGS) -o $(AWT_LIB) $(AWT_OBJECTS) $(AWT_LIBS)
|
||||
|
||||
#
|
||||
# Atk lib
|
||||
@@ -173,7 +172,7 @@
|
||||
make_atk: $(ATK_LIB)
|
||||
|
||||
$(ATK_LIB): $(ATK_OBJECTS)
|
||||
- $(CC) $(LIBS) $(ATKLIBS) -o $(ATK_LIB) $(ATK_OBJECTS)
|
||||
+ $(CC) $(LIBS) -o $(ATK_LIB) $(ATK_OBJECTS) $(ATKLIBS)
|
||||
|
||||
atk.o: atk.c atk.h
|
||||
$(CC) $(CFLAGS) $(ATKCFLAGS) -c atk.c
|
||||
@@ -190,7 +189,7 @@
|
||||
make_gnome: $(GNOME_LIB)
|
||||
|
||||
$(GNOME_LIB): $(GNOME_OBJECTS)
|
||||
- $(CC) $(LIBS) $(GNOMELIBS) -o $(GNOME_LIB) $(GNOME_OBJECTS)
|
||||
+ $(CC) $(LIBS) -o $(GNOME_LIB) $(GNOME_OBJECTS) $(GNOMELIBS)
|
||||
|
||||
gnome.o: gnome.c
|
||||
$(CC) $(CFLAGS) $(GNOMECFLAGS) -c gnome.c
|
||||
@@ -207,7 +206,7 @@
|
||||
make_mozilla:$(MOZILLA_LIB)
|
||||
|
||||
$(MOZILLA_LIB): $(MOZILLA_OBJECTS)
|
||||
- $(CXX) -o $(MOZILLA_LIB) $(MOZILLA_OBJECTS) $(MOZILLALIBS) ${MOZILLA_LIBS}
|
||||
+ $(CXX) $(LDFLAGS) -o $(MOZILLA_LIB) $(MOZILLA_OBJECTS) $(MOZILLALIBS) ${MOZILLA_LIBS}
|
||||
|
||||
xpcom.o: xpcom.cpp
|
||||
$(CXX) $(MOZILLACFLAGS) $(MOZILLAEXCLUDES) ${MOZILLA_INCLUDES} -c xpcom.cpp
|
||||
@@ -227,7 +226,7 @@
|
||||
make_xulrunner:$(XULRUNNER_LIB)
|
||||
|
||||
$(XULRUNNER_LIB): $(XULRUNNER_OBJECTS)
|
||||
- $(CXX) -o $(XULRUNNER_LIB) $(XULRUNNER_OBJECTS) $(MOZILLALIBS) ${XULRUNNER_LIBS}
|
||||
+ $(CXX) $(LDFLAGS) -o $(XULRUNNER_LIB) $(XULRUNNER_OBJECTS) $(MOZILLALIBS) ${XULRUNNER_LIBS}
|
||||
|
||||
xpcomxul.o: xpcom.cpp
|
||||
$(CXX) -o xpcomxul.o $(MOZILLACFLAGS) ${XULRUNNER_INCLUDES} -c xpcom.cpp
|
||||
@@ -247,7 +246,7 @@
|
||||
make_xpcominit:$(XPCOMINIT_LIB)
|
||||
|
||||
$(XPCOMINIT_LIB): $(XPCOMINIT_OBJECTS)
|
||||
- $(CXX) -o $(XPCOMINIT_LIB) $(XPCOMINIT_OBJECTS) $(MOZILLALIBS) ${XULRUNNER_LIBS}
|
||||
+ $(CXX) $(LDFLAGS) -o $(XPCOMINIT_LIB) $(XPCOMINIT_OBJECTS) $(MOZILLALIBS) ${XULRUNNER_LIBS}
|
||||
|
||||
xpcominit.o: xpcominit.cpp
|
||||
$(CXX) $(MOZILLACFLAGS) ${XULRUNNER_INCLUDES} -c xpcominit.cpp
|
||||
@@ -264,7 +263,7 @@
|
||||
make_glx: $(GLX_LIB)
|
||||
|
||||
$(GLX_LIB): $(GLX_OBJECTS)
|
||||
- $(CC) $(LIBS) $(GLXLIBS) -o $(GLX_LIB) $(GLX_OBJECTS)
|
||||
+ $(CC) $(LIBS) -o $(GLX_LIB) $(GLX_OBJECTS) $(GLXLIBS)
|
||||
|
||||
glx.o: glx.c
|
||||
$(CC) $(CFLAGS) $(GLXCFLAGS) -c glx.c
|
||||
--- make_freebsd.mak 2009-05-24 20:09:55.000000000 +0300
|
||||
+++ make_freebsd.mak.fixed 2009-05-24 20:15:03.000000000 +0300
|
||||
@@ -64,7 +64,7 @@
|
||||
# Uncomment for Native Stats tool
|
||||
#NATIVE_STATS = -DNATIVE_STATS
|
||||
|
||||
-MOZILLACFLAGS = -O \
|
||||
+MOZILLACFLAGS = $(CXXFLAGS) \
|
||||
-DSWT_VERSION=$(SWT_VERSION) \
|
||||
$(NATIVE_STATS) \
|
||||
-DMOZILLA_STRICT_API=1 \
|
||||
@@ -91,15 +91,14 @@
|
||||
XPCOMINIT_OBJECTS = swt.o xpcominit.o xpcominit_structs.o xpcominit_stats.o
|
||||
GLX_OBJECTS = swt.o glx.o glx_structs.o glx_stats.o
|
||||
|
||||
-CFLAGS = -O -Wall \
|
||||
- -DSWT_VERSION=$(SWT_VERSION) \
|
||||
+CFLAGS += -DSWT_VERSION=$(SWT_VERSION) \
|
||||
$(NATIVE_STATS) \
|
||||
-DFREEBSD -DGTK \
|
||||
-I$(JAVA_HOME)/include \
|
||||
-I$(JAVA_HOME)/include/freebsd \
|
||||
-fPIC \
|
||||
${SWT_PTR_CFLAGS}
|
||||
-LIBS = -shared -fPIC
|
||||
+LIBS = -shared -fPIC $(LDFLAGS)
|
||||
|
||||
ifndef NO_STRIP
|
||||
AWT_LIBS := $(AWT_LIBS) -s
|
||||
@@ -121,7 +120,7 @@
|
||||
$(CC) $(CFLAGS) -DUSE_ASSEMBLER -c callback.c
|
||||
|
||||
$(SWTPI_LIB): $(SWTPI_OBJECTS)
|
||||
- $(CC) $(LIBS) $(GTKLIBS) -o $(SWTPI_LIB) $(SWTPI_OBJECTS)
|
||||
+ $(CC) $(LIBS) -o $(SWTPI_LIB) $(SWTPI_OBJECTS) $(GTKLIBS)
|
||||
|
||||
swt.o: swt.c swt.h
|
||||
$(CC) $(CFLAGS) -c swt.c
|
||||
@@ -140,7 +139,7 @@
|
||||
make_cairo: $(CAIRO_LIB)
|
||||
|
||||
$(CAIRO_LIB): $(CAIRO_OBJECTS)
|
||||
- $(CC) $(LIBS) $(CAIROLIBS) -o $(CAIRO_LIB) $(CAIRO_OBJECTS)
|
||||
+ $(CC) $(LIBS) -o $(CAIRO_LIB) $(CAIRO_OBJECTS) $(CAIROLIBS)
|
||||
|
||||
cairo.o: cairo.c cairo.h swt.h
|
||||
$(CC) $(CFLAGS) $(CAIROCFLAGS) -c cairo.c
|
||||
@@ -156,7 +155,7 @@
|
||||
make_cde: $(CDE_LIB)
|
||||
|
||||
$(CDE_LIB): $(CDE_OBJECTS)
|
||||
- $(CC) $(LIBS) $(CDE_LIBS) -o $(CDE_LIB) $(CDE_OBJECTS)
|
||||
+ $(CC) $(LIBS) -o $(CDE_LIB) $(CDE_OBJECTS) $(CDE_LIBS)
|
||||
|
||||
#
|
||||
# AWT lib
|
||||
@@ -164,7 +163,7 @@
|
||||
make_awt:$(AWT_LIB)
|
||||
|
||||
$(AWT_LIB): $(AWT_OBJECTS)
|
||||
- $(CC) $(AWT_LIBS) -o $(AWT_LIB) $(AWT_OBJECTS)
|
||||
+ $(CC) $(LDFLAGS) -o $(AWT_LIB) $(AWT_OBJECTS) $(AWT_LIBS)
|
||||
|
||||
#
|
||||
# Atk lib
|
||||
@@ -172,7 +171,7 @@
|
||||
make_atk: $(ATK_LIB)
|
||||
|
||||
$(ATK_LIB): $(ATK_OBJECTS)
|
||||
- $(CC) $(LIBS) $(ATKLIBS) -o $(ATK_LIB) $(ATK_OBJECTS)
|
||||
+ $(CC) $(LIBS) -o $(ATK_LIB) $(ATK_OBJECTS) $(ATKLIBS)
|
||||
|
||||
atk.o: atk.c atk.h
|
||||
$(CC) $(CFLAGS) $(ATKCFLAGS) -c atk.c
|
||||
@@ -189,7 +188,7 @@
|
||||
make_gnome: $(GNOME_LIB)
|
||||
|
||||
$(GNOME_LIB): $(GNOME_OBJECTS)
|
||||
- $(CC) $(LIBS) $(GNOMELIBS) -o $(GNOME_LIB) $(GNOME_OBJECTS)
|
||||
+ $(CC) $(LIBS) -o $(GNOME_LIB) $(GNOME_OBJECTS) $(GNOMELIBS)
|
||||
|
||||
gnome.o: gnome.c
|
||||
$(CC) $(CFLAGS) $(GNOMECFLAGS) -c gnome.c
|
||||
@@ -206,7 +205,7 @@
|
||||
make_mozilla:$(MOZILLA_LIB)
|
||||
|
||||
$(MOZILLA_LIB): $(MOZILLA_OBJECTS)
|
||||
- $(CXX) -o $(MOZILLA_LIB) $(MOZILLA_OBJECTS) $(MOZILLALIBS) ${MOZILLA_LIBS}
|
||||
+ $(CXX) $(LDFLAGS) -o $(MOZILLA_LIB) $(MOZILLA_OBJECTS) $(MOZILLALIBS) ${MOZILLA_LIBS}
|
||||
|
||||
xpcom.o: xpcom.cpp
|
||||
$(CXX) $(MOZILLACFLAGS) ${MOZILLA_INCLUDES} -c xpcom.cpp
|
||||
@@ -226,7 +225,7 @@
|
||||
make_xulrunner:$(XULRUNNER_LIB)
|
||||
|
||||
$(XULRUNNER_LIB): $(XULRUNNER_OBJECTS)
|
||||
- $(CXX) -o $(XULRUNNER_LIB) $(XULRUNNER_OBJECTS) $(MOZILLALIBS) ${XULRUNNER_LIBS}
|
||||
+ $(CXX) $(LDFLAGS) -o $(XULRUNNER_LIB) $(XULRUNNER_OBJECTS) $(MOZILLALIBS) ${XULRUNNER_LIBS}
|
||||
|
||||
xpcomxul.o: xpcom.cpp
|
||||
$(CXX) -o xpcomxul.o $(MOZILLACFLAGS) ${XULRUNNER_INCLUDES} -c xpcom.cpp
|
||||
@@ -252,7 +251,7 @@
|
||||
make_xpcominit:$(XPCOMINIT_LIB)
|
||||
|
||||
$(XPCOMINIT_LIB): $(XPCOMINIT_OBJECTS)
|
||||
- $(CXX) -o $(XPCOMINIT_LIB) $(XPCOMINIT_OBJECTS) $(MOZILLALIBS) ${XULRUNNER_LIBS}
|
||||
+ $(CXX) $(LDFLAGS) -o $(XPCOMINIT_LIB) $(XPCOMINIT_OBJECTS) $(MOZILLALIBS) ${XULRUNNER_LIBS}
|
||||
|
||||
xpcominit.o: xpcominit.cpp
|
||||
$(CXX) $(MOZILLACFLAGS) ${XULRUNNER_INCLUDES} -c xpcominit.cpp
|
||||
@@ -269,7 +268,7 @@
|
||||
make_glx: $(GLX_LIB)
|
||||
|
||||
$(GLX_LIB): $(GLX_OBJECTS)
|
||||
- $(CC) $(LIBS) $(GLXLIBS) -o $(GLX_LIB) $(GLX_OBJECTS)
|
||||
+ $(CC) $(LIBS) -o $(GLX_LIB) $(GLX_OBJECTS) $(GLXLIBS)
|
||||
|
||||
glx.o: glx.c
|
||||
$(CC) $(CFLAGS) $(GLXCFLAGS) -c glx.c
|
@ -1,17 +0,0 @@
|
||||
Manifest-Version: 1.0
|
||||
Bundle-ManifestVersion: 2
|
||||
Bundle-Name: %pluginName
|
||||
Bundle-Vendor: %providerName
|
||||
Bundle-Localization: plugin
|
||||
Fragment-Host: org.eclipse.swt; bundle-version="[3.0.0,4.0.0)"
|
||||
Bundle-SymbolicName: org.eclipse.swt.gtk.linux.SWT_ARCH; singleton:=true
|
||||
Bundle-Version: 3.5
|
||||
Eclipse-PlatformFilter: (& (osgi.ws=gtk) (osgi.os=linux) (osgi.arch=SWT_ARCH))
|
||||
Export-Package: org.eclipse.swt.internal.accessibility.gtk; x-internal:=true,
|
||||
org.eclipse.swt.internal.cairo; x-internal:=true,
|
||||
org.eclipse.swt.internal.cde; x-internal:=true,
|
||||
org.eclipse.swt.internal.gnome; x-internal:=true,
|
||||
org.eclipse.swt.internal.gtk; x-internal:=true,
|
||||
org.eclipse.swt.internal.mozilla; x-internal:=true,
|
||||
org.eclipse.swt.internal.opengl.glx; x-internal:=true
|
||||
|
@ -0,0 +1,166 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit eutils java-pkg-2 java-ant-2 toolchain-funcs java-osgi
|
||||
|
||||
MY_PV="${PV/_rc/RC}"
|
||||
MY_DMF="http://archive.eclipse.org/eclipse/downloads/drops/R-${MY_PV}-201301310800"
|
||||
MY_P="${PN}-${MY_PV}"
|
||||
|
||||
DESCRIPTION="GTK based SWT Library"
|
||||
HOMEPAGE="http://www.eclipse.org/"
|
||||
SRC_URI="
|
||||
amd64? ( ${MY_DMF}/${MY_P}-gtk-linux-x86_64.zip )
|
||||
ppc? ( ${MY_DMF}/${MY_P}-gtk-linux-x86.zip )
|
||||
ppc64? ( ${MY_DMF}/${MY_P}-gtk-linux-ppc64.zip )
|
||||
x86? ( ${MY_DMF}/${MY_P}-gtk-linux-x86.zip )
|
||||
x86-fbsd? ( ${MY_DMF}/${MY_P}-gtk-linux-x86.zip )"
|
||||
|
||||
SLOT="3.8"
|
||||
LICENSE="CPL-1.0 LGPL-2.1 MPL-1.1"
|
||||
KEYWORDS="amd64 ppc64 x86"
|
||||
|
||||
IUSE="cairo gnome opengl"
|
||||
COMMON=">=dev-libs/glib-2.6
|
||||
>=x11-libs/gtk+-2.6.8:2
|
||||
>=dev-libs/atk-1.10.2
|
||||
cairo? ( >=x11-libs/cairo-1.4.14 )
|
||||
gnome? (
|
||||
gnome-base/gnome-vfs:2
|
||||
gnome-base/libgnome
|
||||
gnome-base/libgnomeui
|
||||
)
|
||||
opengl? (
|
||||
virtual/opengl
|
||||
virtual/glu
|
||||
)
|
||||
x11-libs/libXtst"
|
||||
|
||||
DEPEND=">=virtual/jdk-1.4
|
||||
app-arch/unzip
|
||||
x11-libs/libX11
|
||||
x11-libs/libXrender
|
||||
x11-libs/libXt
|
||||
>=x11-libs/libXtst-1.1.0
|
||||
x11-proto/inputproto
|
||||
virtual/pkgconfig
|
||||
${COMMON}"
|
||||
|
||||
RDEPEND=">=virtual/jre-1.4
|
||||
${COMMON}"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
# JNI libraries don't need SONAME, bug #253756
|
||||
QA_SONAME="usr/$(get_libdir)/libswt-.*.so"
|
||||
|
||||
src_unpack() {
|
||||
local DISTFILE=${A}
|
||||
unzip -jq "${DISTDIR}"/${DISTFILE} "*src.zip" || die "Unable to extract distfile"
|
||||
unpack "./src.zip"
|
||||
|
||||
# Cleanup the redirtied directory structure
|
||||
rm -rf about_files/ || die
|
||||
}
|
||||
|
||||
java_prepare() {
|
||||
# Replace the build.xml to allow compilation without Eclipse tasks
|
||||
cp "${FILESDIR}/build.xml" "${S}/build.xml" || die "Unable to update build.xml"
|
||||
|
||||
mkdir -p "${S}/src"
|
||||
mv "${S}/org" "${S}/src" || die "Unable to restructure SWT sources"
|
||||
|
||||
epatch "${FILESDIR}"/${PN}-3.8-as-needed-and-flag-fixes.patch
|
||||
epatch "${FILESDIR}"/${P}-gthread.patch
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Drop jikes support as it seems to be unfriendly with SWT
|
||||
java-pkg_filter-compiler jikes
|
||||
|
||||
local AWT_ARCH
|
||||
local JAWTSO="libjawt.so"
|
||||
if [[ $(tc-arch) == 'x86' ]] ; then
|
||||
AWT_ARCH="i386"
|
||||
elif [[ $(tc-arch) == 'ppc' ]] ; then
|
||||
AWT_ARCH="ppc"
|
||||
elif [[ $(tc-arch) == 'ppc64' ]] ; then
|
||||
AWT_ARCH="ppc64"
|
||||
else
|
||||
AWT_ARCH="amd64"
|
||||
fi
|
||||
if [[ -f "${JAVA_HOME}/jre/lib/${AWT_ARCH}/${JAWTSO}" ]]; then
|
||||
export AWT_LIB_PATH="${JAVA_HOME}/jre/lib/${AWT_ARCH}"
|
||||
elif [[ -f "${JAVA_HOME}/jre/bin/${JAWTSO}" ]]; then
|
||||
export AWT_LIB_PATH="${JAVA_HOME}/jre/bin"
|
||||
elif [[ -f "${JAVA_HOME}/$(get_libdir)/${JAWTSO}" ]] ; then
|
||||
export AWT_LIB_PATH="${JAVA_HOME}/$(get_libdir)"
|
||||
else
|
||||
eerror "${JAWTSO} not found in the JDK being used for compilation!"
|
||||
die "cannot build AWT library"
|
||||
fi
|
||||
|
||||
# Fix the pointer size for AMD64
|
||||
[[ ${ARCH} == "amd64" || ${ARCH} == "ppc64" ]] && export SWT_PTR_CFLAGS=-DJNI64
|
||||
|
||||
local platform="linux"
|
||||
|
||||
use elibc_FreeBSD && platform="freebsd"
|
||||
|
||||
local make="emake -f make_${platform}.mak NO_STRIP=y CC=$(tc-getCC) CXX=$(tc-getCXX)"
|
||||
|
||||
einfo "Building AWT library"
|
||||
${make} make_awt
|
||||
|
||||
einfo "Building SWT library"
|
||||
${make} make_swt
|
||||
|
||||
einfo "Building JAVA-AT-SPI bridge"
|
||||
${make} make_atk
|
||||
|
||||
if use gnome ; then
|
||||
einfo "Building GNOME VFS support"
|
||||
${make} make_gnome
|
||||
fi
|
||||
|
||||
if use cairo ; then
|
||||
einfo "Building CAIRO support"
|
||||
${make} make_cairo
|
||||
fi
|
||||
|
||||
if use opengl ; then
|
||||
einfo "Building OpenGL component"
|
||||
${make} make_glx
|
||||
fi
|
||||
|
||||
einfo "Building JNI libraries"
|
||||
eant compile
|
||||
|
||||
einfo "Copying missing files"
|
||||
cp -i "${S}/version.txt" "${S}/build/version.txt" || die
|
||||
cp -i "${S}/src/org/eclipse/swt/internal/SWTMessages.properties" \
|
||||
"${S}/build/org/eclipse/swt/internal/" || die
|
||||
|
||||
einfo "Packing JNI libraries"
|
||||
eant jar
|
||||
}
|
||||
|
||||
src_install() {
|
||||
swtArch=${ARCH}
|
||||
use amd64 && swtArch=x86_64
|
||||
use x86-fbsd && swtArch=x86
|
||||
|
||||
sed "s/SWT_ARCH/${swtArch}/" "${FILESDIR}/${PN}-${SLOT}-manifest" > "MANIFEST_TMP.MF" || die
|
||||
use cairo || sed -i -e "/ org.eclipse.swt.internal.cairo; x-internal:=true,/d" "MANIFEST_TMP.MF"
|
||||
use gnome || sed -i -e "/ org.eclipse.swt.internal.gnome; x-internal:=true,/d" "MANIFEST_TMP.MF"
|
||||
use opengl || sed -i -e "/ org.eclipse.swt.internal.opengl.glx; x-internal:=true,/d" "MANIFEST_TMP.MF"
|
||||
sed -i -e "/ org.eclipse.swt.internal.webkit; x-internal:=true,/d" "MANIFEST_TMP.MF"
|
||||
java-osgi_newjar-fromfile "swt.jar" "MANIFEST_TMP.MF" "Standard Widget Toolkit for GTK 2.0"
|
||||
|
||||
java-pkg_sointo /usr/$(get_libdir)
|
||||
java-pkg_doso *.so
|
||||
|
||||
dohtml about.html
|
||||
}
|
Binary file not shown.
@ -0,0 +1,102 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils bash-completion-r1
|
||||
|
||||
MY_P="rust-${PV}"
|
||||
|
||||
DESCRIPTION="Systems programming language from Mozilla"
|
||||
HOMEPAGE="http://www.rust-lang.org/"
|
||||
SRC_URI="amd64? ( http://static.rust-lang.org/dist/${MY_P}-x86_64-unknown-linux-gnu.tar.gz )
|
||||
x86? ( http://static.rust-lang.org/dist/${MY_P}-i686-unknown-linux-gnu.tar.gz )"
|
||||
|
||||
LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA"
|
||||
SLOT="stable"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc"
|
||||
|
||||
DEPEND=">=app-eselect/eselect-rust-0.3_pre20150425
|
||||
!dev-lang/rust:0
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
QA_PREBUILT="
|
||||
opt/${P}/bin/rustc-bin-${PV}
|
||||
opt/${P}/bin/rustdoc-bin-${PV}
|
||||
opt/${P}/lib/*.so
|
||||
opt/${P}/lib/rustlib/*/lib/*.so
|
||||
opt/${P}/lib/rustlib/*/lib/*.rlib*
|
||||
"
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
|
||||
local postfix
|
||||
use amd64 && postfix=x86_64-unknown-linux-gnu
|
||||
use x86 && postfix=i686-unknown-linux-gnu
|
||||
mv "${WORKDIR}/${MY_P}-${postfix}" "${S}" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local std=$(grep 'std' ./components)
|
||||
local components="rustc,${std}"
|
||||
use doc && components="${components},rust-docs"
|
||||
./install.sh \
|
||||
--components="${components}" \
|
||||
--disable-verify \
|
||||
--prefix="${D}/opt/${P}" \
|
||||
--mandir="${D}/usr/share/${P}/man" \
|
||||
--disable-ldconfig \
|
||||
|| die
|
||||
|
||||
local rustc=rustc-bin-${PV}
|
||||
local rustdoc=rustdoc-bin-${PV}
|
||||
local rustgdb=rust-gdb-bin-${PV}
|
||||
|
||||
mv "${D}/opt/${P}/bin/rustc" "${D}/opt/${P}/bin/${rustc}" || die
|
||||
mv "${D}/opt/${P}/bin/rustdoc" "${D}/opt/${P}/bin/${rustdoc}" || die
|
||||
mv "${D}/opt/${P}/bin/rust-gdb" "${D}/opt/${P}/bin/${rustgdb}" || die
|
||||
|
||||
dosym "../../opt/${P}/bin/${rustc}" "/usr/bin/${rustc}"
|
||||
dosym "../../opt/${P}/bin/${rustdoc}" "/usr/bin/${rustdoc}"
|
||||
dosym "../../opt/${P}/bin/${rustgdb}" "/usr/bin/${rustgdb}"
|
||||
|
||||
cat <<-EOF > "${T}"/50${P}
|
||||
LDPATH="/opt/${P}/lib"
|
||||
MANPATH="/usr/share/${P}/man"
|
||||
EOF
|
||||
doenvd "${T}"/50${P}
|
||||
|
||||
cat <<-EOF > "${T}/provider-${P}"
|
||||
/usr/bin/rustdoc
|
||||
/usr/bin/rust-gdb
|
||||
EOF
|
||||
dodir /etc/env.d/rust
|
||||
insinto /etc/env.d/rust
|
||||
doins "${T}/provider-${P}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
eselect rust update --if-unset
|
||||
|
||||
elog "Rust installs a helper script for calling GDB now,"
|
||||
elog "for your convenience it is installed under /usr/bin/rust-gdb-bin-${PV},"
|
||||
|
||||
if has_version app-editors/emacs || has_version app-editors/emacs-vcs; then
|
||||
elog "install app-emacs/rust-mode to get emacs support for rust."
|
||||
fi
|
||||
|
||||
if has_version app-editors/gvim || has_version app-editors/vim; then
|
||||
elog "install app-vim/rust-vim to get vim support for rust."
|
||||
fi
|
||||
|
||||
if has_version 'app-shells/zsh'; then
|
||||
elog "install app-shells/rust-zshcomp to get zsh completion for rust."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
eselect rust unset --if-invalid
|
||||
}
|
Binary file not shown.
@ -0,0 +1,13 @@
|
||||
diff --git a/doc/Makefile.am b/doc/Makefile.am
|
||||
index ae5e101..012f0bc 100644
|
||||
--- a/doc/Makefile.am
|
||||
+++ b/doc/Makefile.am
|
||||
@@ -24,7 +24,7 @@ distclean-local:
|
||||
## Install doc files
|
||||
install-data-local:
|
||||
$(MKDIR_P) "$(DESTDIR)$(docdir)/html/search" ## Didn't work with installdirs-local
|
||||
- $(INSTALL_DATA) html/*.css html/*.html html/*.js html/*.map html/*.md5 html/*.png "$(DESTDIR)$(docdir)/html/"
|
||||
+ $(INSTALL_DATA) html/*.css html/*.html html/*.js html/*.md5 html/*.png "$(DESTDIR)$(docdir)/html/"
|
||||
$(INSTALL_DATA) html/search/* "$(DESTDIR)$(docdir)/html/search/"
|
||||
-$(INSTALL_DATA) *.qch "$(DESTDIR)$(docdir)/"
|
||||
|
@ -0,0 +1,51 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit autotools
|
||||
|
||||
DESCRIPTION="Uriparser is a strictly RFC 3986 compliant URI parsing library in C"
|
||||
HOMEPAGE="http://uriparser.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
|
||||
IUSE="doc qt5 test unicode"
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="virtual/pkgconfig
|
||||
doc? ( >=app-doc/doxygen-1.5.8
|
||||
qt5? ( dev-qt/qthelp:5 ) )
|
||||
test? ( >=dev-util/cpptest-1.1.1 )"
|
||||
|
||||
REQUIRED_USE="test? ( unicode )"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${P}-doc-install.patch )
|
||||
|
||||
DOCS=( AUTHORS ChangeLog THANKS )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--disable-sizedown \
|
||||
$(use_enable test) \
|
||||
--enable-char \
|
||||
$(use_enable unicode wchar_t) \
|
||||
$(use_enable doc) \
|
||||
--docdir=/usr/share/doc/${PF}/
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
if use doc && use qt5; then
|
||||
dodoc doc/*.qch
|
||||
docompress -x /usr/share/doc/${PF}/${P}.qch
|
||||
fi
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,253 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
|
||||
PYTHON_REQ_USE='tk?,threads(+)'
|
||||
|
||||
inherit distutils-r1 flag-o-matic virtualx toolchain-funcs prefix
|
||||
|
||||
DESCRIPTION="Pure python plotting library with matlab like syntax"
|
||||
HOMEPAGE="http://matplotlib.org/"
|
||||
SRC_URI="https://dev.gentoo.org/~grozin/${P}.tar.bz2"
|
||||
|
||||
SLOT="0"
|
||||
# Main license: matplotlib
|
||||
# Some modules: BSD
|
||||
# matplotlib/backends/qt4_editor: MIT
|
||||
# Fonts: BitstreamVera, OFL-1.1
|
||||
LICENSE="BitstreamVera BSD matplotlib MIT OFL-1.1"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
IUSE="cairo doc excel examples gtk2 gtk3 latex pyside qt5 test tk wxwidgets"
|
||||
|
||||
PY2_FLAGS="|| ( $(python_gen_useflags python2_7) )"
|
||||
REQUIRED_USE="
|
||||
doc? ( ${PY2_FLAGS} )
|
||||
excel? ( ${PY2_FLAGS} )
|
||||
gtk2? ( ${PY2_FLAGS} )
|
||||
wxwidgets? ( ${PY2_FLAGS} )
|
||||
test? (
|
||||
cairo latex qt5 tk wxwidgets
|
||||
|| ( gtk2 gtk3 )
|
||||
)"
|
||||
|
||||
# #456704 -- a lot of py2-only deps
|
||||
PY2_USEDEP=$(python_gen_usedep python2_7)
|
||||
PY2_DEPEND="
|
||||
$(python_gen_cond_dep 'dev-python/functools32[${PYTHON_USEDEP}]' python2_7)
|
||||
$(python_gen_cond_dep 'dev-python/subprocess32[${PYTHON_USEDEP}]' python2_7)
|
||||
$(python_gen_cond_dep 'dev-python/backports-functools-lru-cache[${PYTHON_USEDEP}]' python2_7)"
|
||||
COMMON_DEPEND="
|
||||
dev-python/cycler[${PYTHON_USEDEP}]
|
||||
>=dev-python/numpy-1.7.1[${PYTHON_USEDEP}]
|
||||
dev-python/python-dateutil:0[${PYTHON_USEDEP}]
|
||||
dev-python/pytz[${PYTHON_USEDEP}]
|
||||
>=dev-python/six-1.10[${PYTHON_USEDEP}]
|
||||
media-fonts/stix-fonts
|
||||
media-libs/freetype:2
|
||||
media-libs/libpng:0
|
||||
>=media-libs/qhull-2013
|
||||
cairo? ( dev-python/cairocffi[${PYTHON_USEDEP}] )
|
||||
gtk2? (
|
||||
dev-libs/glib:2=
|
||||
x11-libs/gdk-pixbuf
|
||||
x11-libs/gtk+:2
|
||||
dev-python/pygtk[${PY2_USEDEP}] )
|
||||
wxwidgets? ( >=dev-python/wxpython-2.8:*[${PY2_USEDEP}] )"
|
||||
|
||||
# internal copy of pycxx highly patched
|
||||
# dev-python/pycxx
|
||||
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
${PY2_DEPEND}
|
||||
dev-python/versioneer[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
virtual/pkgconfig
|
||||
doc? (
|
||||
app-text/dvipng
|
||||
dev-python/colorspacious[${PYTHON_USEDEP}]
|
||||
dev-python/pillow[${PYTHON_USEDEP}]
|
||||
dev-python/ipython[${PYTHON_USEDEP}]
|
||||
dev-python/mock[${PY2_USEDEP}]
|
||||
dev-python/numpydoc[${PYTHON_USEDEP}]
|
||||
dev-python/sphinx[${PYTHON_USEDEP}]
|
||||
>=dev-python/sphinx-gallery-0.1.12[${PYTHON_USEDEP}]
|
||||
dev-python/xlwt[${PYTHON_USEDEP}]
|
||||
dev-texlive/texlive-latexextra
|
||||
dev-texlive/texlive-fontsrecommended
|
||||
dev-texlive/texlive-latexrecommended
|
||||
media-gfx/graphviz[cairo]
|
||||
)
|
||||
test? (
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
>=dev-python/nose-0.11.1[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
${PY2_DEPEND}
|
||||
>=dev-python/pyparsing-1.5.6[${PYTHON_USEDEP}]
|
||||
excel? ( dev-python/xlwt[${PYTHON_USEDEP}] )
|
||||
gtk3? (
|
||||
dev-python/pygobject:3[${PYTHON_USEDEP}]
|
||||
x11-libs/gtk+:3[introspection] )
|
||||
latex? (
|
||||
virtual/latex-base
|
||||
app-text/ghostscript-gpl
|
||||
app-text/dvipng
|
||||
app-text/poppler[utils]
|
||||
dev-texlive/texlive-fontsrecommended
|
||||
dev-texlive/texlive-latexextra
|
||||
dev-texlive/texlive-xetex
|
||||
)
|
||||
pyside? ( dev-python/pyside[X,${PYTHON_USEDEP}] )
|
||||
qt5? ( dev-python/PyQt5[gui,widgets,${PYTHON_USEDEP}] )
|
||||
"
|
||||
|
||||
# A few C++ source files are written to srcdir.
|
||||
# Other than that, the ebuild shall be fit for out-of-source build.
|
||||
DISTUTILS_IN_SOURCE_BUILD=1
|
||||
|
||||
pkg_setup() {
|
||||
unset DISPLAY # bug #278524
|
||||
}
|
||||
|
||||
use_setup() {
|
||||
local uword="${2:-${1}}"
|
||||
if use ${1}; then
|
||||
echo "${uword} = True"
|
||||
echo "${uword}agg = True"
|
||||
else
|
||||
echo "${uword} = False"
|
||||
echo "${uword}agg = False"
|
||||
fi
|
||||
}
|
||||
|
||||
python_prepare_all() {
|
||||
# Generates test failures, but fedora does it
|
||||
# local PATCHES=(
|
||||
# "${FILESDIR}"/${P}-unbundle-pycxx.patch
|
||||
# "${FILESDIR}"/${P}-unbundle-agg.patch
|
||||
# )
|
||||
# rm -r agg24 CXX || die
|
||||
# rm -r agg24 || die
|
||||
|
||||
# cat > lib/${PN}/externals/six.py <<-EOF
|
||||
# from __future__ import absolute_import
|
||||
# from six import *
|
||||
# EOF
|
||||
|
||||
sed \
|
||||
-e 's/matplotlib.pyparsing_py[23]/pyparsing/g' \
|
||||
-i lib/matplotlib/{mathtext,fontconfig_pattern}.py \
|
||||
|| die "sed pyparsing failed"
|
||||
|
||||
hprefixify setupext.py
|
||||
|
||||
export XDG_RUNTIME_DIR="${T}/runtime-dir"
|
||||
mkdir "${XDG_RUNTIME_DIR}" || die
|
||||
chmod 0700 "${XDG_RUNTIME_DIR}" || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_configure_all() {
|
||||
append-flags -fno-strict-aliasing
|
||||
append-cppflags -DNDEBUG # or get old trying to do triangulation
|
||||
tc-export PKG_CONFIG
|
||||
}
|
||||
|
||||
python_configure() {
|
||||
mkdir -p "${BUILD_DIR}" || die
|
||||
|
||||
# create setup.cfg (see setup.cfg.template for any changes).
|
||||
|
||||
# common switches.
|
||||
cat > "${BUILD_DIR}"/setup.cfg <<- EOF || die
|
||||
[directories]
|
||||
basedirlist = ${EPREFIX}/usr
|
||||
[provide_packages]
|
||||
pytz = False
|
||||
dateutil = False
|
||||
[packages]
|
||||
tests = $(usex test True False)
|
||||
[gui_support]
|
||||
agg = True
|
||||
qt4 = False
|
||||
qt4agg = False
|
||||
$(use_setup cairo)
|
||||
$(use_setup gtk3)
|
||||
$(use_setup pyside)
|
||||
$(use_setup qt5)
|
||||
$(use_setup tk)
|
||||
EOF
|
||||
|
||||
if use gtk3 && use cairo; then
|
||||
echo "gtk3cairo = True" >> "${BUILD_DIR}"/setup.cfg || die
|
||||
else
|
||||
echo "gtk3cairo = False" >> "${BUILD_DIR}"/setup.cfg || die
|
||||
fi
|
||||
|
||||
if python_is_python3; then
|
||||
cat >> "${BUILD_DIR}"/setup.cfg <<- EOF || die
|
||||
gtk = False
|
||||
gtkagg = False
|
||||
wx = False
|
||||
wxagg = False
|
||||
EOF
|
||||
else
|
||||
cat >> "${BUILD_DIR}"/setup.cfg <<-EOF || die
|
||||
$(use_setup gtk2 gtk)
|
||||
$(use_setup wxwidgets wx)
|
||||
EOF
|
||||
fi
|
||||
}
|
||||
|
||||
wrap_setup() {
|
||||
local -x MPLSETUPCFG=${BUILD_DIR}/setup.cfg
|
||||
unset DISPLAY
|
||||
"$@"
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
wrap_setup distutils-r1_python_compile --build-lib="${BUILD_DIR}"/lib
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
if use doc; then
|
||||
cd doc || die
|
||||
|
||||
# necessary for in-source build
|
||||
local -x PYTHONPATH="${BUILD_DIR}"/build/lib:${PYTHONPATH}
|
||||
|
||||
VARTEXFONTS="${T}"/fonts \
|
||||
"${EPYTHON}" ./make.py --small html || die
|
||||
fi
|
||||
}
|
||||
|
||||
python_test() {
|
||||
wrap_setup distutils_install_for_testing
|
||||
|
||||
virtx "${EPYTHON}" -c "import sys, matplotlib as m; sys.exit(0 if m.test(verbosity=2) else 1)"
|
||||
}
|
||||
|
||||
python_install() {
|
||||
wrap_setup distutils-r1_python_install
|
||||
|
||||
# mpl_toolkits namespace
|
||||
python_moduleinto mpl_toolkits
|
||||
python_domodule lib/mpl_toolkits/__init__.py
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( doc/build/html/. )
|
||||
|
||||
distutils-r1_python_install_all
|
||||
|
||||
if use examples; then
|
||||
dodoc -r examples
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
fi
|
||||
|
||||
find "${D}" -name '*.pth' -delete || die
|
||||
}
|
@ -0,0 +1,255 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
|
||||
PYTHON_REQ_USE='tk?,threads(+)'
|
||||
|
||||
inherit distutils-r1 flag-o-matic virtualx toolchain-funcs prefix
|
||||
|
||||
DESCRIPTION="Pure python plotting library with matlab like syntax"
|
||||
HOMEPAGE="http://matplotlib.org/"
|
||||
SRC_URI="https://dev.gentoo.org/~grozin/${P}.tar.bz2"
|
||||
|
||||
SLOT="0"
|
||||
# Main license: matplotlib
|
||||
# Some modules: BSD
|
||||
# matplotlib/backends/qt4_editor: MIT
|
||||
# Fonts: BitstreamVera, OFL-1.1
|
||||
LICENSE="BitstreamVera BSD matplotlib MIT OFL-1.1"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
IUSE="cairo doc excel examples gtk2 gtk3 latex pyside qt5 test tk wxwidgets"
|
||||
|
||||
PY2_FLAGS="|| ( $(python_gen_useflags python2_7) )"
|
||||
REQUIRED_USE="
|
||||
doc? ( ${PY2_FLAGS} )
|
||||
excel? ( ${PY2_FLAGS} )
|
||||
gtk2? ( ${PY2_FLAGS} )
|
||||
wxwidgets? ( ${PY2_FLAGS} )
|
||||
test? (
|
||||
cairo latex qt5 tk wxwidgets
|
||||
|| ( gtk2 gtk3 )
|
||||
)"
|
||||
|
||||
# #456704 -- a lot of py2-only deps
|
||||
PY2_USEDEP=$(python_gen_usedep python2_7)
|
||||
PY2_DEPEND="
|
||||
$(python_gen_cond_dep 'dev-python/functools32[${PYTHON_USEDEP}]' python2_7)
|
||||
$(python_gen_cond_dep 'dev-python/subprocess32[${PYTHON_USEDEP}]' python2_7)
|
||||
$(python_gen_cond_dep 'dev-python/backports-functools-lru-cache[${PYTHON_USEDEP}]' python2_7)"
|
||||
COMMON_DEPEND="
|
||||
dev-python/cycler[${PYTHON_USEDEP}]
|
||||
>=dev-python/numpy-1.7.1[${PYTHON_USEDEP}]
|
||||
dev-python/python-dateutil:0[${PYTHON_USEDEP}]
|
||||
dev-python/pytz[${PYTHON_USEDEP}]
|
||||
>=dev-python/six-1.10[${PYTHON_USEDEP}]
|
||||
media-fonts/stix-fonts
|
||||
media-libs/freetype:2
|
||||
media-libs/libpng:0
|
||||
>=media-libs/qhull-2013
|
||||
cairo? ( dev-python/cairocffi[${PYTHON_USEDEP}] )
|
||||
gtk2? (
|
||||
dev-libs/glib:2=
|
||||
x11-libs/gdk-pixbuf
|
||||
x11-libs/gtk+:2
|
||||
dev-python/pygtk[${PY2_USEDEP}] )
|
||||
wxwidgets? ( >=dev-python/wxpython-2.8:*[${PY2_USEDEP}] )"
|
||||
|
||||
# internal copy of pycxx highly patched
|
||||
# dev-python/pycxx
|
||||
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
${PY2_DEPEND}
|
||||
dev-python/versioneer[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
virtual/pkgconfig
|
||||
doc? (
|
||||
app-text/dvipng
|
||||
dev-python/colorspacious[${PYTHON_USEDEP}]
|
||||
dev-python/pillow[${PYTHON_USEDEP}]
|
||||
dev-python/ipython[${PYTHON_USEDEP}]
|
||||
dev-python/mock[${PY2_USEDEP}]
|
||||
dev-python/numpydoc[${PYTHON_USEDEP}]
|
||||
dev-python/sphinx[${PYTHON_USEDEP}]
|
||||
>=dev-python/sphinx-gallery-0.1.12[${PYTHON_USEDEP}]
|
||||
dev-python/xlwt[${PYTHON_USEDEP}]
|
||||
dev-texlive/texlive-latexextra
|
||||
dev-texlive/texlive-fontsrecommended
|
||||
dev-texlive/texlive-latexrecommended
|
||||
media-gfx/graphviz[cairo]
|
||||
)
|
||||
test? (
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
>=dev-python/nose-0.11.1[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
${PY2_DEPEND}
|
||||
>=dev-python/pyparsing-1.5.6[${PYTHON_USEDEP}]
|
||||
excel? ( dev-python/xlwt[${PYTHON_USEDEP}] )
|
||||
gtk3? (
|
||||
dev-python/pygobject:3[${PYTHON_USEDEP}]
|
||||
x11-libs/gtk+:3[introspection] )
|
||||
latex? (
|
||||
virtual/latex-base
|
||||
app-text/ghostscript-gpl
|
||||
app-text/dvipng
|
||||
app-text/poppler[utils]
|
||||
dev-texlive/texlive-fontsrecommended
|
||||
dev-texlive/texlive-latexextra
|
||||
dev-texlive/texlive-xetex
|
||||
)
|
||||
pyside? ( dev-python/pyside[X,${PYTHON_USEDEP}] )
|
||||
qt5? ( dev-python/PyQt5[gui,widgets,${PYTHON_USEDEP}] )
|
||||
"
|
||||
|
||||
# A few C++ source files are written to srcdir.
|
||||
# Other than that, the ebuild shall be fit for out-of-source build.
|
||||
DISTUTILS_IN_SOURCE_BUILD=1
|
||||
|
||||
pkg_setup() {
|
||||
unset DISPLAY # bug #278524
|
||||
}
|
||||
|
||||
use_setup() {
|
||||
local uword="${2:-${1}}"
|
||||
if use ${1}; then
|
||||
echo "${uword} = True"
|
||||
echo "${uword}agg = True"
|
||||
else
|
||||
echo "${uword} = False"
|
||||
echo "${uword}agg = False"
|
||||
fi
|
||||
}
|
||||
|
||||
python_prepare_all() {
|
||||
# Generates test failures, but fedora does it
|
||||
# local PATCHES=(
|
||||
# "${FILESDIR}"/${P}-unbundle-pycxx.patch
|
||||
# "${FILESDIR}"/${P}-unbundle-agg.patch
|
||||
# )
|
||||
# rm -r agg24 CXX || die
|
||||
# rm -r agg24 || die
|
||||
|
||||
# cat > lib/${PN}/externals/six.py <<-EOF
|
||||
# from __future__ import absolute_import
|
||||
# from six import *
|
||||
# EOF
|
||||
|
||||
local PATCHES=( "${FILESDIR}"/${P}-doc-make.patch )
|
||||
|
||||
sed \
|
||||
-e 's/matplotlib.pyparsing_py[23]/pyparsing/g' \
|
||||
-i lib/matplotlib/{mathtext,fontconfig_pattern}.py \
|
||||
|| die "sed pyparsing failed"
|
||||
|
||||
hprefixify setupext.py
|
||||
|
||||
export XDG_RUNTIME_DIR="${T}/runtime-dir"
|
||||
mkdir "${XDG_RUNTIME_DIR}" || die
|
||||
chmod 0700 "${XDG_RUNTIME_DIR}" || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_configure_all() {
|
||||
append-flags -fno-strict-aliasing
|
||||
append-cppflags -DNDEBUG # or get old trying to do triangulation
|
||||
tc-export PKG_CONFIG
|
||||
}
|
||||
|
||||
python_configure() {
|
||||
mkdir -p "${BUILD_DIR}" || die
|
||||
|
||||
# create setup.cfg (see setup.cfg.template for any changes).
|
||||
|
||||
# common switches.
|
||||
cat > "${BUILD_DIR}"/setup.cfg <<- EOF || die
|
||||
[directories]
|
||||
basedirlist = ${EPREFIX}/usr
|
||||
[provide_packages]
|
||||
pytz = False
|
||||
dateutil = False
|
||||
[packages]
|
||||
tests = $(usex test True False)
|
||||
[gui_support]
|
||||
agg = True
|
||||
qt4 = False
|
||||
qt4agg = False
|
||||
$(use_setup cairo)
|
||||
$(use_setup gtk3)
|
||||
$(use_setup pyside)
|
||||
$(use_setup qt5)
|
||||
$(use_setup tk)
|
||||
EOF
|
||||
|
||||
if use gtk3 && use cairo; then
|
||||
echo "gtk3cairo = True" >> "${BUILD_DIR}"/setup.cfg || die
|
||||
else
|
||||
echo "gtk3cairo = False" >> "${BUILD_DIR}"/setup.cfg || die
|
||||
fi
|
||||
|
||||
if python_is_python3; then
|
||||
cat >> "${BUILD_DIR}"/setup.cfg <<- EOF || die
|
||||
gtk = False
|
||||
gtkagg = False
|
||||
wx = False
|
||||
wxagg = False
|
||||
EOF
|
||||
else
|
||||
cat >> "${BUILD_DIR}"/setup.cfg <<-EOF || die
|
||||
$(use_setup gtk2 gtk)
|
||||
$(use_setup wxwidgets wx)
|
||||
EOF
|
||||
fi
|
||||
}
|
||||
|
||||
wrap_setup() {
|
||||
local -x MPLSETUPCFG=${BUILD_DIR}/setup.cfg
|
||||
unset DISPLAY
|
||||
"$@"
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
wrap_setup distutils-r1_python_compile --build-lib="${BUILD_DIR}"/lib
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
if use doc; then
|
||||
cd doc || die
|
||||
|
||||
# necessary for in-source build
|
||||
local -x PYTHONPATH="${BUILD_DIR}"/build/lib:${PYTHONPATH}
|
||||
|
||||
VARTEXFONTS="${T}"/fonts \
|
||||
"${EPYTHON}" ./make.py --small html || die
|
||||
fi
|
||||
}
|
||||
|
||||
python_test() {
|
||||
wrap_setup distutils_install_for_testing
|
||||
|
||||
virtx "${EPYTHON}" -c "import sys, matplotlib as m; sys.exit(0 if m.test(verbosity=2) else 1)"
|
||||
}
|
||||
|
||||
python_install() {
|
||||
wrap_setup distutils-r1_python_install
|
||||
|
||||
# mpl_toolkits namespace
|
||||
python_moduleinto mpl_toolkits
|
||||
python_domodule lib/mpl_toolkits/__init__.py
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( doc/build/html/. )
|
||||
|
||||
distutils-r1_python_install_all
|
||||
|
||||
if use examples; then
|
||||
dodoc -r examples
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
fi
|
||||
|
||||
find "${D}" -name '*.pth' -delete || die
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
diff -r -U2 pyqtgraph-0.10.0.orig/pyqtgraph/Qt.py pyqtgraph-0.10.0/pyqtgraph/Qt.py
|
||||
--- pyqtgraph-0.10.0.orig/pyqtgraph/Qt.py 2016-10-17 23:22:41.000000000 +0700
|
||||
+++ pyqtgraph-0.10.0/pyqtgraph/Qt.py 2018-01-23 22:52:19.503525554 +0700
|
||||
@@ -25,5 +25,5 @@
|
||||
## is already imported. If not, then attempt to import PyQt4, then PySide.
|
||||
if QT_LIB is None:
|
||||
- libOrder = [PYQT4, PYSIDE, PYQT5]
|
||||
+ libOrder = [PYQT5]
|
||||
|
||||
for lib in libOrder:
|
@ -0,0 +1,47 @@
|
||||
# Copyright 1999-2018 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="A pure-python graphics and GUI library built on PyQt and numpy"
|
||||
HOMEPAGE="http://www.pyqtgraph.org/ https://pypi.python.org/pypi/pyqtgraph/"
|
||||
SRC_URI="http://www.pyqtgraph.org/downloads/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc examples opengl svg"
|
||||
|
||||
RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]
|
||||
sci-libs/scipy[${PYTHON_USEDEP}]
|
||||
dev-python/PyQt5[gui,widgets,opengl=,svg=,${PYTHON_USEDEP}]
|
||||
opengl? ( dev-python/pyopengl[${PYTHON_USEDEP}] )"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${P}-qt5.patch )
|
||||
S=${WORKDIR}/${PN}-${P}
|
||||
|
||||
python_prepare_all() {
|
||||
distutils-r1_python_prepare_all
|
||||
|
||||
# fix distutils warning
|
||||
sed -i 's/install_requires/requires/' setup.py || die
|
||||
|
||||
if ! use opengl; then
|
||||
rm -r pyqtgraph/opengl || die
|
||||
fi
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C doc html
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( doc/build/html/. )
|
||||
use examples && dodoc -r examples
|
||||
distutils-r1_python_install_all
|
||||
}
|
Binary file not shown.
@ -1,2 +1 @@
|
||||
DIST celluloid-io-0.16.2.gem 53248 BLAKE2B 5ec918e12e3b1f86796ef73a3a3c68863f3267c63b06fd65cd78ac471af8985974a61b6f4e4e1bc542e71ee24af30a2900b843b43654da9b4a964d9d1f46aa44 SHA512 6e37fbf99cc57aab13f63da68318fcab5d70b0c48da154da22a5fc12ac9a17d015d5784af9c02679d0f5c72fed6a693ec459cb455f10aa75b83e5e0dce913f71
|
||||
DIST celluloid-io-0.17.3.gem 57856 BLAKE2B 6b2368c9e51a91ba1d7707389f173c1070e2d0a81698538af5240e3798509fe8e3495c2abea83b8c9f49148d3cce59a38823f2a47d7b92da395e78ad71506f8b SHA512 8b1552549c5aad59bf3789518ea2fa6833a4d3b7213cf70d941face215382a68b3d9d2d57e76b2bd7c478fe0e2690b19984d210b806bf1f67f159fd2bdf6b8ac
|
||||
|
@ -1,30 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby20 ruby21 ruby22"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_TEST="rspec"
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_EXTRADOC="CHANGES.md README.md"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="Evented IO for Celluloid actors"
|
||||
HOMEPAGE="https://github.com/celluloid/celluloid-io"
|
||||
IUSE=""
|
||||
SLOT="0"
|
||||
|
||||
LICENSE="MIT"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
|
||||
ruby_add_rdepend ">=dev-ruby/celluloid-0.16.0
|
||||
>=dev-ruby/nio4r-1.1.0"
|
||||
|
||||
all_ruby_prepare() {
|
||||
sed -i -e '/[Bb]undler/d' -e '/[Cc]overalls/d' spec/spec_helper.rb || die
|
||||
|
||||
# Avoid DNS tests. They either assume localhost is 127.0.0.1 or
|
||||
# require network access.
|
||||
rm spec/celluloid/io/dns_resolver_spec.rb || die
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST celluloid-0.16.0-git.tgz 63859 BLAKE2B 701347cf2ab55d4855722805209f5336cd3ffeb16561227781b4d696f417711be231d8eeec084f965b872f1c364a3d7dc5a3d75906eb15d235d2809529bb3203 SHA512 b1acc0daf35b16c086d720fccec93519de609e6c9e8f411ed70c48f3cfcb0c88f5ee665ac41e4a535e00eef112cae26ca2e8ab6b6de4738e13ed50579098d8ed
|
||||
DIST celluloid-0.17.3.gem 61952 BLAKE2B 5b64b67dea84261706acaf2612c23cb0b82d6af7fe0eece9d9e17e5d948d83a81b0de7598a1709fb5e1073f3632c7df6d6730c4797e0a4da593795b85c3bf9e1 SHA512 bb5005452ef7a2da1fb6b6515a6ad9df992dfd043caa605d1282a24b874c1f0798da0d19ee00f434486f9ef2c9467b1d6d2cadaa7883db98b885eeb842f1b94c
|
||||
|
@ -1,41 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
# rbx or jruby recommended, but only in 1.9 mode.
|
||||
USE_RUBY="ruby20 ruby21 ruby22 ruby23"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_TEST="rspec"
|
||||
#Needed by dev-ruby/listen
|
||||
RUBY_FAKEGEM_EXTRAINSTALL="spec"
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_EXTRADOC="CHANGES.md README.md"
|
||||
|
||||
RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="Provides a simple and natural way to build fault-tolerant concurrent programs"
|
||||
HOMEPAGE="https://github.com/celluloid/celluloid"
|
||||
SRC_URI="https://github.com/celluloid/celluloid/archive/v${PV}.tar.gz -> ${P}-git.tgz"
|
||||
IUSE=""
|
||||
SLOT="0"
|
||||
|
||||
LICENSE="MIT"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
|
||||
RUBY_PATCHES=( "${P}-call-private-methods.patch" )
|
||||
|
||||
ruby_add_rdepend ">=dev-ruby/timers-4.0.0:4"
|
||||
|
||||
all_ruby_prepare() {
|
||||
rm Gemfile .rspec || die
|
||||
|
||||
sed -i -e '/[Bb]undler/d' -e '/coveralls/I s:^:#:' spec/spec_helper.rb || die
|
||||
|
||||
# Force loading of the correct timers slot to avoid a bundler dependency.
|
||||
sed -i -e '3igem "timers", "~>4.0"' spec/spec_helper.rb || die
|
||||
|
||||
# Adjust timers dependency to match our slots, bug 563018
|
||||
sed -i -e '/timers/ s/4.0.0/4.0/' ${RUBY_FAKEGEM_GEMSPEC} || die
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue