parent
1a6d7c2c2f
commit
91a2d79988
Binary file not shown.
Binary file not shown.
@ -0,0 +1,310 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit go-module systemd
|
||||
|
||||
DESCRIPTION="Generic template rendering and notifications with Consul"
|
||||
HOMEPAGE="https://github.com/hashicorp/consul-template"
|
||||
|
||||
EGO_SUM=(
|
||||
"cloud.google.com/go v0.26.0/go.mod"
|
||||
"github.com/BurntSushi/toml v0.3.1"
|
||||
"github.com/BurntSushi/toml v0.3.1/go.mod"
|
||||
"github.com/DataDog/datadog-go v2.2.0+incompatible/go.mod"
|
||||
"github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod"
|
||||
"github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da"
|
||||
"github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod"
|
||||
"github.com/armon/go-metrics v0.0.0-20190430140413-ec5e00d3c878"
|
||||
"github.com/armon/go-metrics v0.0.0-20190430140413-ec5e00d3c878/go.mod"
|
||||
"github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310"
|
||||
"github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod"
|
||||
"github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod"
|
||||
"github.com/bgentry/speakeasy v0.1.0/go.mod"
|
||||
"github.com/circonus-labs/circonus-gometrics v2.3.1+incompatible/go.mod"
|
||||
"github.com/circonus-labs/circonusllhist v0.1.3/go.mod"
|
||||
"github.com/client9/misspell v0.3.4/go.mod"
|
||||
"github.com/davecgh/go-spew v1.1.0/go.mod"
|
||||
"github.com/davecgh/go-spew v1.1.1"
|
||||
"github.com/davecgh/go-spew v1.1.1/go.mod"
|
||||
"github.com/fatih/color v1.7.0/go.mod"
|
||||
"github.com/fatih/color v1.9.0"
|
||||
"github.com/fatih/color v1.9.0/go.mod"
|
||||
"github.com/fatih/structs v1.1.0/go.mod"
|
||||
"github.com/frankban/quicktest v1.4.0"
|
||||
"github.com/frankban/quicktest v1.4.0/go.mod"
|
||||
"github.com/go-ldap/ldap v3.0.2+incompatible/go.mod"
|
||||
"github.com/go-test/deep v1.0.2-0.20181118220953-042da051cf31/go.mod"
|
||||
"github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod"
|
||||
"github.com/golang/mock v1.1.1/go.mod"
|
||||
"github.com/golang/protobuf v1.2.0/go.mod"
|
||||
"github.com/golang/protobuf v1.3.1/go.mod"
|
||||
"github.com/golang/snappy v0.0.1"
|
||||
"github.com/golang/snappy v0.0.1/go.mod"
|
||||
"github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c"
|
||||
"github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod"
|
||||
"github.com/google/btree v1.0.0"
|
||||
"github.com/google/btree v1.0.0/go.mod"
|
||||
"github.com/google/go-cmp v0.2.0/go.mod"
|
||||
"github.com/google/go-cmp v0.3.0"
|
||||
"github.com/google/go-cmp v0.3.0/go.mod"
|
||||
"github.com/hashicorp/consul/api v1.4.0"
|
||||
"github.com/hashicorp/consul/api v1.4.0/go.mod"
|
||||
"github.com/hashicorp/consul/sdk v0.4.0"
|
||||
"github.com/hashicorp/consul/sdk v0.4.0/go.mod"
|
||||
"github.com/hashicorp/errwrap v1.0.0"
|
||||
"github.com/hashicorp/errwrap v1.0.0/go.mod"
|
||||
"github.com/hashicorp/go-cleanhttp v0.5.0/go.mod"
|
||||
"github.com/hashicorp/go-cleanhttp v0.5.1"
|
||||
"github.com/hashicorp/go-cleanhttp v0.5.1/go.mod"
|
||||
"github.com/hashicorp/go-gatedio v0.5.0"
|
||||
"github.com/hashicorp/go-gatedio v0.5.0/go.mod"
|
||||
"github.com/hashicorp/go-hclog v0.0.0-20180709165350-ff2cf002a8dd/go.mod"
|
||||
"github.com/hashicorp/go-hclog v0.8.0/go.mod"
|
||||
"github.com/hashicorp/go-hclog v0.12.0"
|
||||
"github.com/hashicorp/go-hclog v0.12.0/go.mod"
|
||||
"github.com/hashicorp/go-immutable-radix v1.0.0"
|
||||
"github.com/hashicorp/go-immutable-radix v1.0.0/go.mod"
|
||||
"github.com/hashicorp/go-immutable-radix v1.1.0"
|
||||
"github.com/hashicorp/go-immutable-radix v1.1.0/go.mod"
|
||||
"github.com/hashicorp/go-msgpack v0.5.3/go.mod"
|
||||
"github.com/hashicorp/go-msgpack v0.5.5"
|
||||
"github.com/hashicorp/go-msgpack v0.5.5/go.mod"
|
||||
"github.com/hashicorp/go-multierror v1.0.0"
|
||||
"github.com/hashicorp/go-multierror v1.0.0/go.mod"
|
||||
"github.com/hashicorp/go-plugin v1.0.1/go.mod"
|
||||
"github.com/hashicorp/go-retryablehttp v0.5.3/go.mod"
|
||||
"github.com/hashicorp/go-retryablehttp v0.5.4"
|
||||
"github.com/hashicorp/go-retryablehttp v0.5.4/go.mod"
|
||||
"github.com/hashicorp/go-rootcerts v1.0.1"
|
||||
"github.com/hashicorp/go-rootcerts v1.0.1/go.mod"
|
||||
"github.com/hashicorp/go-rootcerts v1.0.2"
|
||||
"github.com/hashicorp/go-rootcerts v1.0.2/go.mod"
|
||||
"github.com/hashicorp/go-sockaddr v1.0.0/go.mod"
|
||||
"github.com/hashicorp/go-sockaddr v1.0.2"
|
||||
"github.com/hashicorp/go-sockaddr v1.0.2/go.mod"
|
||||
"github.com/hashicorp/go-syslog v1.0.0"
|
||||
"github.com/hashicorp/go-syslog v1.0.0/go.mod"
|
||||
"github.com/hashicorp/go-uuid v1.0.0/go.mod"
|
||||
"github.com/hashicorp/go-uuid v1.0.1"
|
||||
"github.com/hashicorp/go-uuid v1.0.1/go.mod"
|
||||
"github.com/hashicorp/go-version v1.1.0/go.mod"
|
||||
"github.com/hashicorp/go.net v0.0.1/go.mod"
|
||||
"github.com/hashicorp/golang-lru v0.5.0/go.mod"
|
||||
"github.com/hashicorp/golang-lru v0.5.1"
|
||||
"github.com/hashicorp/golang-lru v0.5.1/go.mod"
|
||||
"github.com/hashicorp/golang-lru v0.5.3"
|
||||
"github.com/hashicorp/golang-lru v0.5.3/go.mod"
|
||||
"github.com/hashicorp/hcl v1.0.0"
|
||||
"github.com/hashicorp/hcl v1.0.0/go.mod"
|
||||
"github.com/hashicorp/logutils v1.0.0"
|
||||
"github.com/hashicorp/logutils v1.0.0/go.mod"
|
||||
"github.com/hashicorp/mdns v1.0.0/go.mod"
|
||||
"github.com/hashicorp/memberlist v0.1.3/go.mod"
|
||||
"github.com/hashicorp/memberlist v0.1.4"
|
||||
"github.com/hashicorp/memberlist v0.1.4/go.mod"
|
||||
"github.com/hashicorp/serf v0.8.2/go.mod"
|
||||
"github.com/hashicorp/serf v0.8.3"
|
||||
"github.com/hashicorp/serf v0.8.3/go.mod"
|
||||
"github.com/hashicorp/vault/api v1.0.5-0.20190730042357-746c0b111519"
|
||||
"github.com/hashicorp/vault/api v1.0.5-0.20190730042357-746c0b111519/go.mod"
|
||||
"github.com/hashicorp/vault/sdk v0.1.14-0.20190730042320-0dc007d98cc8"
|
||||
"github.com/hashicorp/vault/sdk v0.1.14-0.20190730042320-0dc007d98cc8/go.mod"
|
||||
"github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb/go.mod"
|
||||
"github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d/go.mod"
|
||||
"github.com/kr/pretty v0.1.0"
|
||||
"github.com/kr/pretty v0.1.0/go.mod"
|
||||
"github.com/kr/pretty v0.2.0"
|
||||
"github.com/kr/pretty v0.2.0/go.mod"
|
||||
"github.com/kr/pty v1.1.1/go.mod"
|
||||
"github.com/kr/text v0.1.0"
|
||||
"github.com/kr/text v0.1.0/go.mod"
|
||||
"github.com/mattn/go-colorable v0.0.9/go.mod"
|
||||
"github.com/mattn/go-colorable v0.1.4"
|
||||
"github.com/mattn/go-colorable v0.1.4/go.mod"
|
||||
"github.com/mattn/go-isatty v0.0.3/go.mod"
|
||||
"github.com/mattn/go-isatty v0.0.8/go.mod"
|
||||
"github.com/mattn/go-isatty v0.0.10/go.mod"
|
||||
"github.com/mattn/go-isatty v0.0.11/go.mod"
|
||||
"github.com/mattn/go-isatty v0.0.12"
|
||||
"github.com/mattn/go-isatty v0.0.12/go.mod"
|
||||
"github.com/mattn/go-shellwords v1.0.5"
|
||||
"github.com/mattn/go-shellwords v1.0.5/go.mod"
|
||||
"github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod"
|
||||
"github.com/miekg/dns v1.0.14"
|
||||
"github.com/miekg/dns v1.0.14/go.mod"
|
||||
"github.com/miekg/dns v1.1.15"
|
||||
"github.com/miekg/dns v1.1.15/go.mod"
|
||||
"github.com/mitchellh/cli v1.0.0/go.mod"
|
||||
"github.com/mitchellh/copystructure v1.0.0/go.mod"
|
||||
"github.com/mitchellh/go-homedir v1.1.0"
|
||||
"github.com/mitchellh/go-homedir v1.1.0/go.mod"
|
||||
"github.com/mitchellh/go-testing-interface v0.0.0-20171004221916-a61a99592b77/go.mod"
|
||||
"github.com/mitchellh/go-testing-interface v1.0.0"
|
||||
"github.com/mitchellh/go-testing-interface v1.0.0/go.mod"
|
||||
"github.com/mitchellh/go-wordwrap v1.0.0/go.mod"
|
||||
"github.com/mitchellh/gox v0.4.0/go.mod"
|
||||
"github.com/mitchellh/hashstructure v1.0.0"
|
||||
"github.com/mitchellh/hashstructure v1.0.0/go.mod"
|
||||
"github.com/mitchellh/iochan v1.0.0/go.mod"
|
||||
"github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod"
|
||||
"github.com/mitchellh/mapstructure v1.1.2"
|
||||
"github.com/mitchellh/mapstructure v1.1.2/go.mod"
|
||||
"github.com/mitchellh/reflectwalk v1.0.0/go.mod"
|
||||
"github.com/oklog/run v1.0.0/go.mod"
|
||||
"github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod"
|
||||
"github.com/pascaldekloe/goe v0.1.0"
|
||||
"github.com/pascaldekloe/goe v0.1.0/go.mod"
|
||||
"github.com/pierrec/lz4 v2.0.5+incompatible"
|
||||
"github.com/pierrec/lz4 v2.0.5+incompatible/go.mod"
|
||||
"github.com/pierrec/lz4 v2.2.5+incompatible"
|
||||
"github.com/pierrec/lz4 v2.2.5+incompatible/go.mod"
|
||||
"github.com/pkg/errors v0.8.1"
|
||||
"github.com/pkg/errors v0.8.1/go.mod"
|
||||
"github.com/pmezard/go-difflib v1.0.0"
|
||||
"github.com/pmezard/go-difflib v1.0.0/go.mod"
|
||||
"github.com/posener/complete v1.1.1/go.mod"
|
||||
"github.com/prometheus/client_golang v0.9.2/go.mod"
|
||||
"github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod"
|
||||
"github.com/prometheus/common v0.0.0-20181126121408-4724e9255275/go.mod"
|
||||
"github.com/prometheus/procfs v0.0.0-20181204211112-1dc9a6cbc91a/go.mod"
|
||||
"github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod"
|
||||
"github.com/ryanuber/columnize v2.1.0+incompatible/go.mod"
|
||||
"github.com/ryanuber/go-glob v1.0.0"
|
||||
"github.com/ryanuber/go-glob v1.0.0/go.mod"
|
||||
"github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529"
|
||||
"github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod"
|
||||
"github.com/stretchr/objx v0.1.0/go.mod"
|
||||
"github.com/stretchr/testify v1.2.2/go.mod"
|
||||
"github.com/stretchr/testify v1.3.0"
|
||||
"github.com/stretchr/testify v1.3.0/go.mod"
|
||||
"github.com/stretchr/testify v1.4.0"
|
||||
"github.com/stretchr/testify v1.4.0/go.mod"
|
||||
"github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod"
|
||||
"golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod"
|
||||
"golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod"
|
||||
"golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4"
|
||||
"golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod"
|
||||
"golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod"
|
||||
"golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod"
|
||||
"golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod"
|
||||
"golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod"
|
||||
"golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod"
|
||||
"golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod"
|
||||
"golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod"
|
||||
"golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod"
|
||||
"golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod"
|
||||
"golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod"
|
||||
"golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3"
|
||||
"golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod"
|
||||
"golang.org/x/net v0.0.0-20190620200207-3b0461eec859"
|
||||
"golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod"
|
||||
"golang.org/x/net v0.0.0-20190724013045-ca1201d0de80"
|
||||
"golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod"
|
||||
"golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod"
|
||||
"golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod"
|
||||
"golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod"
|
||||
"golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4"
|
||||
"golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod"
|
||||
"golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6"
|
||||
"golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod"
|
||||
"golang.org/x/sync v0.0.0-20190423024810-112230192c58"
|
||||
"golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod"
|
||||
"golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod"
|
||||
"golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod"
|
||||
"golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod"
|
||||
"golang.org/x/sys v0.0.0-20190129075346-302c3dd5f1cc/go.mod"
|
||||
"golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod"
|
||||
"golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod"
|
||||
"golang.org/x/sys v0.0.0-20190403152447-81d4e9dc473e"
|
||||
"golang.org/x/sys v0.0.0-20190403152447-81d4e9dc473e/go.mod"
|
||||
"golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod"
|
||||
"golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod"
|
||||
"golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod"
|
||||
"golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod"
|
||||
"golang.org/x/sys v0.0.0-20200124204421-9fbb57f87de9"
|
||||
"golang.org/x/sys v0.0.0-20200124204421-9fbb57f87de9/go.mod"
|
||||
"golang.org/x/text v0.3.0"
|
||||
"golang.org/x/text v0.3.0/go.mod"
|
||||
"golang.org/x/text v0.3.1-0.20181227161524-e6919f6577db"
|
||||
"golang.org/x/text v0.3.1-0.20181227161524-e6919f6577db/go.mod"
|
||||
"golang.org/x/text v0.3.2"
|
||||
"golang.org/x/text v0.3.2/go.mod"
|
||||
"golang.org/x/time v0.0.0-20190308202827-9d24e82272b4"
|
||||
"golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod"
|
||||
"golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod"
|
||||
"golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod"
|
||||
"golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod"
|
||||
"golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod"
|
||||
"golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod"
|
||||
"google.golang.org/appengine v1.1.0/go.mod"
|
||||
"google.golang.org/appengine v1.4.0/go.mod"
|
||||
"google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod"
|
||||
"google.golang.org/genproto v0.0.0-20190404172233-64821d5d2107/go.mod"
|
||||
"google.golang.org/grpc v1.14.0/go.mod"
|
||||
"google.golang.org/grpc v1.19.0/go.mod"
|
||||
"google.golang.org/grpc v1.22.0/go.mod"
|
||||
"gopkg.in/asn1-ber.v1 v1.0.0-20181015200546-f715ec2f112d/go.mod"
|
||||
"gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod"
|
||||
"gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15"
|
||||
"gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod"
|
||||
"gopkg.in/square/go-jose.v2 v2.3.1"
|
||||
"gopkg.in/square/go-jose.v2 v2.3.1/go.mod"
|
||||
"gopkg.in/yaml.v2 v2.2.2"
|
||||
"gopkg.in/yaml.v2 v2.2.2/go.mod"
|
||||
"gopkg.in/yaml.v2 v2.2.8"
|
||||
"gopkg.in/yaml.v2 v2.2.8/go.mod"
|
||||
"honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod"
|
||||
"honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod"
|
||||
)
|
||||
go-module_set_globals
|
||||
SRC_URI="https://github.com/hashicorp/consul-template/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
${EGO_SUM_SRC_URI}"
|
||||
|
||||
LICENSE="MPL-2.0 Apache-2.0 BSD BSD-2 ISC MIT WTFPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
COMMON_DEPEND="
|
||||
acct-group/consul-template
|
||||
acct-user/consul-template"
|
||||
|
||||
DEPEND="${COMMON_DEPEND}"
|
||||
RDEPEND="${COMMON_DEPEND}"
|
||||
|
||||
# TODO: debug test failures
|
||||
RESTRICT="test"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
# remove -s and -w from the linker flags
|
||||
sed \
|
||||
-e '/-s \\/d' \
|
||||
-e '/-w \\/d' \
|
||||
-i Makefile || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake GOBIN="${S}"/bin dev
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake GOBIN="${S}"/bin test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin bin/${PN}
|
||||
dodoc CHANGELOG.md README.md
|
||||
|
||||
newinitd "${FILESDIR}/${PN}.initd" "${PN}"
|
||||
newconfd "${FILESDIR}/${PN}.confd" "${PN}"
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/${PN}.logrotated" "${PN}"
|
||||
systemd_dounit "${FILESDIR}/${PN}.service"
|
||||
|
||||
keepdir /etc/${PN}.d
|
||||
|
||||
keepdir /var/log/${PN}
|
||||
fowners ${PN}:${PN} /var/log/${PN}
|
||||
}
|
@ -1,5 +1,2 @@
|
||||
DIST prelude-manager-3.0.0.tar.gz 1286459 BLAKE2B 0909b0d7501909de51cd580b6ce22a66b1900a3b5b7376d3aeb4136bf41128ab766a025d69d33c414a9623dabb0de144e2f21190c3c3cccb9c067db359aab1bd SHA512 4c16a353495179265375686ce9592c8cd044b4255060b78286466bd25f9b38634233c95af058e1c0b81e1b574ec9ada5b2db92d6d1f5594dfcddce572fd0fd67
|
||||
DIST prelude-manager-4.0.0.tar.gz 1353116 BLAKE2B 20aaa28797a67fd310807735bb08f0c21c3bd95950598a86c45144ee2474785aef0c7d569732c817509ae8ae52ffce5f43f3c071931f2960578681f91a8c9504 SHA512 793ed37c71eb4884cbbb49b11c7388ee291a35252255458ceadb4ce10d1392e8bad423f95e31bff4550a9cf1d04139e43729352554fd847048b6c8d14f813a8a
|
||||
DIST prelude-manager-4.1.1.tar.gz 1415847 BLAKE2B 7cea7209a680a38cf597a9678f3ac9a31b00187e4597e1aeed91bbe57a55981279e8399ee8c90a044e40873e595ca648736fa79090420d9bcd72b82588f7bb5e SHA512 4e9d09b56eb7ec55144caa06a04e458bf0462d8c0064a34aac5aa0fb96a30fbefe5a4956185b606ec58fc410e4cbcac8721e521b3396303b3bff88808042a966
|
||||
DIST prelude-manager-5.1.0.tar.gz 1510054 BLAKE2B 88ef666a76c58af1a8164c033b7e9c1ea869a18a66cb489d8c7fdbf1fa331006e7844aea4386ea3185902afd108af5eb1b46ee17686032de460d8c5b336fd658 SHA512 1f0e993f9bf684ec65a741db3cdaf537dc47bc2f77652a37c194db422dd5da2aa33b78d3ee454c78b28b44c022eacc7246ee99187b0b8779c12f3a67320d89a3
|
||||
DIST prelude-manager-5.2.0.tar.gz 1564874 BLAKE2B cd00aca6a533cdb47e311c4a8eed17d514f39de3b1c5a4b334b8e8c8c2d318b36d1fc843bf36be0383da2ae5f4e41a936fc70ad92d5b55ab56e9a34c36fc1dae SHA512 49f8fd10c7f3c5c816e6bc49ce8d47abfe56b4b0a1d8a564774f67ef5f0e3058c62ef9c88ca709b1fe2961ed832269fe811ddf57d4118879fa561970561507d6
|
||||
|
@ -1,11 +0,0 @@
|
||||
--- a/prelude-manager.conf.in
|
||||
+++ b/prelude-manager.conf.in
|
||||
@@ -361,7 +361,7 @@
|
||||
# (same source, target and classification combination) every 2 minutes
|
||||
# to reporting plugins (eg. to the database).
|
||||
[thresholding]
|
||||
-path = alert.classification.text, alert.source.node.address.address, alert.target.node.address.address
|
||||
+path = alert.classification.text, alert.source(0).node.address(0).address, alert.target(0).node.address(0).address
|
||||
limit = 120
|
||||
count = 100
|
||||
hook = reporting
|
@ -1,57 +0,0 @@
|
||||
When : when you try to use enable with libmaxmind, libpreludedb, xml, libwrap, they are not working
|
||||
Why : Needed if you want to use useflags
|
||||
--- a/configure.in
|
||||
+++ b/configure.in
|
||||
@@ -110,7 +110,10 @@
|
||||
dnl **************************************************
|
||||
LIBMAXMINDDB_MIN_VERSION=1.0.0
|
||||
|
||||
-PKG_CHECK_MODULES([LIBMAXMINDDB], [libmaxminddb >= $LIBMAXMINDDB_MIN_VERSION], enable_libmaxminddb=yes, enable_libmaxminddb=no)
|
||||
+AC_ARG_ENABLE(libmaxminddb, AC_HELP_STRING(--enable-libmaxminddb, Define whether libmaxminddb is available), , enable_libmaxminddb="yes")
|
||||
+if test x$enable_libmaxminddb = xyes; then
|
||||
+ PKG_CHECK_MODULES([LIBMAXMINDDB], [libmaxminddb >= $LIBMAXMINDDB_MIN_VERSION], enable_libmaxminddb=yes, enable_libmaxminddb=no)
|
||||
+fi
|
||||
if test x$enable_libmaxminddb = xyes; then
|
||||
AC_CHECK_HEADER(maxminddb.h, enable_libmaxminddb=yes, enable_libmaxminddb=no)
|
||||
fi
|
||||
@@ -126,11 +129,14 @@
|
||||
dnl * Check for libpreludedb *
|
||||
dnl **************************************************
|
||||
|
||||
-AM_PATH_LIBPRELUDEDB(3.0.0, enable_libpreludedb=yes, enable_libpreludedb=no, no)
|
||||
-AM_CONDITIONAL(HAVE_LIBPRELUDEDB, test x$enable_libpreludedb = xyes)
|
||||
+AC_ARG_ENABLE(libpreludedb, AC_HELP_STRING(--enable-libpreludedb, Define whether libpreludedb is available), , enable_libpreludedb="yes")
|
||||
+if test x$enable_libpreludedb = xyes; then
|
||||
+ AM_PATH_LIBPRELUDEDB(3.0.0, enable_libpreludedb=yes, enable_libpreludedb=no, no)
|
||||
+fi
|
||||
if test x$enable_libpreludedb = xyes; then
|
||||
AC_DEFINE_UNQUOTED(HAVE_LIBPRELUDEDB, , Define whether libpreludedb is available)
|
||||
fi
|
||||
+AM_CONDITIONAL(HAVE_LIBPRELUDEDB, test x$enable_libpreludedb = xyes)
|
||||
|
||||
|
||||
|
||||
@@ -138,7 +144,10 @@
|
||||
dnl * Check for the Libxml2 *
|
||||
dnl ********************************************************
|
||||
|
||||
-AM_PATH_XML2(, enable_xmlmod=yes, enable_xmlmod=no)
|
||||
+AC_ARG_ENABLE(xmlmod, AC_HELP_STRING(--enable-xmlmod, Enable XML), , enable_xmlmod="yes")
|
||||
+if test x$enable_xmlmod = xyes; then
|
||||
+ AM_PATH_XML2(, enable_xmlmod=yes, enable_xmlmod=no)
|
||||
+fi
|
||||
AM_CONDITIONAL(HAVE_XML2, test x$enable_xmlmod = xyes)
|
||||
|
||||
|
||||
@@ -147,9 +156,10 @@
|
||||
dnl * TCP WRAPPER CHECK *
|
||||
dnl **************************************************
|
||||
|
||||
+AC_ARG_WITH(libwrap, AC_HELP_STRING(--with-libwrap, Compile in libwrap (tcp_wrappers) support.), , with_libwrap="yes")
|
||||
AC_ARG_WITH(libwrap-prefix, AC_HELP_STRING(--with-libwrap-prefix@<:@=PFX@:>@,
|
||||
Compile in libwrap (tcp_wrappers) support @<:@default=auto@:>@.),
|
||||
- libwrap_required=true, with_libwrap="yes")
|
||||
+ libwrap_required=true, )
|
||||
|
||||
if test x$with_libwrap != xno; then
|
||||
LIBWRAP_INCLUDE="tcpd.h"
|
@ -1,13 +0,0 @@
|
||||
When : everytime
|
||||
Why : since systemd, run dir has changed
|
||||
--- a/configure.in
|
||||
+++ b/configure.in
|
||||
@@ -304,7 +304,7 @@
|
||||
|
||||
manager_failover_dir=$LOCALSTATEDIR/spool/prelude-manager/failover
|
||||
manager_scheduler_dir=$LOCALSTATEDIR/spool/prelude-manager/scheduler
|
||||
-manager_run_dir=$LOCALSTATEDIR/run/prelude-manager
|
||||
+manager_run_dir=/run/prelude-manager
|
||||
|
||||
AC_DEFINE_UNQUOTED(REPORT_PLUGIN_DIR, "$report_plugin_dir", Prelude-Manager report plugin directory)
|
||||
AC_DEFINE_UNQUOTED(DECODE_PLUGIN_DIR, "$decode_plugin_dir", Prelude-Manager decode plugin directory)
|
@ -1,62 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit autotools eutils ltprune systemd
|
||||
|
||||
DESCRIPTION="Bus communication for all Prelude modules"
|
||||
HOMEPAGE="https://www.prelude-siem.org"
|
||||
SRC_URI="https://www.prelude-siem.org/pkg/src/3.0.0/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="tcpwrapper xml geoip dbx"
|
||||
|
||||
RDEPEND="net-libs/gnutls
|
||||
dev-libs/libprelude
|
||||
dbx? ( dev-libs/libpreludedb )
|
||||
tcpwrapper? ( sys-apps/tcp-wrappers )
|
||||
xml? ( dev-libs/libxml2 )
|
||||
geoip? ( dev-libs/libmaxminddb )"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-conf.patch"
|
||||
"${FILESDIR}/${P}-configure.patch"
|
||||
"${FILESDIR}/${P}-run.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default_src_prepare
|
||||
|
||||
mv "${S}/configure.in" "${S}/configure.ac" || die "mv failed"
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--localstatedir=/var \
|
||||
$(use_enable dbx libpreludedb) \
|
||||
$(use_with tcpwrapper libwrap) \
|
||||
$(use_enable xml xmlmod) \
|
||||
$(use_enable geoip libmaxminddb)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default_src_install
|
||||
|
||||
rm -rv "${D}/run" || die "rm failed"
|
||||
keepdir /var/spool/prelude-manager{,/failover,/scheduler}
|
||||
|
||||
prune_libtool_files --modules
|
||||
|
||||
systemd_dounit "${FILESDIR}/${PN}.service"
|
||||
systemd_newtmpfilesd "${FILESDIR}/${PN}.run" "${PN}.conf"
|
||||
|
||||
newinitd "${FILESDIR}/${PN}.initd" "${PN}"
|
||||
}
|
@ -1,58 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit autotools systemd
|
||||
|
||||
DESCRIPTION="Bus communication for all Prelude modules"
|
||||
HOMEPAGE="https://www.prelude-siem.org"
|
||||
SRC_URI="https://www.prelude-siem.org/pkg/src/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="dbx geoip tcpwrapper xml"
|
||||
|
||||
RDEPEND="net-libs/gnutls:=
|
||||
~dev-libs/libprelude-${PV}
|
||||
dbx? ( ~dev-libs/libpreludedb-${PV} )
|
||||
geoip? ( dev-libs/libmaxminddb )
|
||||
tcpwrapper? ( sys-apps/tcp-wrappers )
|
||||
xml? ( dev-libs/libxml2 )"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-3.1.0-run.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--localstatedir="${EPREFIX}/var" \
|
||||
$(use_with dbx libpreludedb-prefix) \
|
||||
$(use_enable geoip libmaxminddb) \
|
||||
$(use_with tcpwrapper libwrap) \
|
||||
$(usex xml '' '--without-xml-prefix')
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
rm -rv "${ED%/}/run" || die "rm failed"
|
||||
keepdir /var/spool/prelude-manager{,/failover,/scheduler}
|
||||
|
||||
find "${D}" -name '*.la' -delete || die
|
||||
|
||||
systemd_dounit "${FILESDIR}/${PN}.service"
|
||||
systemd_newtmpfilesd "${FILESDIR}/${PN}.run" "${PN}.conf"
|
||||
|
||||
newinitd "${FILESDIR}/${PN}.initd" "${PN}"
|
||||
}
|
@ -1,61 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit autotools systemd
|
||||
|
||||
DESCRIPTION="Bus communication for all Prelude modules"
|
||||
HOMEPAGE="https://www.prelude-siem.org"
|
||||
SRC_URI="https://www.prelude-siem.org/pkg/src/4.1.0/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="dbx geoip tcpwrapper xml"
|
||||
|
||||
RDEPEND="net-libs/gnutls:=
|
||||
~dev-libs/libprelude-4.1.0
|
||||
dbx? ( ~dev-libs/libpreludedb-4.1.0 )
|
||||
geoip? ( dev-libs/libmaxminddb )
|
||||
tcpwrapper? ( sys-apps/tcp-wrappers )
|
||||
xml? ( dev-libs/libxml2 )"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-3.1.0-run.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=(
|
||||
--localstatedir="${EPREFIX}/var"
|
||||
$(use_with dbx libpreludedb-prefix)
|
||||
$(use_enable geoip libmaxminddb)
|
||||
$(use_with tcpwrapper libwrap)
|
||||
$(usex xml '' '--without-xml-prefix')
|
||||
)
|
||||
|
||||
econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
rm -rv "${ED%/}/run" || die "rm failed"
|
||||
keepdir /var/spool/prelude-manager{,/failover,/scheduler}
|
||||
|
||||
find "${D}" -name '*.la' -delete || die
|
||||
|
||||
systemd_dounit "${FILESDIR}/${PN}.service"
|
||||
systemd_newtmpfilesd "${FILESDIR}/${PN}.run" "${PN}.conf"
|
||||
|
||||
newinitd "${FILESDIR}/${PN}.initd" "${PN}"
|
||||
}
|
@ -1,43 +0,0 @@
|
||||
diff --git a/tests/unit/modules/test_event.py b/tests/unit/modules/test_event.py
|
||||
index e5d2c946ae..e9140670cb 100644
|
||||
--- a/tests/unit/modules/test_event.py
|
||||
+++ b/tests/unit/modules/test_event.py
|
||||
@@ -47,12 +47,6 @@ class EventTestCase(TestCase, LoaderModuleMockMixin):
|
||||
preload = {'id': 'id', 'tag': 'tag', 'data': 'data',
|
||||
'tok': 'salt', 'cmd': '_minion_event'}
|
||||
|
||||
- with patch.dict(event.__opts__, {'transport': 'raet',
|
||||
- 'local': False}):
|
||||
- with patch.object(salt_transport_channel_factory, 'send',
|
||||
- return_value=None):
|
||||
- self.assertTrue(event.fire_master('data', 'tag'))
|
||||
-
|
||||
with patch.dict(event.__opts__, {'transport': 'A',
|
||||
'master_uri': 'localhost',
|
||||
'local': False}):
|
||||
diff --git a/tests/unit/utils/test_verify.py b/tests/unit/utils/test_verify.py
|
||||
index 63b9ae3181..2c8294ef77 100644
|
||||
--- a/tests/unit/utils/test_verify.py
|
||||
+++ b/tests/unit/utils/test_verify.py
|
||||
@@ -326,7 +326,7 @@ class TestVerifyLog(TestCase):
|
||||
verify_log_files([path], getpass.getuser())
|
||||
self.assertTrue(os.path.exists(path))
|
||||
|
||||
-
|
||||
+@skipIf(True, "broken under sandbox")
|
||||
class TestCleanPath(TestCase):
|
||||
'''
|
||||
salt.utils.clean_path works as expected
|
||||
@@ -396,10 +396,10 @@ class TestCleanPathLink(TestCase):
|
||||
test_path = os.path.join(self.from_path, 'test')
|
||||
expect_path = os.path.join(self.to_path, 'test')
|
||||
ret = clean_path(self.from_path, test_path)
|
||||
- assert ret == expect_path, "{} is not {}".format(ret, expect_path)
|
||||
+ assert ret == os.path.realpath(expect_path), "{} is not {}".format(ret, expect_path)
|
||||
|
||||
def test_clean_path_symlinked_tgt(self):
|
||||
test_path = os.path.join(self.to_path, 'test')
|
||||
expect_path = os.path.join(self.to_path, 'test')
|
||||
ret = clean_path(self.from_path, test_path)
|
||||
- assert ret == expect_path, "{} is not {}".format(ret, expect_path)
|
||||
+ assert ret == os.path.realpath(expect_path), "{} is not {}".format(ret, expect_path)
|
@ -1,73 +0,0 @@
|
||||
diff --git a/tests/unit/fileserver/test_gitfs.py b/tests/unit/fileserver/test_gitfs.py
|
||||
index 4e93df4e62..38c13efb6b 100644
|
||||
--- a/tests/unit/fileserver/test_gitfs.py
|
||||
+++ b/tests/unit/fileserver/test_gitfs.py
|
||||
@@ -151,6 +151,7 @@ class GitfsConfigTestCase(TestCase, LoaderModuleMockMixin):
|
||||
if exc.errno != errno.EEXIST:
|
||||
raise
|
||||
|
||||
+ @skipIf(True, 'currently failing on Gentoo')
|
||||
def test_per_saltenv_config(self):
|
||||
opts_override = textwrap.dedent('''
|
||||
gitfs_root: salt
|
||||
diff --git a/tests/unit/grains/test_core.py b/tests/unit/grains/test_core.py
|
||||
index 445df0c98a..17ca123172 100644
|
||||
--- a/tests/unit/grains/test_core.py
|
||||
+++ b/tests/unit/grains/test_core.py
|
||||
@@ -710,6 +710,7 @@ class CoreGrainsTestCase(TestCase, LoaderModuleMockMixin):
|
||||
)
|
||||
|
||||
@skipIf(not salt.utils.platform.is_linux(), 'System is not Linux')
|
||||
+ @skipIf(True, 'Test assumes running under Xen')
|
||||
def test_xen_virtual(self):
|
||||
'''
|
||||
Test if OS grains are parsed correctly in Ubuntu Xenial Xerus
|
||||
diff --git a/tests/unit/utils/test_asynchronous.py b/tests/unit/utils/test_asynchronous.py
|
||||
index 694a7aebfe..704f2d894f 100644
|
||||
--- a/tests/unit/utils/test_asynchronous.py
|
||||
+++ b/tests/unit/utils/test_asynchronous.py
|
||||
@@ -3,6 +3,8 @@
|
||||
# Import Python Libs
|
||||
from __future__ import absolute_import, print_function, unicode_literals
|
||||
|
||||
+from unittest import skipIf
|
||||
+
|
||||
# Import 3rd-party libs
|
||||
import tornado.testing
|
||||
import tornado.gen
|
||||
@@ -35,6 +37,7 @@ class HelperB(object):
|
||||
|
||||
|
||||
class TestSyncWrapper(AsyncTestCase):
|
||||
+ @skipIf(True, "fails in sandbox")
|
||||
@tornado.testing.gen_test
|
||||
def test_helpers(self):
|
||||
'''
|
||||
@@ -56,6 +59,7 @@ class TestSyncWrapper(AsyncTestCase):
|
||||
ret = sync.sleep()
|
||||
self.assertTrue(ret)
|
||||
|
||||
+ @skipIf(True, "fails in sandbox")
|
||||
def test_double(self):
|
||||
'''
|
||||
Test when the asynchronous wrapper object itself creates a wrap of another thing
|
||||
@@ -67,6 +71,7 @@ class TestSyncWrapper(AsyncTestCase):
|
||||
ret = sync.sleep()
|
||||
self.assertFalse(ret)
|
||||
|
||||
+ @skipIf(True, "fails in sandbox")
|
||||
def test_double_sameloop(self):
|
||||
'''
|
||||
Test asynchronous wrappers initiated from the same IOLoop, to ensure that
|
||||
diff --git a/tests/unit/utils/test_jinja.py b/tests/unit/utils/test_jinja.py
|
||||
index da666ef4c7..e3523049b7 100644
|
||||
--- a/tests/unit/utils/test_jinja.py
|
||||
+++ b/tests/unit/utils/test_jinja.py
|
||||
@@ -1102,6 +1102,7 @@ class TestCustomExtensions(TestCase):
|
||||
dict(opts=self.local_opts, saltenv='test', salt=self.local_salt))
|
||||
self.assertEqual(rendered, '16777216')
|
||||
|
||||
+ @skipIf(True, 'Skipping tests that require internet access')
|
||||
@flaky
|
||||
def test_http_query(self):
|
||||
'''
|
@ -1,136 +0,0 @@
|
||||
diff --git a/salt/modules/dockercompose.py b/salt/modules/dockercompose.py
|
||||
index 61e937536c..0f37e0d43a 100644
|
||||
--- a/salt/modules/dockercompose.py
|
||||
+++ b/salt/modules/dockercompose.py
|
||||
@@ -241,7 +241,7 @@ def __load_docker_compose(path):
|
||||
None, None)
|
||||
try:
|
||||
with salt.utils.files.fopen(file_path, 'r') as fl:
|
||||
- loaded = yaml.load(fl)
|
||||
+ loaded = yaml.safe_load(fl)
|
||||
except EnvironmentError:
|
||||
return None, __standardize_result(False,
|
||||
'Could not read {0}'.format(file_path),
|
||||
@@ -371,7 +371,7 @@ def __load_compose_definitions(path, definition):
|
||||
None, None)
|
||||
else:
|
||||
try:
|
||||
- loaded_definition = yaml.load(definition)
|
||||
+ loaded_definition = yaml.safe_load(definition)
|
||||
except yaml.YAMLError as yerr:
|
||||
msg = 'Could not parse {0} {1}'.format(definition, yerr)
|
||||
return None, None, __standardize_result(False, msg,
|
||||
diff --git a/tests/integration/utils/test_win_runas.py b/tests/integration/utils/test_win_runas.py
|
||||
index 3042a77991..d4057a4d03 100644
|
||||
--- a/tests/integration/utils/test_win_runas.py
|
||||
+++ b/tests/integration/utils/test_win_runas.py
|
||||
@@ -539,7 +539,7 @@ class RunAsTest(ModuleCase):
|
||||
win32serviceutil.StartService('test service')
|
||||
wait_for_service('test service')
|
||||
with salt.utils.files.fopen(RUNAS_OUT, 'r') as fp:
|
||||
- ret = yaml.load(fp)
|
||||
+ ret = yaml.safe_load(fp)
|
||||
assert ret['retcode'] == 1, ret
|
||||
|
||||
@with_system_user('test-runas', on_existing='delete', delete=True,
|
||||
@@ -560,7 +560,7 @@ class RunAsTest(ModuleCase):
|
||||
win32serviceutil.StartService('test service')
|
||||
wait_for_service('test service')
|
||||
with salt.utils.files.fopen(RUNAS_OUT, 'r') as fp:
|
||||
- ret = yaml.load(fp)
|
||||
+ ret = yaml.safe_load(fp)
|
||||
assert ret['retcode'] == 1, ret
|
||||
|
||||
@with_system_user('test-runas-admin', on_existing='delete', delete=True,
|
||||
@@ -581,7 +581,7 @@ class RunAsTest(ModuleCase):
|
||||
win32serviceutil.StartService('test service')
|
||||
wait_for_service('test service')
|
||||
with salt.utils.files.fopen(RUNAS_OUT, 'r') as fp:
|
||||
- ret = yaml.load(fp)
|
||||
+ ret = yaml.safe_load(fp)
|
||||
assert ret['retcode'] == 0, ret
|
||||
|
||||
@with_system_user('test-runas-admin', on_existing='delete', delete=True,
|
||||
@@ -602,7 +602,7 @@ class RunAsTest(ModuleCase):
|
||||
win32serviceutil.StartService('test service')
|
||||
wait_for_service('test service')
|
||||
with salt.utils.files.fopen(RUNAS_OUT, 'r') as fp:
|
||||
- ret = yaml.load(fp)
|
||||
+ ret = yaml.safe_load(fp)
|
||||
assert ret['retcode'] == 0, ret
|
||||
|
||||
def test_runas_service_system_user(self):
|
||||
@@ -621,5 +621,5 @@ class RunAsTest(ModuleCase):
|
||||
win32serviceutil.StartService('test service')
|
||||
wait_for_service('test service')
|
||||
with salt.utils.files.fopen(RUNAS_OUT, 'r') as fp:
|
||||
- ret = yaml.load(fp)
|
||||
+ ret = yaml.safe_load(fp)
|
||||
assert ret['retcode'] == 0, ret
|
||||
diff --git a/tests/unit/utils/test_schema.py b/tests/unit/utils/test_schema.py
|
||||
index a07fcbab6b..79072bb89e 100644
|
||||
--- a/tests/unit/utils/test_schema.py
|
||||
+++ b/tests/unit/utils/test_schema.py
|
||||
@@ -5,6 +5,7 @@
|
||||
|
||||
# Import python libs
|
||||
from __future__ import absolute_import, print_function, unicode_literals
|
||||
+import sys
|
||||
import copy
|
||||
|
||||
# Import Salt Testing Libs
|
||||
@@ -506,10 +507,7 @@ class ConfigTestCase(TestCase):
|
||||
{'personal_access_token': 'foo'},
|
||||
Requirements.serialize()
|
||||
)
|
||||
- if JSONSCHEMA_VERSION >= _LooseVersion('3.0.0'):
|
||||
- self.assertIn('\'ssh_key_file\' is a required property', excinfo.exception.message)
|
||||
- else:
|
||||
- self.assertIn('is not valid under any of the given schemas', excinfo.exception.message)
|
||||
+ self.assertIn('\'ssh_key_file\' is a required property', excinfo.exception.message)
|
||||
|
||||
def test_boolean_config(self):
|
||||
item = schema.BooleanItem(title='Hungry', description='Are you hungry?')
|
||||
@@ -1733,10 +1731,11 @@ class ConfigTestCase(TestCase):
|
||||
|
||||
with self.assertRaises(jsonschema.exceptions.ValidationError) as excinfo:
|
||||
jsonschema.validate({'item': {'sides': '4', 'color': 'blue'}}, TestConf.serialize())
|
||||
- if JSONSCHEMA_VERSION >= _LooseVersion('3.0.0'):
|
||||
- self.assertIn('\'4\' is not of type \'boolean\'', excinfo.exception.message)
|
||||
+
|
||||
+ if sys.hexversion >= 0x03000000:
|
||||
+ self.assertIn("'4' is not of type 'boolean'", excinfo.exception.message)
|
||||
else:
|
||||
- self.assertIn('is not valid under any of the given schemas', excinfo.exception.message)
|
||||
+ self.assertIn("u'4' is not of type u'boolean'", excinfo.exception.message)
|
||||
|
||||
class TestConf(schema.Schema):
|
||||
item = schema.DictItem(
|
||||
@@ -1839,10 +1838,10 @@ class ConfigTestCase(TestCase):
|
||||
|
||||
with self.assertRaises(jsonschema.exceptions.ValidationError) as excinfo:
|
||||
jsonschema.validate({'item': ['maybe']}, TestConf.serialize())
|
||||
- if JSONSCHEMA_VERSION >= _LooseVersion('3.0.0'):
|
||||
- self.assertIn('\'maybe\' is not one of [\'yes\']', excinfo.exception.message)
|
||||
+ if sys.hexversion >= 0x03000000:
|
||||
+ self.assertIn("'maybe' is not one of ['yes']", excinfo.exception.message)
|
||||
else:
|
||||
- self.assertIn('is not valid under any of the given schemas', excinfo.exception.message)
|
||||
+ self.assertIn("u'maybe' is not one of [u'yes']", excinfo.exception.message)
|
||||
|
||||
with self.assertRaises(jsonschema.exceptions.ValidationError) as excinfo:
|
||||
jsonschema.validate({'item': 2}, TestConf.serialize())
|
||||
@@ -1894,10 +1893,10 @@ class ConfigTestCase(TestCase):
|
||||
|
||||
with self.assertRaises(jsonschema.exceptions.ValidationError) as excinfo:
|
||||
jsonschema.validate({'item': ['maybe']}, TestConf.serialize())
|
||||
- if JSONSCHEMA_VERSION >= _LooseVersion('3.0.0'):
|
||||
- self.assertIn('\'maybe\' is not one of [\'yes\']', excinfo.exception.message)
|
||||
+ if sys.hexversion >= 0x03000000:
|
||||
+ self.assertIn("'maybe' is not one of ['yes']", excinfo.exception.message)
|
||||
else:
|
||||
- self.assertIn('is not valid under any of the given schemas', excinfo.exception.message)
|
||||
+ self.assertIn("u'maybe' is not one of [u'yes']", excinfo.exception.message)
|
||||
|
||||
with self.assertRaises(jsonschema.exceptions.ValidationError) as excinfo:
|
||||
jsonschema.validate({'item': 2}, TestConf.serialize())
|
@ -1,28 +0,0 @@
|
||||
diff --git a/tests/unit/utils/test_network.py b/tests/unit/utils/test_network.py
|
||||
index af5cbbab2b..15236c127a 100644
|
||||
--- a/tests/unit/utils/test_network.py
|
||||
+++ b/tests/unit/utils/test_network.py
|
||||
@@ -1,6 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Import Python libs
|
||||
from __future__ import absolute_import, unicode_literals, print_function
|
||||
+import sys
|
||||
import logging
|
||||
import socket
|
||||
import textwrap
|
||||
@@ -249,6 +250,7 @@ class NetworkTestCase(TestCase):
|
||||
log.error('bad host_port value: "%s" failed to trigger ValueError exception', host_port)
|
||||
raise _e_
|
||||
|
||||
+ @skipIf(sys.hexversion < 0x03000000, "https://github.com/testing-cabal/mock/issues/323")
|
||||
def test_dns_check(self):
|
||||
hosts = [
|
||||
{'host': '10.10.0.3',
|
||||
@@ -302,6 +304,7 @@ class NetworkTestCase(TestCase):
|
||||
"Invalid or unresolveable address"):
|
||||
network.dns_check('foo', '1')
|
||||
|
||||
+ @skipIf(sys.hexversion < 0x03000000, "https://github.com/testing-cabal/mock/issues/323")
|
||||
def test_test_addrs(self):
|
||||
# subset of real data from getaddrinfo against saltstack.com
|
||||
addrinfo = [(30, 2, 17, '', ('2600:9000:21eb:a800:8:1031:abc0:93a1', 0, 0, 0)),
|
@ -1,150 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
PYTHON_COMPAT=( python3_6 )
|
||||
DISTUTILS_USE_SETUPTOOLS=bdepend
|
||||
inherit systemd distutils-r1
|
||||
|
||||
DESCRIPTION="Salt is a remote execution and configuration manager"
|
||||
HOMEPAGE="https://www.saltstack.com/resources/community/
|
||||
https://github.com/saltstack"
|
||||
|
||||
if [[ ${PV} == 9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="git://github.com/${PN}stack/${PN}.git"
|
||||
EGIT_BRANCH="develop"
|
||||
SRC_URI=""
|
||||
else
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="cherrypy ldap libcloud libvirt gnupg keyring mako mongodb neutron nova
|
||||
openssl portage profile redis selinux test vim-syntax"
|
||||
|
||||
RDEPEND="
|
||||
sys-apps/pciutils
|
||||
dev-python/jinja[${PYTHON_USEDEP}]
|
||||
dev-python/libnacl[${PYTHON_USEDEP}]
|
||||
>=dev-python/msgpack-0.3[${PYTHON_USEDEP}]
|
||||
<dev-python/msgpack-1.0[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
dev-python/markupsafe[${PYTHON_USEDEP}]
|
||||
dev-python/pycryptodome[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyzmq-2.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-1.0.0[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
>=www-servers/tornado-4.2.1[${PYTHON_USEDEP}]
|
||||
<www-servers/tornado-5.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:0=[-bindist]
|
||||
dev-python/pyopenssl[${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}] )
|
||||
redis? ( dev-python/redis-py[${PYTHON_USEDEP}] )
|
||||
selinux? ( sec-policy/selinux-salt )
|
||||
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 )"
|
||||
BDEPEND="
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
>=dev-python/boto-2.32.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/jsonschema-3.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/libcloud-0.14.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/moto-0.3.6[${PYTHON_USEDEP}]
|
||||
dev-python/pip[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-helpers-namespace[${PYTHON_USEDEP}]
|
||||
>=dev-python/pytest-salt-2018.12.8[${PYTHON_USEDEP}]
|
||||
<dev-python/pytest-salt-2020.0.0[${PYTHON_USEDEP}]
|
||||
dev-python/psutil[${PYTHON_USEDEP}]
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
>=dev-python/SaltTesting-2016.5.11[${PYTHON_USEDEP}]
|
||||
dev-python/virtualenv[${PYTHON_USEDEP}]
|
||||
!x86? ( >=dev-python/boto3-1.2.1[${PYTHON_USEDEP}] )
|
||||
${RDEPEND}
|
||||
)"
|
||||
|
||||
DOCS=( README.rst AUTHORS )
|
||||
|
||||
RESTRICT="!test? ( test ) x86? ( test )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/salt-2017.7.0-dont-realpath-tmpdir.patch"
|
||||
"${FILESDIR}/salt-2019.2.0-tests.patch"
|
||||
"${FILESDIR}/salt-2019.2.0-skip-tests-that-oom-machine.patch"
|
||||
"${FILESDIR}/salt-2019.2.2-newer-deps.patch"
|
||||
"${FILESDIR}/salt-2019.2.2-workaround-broken-mock-on-py2.patch"
|
||||
"${FILESDIR}/salt-2019.2.0-remove-raet-tests.patch"
|
||||
)
|
||||
|
||||
python_prepare() {
|
||||
# remove tests with external dependencies that may not be available
|
||||
rm tests/unit/{test_zypp_plugins.py,utils/test_extend.py} || die
|
||||
rm tests/unit/modules/test_{file,boto_{vpc,secgroup,elb}}.py || die
|
||||
rm tests/unit/states/test_boto_vpc.py || die
|
||||
|
||||
# breaks with permission errors
|
||||
rm tests/unit/utils/test_cache.py || die
|
||||
|
||||
# remove raet due to deps being dropped
|
||||
rm tests/unit/modules/test_raet_publish.py \
|
||||
salt/transport/raet.py \
|
||||
salt/daemons/test/test_raetkey.py || die
|
||||
|
||||
# allow the use of the renamed msgpack
|
||||
sed -i '/^msgpack/d' requirements/base.txt || 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 -du --tmpdir=/tmp salt-XXX)"
|
||||
mkdir "${T}/$(basename "${tempdir}")"
|
||||
mkdir "${BUILD_DIR}"/../{templates,conf/cloud.{providers,profiles,maps}.d} || die
|
||||
|
||||
(
|
||||
cleanup() { rm -f "${tempdir}" || die; }
|
||||
|
||||
trap cleanup EXIT
|
||||
|
||||
addwrite "${tempdir}"
|
||||
ln -s "$(realpath --relative-to=/tmp "${T}/$(basename "${tempdir}")")" "${tempdir}" || die
|
||||
|
||||
USE_SETUPTOOLS=1 SHELL="/bin/bash" \
|
||||
TMPDIR="${tempdir}" \
|
||||
${EPYTHON} tests/runtests.py \
|
||||
--unit-tests --no-report --verbose \
|
||||
|| die "testing failed with ${EPYTHON}"
|
||||
)
|
||||
}
|
@ -1,151 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
PYTHON_COMPAT=( python3_6 )
|
||||
DISTUTILS_USE_SETUPTOOLS=no
|
||||
inherit systemd distutils-r1
|
||||
|
||||
DESCRIPTION="Salt is a remote execution and configuration manager"
|
||||
HOMEPAGE="https://www.saltstack.com/resources/community/
|
||||
https://github.com/saltstack"
|
||||
|
||||
if [[ ${PV} == 9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="git://github.com/${PN}stack/${PN}.git"
|
||||
EGIT_BRANCH="develop"
|
||||
SRC_URI=""
|
||||
else
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="cherrypy ldap libcloud libvirt gnupg keyring mako mongodb neutron nova
|
||||
openssl portage profile redis selinux test vim-syntax"
|
||||
|
||||
RDEPEND="
|
||||
sys-apps/pciutils
|
||||
dev-python/jinja[${PYTHON_USEDEP}]
|
||||
dev-python/libnacl[${PYTHON_USEDEP}]
|
||||
>=dev-python/msgpack-0.3[${PYTHON_USEDEP}]
|
||||
<dev-python/msgpack-1.0[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
dev-python/markupsafe[${PYTHON_USEDEP}]
|
||||
dev-python/pycryptodome[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyzmq-2.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-1.0.0[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
>=www-servers/tornado-4.2.1[${PYTHON_USEDEP}]
|
||||
<www-servers/tornado-5.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:0=[-bindist]
|
||||
dev-python/pyopenssl[${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}] )
|
||||
redis? ( dev-python/redis-py[${PYTHON_USEDEP}] )
|
||||
selinux? ( sec-policy/selinux-salt )
|
||||
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 )"
|
||||
BDEPEND="
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
>=dev-python/boto-2.32.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/jsonschema-3.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/libcloud-0.14.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/moto-0.3.6[${PYTHON_USEDEP}]
|
||||
dev-python/pip[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-helpers-namespace[${PYTHON_USEDEP}]
|
||||
>=dev-python/pytest-salt-2018.12.8[${PYTHON_USEDEP}]
|
||||
<dev-python/pytest-salt-2020.0.0[${PYTHON_USEDEP}]
|
||||
dev-python/psutil[${PYTHON_USEDEP}]
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
>=dev-python/SaltTesting-2016.5.11[${PYTHON_USEDEP}]
|
||||
dev-python/virtualenv[${PYTHON_USEDEP}]
|
||||
!x86? ( >=dev-python/boto3-1.2.1[${PYTHON_USEDEP}] )
|
||||
${RDEPEND}
|
||||
)"
|
||||
|
||||
DOCS=( README.rst AUTHORS )
|
||||
|
||||
RESTRICT="!test? ( test ) x86? ( test )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/salt-2017.7.0-dont-realpath-tmpdir.patch"
|
||||
"${FILESDIR}/salt-2019.2.0-tests.patch"
|
||||
"${FILESDIR}/salt-2019.2.0-skip-tests-that-oom-machine.patch"
|
||||
"${FILESDIR}/salt-2019.2.2-newer-deps.patch"
|
||||
"${FILESDIR}/salt-2019.2.2-workaround-broken-mock-on-py2.patch"
|
||||
"${FILESDIR}/salt-2019.2.0-remove-raet-tests.patch"
|
||||
"${FILESDIR}/salt-2019.2.8-ansible-roster-fix.patch"
|
||||
)
|
||||
|
||||
python_prepare() {
|
||||
# remove tests with external dependencies that may not be available
|
||||
rm tests/unit/{test_zypp_plugins.py,utils/test_extend.py} || die
|
||||
rm tests/unit/modules/test_{file,boto_{vpc,secgroup,elb}}.py || die
|
||||
rm tests/unit/states/test_boto_vpc.py || die
|
||||
|
||||
# breaks with permission errors
|
||||
rm tests/unit/utils/test_cache.py || die
|
||||
|
||||
# remove raet due to deps being dropped
|
||||
rm tests/unit/modules/test_raet_publish.py \
|
||||
salt/transport/raet.py \
|
||||
salt/daemons/test/test_raetkey.py || die
|
||||
|
||||
# allow the use of the renamed msgpack
|
||||
sed -i '/^msgpack/d' requirements/base.txt || 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 -du --tmpdir=/tmp salt-XXX)"
|
||||
mkdir "${T}/$(basename "${tempdir}")"
|
||||
mkdir "${BUILD_DIR}"/../{templates,conf/cloud.{providers,profiles,maps}.d} || die
|
||||
|
||||
(
|
||||
cleanup() { rm -f "${tempdir}" || die; }
|
||||
|
||||
trap cleanup EXIT
|
||||
|
||||
addwrite "${tempdir}"
|
||||
ln -s "$(realpath --relative-to=/tmp "${T}/$(basename "${tempdir}")")" "${tempdir}" || die
|
||||
|
||||
USE_SETUPTOOLS=1 SHELL="/bin/bash" \
|
||||
TMPDIR="${tempdir}" \
|
||||
${EPYTHON} tests/runtests.py \
|
||||
--unit-tests --no-report --verbose \
|
||||
|| die "testing failed with ${EPYTHON}"
|
||||
)
|
||||
}
|
Binary file not shown.
@ -1,2 +1 @@
|
||||
DIST yubikey-manager-3.1.0.tar.gz 115010 BLAKE2B 1b27b9af7f3adac87a1bca58929bffef2ae397b359f70580a07193d2bd2f8cd4d2d867053f6494f1e262668443388d79dfe3775f2c3d0a5528840df8826cdf91 SHA512 518eedb52cfcf725c13114c433f848b97f711e94fa9c71685916fb8cb20e5bfc431f648b0ec710ef9ebed2bc8ddd8722ca1c9865d7a1b29537b719e167ed5f60
|
||||
DIST yubikey-manager-3.1.1.tar.gz 116632 BLAKE2B 252c419280143fa6f44daf3de8ec27bbdc3218e4552e39799e1daca5b46939c4042ae1d43abeab110fe1abaf2e87d94c270442ee6fce05e26927add5b34e9f66 SHA512 8229d5442ddf89fe90abb0153aa005cb0d149a84634b994dc283f7cbac2f72d4b913c238c277c6aa07f431aed8905008aeb11e594e730be71c9ca88150a6ef68
|
||||
|
@ -1,61 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python3_6 )
|
||||
inherit readme.gentoo-r1 distutils-r1
|
||||
|
||||
DESCRIPTION="Python library and command line tool for configuring a YubiKey"
|
||||
HOMEPAGE="https://developers.yubico.com/yubikey-manager/"
|
||||
# Per https://github.com/Yubico/yubikey-manager/issues/217, Yubico is
|
||||
# the official source for tarballs, not Github
|
||||
SRC_URI="https://developers.yubico.com/${PN}/Releases/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/click[${PYTHON_USEDEP}]
|
||||
dev-python/cryptography[${PYTHON_USEDEP}]
|
||||
>=dev-python/fido2-0.7.0[${PYTHON_USEDEP}]
|
||||
<dev-python/fido2-0.8.0[${PYTHON_USEDEP}]
|
||||
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
||||
dev-python/pyscard[${PYTHON_USEDEP}]
|
||||
dev-python/pyusb[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
>=sys-auth/ykpers-1.19.0
|
||||
"
|
||||
DEPEND="
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
${RDEPEND}
|
||||
)
|
||||
"
|
||||
|
||||
python_test() {
|
||||
esetup.py test
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
local DOC_CONTENTS
|
||||
|
||||
distutils-r1_python_install_all
|
||||
|
||||
DOC_CONTENTS="
|
||||
The 'openpgp' command may require the package 'app-crypt/ccid'
|
||||
to be installed on the system. Furthermore, make sure that pcscd
|
||||
daemon is running and has correct access permissions to USB
|
||||
devices.
|
||||
"
|
||||
readme.gentoo_create_doc
|
||||
|
||||
doman "${S}"/man/ykman.1
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
readme.gentoo_print_elog
|
||||
}
|
Binary file not shown.
@ -1,4 +1,2 @@
|
||||
DIST qemu-3.1.0.tar.xz 36070104 BLAKE2B 9ed7d1b3256d84f2b73d61763e20f5e4bc5b47d56e4e0d56cf4c29cd25669457b0f08e90d7255589c9666400bb310df3dba3b9290232cad18057b20f08013a3b SHA512 7e8dae823937cfac2f0c60406bd3bdcb89df40313dab2a4bed327d5198f7fcc68ac8b31e44692caa09299cc71256ee0b8c17e4f49f78ada8043d424f5daf82fe
|
||||
DIST qemu-4.0.0.tar.xz 55628624 BLAKE2B 8afd1f54aa13d2e61fd36c4f4544b7c4ffb1a7eee5c69d3aa1d40a432ca296ad8abe6cb83d7c66ac4045ca624d2a00e737f51e4e62ed46fef9766ef71f43b98b SHA512 952e94194ce9e64c15388c59035cb31fb9f761d30095c2fb9441012b609c18c9976285727b93bf37b95e15675802d73f8e1c4619ebecd23606675bb503646b13
|
||||
DIST qemu-4.2.0.tar.xz 62222068 BLAKE2B 27c9fbcd5093af425764674817ab9299224bd03f37b5983786f6f437fff1fab3b7da247c55c4ca8b8c42726b9867005944a2f7f04f2d0d94d753961615f901ef SHA512 2a79973c2b07c53e8c57a808ea8add7b6b2cbca96488ed5d4b669ead8c9318907dec2b6109f180fc8ca8f04c0f73a56e82b3a527b5626b799d7e849f2474ec56
|
||||
DIST qemu-5.0.0.tar.xz 62426192 BLAKE2B 785d02ef79c95b5c4f0556186054885f9893d4e8a9f4b4f2d6199a4e1ae9c31d7c79dd900305469217f85d61bbe74134b601d5c6c1b0eee2b74792d010f1fd63 SHA512 21ef0cbe107c468a40f0fa2635db2a40048c8790b629dfffca5cd62bb1b502ea8eb133bfc40df5ecf1489e2bffe87f6829aee041cb8a380ff04a8afa23b39fcf
|
||||
|
@ -1,17 +0,0 @@
|
||||
https://bugs.gentoo.org/580924
|
||||
|
||||
Linux C libs are moving away from implicit header pollution with sys/types.h
|
||||
|
||||
--- a/include/qemu/osdep.h
|
||||
+++ b/include/qemu/osdep.h
|
||||
@@ -78,6 +78,10 @@ extern int daemon(int, int);
|
||||
#include <assert.h>
|
||||
#include <signal.h>
|
||||
|
||||
+#ifdef __linux__
|
||||
+#include <sys/sysmacros.h>
|
||||
+#endif
|
||||
+
|
||||
#ifdef __OpenBSD__
|
||||
#include <sys/signal.h>
|
||||
#endif
|
@ -1,82 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
PYTHON_COMPAT=( python3_6 )
|
||||
|
||||
inherit eutils systemd toolchain-funcs udev python-any-r1
|
||||
|
||||
MY_PN="qemu"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
SRC_URI="http://wiki.qemu.org/download/${MY_P}.tar.xz"
|
||||
KEYWORDS="amd64 ~ppc ~ppc64 x86"
|
||||
|
||||
DESCRIPTION="QEMU Guest Agent (qemu-ga) for use when running inside a VM"
|
||||
HOMEPAGE="https://wiki.qemu.org/Features/GuestAgent"
|
||||
|
||||
LICENSE="GPL-2 BSD-2"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-libs/glib"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
${PYTHON_DEPS}"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-2.5.0-sysmacros.patch #580924
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
tc-export AR LD OBJCOPY RANLIB
|
||||
|
||||
local myconf=(
|
||||
--prefix=/usr
|
||||
--sysconfdir=/etc
|
||||
--libdir="/usr/$(get_libdir)"
|
||||
--localstatedir=/
|
||||
--disable-bsd-user
|
||||
--disable-linux-user
|
||||
--disable-system
|
||||
--disable-strip
|
||||
--disable-tools
|
||||
--disable-werror
|
||||
--enable-guest-agent
|
||||
--python="${PYTHON}"
|
||||
--cc="$(tc-getCC)"
|
||||
--cxx="$(tc-getCXX)"
|
||||
--host-cc="$(tc-getBUILD_CC)"
|
||||
)
|
||||
echo "./configure ${myconf[*]}"
|
||||
./configure "${myconf[@]}" || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake V=1 qemu-ga
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin qemu-ga
|
||||
|
||||
# Normal init stuff
|
||||
newinitd "${FILESDIR}/qemu-ga.init-r1" qemu-guest-agent
|
||||
newconfd "${FILESDIR}/qemu-ga.conf-r1" qemu-guest-agent
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/qemu-ga.logrotate" qemu-guest-agent
|
||||
|
||||
# systemd stuff
|
||||
udev_newrules "${FILESDIR}/qemu-ga-systemd.udev" 99-qemu-guest-agent.rules
|
||||
|
||||
systemd_newunit "${FILESDIR}/qemu-ga-systemd.service" \
|
||||
qemu-guest-agent.service
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "You should add 'qemu-guest-agent' to the default runlevel."
|
||||
elog "e.g. rc-update add qemu-guest-agent default"
|
||||
}
|
@ -1,82 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
PYTHON_COMPAT=( python3_6 )
|
||||
|
||||
inherit eutils systemd toolchain-funcs udev python-any-r1
|
||||
|
||||
MY_PN="qemu"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
SRC_URI="http://wiki.qemu.org/download/${MY_P}.tar.xz"
|
||||
KEYWORDS="amd64 ~ppc ~ppc64 x86"
|
||||
|
||||
DESCRIPTION="QEMU Guest Agent (qemu-ga) for use when running inside a VM"
|
||||
HOMEPAGE="https://wiki.qemu.org/Features/GuestAgent"
|
||||
|
||||
LICENSE="GPL-2 BSD-2"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-libs/glib"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
${PYTHON_DEPS}"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-2.5.0-sysmacros.patch #580924
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
tc-export AR LD OBJCOPY RANLIB
|
||||
|
||||
local myconf=(
|
||||
--prefix=/usr
|
||||
--sysconfdir=/etc
|
||||
--libdir="/usr/$(get_libdir)"
|
||||
--localstatedir=/
|
||||
--disable-bsd-user
|
||||
--disable-linux-user
|
||||
--disable-system
|
||||
--disable-strip
|
||||
--disable-tools
|
||||
--disable-werror
|
||||
--enable-guest-agent
|
||||
--python="${PYTHON}"
|
||||
--cc="$(tc-getCC)"
|
||||
--cxx="$(tc-getCXX)"
|
||||
--host-cc="$(tc-getBUILD_CC)"
|
||||
)
|
||||
echo "./configure ${myconf[*]}"
|
||||
./configure "${myconf[@]}" || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake V=1 qemu-ga
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin qemu-ga
|
||||
|
||||
# Normal init stuff
|
||||
newinitd "${FILESDIR}/qemu-ga.init-r1" qemu-guest-agent
|
||||
newconfd "${FILESDIR}/qemu-ga.conf-r1" qemu-guest-agent
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/qemu-ga.logrotate" qemu-guest-agent
|
||||
|
||||
# systemd stuff
|
||||
udev_newrules "${FILESDIR}/qemu-ga-systemd.udev" 99-qemu-guest-agent.rules
|
||||
|
||||
systemd_newunit "${FILESDIR}/qemu-ga-systemd.service" \
|
||||
qemu-guest-agent.service
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "You should add 'qemu-guest-agent' to the default runlevel."
|
||||
elog "e.g. rc-update add qemu-guest-agent default"
|
||||
}
|
@ -1,3 +1 @@
|
||||
DIST sen-0.6.0.tar.gz 55113 BLAKE2B 5f6affbea94005c0adc9ac544d40d94cd9a9eca930b979c19174d21d73fdd887d21802a5241c02ba212a45c4a7873f22c7372aeb69955e1f97e444ef74d91929 SHA512 5573a0d6da5ae395e947bf34c54313e4e3a0251dc1868c52bbfe9ad11463397da83a0c9ac3f1912da2e6f49341c84d40dcab900d41b4a32ebac44d1dde3ac82b
|
||||
DIST sen-0.6.1.tar.gz 55357 BLAKE2B 0d58f0ea11eeff29161925018425c918b3260c754d1b658e2ebd3c88e0c371feb0f1815af61979206bee529c369a90ace895d25e645ef0d76c563abd8b74c943 SHA512 2f1cadf745ca7e12d3e92534e76984072b9678055b9911f76b1a6d3cbd43266ad1eeb4d5e7bb8742db91c4da4aef684fa644c33de6fa2494c37688e9747e0efa
|
||||
DIST sen-0.6.1_p20200905.tar.gz 1913978 BLAKE2B 189bff583770265de29ca3e54cad1283051c05eccab4fc98160801e50b31376188c52e49b43972292fe231b376ba42879fb34d7b1ae70c2246d676a6e25f670b SHA512 cd1899c1b4c5c7cf7f1f2f5e557bd609a7d7619dbc3fc6457f5ef5ce5c9ab43d92a6fbfa228c43d543d4f46c7928d74dbed9ab8346cabc772c8e7c63a7c07bfe
|
||||
|
@ -1,38 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python3_6 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Terminal User Interface for docker engine"
|
||||
HOMEPAGE="https://github.com/TomasTomecek/sen"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="dev-python/urwid[${PYTHON_USEDEP}]
|
||||
dev-python/urwidtrees[${PYTHON_USEDEP}]
|
||||
dev-python/docker-py[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
test? (
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
dev-python/flexmock[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
dodoc -r docs
|
||||
}
|
||||
|
||||
python_test() {
|
||||
pytest -vv tests || die "pytest failed"
|
||||
}
|
@ -1,38 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_6 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Terminal User Interface for docker engine"
|
||||
HOMEPAGE="https://github.com/TomasTomecek/sen"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="dev-python/urwid[${PYTHON_USEDEP}]
|
||||
dev-python/urwidtrees[${PYTHON_USEDEP}]
|
||||
dev-python/docker-py[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
test? (
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
dev-python/flexmock[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
dodoc -r docs
|
||||
}
|
||||
|
||||
python_test() {
|
||||
pytest -vv tests || die "pytest failed"
|
||||
}
|
Binary file not shown.
@ -1,3 +1 @@
|
||||
DIST anki-2.1.0_beta27.tgz 4127906 BLAKE2B b4f83cc30dc3e89f3ca17c03ba8dcfc9a487de43d8ac564d5dc83488e286c302816c8a8140aa764b596404194c5f3727218deec303ef201ccaef38b945d8b32d SHA512 50b4ece1361ecafdfe08dad04e9b622b1e8ba2224bfef7e4660c95f81cb8f525d892170548d741ff53bc19ff4c13863f488a71c31c8328511fea3203d2c345f1
|
||||
DIST anki-2.1.13.tgz 4248906 BLAKE2B 82a2a9a556cbf3596af22a73a2865815561cdd408b249443fc7e144734fdc2b62317120db71475afd7b0d4027f19e53c47437132028ef78b158ec3624f54a33f SHA512 921ef48b16c0c8c83b85523aa0a5b828210b210cd51fa471f57e9aa6777a1aced30c7e24084ef0c2f14c9d846a19091923d13faaff7ed9075860fc23f8ba1cd3
|
||||
DIST anki-2.1.15.tgz 4269571 BLAKE2B 00b351f5ffacb363642e02bf806bcd7c0d9446c9815a75328e7fa37c848b271b135510de17cc012e8cc96d8a52a183a49de84b6f85f562a370255bd36c6f866e SHA512 f3acfa6ff62d43fa461efddd81a8570304ada53b97bd494fdbbe0a0439700d7a52aa62ead31cbaed731be0df96a6cc845a7cf92dcf65f3080dc63282fe5941c3
|
||||
|
@ -1,99 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python3_6 )
|
||||
PYTHON_REQ_USE="sqlite"
|
||||
|
||||
inherit eutils python-single-r1 xdg
|
||||
|
||||
DESCRIPTION="A spaced-repetition memory training program (flash cards)"
|
||||
HOMEPAGE="https://apps.ankiweb.net"
|
||||
|
||||
MY_P="${P/_/}"
|
||||
SRC_URI="https://apps.ankiweb.net/downloads/beta/${MY_P}-source.tgz -> ${P}.tgz"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="latex +recording +sound test"
|
||||
RESTRICT="!test? ( test )"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
$(python_gen_cond_dep '
|
||||
|| (
|
||||
(
|
||||
>=dev-python/PyQt5-5.12[gui,svg,widgets,${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/PyQtWebEngine[${PYTHON_MULTI_USEDEP}]
|
||||
)
|
||||
<dev-python/PyQt5-5.12[gui,svg,webengine,widgets,${PYTHON_MULTI_USEDEP}]
|
||||
)
|
||||
>=dev-python/httplib2-0.7.4[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/beautifulsoup:4[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/decorator[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/markdown[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/requests[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/send2trash[${PYTHON_MULTI_USEDEP}]
|
||||
recording? (
|
||||
media-sound/lame
|
||||
>=dev-python/pyaudio-0.2.4[${PYTHON_MULTI_USEDEP}]
|
||||
)
|
||||
')
|
||||
sound? ( media-video/mplayer )
|
||||
latex? (
|
||||
app-text/texlive
|
||||
app-text/dvipng
|
||||
)
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
test? (
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/nose[${PYTHON_MULTI_USEDEP}]
|
||||
')
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${PN}-2.1.0_beta25-web-folder.patch )
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -i -e "s/updates=True/updates=False/" \
|
||||
aqt/profiles.py || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
:;
|
||||
}
|
||||
|
||||
src_test() {
|
||||
sed -e "s:nosetests:${EPYTHON} ${EROOT}usr/bin/nosetests:" \
|
||||
-i tools/tests.sh || die
|
||||
./tools/tests.sh || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cp tools/runanki.system tools/anki
|
||||
doicon ${PN}.png
|
||||
domenu ${PN}.desktop
|
||||
doman ${PN}.1
|
||||
|
||||
dodoc README.md README.development
|
||||
python_domodule aqt anki
|
||||
python_doscript tools/anki
|
||||
|
||||
# Localization files go into the anki directory:
|
||||
python_moduleinto anki
|
||||
python_domodule locale
|
||||
|
||||
# not sure if this is correct, but
|
||||
# site-packages/aqt/mediasrv.py wants the directory
|
||||
insinto /usr/share/anki
|
||||
doins -r web
|
||||
}
|
@ -1,98 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python3_6 )
|
||||
PYTHON_REQ_USE="sqlite"
|
||||
|
||||
inherit eutils python-single-r1 xdg
|
||||
|
||||
DESCRIPTION="A spaced-repetition memory training program (flash cards)"
|
||||
HOMEPAGE="https://apps.ankiweb.net"
|
||||
SRC_URI="https://apps.ankiweb.net/downloads/current/${P}-source.tgz -> ${P}.tgz"
|
||||
|
||||
S="${WORKDIR}/${P}"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="latex +recording +sound test"
|
||||
RESTRICT="!test? ( test )"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
$(python_gen_cond_dep '
|
||||
|| (
|
||||
(
|
||||
>=dev-python/PyQt5-5.12[gui,svg,widgets,${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/PyQtWebEngine[${PYTHON_MULTI_USEDEP}]
|
||||
)
|
||||
<dev-python/PyQt5-5.12[gui,svg,webengine,widgets,${PYTHON_MULTI_USEDEP}]
|
||||
)
|
||||
>=dev-python/httplib2-0.7.4[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/beautifulsoup:4[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/decorator[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/markdown[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/requests[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/send2trash[${PYTHON_MULTI_USEDEP}]
|
||||
')
|
||||
recording? ( media-sound/lame )
|
||||
sound? ( media-video/mpv )
|
||||
latex? (
|
||||
app-text/texlive
|
||||
app-text/dvipng
|
||||
)
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
test? (
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/nose[${PYTHON_MULTI_USEDEP}]
|
||||
')
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${PN}-2.1.0_beta25-web-folder.patch )
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -i -e "s/updates=True/updates=False/" \
|
||||
aqt/profiles.py || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
:;
|
||||
}
|
||||
|
||||
src_test() {
|
||||
sed -e "s:nose=nosetests$:nose=\"${EPYTHON} ${EROOT}usr/bin/nosetests\":" \
|
||||
-i tools/tests.sh || die
|
||||
sed -e "s:nose=nosetests3$:nose=\"${EPYTHON} ${EROOT}usr/bin/nosetests3\":" \
|
||||
-i tools/tests.sh || die
|
||||
sed -e "s:which nosetests3:which ${EROOT}usr/bin/nosetests3:" \
|
||||
-i tools/tests.sh || die
|
||||
./tools/tests.sh || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
doicon ${PN}.png
|
||||
domenu ${PN}.desktop
|
||||
doman ${PN}.1
|
||||
|
||||
dodoc README.md README.development
|
||||
python_domodule aqt anki
|
||||
python_newscript runanki anki
|
||||
|
||||
# Localization files go into the anki directory:
|
||||
python_moduleinto anki
|
||||
python_domodule locale
|
||||
|
||||
# not sure if this is correct, but
|
||||
# site-packages/aqt/mediasrv.py wants the directory
|
||||
insinto /usr/share/anki
|
||||
doins -r web
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST byobu_5.130.orig.tar.gz 761162 BLAKE2B 8ad45f3f8cba9435638aced30022e67e927288ac7f7bcea7d464d248a3fa0edddf4716bf782d790b8ea75d249e86f19acb76aa706c875f525f1b3b1ae9c47321 SHA512 dae3d0de3f1a65e5f3a647c1135ecf89261bf2518fea44bb49e00109ba5e1e5a8939206bb85d97f45fa01482438b3bfcb6f9ddd03dbaa1a8caca807f95b279cf
|
||||
DIST byobu_5.133.orig.tar.gz 761655 BLAKE2B 796cfe22ba60a8cfe41ca6570e4c7f265dd249e7767086341903da7862037f39b1f49434b6dae36d12d82df1ee34306b815ff3f8e703eeedab79cf02e8d86a7d SHA512 4c0ef7a3b483e48c57f3e97dae1c7c77084797016efb677b201f2b56c6b9f4b771739d9a6d9a4fb612203a22e9fa460db80fde30c837b102ad830b1b2919db6c
|
||||
|
@ -0,0 +1,48 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7,8,9} )
|
||||
|
||||
inherit python-single-r1
|
||||
|
||||
DESCRIPTION="A set of profiles for the GNU Screen console window manager (app-misc/screen)"
|
||||
HOMEPAGE="https://byobu.org"
|
||||
SRC_URI="https://launchpad.net/${PN}/trunk/${PV}/+download/${P/-/_}.orig.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
IUSE="screen"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
$(python_gen_cond_dep 'dev-libs/newt[${PYTHON_MULTI_USEDEP}]')
|
||||
screen? ( app-misc/screen )
|
||||
!screen? ( app-misc/tmux )"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
python_fix_shebang .
|
||||
|
||||
# Set default system backend to screen
|
||||
if use screen ; then
|
||||
sed -i -e 's/#\(BYOBU_BACKEND\).*/\1="screen"/' etc/byobu/backend || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
# It's easier than forcing autoconf
|
||||
mv "${ED}/usr/share/doc/${PN}/"* "${ED}/usr/share/doc/${PF}/" || die
|
||||
rmdir "${ED}/usr/share/doc/${PN}" || die
|
||||
|
||||
# Create symlinks for backends
|
||||
dosym ${PN} /usr/bin/${PN}-screen
|
||||
dosym ${PN} /usr/bin/${PN}-tmux
|
||||
|
||||
docompress -x /usr/share/doc/${PN}
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
Description: Fix ftbfs with GCC-10
|
||||
|
||||
Author: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
|
||||
Bug-Debian: https://bugs.debian.org/957200
|
||||
Forwarded: no
|
||||
|
||||
---
|
||||
|
||||
--- fdutils-5.5-20060227.orig/src/superformat.h
|
||||
+++ fdutils-5.5-20060227/src/superformat.h
|
||||
@@ -97,7 +97,7 @@ int compute_all_sequences(struct params
|
||||
void compute_track0_sequence(struct params *fd);
|
||||
int calc_skews(struct params *fd0, struct params *fd, int n);
|
||||
extern int verbosity;
|
||||
-int header_size;
|
||||
-int index_size;
|
||||
+extern int header_size;
|
||||
+extern int index_size;
|
||||
|
||||
#endif
|
@ -1,61 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python3_6 )
|
||||
|
||||
inherit eutils python-r1
|
||||
|
||||
DESCRIPTION="Generic Colouriser beautifies your logfiles or output of commands"
|
||||
HOMEPAGE="http://kassiopeia.juls.savba.sk/~garabik/software/grc.html"
|
||||
SRC_URI="https://github.com/garabik/grc/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE=""
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
sed \
|
||||
-e 's:#! :#!:g' \
|
||||
-e 's:3$::g' \
|
||||
-i grc grcat || die
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
python_foreach_impl python_doscript grc grcat
|
||||
|
||||
insinto /usr/share/grc
|
||||
doins \
|
||||
contrib/mrsmith/conf.* \
|
||||
colourfiles/conf.* \
|
||||
grc.bashrc \
|
||||
grc.fish \
|
||||
grc.zsh
|
||||
|
||||
insinto /etc
|
||||
doins grc.conf
|
||||
|
||||
dodoc README.markdown INSTALL TODO debian/changelog CREDITS Regexp.txt
|
||||
doman *.1
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog
|
||||
elog "Shell specific configurations can be found in ${ROOT}usr/share/grc"
|
||||
elog "Be sure to symlink one to use grc globally:"
|
||||
elog
|
||||
elog " ln -s ${ROOT}usr/share/grc.SHELL ${ROOT}etc/profile.d/grc.sh"
|
||||
elog
|
||||
elog "Replace 'SHELL' in the above command with one of: bashrc, fish, zsh."
|
||||
elog "Afterwards, use '. ${ROOT}etc/profile' to activate grc in existing"
|
||||
elog "shell sessions."
|
||||
elog
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST icdiff-1.9.1.tar.gz 24387 BLAKE2B 482b128f03ac8af7e98db9b32ba7d9cf8bcd1a395eb50653a98ac186da26fea7933ee13f01840bb6c105e0f573a519a3e20ad83fbd8e513bfdd6c8c6d14b90c5 SHA512 f73108f6f3a4a2fc40e041bbe7b5934acd76684bb54a3fa544e9f146fd3c528528928378496f53ad92d649547ccc491a77296b6fa57e4534abb13d61c0df8d58
|
||||
DIST icdiff-1.9.5.tar.gz 31914 BLAKE2B 8d9b9b5104c3075addae2954b41c27ccebe3b4723b0e71ef88a214d7fa0ff7d8cb9ac52cada8ddec929d308a356daf37ef4463a52667f7e229a4a33d1d993e86 SHA512 f4c50da1e73a1af2fd63feabfd180125637a856a8757356eb3b48bbc21871f36a2c876acd2e2ba9d354c8f6e658f6e262fbbfd65fa4078d0adebc1353d87e40a
|
||||
|
@ -1,23 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python3_6 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Colourized diff that supports side-by-side diffing"
|
||||
HOMEPAGE="https://www.jefftk.com/icdiff"
|
||||
SRC_URI="https://github.com/jeffkaufman/${PN}/archive/release-${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="PSF-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DOCS=(README.md ChangeLog)
|
||||
|
||||
S="${WORKDIR}/${PN}-release-${PV}"
|
||||
|
||||
python_test() {
|
||||
./test.sh "${EPYTHON%.*}" || die "Tests failed"
|
||||
}
|
Binary file not shown.
@ -1,42 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python3_6 )
|
||||
|
||||
inherit eutils python-single-r1
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
DESCRIPTION="Convert between document formats supported by Libreoffice"
|
||||
HOMEPAGE="http://dag.wiee.rs/home-made/unoconv/"
|
||||
SRC_URI="https://github.com/dagwieers/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
|
||||
KEYWORDS="amd64 x86"
|
||||
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="${DEPEND}
|
||||
${PYTHON_DEPS}
|
||||
!app-text/odt2txt
|
||||
virtual/ooo
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/timeout.patch"
|
||||
eapply_user
|
||||
python_fix_shebang .
|
||||
}
|
||||
|
||||
src_compile() { :; }
|
||||
|
||||
src_install() {
|
||||
emake -j1 doc-install install install-links DESTDIR="${D}"
|
||||
|
||||
dodoc ChangeLog CHANGELOG.md README.adoc
|
||||
}
|
@ -1,36 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7,8} )
|
||||
inherit python-single-r1
|
||||
|
||||
DESCRIPTION="Convert between document formats supported by LibreOffice"
|
||||
HOMEPAGE="http://dag.wiee.rs/home-made/unoconv/"
|
||||
SRC_URI="https://github.com/dagwieers/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
!app-text/odt2txt
|
||||
virtual/ooo
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}/timeout.patch" )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
python_fix_shebang .
|
||||
}
|
||||
|
||||
src_compile() { :; }
|
||||
|
||||
src_install() {
|
||||
emake -j1 doc-install install install-links DESTDIR="${D}"
|
||||
dodoc AUTHORS ChangeLog CHANGELOG.md README.adoc
|
||||
}
|
Binary file not shown.
@ -1,4 +1,2 @@
|
||||
DIST mirrorselect-2.2.3.tar.gz 15230 BLAKE2B 7234ab8a681713c63b201e1ae362ea9a28d5e76b5640c6128d79c66d9967660474d0597822604defd3f562cd155524835c5ae20cbf21c5526595775b3be39dc4 SHA512 af1d3657b9ff5a6184ebfd89579a1bdbf11f7389ca12d4cd7a41cd136a553732cbbfb7675e25f7d79756b0b9e74b496d28ee5fdc8872173825262fae0052e8e2
|
||||
DIST mirrorselect-2.2.4.tar.gz 16085 BLAKE2B 67d3de3e25a993a4bfc546ae7d188b2a7e61da1cfbc85ac50119c88a81c4966959e31f88101880ba86ef27f0b0674a3d279b11135d2475d0b2fed1ea899021f5 SHA512 8749a916911088d128f9064d5aa78c3bf8b529d583db86eb6f7190959008257e231f7b0bae9a2f2fd6edc45f6d0ffb07364c16a3f190f8c97b88472c2d082037
|
||||
DIST mirrorselect-2.2.6.tar.gz 16727 BLAKE2B 8875bf61e26ac474338d81a602297fa4fdf3fab3dbd478b02129dbe71f2d09445efa9b82792e3e654725c5e87a4ca00d37a3d924f8bd6f2decdf74148d1069c8 SHA512 ff2b88bf568f79182275e2c85cafbeee7cbeb0226225a7c3289f0a1d7a8b5eae9d41c69b099bb7e0cc9b0300b23afea43c3ac1baa13f37c696159bb1b3ac05f8
|
||||
DIST mirrorselect-test 102403 BLAKE2B 8f23cebf111912ea6fcdea5f4a50a84751a4dd0c62956555a5c0b4fbe15d2329424a65b18c3608440bc0fedd4b2d25fc74cfe91e6e434eb90b7090b36e17b65f SHA512 f43d92e9bf7e77c8f04449a786cb659bdfc07257892caca842ab4a63eb9c5351fa48130c2e163857f3233a595cea7b83f5ea9fa879b782e15b73beb62f0e5e27
|
||||
|
@ -1,36 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
PYTHON_COMPAT=( python3_6 )
|
||||
PYTHON_REQ_USE="xml"
|
||||
DISTUTILS_USE_SETUPTOOLS=no
|
||||
|
||||
inherit eutils distutils-r1 prefix
|
||||
|
||||
DESCRIPTION="Tool to help select distfiles mirrors for Gentoo"
|
||||
HOMEPAGE="https://wiki.gentoo.org/wiki/Mirrorselect"
|
||||
SRC_URI="https://dev.gentoo.org/~dolsen/releases/mirrorselect/${P}.tar.gz
|
||||
https://dev.gentoo.org/~dolsen/releases/mirrorselect/mirrorselect-test
|
||||
"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 s390 sparc x86"
|
||||
|
||||
RDEPEND="
|
||||
dev-util/dialog
|
||||
net-analyzer/netselect
|
||||
>=dev-python/ssl-fetch-0.3[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
python_prepare_all() {
|
||||
python_setup
|
||||
eprefixify setup.py mirrorselect/main.py
|
||||
echo Now setting version... VERSION="${PVR}" "${PYTHON}" setup.py set_version
|
||||
VERSION="${PVR}" "${PYTHON}" setup.py set_version || die "setup.py set_version failed"
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
@ -1,36 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7} )
|
||||
PYTHON_REQ_USE="xml"
|
||||
DISTUTILS_USE_SETUPTOOLS=no
|
||||
|
||||
inherit eutils distutils-r1 prefix
|
||||
|
||||
DESCRIPTION="Tool to help select distfiles mirrors for Gentoo"
|
||||
HOMEPAGE="https://wiki.gentoo.org/wiki/Mirrorselect"
|
||||
SRC_URI="https://dev.gentoo.org/~zmedico/dist/${P}.tar.gz
|
||||
https://dev.gentoo.org/~dolsen/releases/mirrorselect/mirrorselect-test
|
||||
"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 s390 sparc x86"
|
||||
|
||||
RDEPEND="
|
||||
dev-util/dialog
|
||||
net-analyzer/netselect
|
||||
>=dev-python/ssl-fetch-0.3[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
python_prepare_all() {
|
||||
python_setup
|
||||
eprefixify setup.py mirrorselect/main.py
|
||||
echo Now setting version... VERSION="${PVR}" "${PYTHON}" setup.py set_version
|
||||
VERSION="${PVR}" "${PYTHON}" setup.py set_version || die "setup.py set_version failed"
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -1,35 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python3_6 )
|
||||
|
||||
inherit vim-plugin python-r1
|
||||
|
||||
# Commit Date: Sun Oct 15 20:51:54 2017 +0200
|
||||
COMMIT="77924398bd594e238766153cec97ace62650f082"
|
||||
|
||||
DESCRIPTION="vim plugin: binding to the autocompletion library jedi"
|
||||
HOMEPAGE="https://github.com/davidhalter/jedi-vim"
|
||||
SRC_URI="https://github.com/davidhalter/jedi-vim/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
REQUIRED_USE=${PYTHON_REQUIRED_USE}
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
dev-python/jedi[${PYTHON_USEDEP}]"
|
||||
DEPEND="app-editors/vim[python]"
|
||||
|
||||
S="${WORKDIR}/jedi-vim-${COMMIT}"
|
||||
|
||||
# Tests are broken.
|
||||
RESTRICT="test"
|
||||
|
||||
# Makefile tries hard to call tests so let's silence this phase.
|
||||
src_compile() { :; }
|
||||
|
||||
src_install() {
|
||||
vim-plugin_src_install
|
||||
}
|
@ -1,64 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python3_6 )
|
||||
|
||||
inherit vim-plugin python-single-r1
|
||||
|
||||
DESCRIPTION="A comprehensive set of tools to view, edit and compile LaTeX documents"
|
||||
HOMEPAGE="http://vim-latex.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="vim"
|
||||
KEYWORDS="~alpha amd64 ~ia64 ppc ppc64 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris"
|
||||
IUSE=""
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
|| (
|
||||
app-editors/vim[python,${PYTHON_SINGLE_USEDEP}]
|
||||
app-editors/gvim[python,${PYTHON_SINGLE_USEDEP}]
|
||||
)
|
||||
virtual/latex-base
|
||||
!app-vim/vimtex"
|
||||
|
||||
VIM_PLUGIN_HELPFILES="latex-suite.txt latex-suite-quickstart.txt latexhelp.txt imaps.txt"
|
||||
|
||||
src_compile() { :; }
|
||||
|
||||
src_install() {
|
||||
# remove unused metadata
|
||||
rm vim-latex.metainfo.xml || die
|
||||
|
||||
# don't mess up vim's doc dir with random files
|
||||
mv doc mydoc || die
|
||||
mkdir doc || die
|
||||
mv mydoc/*.txt doc/ || die
|
||||
rm -rf mydoc || die
|
||||
|
||||
# don't install buggy tags scripts, use ctags instead
|
||||
rm latextags ltags || die
|
||||
|
||||
vim-plugin_src_install
|
||||
|
||||
# use executable permissions (bug #352403)
|
||||
fperms a+x /usr/share/vim/vimfiles/ftplugin/latex-suite/outline.py
|
||||
|
||||
python_fix_shebang "${ED}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
vim-plugin_pkg_postinst
|
||||
|
||||
if [[ -z ${REPLACING_VERSIONS} ]]; then
|
||||
echo
|
||||
elog "To use the vim-latex plugin add:"
|
||||
elog " filetype plugin on"
|
||||
elog ' set grepprg=grep\ -nH\ $*'
|
||||
elog " let g:tex_flavor='latex'"
|
||||
elog "to your ~/.vimrc-file"
|
||||
echo
|
||||
fi
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
--- a/vimoutliner/scripts/outline_freemind/outline_freemind.py 2017-08-24 21:20:25.138762046 +0000
|
||||
+++ b/vimoutliner/scripts/outline_freemind/outline_freemind.py 2017-08-24 21:20:34.484797791 +0000
|
||||
@@ -1,3 +1,4 @@
|
||||
+#!/usr/bin/python
|
||||
'''Read in an otl file and generate an xml mind map viewable in freemind
|
||||
|
||||
Make sure that you check that round trip on your file works.
|
||||
--- a/vimoutliner/scripts/outline_freemind/otl.py 2017-08-24 21:23:08.194385573 +0000
|
||||
+++ b/vimoutliner/scripts/outline_freemind/otl.py 2017-08-24 21:23:14.756410662 +0000
|
||||
@@ -1,3 +1,4 @@
|
||||
+#!/usr/bin/python
|
||||
# Some integer IDs
|
||||
# headings are 1, 2, 3, ....
|
||||
bodynowrap = -1 # ;
|
||||
--- a/vimoutliner/scripts/outline_freemind/freemind_outline.py 2017-08-25 08:07:01.985459421 +0000
|
||||
+++ b/vimoutliner/scripts/outline_freemind/freemind_outline.py 2017-08-25 08:07:11.244502161 +0000
|
||||
@@ -1,3 +1,4 @@
|
||||
+#!/usr/bin/python
|
||||
'''Converts a freemind xml .mm file to an outline file compatable with vim
|
||||
outliner.
|
||||
|
@ -1,51 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python3_6 )
|
||||
|
||||
inherit vim-plugin python-single-r1
|
||||
|
||||
DESCRIPTION="vim plugin: easy and fast outlining"
|
||||
HOMEPAGE="https://github.com/vimoutliner/vimoutliner"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
VIM_PLUGIN_HELPFILES="vimoutliner"
|
||||
VIM_PLUGIN_MESSAGES="filetype"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${P}-fix-shebangs.patch" )
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/autopep8[${PYTHON_MULTI_USEDEP}]
|
||||
')"
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -i -e '/^if exists/,/endif/d' ftdetect/vo_base.vim || die
|
||||
sed -i -e 's/g:vo_modules2load/g:vo_modules_load/' vimoutliner/vimoutlinerrc || die
|
||||
rm -v install.sh || die
|
||||
find "${S}" -type f -exec chmod a+r {} \; || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local pyscript _pyscript
|
||||
for pyscript in $(find "${S}" -type f -name \*.py); do
|
||||
_pyscript=$(basename "${pyscript}")
|
||||
einfo "Processing ${_pyscript}"
|
||||
sed -i -e 's#[ \t]*$##g;' "${pyscript}" || die
|
||||
2to3 --no-diffs -w -n "${pyscript}" 2> /dev/null || die
|
||||
autopep8 -i "${pyscript}" || die
|
||||
python_fix_shebang -q "${pyscript}" || die
|
||||
eend $?
|
||||
done
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python3_6 )
|
||||
|
||||
inherit vim-plugin python-single-r1
|
||||
|
||||
DESCRIPTION="vim plugin: A set of menus/shortcuts to work with Python files"
|
||||
HOMEPAGE="https://www.vim.org/scripts/script.php?script_id=30"
|
||||
LICENSE="vim"
|
||||
KEYWORDS="~alpha amd64 ~ia64 ppc sparc x86"
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
DEPEND="app-arch/unzip"
|
||||
RDEPEND="${PYTHON_DEPS}"
|
Binary file not shown.
Binary file not shown.
@ -1,4 +1 @@
|
||||
DIST hy-0.14.0.tar.gz 403692 BLAKE2B 4d20574151c443e002e365bceecc11b2bdcd7aa294073c58cba4ec8a958534c9f1256848ef57e4d5dd3ec345decaa53db43768a78af542ba8a59ff50489486b1 SHA512 a04da48592058b8ad3e7d2a787149622bfcf61c01a341ccc166c2e25e18ed7616b6567b529cf4f6d80a9cecf44aac175577ebf185c77e941a11a258f8563da9e
|
||||
DIST hy-0.15.0.tar.gz 411900 BLAKE2B 88a7500ecebacd7995aba1efbabead22ce656b1d6e275c5c726ce9b27746729344adfd35f2dfb4247c6d41101317eecfd98e0379e84f88ffea85bfaef2101797 SHA512 d4a08c7df494c5f9ae9a48e51b642cf8c30850209765fb80304132b57fb1133a839c82945662550d1417f4cae4e15f25da388be180143ed7b28fe8d5129844cc
|
||||
DIST hy-0.16.0.tar.gz 434727 BLAKE2B 05c490049355b496901aea70449e9c30a414bcdd7a5d4a430a672d424eeaa20845d58fd6967433058d4ab6b2969d5744bfdf5dd9cfe976888aeeb35d36a98f91 SHA512 ee9555a58a52bd894904fb0c4892a5c3f0a02b5ab45107ce6ed028840251cc8bd0b1c6264f0f1a345a63352c662861cf3b94049fd58f374dd2ca706ee89c2a4c
|
||||
DIST hy-0.17.0.tar.gz 438729 BLAKE2B f699198a3181592dc0a1c12ecb85defce5ee592eb3c949635f37af36f39f452b081b18b46a122d515a7246d448c1710eedd8015a14f18dc074c61f0cfccecf8f SHA512 18601bf47df2120f8833a1ae211c416dc90825f31cd50b259adfe0585089a623d0fea13512b2935b093e14d8595c93bc1610939d5f1d664f6acf7ddf7e341542
|
||||
|
@ -1,40 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
RESTRICT="test" # needs some pointy sticks. Seriously.
|
||||
PYTHON_COMPAT=(python3_6)
|
||||
|
||||
inherit distutils-r1 eutils
|
||||
DESCRIPTION="A LISP dialect running in python"
|
||||
HOMEPAGE="http://hylang.org/"
|
||||
SRC_URI="https://github.com/hylang/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test doc"
|
||||
|
||||
RDEPEND="dev-python/flake8[${PYTHON_USEDEP}]
|
||||
>=dev-python/rply-0.7.5[${PYTHON_USEDEP}]
|
||||
>=dev-python/astor-0.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/clint-0.4[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
|
||||
test? (
|
||||
dev-python/nose[${PYTHON_USEDEP}]
|
||||
dev-python/sphinx[${PYTHON_USEDEP}]
|
||||
)"
|
||||
src_prepare() {
|
||||
use doc && HTML_DOCS=( docs/_build/html/. )
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake docs
|
||||
}
|
||||
|
||||
python_test() {
|
||||
nosetests || die "Tests failed under ${EPYTHON}"
|
||||
}
|
@ -1,45 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
RESTRICT="test" # needs some pointy sticks. Seriously.
|
||||
PYTHON_COMPAT=(python3_6)
|
||||
|
||||
inherit distutils-r1 eutils
|
||||
DESCRIPTION="A LISP dialect running in python"
|
||||
HOMEPAGE="http://hylang.org/"
|
||||
SRC_URI="https://github.com/hylang/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test doc"
|
||||
|
||||
RDEPEND=">=dev-python/astor-0.7.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/clint-0.4[${PYTHON_USEDEP}]
|
||||
dev-python/flake8[${PYTHON_USEDEP}]
|
||||
>=dev-python/funcparserlib-0.3.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/rply-0.7.6[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
|
||||
test? (
|
||||
dev-python/nose[${PYTHON_USEDEP}]
|
||||
dev-python/sphinx[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${PN}-0.15.0-do-not-install-get_version.py.patch )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
use doc && HTML_DOCS=( docs/_build/html/. )
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake docs
|
||||
}
|
||||
|
||||
python_test() {
|
||||
nosetests -vv || die "Tests failed under ${EPYTHON}"
|
||||
}
|
@ -1,45 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
RESTRICT="test" # needs some pointy sticks. Seriously.
|
||||
PYTHON_COMPAT=(python{3_6,3_7})
|
||||
|
||||
inherit distutils-r1 eutils
|
||||
DESCRIPTION="A LISP dialect running in python"
|
||||
HOMEPAGE="http://hylang.org/"
|
||||
SRC_URI="https://github.com/hylang/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test doc"
|
||||
|
||||
RDEPEND=">=dev-python/astor-0.7.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/clint-0.4[${PYTHON_USEDEP}]
|
||||
dev-python/flake8[${PYTHON_USEDEP}]
|
||||
>=dev-python/funcparserlib-0.3.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/rply-0.7.6[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
|
||||
test? (
|
||||
dev-python/nose[${PYTHON_USEDEP}]
|
||||
dev-python/sphinx[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${PN}-0.15.0-do-not-install-get_version.py.patch )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
use doc && HTML_DOCS=( docs/_build/html/. )
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake docs
|
||||
}
|
||||
|
||||
python_test() {
|
||||
nosetests -vv || die "Tests failed under ${EPYTHON}"
|
||||
}
|
@ -1,331 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
WANT_LIBTOOL="none"
|
||||
|
||||
inherit autotools check-reqs flag-o-matic multiprocessing pax-utils \
|
||||
python-utils-r1 toolchain-funcs
|
||||
|
||||
MY_P="Python-${PV/_alpha/a}"
|
||||
PYVER=$(ver_cut 1-2)
|
||||
PATCHSET="python-gentoo-patches-3.10.0a1"
|
||||
|
||||
DESCRIPTION="An interpreted, interactive, object-oriented programming language"
|
||||
HOMEPAGE="https://www.python.org/"
|
||||
SRC_URI="https://www.python.org/ftp/python/${PV%_*}/${MY_P}.tar.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/python/${PATCHSET}.tar.xz"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
LICENSE="PSF-2"
|
||||
SLOT="${PYVER}"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||
IUSE="bluetooth build examples gdbm hardened ipv6 libressl +ncurses +readline sqlite +ssl test tk wininst +xml"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
# Do not add a dependency on dev-lang/python to this ebuild.
|
||||
# If you need to apply a patch which requires python for bootstrapping, please
|
||||
# run the bootstrap code on your dev box and include the results in the
|
||||
# patchset. See bug 447752.
|
||||
|
||||
RDEPEND="app-arch/bzip2:=
|
||||
app-arch/xz-utils:=
|
||||
dev-libs/libffi:=
|
||||
sys-apps/util-linux:=
|
||||
>=sys-libs/zlib-1.1.3:=
|
||||
virtual/libcrypt:=
|
||||
virtual/libintl
|
||||
gdbm? ( sys-libs/gdbm:=[berkdb] )
|
||||
ncurses? ( >=sys-libs/ncurses-5.2:= )
|
||||
readline? ( >=sys-libs/readline-4.1:= )
|
||||
sqlite? ( >=dev-db/sqlite-3.3.8:3= )
|
||||
ssl? (
|
||||
!libressl? ( dev-libs/openssl:= )
|
||||
libressl? ( dev-libs/libressl:= )
|
||||
)
|
||||
tk? (
|
||||
>=dev-lang/tcl-8.0:=
|
||||
>=dev-lang/tk-8.0:=
|
||||
dev-tcltk/blt:=
|
||||
dev-tcltk/tix
|
||||
)
|
||||
xml? ( >=dev-libs/expat-2.1:= )"
|
||||
# bluetooth requires headers from bluez
|
||||
DEPEND="${RDEPEND}
|
||||
bluetooth? ( net-wireless/bluez )
|
||||
test? ( app-arch/xz-utils[extra-filters(+)] )
|
||||
virtual/pkgconfig
|
||||
!sys-devel/gcc[libffi(-)]"
|
||||
RDEPEND+=" !build? ( app-misc/mime-types )"
|
||||
PDEPEND=">=app-eselect/eselect-python-20140125-r1"
|
||||
|
||||
# large file tests involve a 2.5G file being copied (duplicated)
|
||||
CHECKREQS_DISK_BUILD=5500M
|
||||
|
||||
pkg_pretend() {
|
||||
use test && check-reqs_pkg_pretend
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
use test && check-reqs_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Ensure that internal copies of expat, libffi and zlib are not used.
|
||||
rm -fr Modules/expat || die
|
||||
rm -fr Modules/_ctypes/libffi* || die
|
||||
rm -fr Modules/zlib || die
|
||||
|
||||
local PATCHES=(
|
||||
"${WORKDIR}/${PATCHSET}"
|
||||
)
|
||||
|
||||
default
|
||||
|
||||
sed -i -e "s:@@GENTOO_LIBDIR@@:$(get_libdir):g" \
|
||||
setup.py || die "sed failed to replace @@GENTOO_LIBDIR@@"
|
||||
|
||||
# force correct number of jobs
|
||||
# https://bugs.gentoo.org/737660
|
||||
local jobs=$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")
|
||||
sed -i -e "s:-j0:-j${jobs}:" Makefile.pre.in || die
|
||||
sed -i -e "/self\.parallel/s:True:${jobs}:" setup.py || die
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local disable
|
||||
# disable automagic bluetooth headers detection
|
||||
use bluetooth || export ac_cv_header_bluetooth_bluetooth_h=no
|
||||
use gdbm || disable+=" gdbm"
|
||||
use ncurses || disable+=" _curses _curses_panel"
|
||||
use readline || disable+=" readline"
|
||||
use sqlite || disable+=" _sqlite3"
|
||||
use ssl || export PYTHON_DISABLE_SSL="1"
|
||||
use tk || disable+=" _tkinter"
|
||||
use xml || disable+=" _elementtree pyexpat" # _elementtree uses pyexpat.
|
||||
export PYTHON_DISABLE_MODULES="${disable}"
|
||||
|
||||
if ! use xml; then
|
||||
ewarn "You have configured Python without XML support."
|
||||
ewarn "This is NOT a recommended configuration as you"
|
||||
ewarn "may face problems parsing any XML documents."
|
||||
fi
|
||||
|
||||
if [[ -n "${PYTHON_DISABLE_MODULES}" ]]; then
|
||||
einfo "Disabled modules: ${PYTHON_DISABLE_MODULES}"
|
||||
fi
|
||||
|
||||
if [[ "$(gcc-major-version)" -ge 4 ]]; then
|
||||
append-flags -fwrapv
|
||||
fi
|
||||
|
||||
filter-flags -malign-double
|
||||
|
||||
# https://bugs.gentoo.org/show_bug.cgi?id=50309
|
||||
if is-flagq -O3; then
|
||||
is-flagq -fstack-protector-all && replace-flags -O3 -O2
|
||||
use hardened && replace-flags -O3 -O2
|
||||
fi
|
||||
|
||||
# https://bugs.gentoo.org/700012
|
||||
if is-flagq -flto || is-flagq '-flto=*'; then
|
||||
append-cflags $(test-flags-CC -ffat-lto-objects)
|
||||
fi
|
||||
|
||||
# Export CXX so it ends up in /usr/lib/python3.X/config/Makefile.
|
||||
tc-export CXX
|
||||
|
||||
# Set LDFLAGS so we link modules with -lpython3.2 correctly.
|
||||
# Needed on FreeBSD unless Python 3.2 is already installed.
|
||||
# Please query BSD team before removing this!
|
||||
append-ldflags "-L."
|
||||
|
||||
# Fix implicit declarations on cross and prefix builds. Bug #674070.
|
||||
use ncurses && append-cppflags -I"${ESYSROOT}"/usr/include/ncursesw
|
||||
|
||||
local dbmliborder
|
||||
if use gdbm; then
|
||||
dbmliborder+="${dbmliborder:+:}gdbm"
|
||||
fi
|
||||
|
||||
local myeconfargs=(
|
||||
# glibc-2.30 removes it; since we can't cleanly force-rebuild
|
||||
# Python on glibc upgrade, remove it proactively to give
|
||||
# a chance for users rebuilding python before glibc
|
||||
ac_cv_header_stropts_h=no
|
||||
|
||||
--enable-shared
|
||||
$(use_enable ipv6)
|
||||
--infodir='${prefix}/share/info'
|
||||
--mandir='${prefix}/share/man'
|
||||
--with-computed-gotos
|
||||
--with-dbmliborder="${dbmliborder}"
|
||||
--with-libc=
|
||||
--enable-loadable-sqlite-extensions
|
||||
--without-ensurepip
|
||||
--with-system-expat
|
||||
--with-system-ffi
|
||||
)
|
||||
|
||||
OPT="" econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Ensure sed works as expected
|
||||
# https://bugs.gentoo.org/594768
|
||||
local -x LC_ALL=C
|
||||
|
||||
emake CPPFLAGS= CFLAGS= LDFLAGS=
|
||||
|
||||
# Work around bug 329499. See also bug 413751 and 457194.
|
||||
if has_version dev-libs/libffi[pax_kernel]; then
|
||||
pax-mark E python
|
||||
else
|
||||
pax-mark m python
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# Tests will not work when cross compiling.
|
||||
if tc-is-cross-compiler; then
|
||||
elog "Disabling tests due to crosscompiling."
|
||||
return
|
||||
fi
|
||||
|
||||
# Skip failing tests.
|
||||
local skipped_tests="gdb"
|
||||
|
||||
for test in ${skipped_tests}; do
|
||||
mv "${S}"/Lib/test/test_${test}.py "${T}"
|
||||
done
|
||||
|
||||
# bug 660358
|
||||
local -x COLUMNS=80
|
||||
local -x PYTHONDONTWRITEBYTECODE=
|
||||
|
||||
local jobs=$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")
|
||||
|
||||
emake test EXTRATESTOPTS="-u-network -j${jobs}" \
|
||||
CPPFLAGS= CFLAGS= LDFLAGS= < /dev/tty
|
||||
local result=$?
|
||||
|
||||
for test in ${skipped_tests}; do
|
||||
mv "${T}/test_${test}.py" "${S}"/Lib/test
|
||||
done
|
||||
|
||||
elog "The following tests have been skipped:"
|
||||
for test in ${skipped_tests}; do
|
||||
elog "test_${test}.py"
|
||||
done
|
||||
|
||||
elog "If you would like to run them, you may:"
|
||||
elog "cd '${EPREFIX}/usr/lib/python${PYVER}/test'"
|
||||
elog "and run the tests separately."
|
||||
|
||||
if [[ ${result} -ne 0 ]]; then
|
||||
die "emake test failed"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local libdir=${ED}/usr/lib/python${PYVER}
|
||||
|
||||
emake DESTDIR="${D}" altinstall
|
||||
|
||||
# Remove static library
|
||||
rm "${ED}"/usr/$(get_libdir)/libpython*.a || die
|
||||
|
||||
sed \
|
||||
-e "s/\(CONFIGURE_LDFLAGS=\).*/\1/" \
|
||||
-e "s/\(PY_LDFLAGS=\).*/\1/" \
|
||||
-i "${libdir}/config-${PYVER}"*/Makefile || die "sed failed"
|
||||
|
||||
# Fix collisions between different slots of Python.
|
||||
rm "${ED}/usr/$(get_libdir)/libpython3.so" || die
|
||||
|
||||
# Cheap hack to get version with ABIFLAGS
|
||||
local abiver=$(cd "${ED}/usr/include"; echo python*)
|
||||
if [[ ${abiver} != python${PYVER} ]]; then
|
||||
# Replace python3.X with a symlink to python3.Xm
|
||||
rm "${ED}/usr/bin/python${PYVER}" || die
|
||||
dosym "${abiver}" "/usr/bin/python${PYVER}"
|
||||
# Create python3.X-config symlink
|
||||
dosym "${abiver}-config" "/usr/bin/python${PYVER}-config"
|
||||
# Create python-3.5m.pc symlink
|
||||
dosym "python-${PYVER}.pc" "/usr/$(get_libdir)/pkgconfig/${abiver/${PYVER}/-${PYVER}}.pc"
|
||||
fi
|
||||
|
||||
# python seems to get rebuilt in src_install (bug 569908)
|
||||
# Work around it for now.
|
||||
if has_version dev-libs/libffi[pax_kernel]; then
|
||||
pax-mark E "${ED}/usr/bin/${abiver}"
|
||||
else
|
||||
pax-mark m "${ED}/usr/bin/${abiver}"
|
||||
fi
|
||||
|
||||
use sqlite || rm -r "${libdir}/"{sqlite3,test/test_sqlite*} || die
|
||||
use tk || rm -r "${ED}/usr/bin/idle${PYVER}" "${libdir}/"{idlelib,tkinter,test/test_tk*} || die
|
||||
|
||||
dodoc Misc/{ACKS,HISTORY,NEWS}
|
||||
|
||||
if use examples; then
|
||||
docinto examples
|
||||
find Tools -name __pycache__ -exec rm -fr {} + || die
|
||||
dodoc -r Tools
|
||||
fi
|
||||
insinto /usr/share/gdb/auto-load/usr/$(get_libdir) #443510
|
||||
local libname=$(printf 'e:\n\t@echo $(INSTSONAME)\ninclude Makefile\n' | \
|
||||
emake --no-print-directory -s -f - 2>/dev/null)
|
||||
newins "${S}"/Tools/gdb/libpython.py "${libname}"-gdb.py
|
||||
|
||||
newconfd "${FILESDIR}/pydoc.conf" pydoc-${PYVER}
|
||||
newinitd "${FILESDIR}/pydoc.init" pydoc-${PYVER}
|
||||
sed \
|
||||
-e "s:@PYDOC_PORT_VARIABLE@:PYDOC${PYVER/./_}_PORT:" \
|
||||
-e "s:@PYDOC@:pydoc${PYVER}:" \
|
||||
-i "${ED}/etc/conf.d/pydoc-${PYVER}" \
|
||||
"${ED}/etc/init.d/pydoc-${PYVER}" || die "sed failed"
|
||||
|
||||
local -x EPYTHON=python${PYVER}
|
||||
# if not using a cross-compiler, use the fresh binary
|
||||
if ! tc-is-cross-compiler; then
|
||||
local -x PYTHON=./python
|
||||
local -x LD_LIBRARY_PATH=${LD_LIBRARY_PATH+${LD_LIBRARY_PATH}:}${PWD}
|
||||
else
|
||||
local -x PYTHON=${EPREFIX}/usr/bin/${EPYTHON}
|
||||
fi
|
||||
|
||||
echo "EPYTHON='${EPYTHON}'" > epython.py || die
|
||||
python_domodule epython.py
|
||||
|
||||
# python-exec wrapping support
|
||||
local pymajor=${PYVER%.*}
|
||||
local scriptdir=${D}$(python_get_scriptdir)
|
||||
mkdir -p "${scriptdir}" || die
|
||||
# python and pythonX
|
||||
ln -s "../../../bin/${abiver}" \
|
||||
"${scriptdir}/python${pymajor}" || die
|
||||
ln -s "python${pymajor}" "${scriptdir}/python" || die
|
||||
# python-config and pythonX-config
|
||||
# note: we need to create a wrapper rather than symlinking it due
|
||||
# to some random dirname(argv[0]) magic performed by python-config
|
||||
cat > "${scriptdir}/python${pymajor}-config" <<-EOF || die
|
||||
#!/bin/sh
|
||||
exec "${abiver}-config" "\${@}"
|
||||
EOF
|
||||
chmod +x "${scriptdir}/python${pymajor}-config" || die
|
||||
ln -s "python${pymajor}-config" \
|
||||
"${scriptdir}/python-config" || die
|
||||
# 2to3, pydoc
|
||||
ln -s "../../../bin/2to3-${PYVER}" \
|
||||
"${scriptdir}/2to3" || die
|
||||
ln -s "../../../bin/pydoc${PYVER}" \
|
||||
"${scriptdir}/pydoc" || die
|
||||
# idle
|
||||
if use tk; then
|
||||
ln -s "../../../bin/idle${PYVER}" \
|
||||
"${scriptdir}/idle" || die
|
||||
fi
|
||||
}
|
@ -1,355 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
WANT_LIBTOOL="none"
|
||||
|
||||
inherit autotools flag-o-matic multiprocessing pax-utils \
|
||||
python-utils-r1 toolchain-funcs
|
||||
|
||||
MY_P="Python-${PV/_rc/rc}"
|
||||
PYVER=$(ver_cut 1-2)
|
||||
PATCHSET="python-gentoo-patches-3.8.6"
|
||||
|
||||
DESCRIPTION="An interpreted, interactive, object-oriented programming language"
|
||||
HOMEPAGE="https://www.python.org/"
|
||||
SRC_URI="https://www.python.org/ftp/python/${PV%_rc*}/${MY_P}.tar.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/python/${PATCHSET}.tar.xz"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
LICENSE="PSF-2"
|
||||
SLOT="${PYVER}"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||
IUSE="bluetooth build examples gdbm hardened ipv6 libressl +ncurses +readline sqlite +ssl test tk wininst +xml"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
# Do not add a dependency on dev-lang/python to this ebuild.
|
||||
# If you need to apply a patch which requires python for bootstrapping, please
|
||||
# run the bootstrap code on your dev box and include the results in the
|
||||
# patchset. See bug 447752.
|
||||
|
||||
RDEPEND="app-arch/bzip2:=
|
||||
app-arch/xz-utils:=
|
||||
dev-libs/libffi:=
|
||||
sys-apps/util-linux:=
|
||||
>=sys-libs/zlib-1.1.3:=
|
||||
virtual/libcrypt:=
|
||||
virtual/libintl
|
||||
gdbm? ( sys-libs/gdbm:=[berkdb] )
|
||||
ncurses? ( >=sys-libs/ncurses-5.2:= )
|
||||
readline? ( >=sys-libs/readline-4.1:= )
|
||||
sqlite? ( >=dev-db/sqlite-3.3.8:3= )
|
||||
ssl? (
|
||||
!libressl? ( dev-libs/openssl:= )
|
||||
libressl? ( dev-libs/libressl:= )
|
||||
)
|
||||
tk? (
|
||||
>=dev-lang/tcl-8.0:=
|
||||
>=dev-lang/tk-8.0:=
|
||||
dev-tcltk/blt:=
|
||||
dev-tcltk/tix
|
||||
)
|
||||
xml? ( >=dev-libs/expat-2.1:= )"
|
||||
# bluetooth requires headers from bluez
|
||||
DEPEND="${RDEPEND}
|
||||
bluetooth? ( net-wireless/bluez )
|
||||
test? ( app-arch/xz-utils[extra-filters(+)] )
|
||||
virtual/pkgconfig
|
||||
!sys-devel/gcc[libffi(-)]"
|
||||
RDEPEND+=" !build? ( app-misc/mime-types )"
|
||||
PDEPEND=">=app-eselect/eselect-python-20140125-r1"
|
||||
|
||||
src_prepare() {
|
||||
# Ensure that internal copies of expat, libffi and zlib are not used.
|
||||
rm -fr Modules/expat || die
|
||||
rm -fr Modules/_ctypes/libffi* || die
|
||||
rm -fr Modules/zlib || die
|
||||
|
||||
local PATCHES=(
|
||||
"${WORKDIR}/${PATCHSET}"
|
||||
)
|
||||
|
||||
default
|
||||
|
||||
sed -i -e "s:@@GENTOO_LIBDIR@@:$(get_libdir):g" \
|
||||
setup.py || die "sed failed to replace @@GENTOO_LIBDIR@@"
|
||||
|
||||
# force correct number of jobs
|
||||
# https://bugs.gentoo.org/737660
|
||||
local jobs=$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")
|
||||
sed -i -e "s:-j0:-j${jobs}:" Makefile.pre.in || die
|
||||
sed -i -e "/self\.parallel/s:True:${jobs}:" setup.py || die
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local disable
|
||||
# disable automagic bluetooth headers detection
|
||||
use bluetooth || export ac_cv_header_bluetooth_bluetooth_h=no
|
||||
use gdbm || disable+=" gdbm"
|
||||
use ncurses || disable+=" _curses _curses_panel"
|
||||
use readline || disable+=" readline"
|
||||
use sqlite || disable+=" _sqlite3"
|
||||
use ssl || export PYTHON_DISABLE_SSL="1"
|
||||
use tk || disable+=" _tkinter"
|
||||
use xml || disable+=" _elementtree pyexpat" # _elementtree uses pyexpat.
|
||||
export PYTHON_DISABLE_MODULES="${disable}"
|
||||
|
||||
if ! use xml; then
|
||||
ewarn "You have configured Python without XML support."
|
||||
ewarn "This is NOT a recommended configuration as you"
|
||||
ewarn "may face problems parsing any XML documents."
|
||||
fi
|
||||
|
||||
if [[ -n "${PYTHON_DISABLE_MODULES}" ]]; then
|
||||
einfo "Disabled modules: ${PYTHON_DISABLE_MODULES}"
|
||||
fi
|
||||
|
||||
if [[ "$(gcc-major-version)" -ge 4 ]]; then
|
||||
append-flags -fwrapv
|
||||
fi
|
||||
|
||||
filter-flags -malign-double
|
||||
|
||||
# https://bugs.gentoo.org/show_bug.cgi?id=50309
|
||||
if is-flagq -O3; then
|
||||
is-flagq -fstack-protector-all && replace-flags -O3 -O2
|
||||
use hardened && replace-flags -O3 -O2
|
||||
fi
|
||||
|
||||
# https://bugs.gentoo.org/700012
|
||||
if is-flagq -flto || is-flagq '-flto=*'; then
|
||||
append-cflags $(test-flags-CC -ffat-lto-objects)
|
||||
fi
|
||||
|
||||
# Export CXX so it ends up in /usr/lib/python3.X/config/Makefile.
|
||||
tc-export CXX
|
||||
|
||||
# Set LDFLAGS so we link modules with -lpython3.2 correctly.
|
||||
# Needed on FreeBSD unless Python 3.2 is already installed.
|
||||
# Please query BSD team before removing this!
|
||||
append-ldflags "-L."
|
||||
|
||||
# Fix implicit declarations on cross and prefix builds. Bug #674070.
|
||||
use ncurses && append-cppflags -I"${ESYSROOT}"/usr/include/ncursesw
|
||||
|
||||
local dbmliborder
|
||||
if use gdbm; then
|
||||
dbmliborder+="${dbmliborder:+:}gdbm"
|
||||
fi
|
||||
|
||||
local myeconfargs=(
|
||||
# glibc-2.30 removes it; since we can't cleanly force-rebuild
|
||||
# Python on glibc upgrade, remove it proactively to give
|
||||
# a chance for users rebuilding python before glibc
|
||||
ac_cv_header_stropts_h=no
|
||||
|
||||
--enable-shared
|
||||
$(use_enable ipv6)
|
||||
--infodir='${prefix}/share/info'
|
||||
--mandir='${prefix}/share/man'
|
||||
--with-computed-gotos
|
||||
--with-dbmliborder="${dbmliborder}"
|
||||
--with-libc=
|
||||
--enable-loadable-sqlite-extensions
|
||||
--without-ensurepip
|
||||
--with-system-expat
|
||||
--with-system-ffi
|
||||
)
|
||||
|
||||
OPT="" econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Ensure sed works as expected
|
||||
# https://bugs.gentoo.org/594768
|
||||
local -x LC_ALL=C
|
||||
|
||||
emake CPPFLAGS= CFLAGS= LDFLAGS=
|
||||
|
||||
# Work around bug 329499. See also bug 413751 and 457194.
|
||||
if has_version dev-libs/libffi[pax_kernel]; then
|
||||
pax-mark E python
|
||||
else
|
||||
pax-mark m python
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# Tests will not work when cross compiling.
|
||||
if tc-is-cross-compiler; then
|
||||
elog "Disabling tests due to crosscompiling."
|
||||
return
|
||||
fi
|
||||
|
||||
# Skip failing tests.
|
||||
local skipped_tests="gdb"
|
||||
|
||||
for test in ${skipped_tests}; do
|
||||
mv "${S}"/Lib/test/test_${test}.py "${T}"
|
||||
done
|
||||
|
||||
# bug 660358
|
||||
local -x COLUMNS=80
|
||||
local -x PYTHONDONTWRITEBYTECODE=
|
||||
|
||||
local jobs=$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")
|
||||
|
||||
emake test EXTRATESTOPTS="-u-network -j${jobs}" \
|
||||
CPPFLAGS= CFLAGS= LDFLAGS= < /dev/tty
|
||||
local result=$?
|
||||
|
||||
for test in ${skipped_tests}; do
|
||||
mv "${T}/test_${test}.py" "${S}"/Lib/test
|
||||
done
|
||||
|
||||
elog "The following tests have been skipped:"
|
||||
for test in ${skipped_tests}; do
|
||||
elog "test_${test}.py"
|
||||
done
|
||||
|
||||
elog "If you would like to run them, you may:"
|
||||
elog "cd '${EPREFIX}/usr/lib/python${PYVER}/test'"
|
||||
elog "and run the tests separately."
|
||||
|
||||
if [[ ${result} -ne 0 ]]; then
|
||||
die "emake test failed"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local libdir=${ED}/usr/lib/python${PYVER}
|
||||
|
||||
emake DESTDIR="${D}" altinstall
|
||||
|
||||
# Remove static library
|
||||
rm "${ED}"/usr/$(get_libdir)/libpython*.a || die
|
||||
|
||||
sed \
|
||||
-e "s/\(CONFIGURE_LDFLAGS=\).*/\1/" \
|
||||
-e "s/\(PY_LDFLAGS=\).*/\1/" \
|
||||
-i "${libdir}/config-${PYVER}"*/Makefile || die "sed failed"
|
||||
|
||||
# Fix collisions between different slots of Python.
|
||||
rm "${ED}/usr/$(get_libdir)/libpython3.so" || die
|
||||
|
||||
# Cheap hack to get version with ABIFLAGS
|
||||
local abiver=$(cd "${ED}/usr/include"; echo python*)
|
||||
if [[ ${abiver} != python${PYVER} ]]; then
|
||||
# Replace python3.X with a symlink to python3.Xm
|
||||
rm "${ED}/usr/bin/python${PYVER}" || die
|
||||
dosym "${abiver}" "/usr/bin/python${PYVER}"
|
||||
# Create python3.X-config symlink
|
||||
dosym "${abiver}-config" "/usr/bin/python${PYVER}-config"
|
||||
# Create python-3.5m.pc symlink
|
||||
dosym "python-${PYVER}.pc" "/usr/$(get_libdir)/pkgconfig/${abiver/${PYVER}/-${PYVER}}.pc"
|
||||
fi
|
||||
|
||||
# python seems to get rebuilt in src_install (bug 569908)
|
||||
# Work around it for now.
|
||||
if has_version dev-libs/libffi[pax_kernel]; then
|
||||
pax-mark E "${ED}/usr/bin/${abiver}"
|
||||
else
|
||||
pax-mark m "${ED}/usr/bin/${abiver}"
|
||||
fi
|
||||
|
||||
use sqlite || rm -r "${libdir}/"{sqlite3,test/test_sqlite*} || die
|
||||
use tk || rm -r "${ED}/usr/bin/idle${PYVER}" "${libdir}/"{idlelib,tkinter,test/test_tk*} || die
|
||||
|
||||
use wininst || rm "${libdir}/distutils/command/"wininst-*.exe || die
|
||||
|
||||
dodoc Misc/{ACKS,HISTORY,NEWS}
|
||||
|
||||
if use examples; then
|
||||
docinto examples
|
||||
find Tools -name __pycache__ -exec rm -fr {} + || die
|
||||
dodoc -r Tools
|
||||
fi
|
||||
insinto /usr/share/gdb/auto-load/usr/$(get_libdir) #443510
|
||||
local libname=$(printf 'e:\n\t@echo $(INSTSONAME)\ninclude Makefile\n' | \
|
||||
emake --no-print-directory -s -f - 2>/dev/null)
|
||||
newins "${S}"/Tools/gdb/libpython.py "${libname}"-gdb.py
|
||||
|
||||
newconfd "${FILESDIR}/pydoc.conf" pydoc-${PYVER}
|
||||
newinitd "${FILESDIR}/pydoc.init" pydoc-${PYVER}
|
||||
sed \
|
||||
-e "s:@PYDOC_PORT_VARIABLE@:PYDOC${PYVER/./_}_PORT:" \
|
||||
-e "s:@PYDOC@:pydoc${PYVER}:" \
|
||||
-i "${ED}/etc/conf.d/pydoc-${PYVER}" \
|
||||
"${ED}/etc/init.d/pydoc-${PYVER}" || die "sed failed"
|
||||
|
||||
local -x EPYTHON=python${PYVER}
|
||||
# if not using a cross-compiler, use the fresh binary
|
||||
if ! tc-is-cross-compiler; then
|
||||
local -x PYTHON=./python
|
||||
local -x LD_LIBRARY_PATH=${LD_LIBRARY_PATH+${LD_LIBRARY_PATH}:}${PWD}
|
||||
else
|
||||
local -x PYTHON=${EPREFIX}/usr/bin/${EPYTHON}
|
||||
fi
|
||||
|
||||
echo "EPYTHON='${EPYTHON}'" > epython.py || die
|
||||
python_domodule epython.py
|
||||
|
||||
# python-exec wrapping support
|
||||
local pymajor=${PYVER%.*}
|
||||
local scriptdir=${D}$(python_get_scriptdir)
|
||||
mkdir -p "${scriptdir}" || die
|
||||
# python and pythonX
|
||||
ln -s "../../../bin/${abiver}" \
|
||||
"${scriptdir}/python${pymajor}" || die
|
||||
ln -s "python${pymajor}" "${scriptdir}/python" || die
|
||||
# python-config and pythonX-config
|
||||
# note: we need to create a wrapper rather than symlinking it due
|
||||
# to some random dirname(argv[0]) magic performed by python-config
|
||||
cat > "${scriptdir}/python${pymajor}-config" <<-EOF || die
|
||||
#!/bin/sh
|
||||
exec "${abiver}-config" "\${@}"
|
||||
EOF
|
||||
chmod +x "${scriptdir}/python${pymajor}-config" || die
|
||||
ln -s "python${pymajor}-config" \
|
||||
"${scriptdir}/python-config" || die
|
||||
# 2to3, pydoc
|
||||
ln -s "../../../bin/2to3-${PYVER}" \
|
||||
"${scriptdir}/2to3" || die
|
||||
ln -s "../../../bin/pydoc${PYVER}" \
|
||||
"${scriptdir}/pydoc" || die
|
||||
# idle
|
||||
if use tk; then
|
||||
ln -s "../../../bin/idle${PYVER}" \
|
||||
"${scriptdir}/idle" || die
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if has_version "<${CATEGORY}/${PN}-${PYVER}" && ! has_version ">=${CATEGORY}/${PN}-${PYVER}_alpha"; then
|
||||
python_updater_warning="1"
|
||||
fi
|
||||
}
|
||||
|
||||
eselect_python_update() {
|
||||
if [[ -z "$(eselect python show)" || \
|
||||
! -f "${EROOT}/usr/bin/$(eselect python show)" ]]; then
|
||||
eselect python update
|
||||
fi
|
||||
|
||||
if [[ -z "$(eselect python show --python${PV%%.*})" || \
|
||||
! -f "${EROOT}/usr/bin/$(eselect python show --python${PV%%.*})" ]]
|
||||
then
|
||||
eselect python update --python${PV%%.*}
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
eselect_python_update
|
||||
|
||||
if [[ "${python_updater_warning}" == "1" ]]; then
|
||||
ewarn "You have just upgraded from an older version of Python."
|
||||
ewarn
|
||||
ewarn "Please adjust PYTHON_TARGETS (if so desired), and run emerge with the --newuse or --changed-use option to rebuild packages installing python modules."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
eselect_python_update
|
||||
}
|
Binary file not shown.
@ -1,84 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DISTUTILS_OPTIONAL=1
|
||||
CMAKE_MIN_VERSION=3.8.7
|
||||
PYTHON_COMPAT=( python3_6 )
|
||||
|
||||
inherit cmake-utils distutils-r1 llvm
|
||||
|
||||
DESCRIPTION="assembly/assembler framework + bindings"
|
||||
HOMEPAGE="https://www.keystone-engine.org/"
|
||||
|
||||
if [[ ${PV} == 9999* ]]; then
|
||||
EGIT_REPO_URI="https://github.com/keystone-engine/keystone.git"
|
||||
inherit git-r3
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="https://github.com/keystone-engine/keystone/archive/${PV/_rc/-rc}.tar.gz -> ${P/-rc/_rc}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
|
||||
# Keep in sync with llvm/CMakeLists.txt, subset of sys-devel/llvm
|
||||
ALL_LLVM_TARGETS=( AArch64 ARM Hexagon Mips PowerPC Sparc SystemZ X86 )
|
||||
ALL_LLVM_TARGETS=( "${ALL_LLVM_TARGETS[@]/#/llvm_targets_}" )
|
||||
LLVM_TARGET_USEDEPS=${ALL_LLVM_TARGETS[@]/%/?}
|
||||
|
||||
IUSE="python ${ALL_LLVM_TARGETS[*]}"
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
REQUIRED_USE="
|
||||
${PYTHON_REQUIRED_USE}
|
||||
|| ( ${ALL_LLVM_TARGETS[*]} )
|
||||
"
|
||||
|
||||
S=${WORKDIR}/${P/_rc/-rc}
|
||||
|
||||
CMAKE_BUILD_TYPE=RelWithDebInfo
|
||||
|
||||
llvm_check_deps() {
|
||||
has_version "sys-devel/llvm:${LLVM_SLOT}[${LLVM_TARGET_USEDEPS// /,}]"
|
||||
}
|
||||
|
||||
wrap_python() {
|
||||
if use python; then
|
||||
pushd bindings/python >/dev/null || die
|
||||
distutils-r1_${EBUILD_PHASE_FUNC} "$@"
|
||||
popd >/dev/null || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
cmake-utils_src_prepare
|
||||
wrap_python
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DLLVM_LIBDIR_SUFFIX=${libdir#lib}
|
||||
|
||||
-DBUILD_SHARED_LIBS=ON
|
||||
-DLLVM_TARGETS_TO_BUILD="${LLVM_TARGETS// /;}"
|
||||
-DLLVM_HOST_TRIPLE="${CHOST}"
|
||||
)
|
||||
|
||||
cmake-utils_src_configure
|
||||
wrap_python
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake-utils_src_compile
|
||||
wrap_python
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
wrap_python
|
||||
}
|
@ -1,5 +1 @@
|
||||
DIST libcbor-0.5.0.tar.gz 719348 BLAKE2B 57e15e648159e7858d9d57a8b4cb7f3682f8153248610c9a3385cf9cbdea8babaf81d596b25d44bf6d59c75de23e76cce462fa7860b294019f46636726206d5a SHA512 5c2e9610d9fbb0bfc59f89a180f70b58539a1760fd39cad696af372c164a87828a23bb4d3a54d8e9d846be5271204800f0ad63656ef830f06a0ccdd10edfdb2c
|
||||
DIST libcbor-0.6.0.tar.gz 262622 BLAKE2B 2d3bc10bdb69c9205430718a8f2652672a8fa580ba7951c4012bdc8b502a9d6dcb26f398740f5fd35dfe0634f8e3d8ddf7eff5b9ec35c95cdc5383e2dce9f0ab SHA512 6adbb32780d428140388295c5d740bd77b0ae7b21e3f73629ba56a3aa4e4ee5dbb715454061b0f6f67f2b19ea8366e0e5c24f4ffb1ba629afcb7a776a15045f7
|
||||
DIST libcbor-0.6.1.tar.gz 263486 BLAKE2B 9a2415c1dde7ed611075c3b03ea1d8ab63bcb00dfc0cae3d7a3bb225b6fbee2a8f576b1f0f97eb6f0cf14c1a6e9df1c77f69320bac041287b0dec37c073f8b85 SHA512 dc9bb7d18b934fe33faabe30010425cb272d7e135f3bf233554bc934b1701f85c7b662e0d5a6a1921c21cd46acb4393600e9adc05b09d1b2a8e3c92ca9d7e4e8
|
||||
DIST libcbor-0.7.0.tar.gz 266323 BLAKE2B 76f93d3199e703c4167aeed262da7ba78d1df82e081754609391572b89f216efba0c54511d4021049fc6c62ab01b08835f02a58bbf226d973174b37eff087761 SHA512 4e2ed55ef17b8b77f82d780b1ee998d0342b67e6beabc24795117e5e222549640fe7fd261c8e78524d6489d03f7f5aa46b987709790a81f93e4d7409c32fecda
|
||||
DIST libcbor-0.8.0.tar.gz 267044 BLAKE2B e8548e7351984ebdcbeb5f13a7ca35412c3f3f05e2a44a5438d57b90bdcdc51f5265953163106f90ade911a96af665956ebeba7ed1c48cf207acf6d683af5606 SHA512 694d2d3a78d80072f96e0afb73590ca1f3572e41d2117330ef4313ed06271743b048d3ba3259c6ffe9a802d5e441379d0e54787d1d42fed08dc81ac4f06c6dbc
|
||||
|
@ -1,68 +0,0 @@
|
||||
# Copyright 2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_6 )
|
||||
inherit python-any-r1 cmake-utils
|
||||
|
||||
DESCRIPTION="CBOR protocol implementation for C and others"
|
||||
HOMEPAGE="https://github.com/pjk/libcbor"
|
||||
SRC_URI="https://github.com/PJK/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0/0"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
|
||||
IUSE="+custom-alloc doc test"
|
||||
|
||||
BDEPEND="
|
||||
doc? (
|
||||
$(python_gen_any_dep '
|
||||
dev-python/sphinx[${PYTHON_USEDEP}]
|
||||
dev-python/breathe[${PYTHON_USEDEP}]
|
||||
')
|
||||
)
|
||||
test? ( dev-util/cmocka )
|
||||
"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
CMAKE_MAKEFILE_GENERATOR="emake"
|
||||
|
||||
python_check_deps() {
|
||||
has_version "dev-python/sphinx[${PYTHON_USEDEP}]" && \
|
||||
has_version "dev-python/breathe[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
use doc && python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local -a mycmakeargs=(
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
-DCBOR_CUSTOM_ALLOC=$(usex custom-alloc 'ON' 'OFF')
|
||||
-DWITH_TESTS=$(usex test 'ON' 'OFF')
|
||||
)
|
||||
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake-utils_src_compile
|
||||
|
||||
if use doc; then
|
||||
pushd doc >/dev/null || die
|
||||
emake html man
|
||||
popd >/dev/null || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
|
||||
if use doc; then
|
||||
dodoc -r doc/build/html
|
||||
doman doc/build/man/*
|
||||
fi
|
||||
}
|
@ -1,68 +0,0 @@
|
||||
# Copyright 2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_6 )
|
||||
inherit python-any-r1 cmake-utils
|
||||
|
||||
DESCRIPTION="CBOR protocol implementation for C and others"
|
||||
HOMEPAGE="https://github.com/pjk/libcbor"
|
||||
SRC_URI="https://github.com/PJK/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0/1"
|
||||
KEYWORDS="~amd64 ~arm ~ppc64 ~x86"
|
||||
IUSE="+custom-alloc doc test"
|
||||
|
||||
BDEPEND="
|
||||
doc? (
|
||||
$(python_gen_any_dep '
|
||||
dev-python/sphinx[${PYTHON_USEDEP}]
|
||||
dev-python/breathe[${PYTHON_USEDEP}]
|
||||
')
|
||||
)
|
||||
test? ( dev-util/cmocka )
|
||||
"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
CMAKE_MAKEFILE_GENERATOR="emake"
|
||||
|
||||
python_check_deps() {
|
||||
has_version "dev-python/sphinx[${PYTHON_USEDEP}]" && \
|
||||
has_version "dev-python/breathe[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
use doc && python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local -a mycmakeargs=(
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
-DCBOR_CUSTOM_ALLOC=$(usex custom-alloc 'ON' 'OFF')
|
||||
-DWITH_TESTS=$(usex test 'ON' 'OFF')
|
||||
)
|
||||
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake-utils_src_compile
|
||||
|
||||
if use doc; then
|
||||
pushd doc >/dev/null || die
|
||||
emake html man
|
||||
popd >/dev/null || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
|
||||
if use doc; then
|
||||
dodoc -r doc/build/html
|
||||
doman doc/build/man/*
|
||||
fi
|
||||
}
|
@ -1,68 +0,0 @@
|
||||
# Copyright 2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7,8} )
|
||||
inherit python-any-r1 cmake-utils
|
||||
|
||||
DESCRIPTION="CBOR protocol implementation for C and others"
|
||||
HOMEPAGE="https://github.com/pjk/libcbor"
|
||||
SRC_URI="https://github.com/PJK/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0/1"
|
||||
KEYWORDS="~amd64 ~arm ~ppc64 ~x86"
|
||||
IUSE="+custom-alloc doc test"
|
||||
|
||||
BDEPEND="
|
||||
doc? (
|
||||
$(python_gen_any_dep '
|
||||
dev-python/sphinx[${PYTHON_USEDEP}]
|
||||
dev-python/breathe[${PYTHON_USEDEP}]
|
||||
')
|
||||
)
|
||||
test? ( dev-util/cmocka )
|
||||
"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
CMAKE_MAKEFILE_GENERATOR="emake"
|
||||
|
||||
python_check_deps() {
|
||||
has_version "dev-python/sphinx[${PYTHON_USEDEP}]" && \
|
||||
has_version "dev-python/breathe[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
use doc && python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local -a mycmakeargs=(
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
-DCBOR_CUSTOM_ALLOC=$(usex custom-alloc 'ON' 'OFF')
|
||||
-DWITH_TESTS=$(usex test 'ON' 'OFF')
|
||||
)
|
||||
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake-utils_src_compile
|
||||
|
||||
if use doc; then
|
||||
pushd doc >/dev/null || die
|
||||
emake html man
|
||||
popd >/dev/null || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
|
||||
if use doc; then
|
||||
dodoc -r doc/build/html
|
||||
doman doc/build/man/*
|
||||
fi
|
||||
}
|
@ -1,68 +0,0 @@
|
||||
# Copyright 2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7,8} )
|
||||
inherit python-any-r1 cmake-utils
|
||||
|
||||
DESCRIPTION="CBOR protocol implementation for C and others"
|
||||
HOMEPAGE="https://github.com/pjk/libcbor"
|
||||
SRC_URI="https://github.com/PJK/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
|
||||
IUSE="+custom-alloc doc test"
|
||||
|
||||
BDEPEND="
|
||||
doc? (
|
||||
$(python_gen_any_dep '
|
||||
dev-python/sphinx[${PYTHON_USEDEP}]
|
||||
dev-python/breathe[${PYTHON_USEDEP}]
|
||||
')
|
||||
)
|
||||
test? ( dev-util/cmocka )
|
||||
"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
CMAKE_MAKEFILE_GENERATOR="emake"
|
||||
|
||||
python_check_deps() {
|
||||
has_version "dev-python/sphinx[${PYTHON_USEDEP}]" && \
|
||||
has_version "dev-python/breathe[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
use doc && python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local -a mycmakeargs=(
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
-DCBOR_CUSTOM_ALLOC=$(usex custom-alloc 'ON' 'OFF')
|
||||
-DWITH_TESTS=$(usex test 'ON' 'OFF')
|
||||
)
|
||||
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake-utils_src_compile
|
||||
|
||||
if use doc; then
|
||||
pushd doc >/dev/null || die
|
||||
emake html man
|
||||
popd >/dev/null || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
|
||||
if use doc; then
|
||||
dodoc -r doc/build/html
|
||||
doman doc/build/man/*
|
||||
fi
|
||||
}
|
@ -1,58 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7,8,9} )
|
||||
|
||||
inherit meson multilib-minimal python-any-r1
|
||||
|
||||
DESCRIPTION="Handler library for evdev events"
|
||||
HOMEPAGE="https://www.freedesktop.org/wiki/Software/libevdev/ https://gitlab.freedesktop.org/libevdev/libevdev"
|
||||
|
||||
if [[ ${PV} == 9999* ]] ; then
|
||||
EGIT_REPO_URI="https://gitlab.freedesktop.org/libevdev/libevdev.git"
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="https://www.freedesktop.org/software/libevdev/${P}.tar.xz"
|
||||
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 s390 sparc x86"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE="doc test"
|
||||
|
||||
DEPEND="test? ( dev-libs/check[${MULTILIB_USEDEP}] )"
|
||||
BDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
doc? ( app-doc/doxygen )
|
||||
virtual/pkgconfig
|
||||
"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
multilib_src_configure() {
|
||||
local emesonargs=(
|
||||
$(meson_feature doc documentation)
|
||||
$(meson_feature test tests)
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
meson_src_compile
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
meson test -v -C "${BUILD_DIR}" -t 100 || die "tests failed"
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
meson_src_install
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
if use doc; then
|
||||
local HTML_DOCS=( doc/html/. )
|
||||
einstalldocs
|
||||
fi
|
||||
}
|
@ -1,3 +1 @@
|
||||
DIST libinput-1.16.1.tar.xz 595548 BLAKE2B 497089248c2104ff7784b7d46d8e846047e054f01c6ea192f1c41171b39213fa1f19be8c8253c32f988bfc6f025d2519697256ffaf62884182c511bcd5c5d335 SHA512 86b2d563c2cff2b3d3cae3acdd399030cc785cc9859a06357a99565ef51f95122a8427c8c0883121fb0760613460a29c8cd8c7a7e3ac68115c10330b3b75cbe0
|
||||
DIST libinput-1.16.3.tar.xz 594948 BLAKE2B 6fad03dc8ab0280435b89a1049ed019d29e795279273277c9cad4676f484856d2677845ddc1c5102f2430645053a77c1cde48bb32530d4290ade576843a51ded SHA512 cdf87988b24dc0a44b7b6ed3e15e70c7702bf65f1cfe257924967677c7a1f1485011a9e30254ba8962c83885de78f824e7955cedb07322676332d42532ec4a39
|
||||
DIST libinput-1.16.4.tar.xz 596028 BLAKE2B ad2160d83bcbdd65383272e0c4b35e35c7b46a6d0c771d7c0188c92b204d57dae73d0820bb93f662f155c1eab19c0195110f5a18a68de890c808925d5c056814 SHA512 a95a3bcf58a9298946d15f4f2fd93dc5807d3042f8797950a1ffd96d3c979b55a764f035a9f7680d0ea400b033698c322eb61a4387dbc280db6110ffd3e137ee
|
||||
|
@ -1,88 +0,0 @@
|
||||
# Copyright 2014-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
PYTHON_COMPAT=( python3_{6,7,8} )
|
||||
|
||||
inherit meson python-any-r1 udev
|
||||
|
||||
DESCRIPTION="Library to handle input devices in Wayland"
|
||||
HOMEPAGE="https://www.freedesktop.org/wiki/Software/libinput/ https://gitlab.freedesktop.org/libinput/libinput"
|
||||
SRC_URI="https://www.freedesktop.org/software/${PN}/${P}.tar.xz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0/10"
|
||||
[[ "$(ver_cut 3)" -gt 900 ]] || \
|
||||
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~s390 sparc x86"
|
||||
IUSE="doc input_devices_wacom test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
doc? (
|
||||
$(python_gen_any_dep '
|
||||
dev-python/commonmark[${PYTHON_USEDEP}]
|
||||
dev-python/recommonmark[${PYTHON_USEDEP}]
|
||||
dev-python/sphinx[${PYTHON_USEDEP}]
|
||||
>=dev-python/sphinx_rtd_theme-0.2.4[${PYTHON_USEDEP}]
|
||||
')
|
||||
>=app-doc/doxygen-1.8.3
|
||||
>=media-gfx/graphviz-2.38.0
|
||||
)
|
||||
"
|
||||
# test? ( dev-util/valgrind )
|
||||
RDEPEND="
|
||||
input_devices_wacom? ( >=dev-libs/libwacom-0.20 )
|
||||
>=dev-libs/libevdev-1.3
|
||||
>=sys-libs/mtdev-1.1
|
||||
virtual/libudev:=
|
||||
virtual/udev
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( >=dev-libs/check-0.9.10 )"
|
||||
|
||||
python_check_deps() {
|
||||
has_version "dev-python/commonmark[${PYTHON_USEDEP}]" && \
|
||||
has_version "dev-python/recommonmark[${PYTHON_USEDEP}]" && \
|
||||
has_version "dev-python/sphinx[${PYTHON_USEDEP}]" && \
|
||||
has_version ">=dev-python/sphinx_rtd_theme-0.2.4[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
use doc && python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed "s@, '-Werror'@@" -i meson.build || die #744250
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# gui can be built but will not be installed
|
||||
local emesonargs=(
|
||||
-Ddebug-gui=false
|
||||
$(meson_use doc documentation)
|
||||
$(meson_use input_devices_wacom libwacom)
|
||||
$(meson_use test tests)
|
||||
-Dudev-dir="${EPREFIX}$(get_udevdir)"
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson_src_install
|
||||
if use doc ; then
|
||||
docinto html
|
||||
dodoc -r "${BUILD_DIR}"/Documentation/.
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
pkgname="dev-python/python-libevdev"
|
||||
if [[ -z "${REPLACING_VERSIONS}" ]] && ! has_version "${pkgname}" ; then
|
||||
einfo "${pkgname} must be installed to use the"
|
||||
einfo "libinput measure and libinput replay tools."
|
||||
fi
|
||||
|
||||
udevadm hwdb --update --root="${ROOT}"
|
||||
}
|
@ -1,88 +0,0 @@
|
||||
# Copyright 2014-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
PYTHON_COMPAT=( python3_{6,7,8} )
|
||||
|
||||
inherit meson python-any-r1 udev
|
||||
|
||||
DESCRIPTION="Library to handle input devices in Wayland"
|
||||
HOMEPAGE="https://www.freedesktop.org/wiki/Software/libinput/ https://gitlab.freedesktop.org/libinput/libinput"
|
||||
SRC_URI="https://www.freedesktop.org/software/${PN}/${P}.tar.xz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0/10"
|
||||
[[ "$(ver_cut 3)" -gt 900 ]] || \
|
||||
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv ~s390 sparc x86"
|
||||
IUSE="doc input_devices_wacom test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
doc? (
|
||||
$(python_gen_any_dep '
|
||||
dev-python/commonmark[${PYTHON_USEDEP}]
|
||||
dev-python/recommonmark[${PYTHON_USEDEP}]
|
||||
dev-python/sphinx[${PYTHON_USEDEP}]
|
||||
>=dev-python/sphinx_rtd_theme-0.2.4[${PYTHON_USEDEP}]
|
||||
')
|
||||
>=app-doc/doxygen-1.8.3
|
||||
>=media-gfx/graphviz-2.38.0
|
||||
)
|
||||
"
|
||||
# test? ( dev-util/valgrind )
|
||||
RDEPEND="
|
||||
input_devices_wacom? ( >=dev-libs/libwacom-0.20 )
|
||||
>=dev-libs/libevdev-1.3
|
||||
>=sys-libs/mtdev-1.1
|
||||
virtual/libudev:=
|
||||
virtual/udev
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( >=dev-libs/check-0.9.10 )"
|
||||
|
||||
python_check_deps() {
|
||||
has_version "dev-python/commonmark[${PYTHON_USEDEP}]" && \
|
||||
has_version "dev-python/recommonmark[${PYTHON_USEDEP}]" && \
|
||||
has_version "dev-python/sphinx[${PYTHON_USEDEP}]" && \
|
||||
has_version ">=dev-python/sphinx_rtd_theme-0.2.4[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
use doc && python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed "s@, '-Werror'@@" -i meson.build || die #744250
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# gui can be built but will not be installed
|
||||
local emesonargs=(
|
||||
-Ddebug-gui=false
|
||||
$(meson_use doc documentation)
|
||||
$(meson_use input_devices_wacom libwacom)
|
||||
$(meson_use test tests)
|
||||
-Dudev-dir="${EPREFIX}$(get_udevdir)"
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson_src_install
|
||||
if use doc ; then
|
||||
docinto html
|
||||
dodoc -r "${BUILD_DIR}"/Documentation/.
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
pkgname="dev-python/python-libevdev"
|
||||
if [[ -z "${REPLACING_VERSIONS}" ]] && ! has_version "${pkgname}" ; then
|
||||
einfo "${pkgname} must be installed to use the"
|
||||
einfo "libinput measure and libinput replay tools."
|
||||
fi
|
||||
|
||||
udevadm hwdb --update --root="${ROOT}"
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST liblouis-3.10.0.tar.gz 13335626 BLAKE2B a4c7f81f15c202c0e1030119f805e218dd51852af57065c441241f4e182828036372750231726802adbb835a7af05ccbf029316da376f3f89dd62ae9d833f838 SHA512 e05d42ba352b1336b10ecd3d320c2bed33250cd636767ecd77837530577c537de4f4e806ddaf1ed7e8b9ec766c84adf6ab045595235c1020f2bb31ba791f3833
|
||||
DIST liblouis-3.13.0.tar.gz 14683684 BLAKE2B 9596fac30ee8512498826ea11c3fe4d9dfba6706166938852242533f1fadde9ca8e363ea1364ebb4266b366ee49863d84ad757f8634d90e48dd8c562c31e9e8d SHA512 68f0205dc55a106c5707f959c1c0d3c121dfe62f263a664e6bec0780bee65cce2fb5d7033ae1c8312d1d79f7ccaf650af71906e8651b60f11219758e41051b61
|
||||
|
@ -1,71 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_6 )
|
||||
PYTHON_REQ_USE='wide-unicode(+)'
|
||||
DISTUTILS_OPTIONAL=1
|
||||
inherit autotools distutils-r1
|
||||
|
||||
DESCRIPTION="An open-source braille translator and back-translator"
|
||||
HOMEPAGE="https://github.com/liblouis/liblouis"
|
||||
SRC_URI="https://github.com/liblouis/liblouis/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 ~arm ~arm64 ~ia64 ppc ppc64 ~sparc x86"
|
||||
IUSE="python"
|
||||
BDEPEND="sys-apps/help2man"
|
||||
RDEPEND="python? ( ${PYTHON_DEPS} )"
|
||||
DEPEND="${RDEPEND}"
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
if use python; then
|
||||
pushd python > /dev/null
|
||||
distutils-r1_src_prepare
|
||||
popd > /dev/null
|
||||
fi
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--enable-ucs4 \
|
||||
--disable-static
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
|
||||
if use python; then
|
||||
pushd python > /dev/null
|
||||
# setup.py imports liblouis to get the version number,
|
||||
# and this causes the shared library to be dlopened
|
||||
# at build-time. Hack around it with LD_PRELOAD.
|
||||
# Thanks ArchLinux.
|
||||
LD_PRELOAD+=':../liblouis/.libs/liblouis.so'
|
||||
distutils-r1_src_compile
|
||||
popd > /dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
if use python; then
|
||||
pushd python > /dev/null
|
||||
LD_PRELOAD+=':../liblouis/.libs/liblouis.so' \
|
||||
distutils-r1_src_install
|
||||
popd > /dev/null
|
||||
fi
|
||||
|
||||
DOCS=( README AUTHORS NEWS ChangeLog doc/liblouis.txt )
|
||||
HTML_DOCS=( doc/liblouis.html )
|
||||
einstalldocs
|
||||
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
}
|
@ -1,4 +1,2 @@
|
||||
DIST libprelude-4.0.0.tar.gz 2864402 BLAKE2B 2e51eb1af74b63140bc66a358b112a753c1a0fd86d6bb8bb43ccddca4cd396e34566168edca55a626a0b43ba56e676301f3792247c25f64c7a31430af3708311 SHA512 5d88e8f211b09cc3e43dbe299e935d8f11575ae3f1894059793966cd14a8e47177ef8963d45305e1a24f9efc4048520329b31681301a21815909bd38606c2ce7
|
||||
DIST libprelude-4.1.0.tar.gz 2852916 BLAKE2B a18babb24795d17d72eb1c0755f4b0330125c8b289af0b52753f6f69b5e820f0f972019b57eaded3abfc45c69bd75c0d120fe29982887e55d75f2c4c8b6486f7 SHA512 073307ca070794b47643e2ef2db4788fa92374735558b466441f0663f420cab45aecc7a1d99bb487ad23ebe602d5668369ffa6ab29fa3b0504356420ab3a7878
|
||||
DIST libprelude-5.1.1.tar.gz 2898350 BLAKE2B accc8610e8551f1c62156ea87748fa1dba2bd7d8bc0813782b2a91fde1cda5d64b404003846cd17af030486654cf48889dec5cf27c64874ac07c9cd905eb13ec SHA512 eddd6e1cf4fc4b2fa79a5132316576cc7205915fa19bf3a2a68cbc4eaf5abf50e5c594384aa1742d620304916da634e113a7c33e4ebca2bcee96e35c9796ed5f
|
||||
DIST libprelude-5.2.0.tar.gz 2902019 BLAKE2B f4caecdc4d34a075fecef73e043e653943fb4af91f4ae5ec5bfdd2d00acccd2095087ba2e6e98aef786e801ba4396f7a66af2de64b5ab8de50921e078614e1a3 SHA512 e0dc0d7c06a4c250a5a12c5cddd8aa8db33d94f8afd85b1afdb264717d674e0dc0b4dc8a5336860df74ffe408023cc7a5356e3acc3c96876099659e33ce04dd0
|
||||
|
@ -1,89 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python3_6 )
|
||||
USE_RUBY="ruby21 ruby22 ruby23 ruby24 ruby25"
|
||||
DISTUTILS_OPTIONAL=1
|
||||
|
||||
inherit autotools distutils-r1 ruby-single
|
||||
|
||||
DESCRIPTION="Prelude-SIEM Framework Library"
|
||||
HOMEPAGE="https://www.prelude-siem.org"
|
||||
SRC_URI="https://www.prelude-siem.org/pkg/src/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="lua perl python ruby"
|
||||
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
RDEPEND="net-libs/gnutls:=
|
||||
lua? ( dev-lang/lua:0= )
|
||||
perl? ( dev-lang/perl:= virtual/perl-ExtUtils-MakeMaker )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
ruby? ( ${RUBY_DEPS} )"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-lang/swig-3.0.7
|
||||
dev-util/gtk-doc-am
|
||||
sys-devel/flex
|
||||
virtual/pkgconfig
|
||||
virtual/yacc"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-fix-python-bindings.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Avoid null runpaths in Perl bindings.
|
||||
sed -e 's/ LD_RUN_PATH=""//' -i "${S}/bindings/Makefile.am" || die "sed failed"
|
||||
|
||||
eautoreconf
|
||||
|
||||
if use python; then
|
||||
cd bindings/python || die
|
||||
distutils-r1_src_prepare
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=(
|
||||
--enable-easy-bindings
|
||||
--with-swig
|
||||
--without-python2
|
||||
$(use_with lua)
|
||||
$(use_with perl)
|
||||
$(usex perl '--with-perl-installdirs=vendor' '')
|
||||
$(use_with ruby)
|
||||
)
|
||||
|
||||
if use python; then
|
||||
python_setup
|
||||
myconf+=( --with-python3="${EPYTHON}" )
|
||||
else
|
||||
myconf+=( --without-python3 )
|
||||
fi
|
||||
|
||||
econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
if use python; then
|
||||
cd bindings/python || die
|
||||
distutils-r1_src_compile
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
find "${D}" -name '*.la' -delete || die
|
||||
if use python; then
|
||||
cd bindings/python || die
|
||||
distutils-r1_src_install
|
||||
fi
|
||||
}
|
@ -1,89 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python3_6 )
|
||||
USE_RUBY="ruby22 ruby23 ruby24 ruby25"
|
||||
DISTUTILS_OPTIONAL=1
|
||||
|
||||
inherit autotools distutils-r1 ruby-single
|
||||
|
||||
DESCRIPTION="Prelude-SIEM Framework Library"
|
||||
HOMEPAGE="https://www.prelude-siem.org"
|
||||
SRC_URI="https://www.prelude-siem.org/pkg/src/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="lua perl python ruby"
|
||||
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
RDEPEND="net-libs/gnutls:=
|
||||
lua? ( dev-lang/lua:0= )
|
||||
perl? ( dev-lang/perl:= virtual/perl-ExtUtils-MakeMaker )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
ruby? ( ${RUBY_DEPS} )"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-lang/swig-3.0.11
|
||||
dev-util/gtk-doc-am
|
||||
sys-devel/flex
|
||||
virtual/pkgconfig
|
||||
virtual/yacc"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-4.0.0-fix-python-bindings.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Avoid null runpaths in Perl bindings.
|
||||
sed -e 's/ LD_RUN_PATH=""//' -i "${S}/bindings/Makefile.am" || die "sed failed"
|
||||
|
||||
eautoreconf
|
||||
|
||||
if use python; then
|
||||
cd bindings/python || die
|
||||
distutils-r1_src_prepare
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=(
|
||||
--enable-easy-bindings
|
||||
--with-swig
|
||||
--without-python2
|
||||
$(use_with lua)
|
||||
$(use_with perl)
|
||||
$(usex perl '--with-perl-installdirs=vendor' '')
|
||||
$(use_with ruby)
|
||||
)
|
||||
|
||||
if use python; then
|
||||
python_setup
|
||||
myconf+=( --with-python3="${EPYTHON}" )
|
||||
else
|
||||
myconf+=( --without-python3 )
|
||||
fi
|
||||
|
||||
econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
if use python; then
|
||||
cd bindings/python || die
|
||||
distutils-r1_src_compile
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
find "${D}" -name '*.la' -delete || die
|
||||
if use python; then
|
||||
cd bindings/python || die
|
||||
distutils-r1_src_install
|
||||
fi
|
||||
}
|
@ -1,5 +1,3 @@
|
||||
DIST libpreludedb-4.0.0.tar.gz 1325812 BLAKE2B 7a506f7cd7b51898e26201f2cc640b1f34227f9cf7c5c6e2385480f1fc0ad854b6d747293ab502b641cc65f1ee9ae4a8f225e6a1d4489bcaa59901c6342f1279 SHA512 13f5dbcfa6af965f2075d60c645ebb19cbd6b18807b26f4f13a7a05f1cf552996f9846e856728a4e1dc621efda693016e82623d4a3cbf74849b3e7114f19faca
|
||||
DIST libpreludedb-4.1.0.tar.gz 1333638 BLAKE2B 380a6d4ef8836555510f9f9882b6100417f2567520c421355fb7eec8d2cd7e2f3942c4cb90ea21fa1557327026edd5c1e35e338a79e06a21cfb2bd6813a289c2 SHA512 de1fa5106d7f34edb5a23e726c968de84bb8b10257587b6ee36276ed75ddc54f4f9539aecb7836e114eb3bfa90104dd3b5e097be0c3d12347dcbded94f293dc4
|
||||
DIST libpreludedb-5.1.0-update_m4_postgresql.patch 20562 BLAKE2B 5db9a213c47296b308a641942e41c82eb9642dc7817ac1134ac52c8f24e38b68e0dacc5adedc30ba0611e84c97bb51f444b75b2b98884c0f21312da58f40b6d8 SHA512 24881cfe0e471e934fc9b1bd64dd901303f68615e1700ce92d6bc7324b28587aef8cc05be9cc7c2545f86666064607d8113c5273381bf9306ef69f569ab9d1bf
|
||||
DIST libpreludedb-5.1.0.tar.gz 1374511 BLAKE2B 569324a5ae484b1d13ac729f25a2f7f8924a8dced923859cdc393289acf0c0cf098ae6e0f9f572a707c85aa9af4a27bbaa0927e20d610b423e2aae86718d232b SHA512 9e45e0f7a945eef254f8e59c0c7212c6afca897584ea8f2c88e16478fde448abdeeb991828cc2482373d2c735e1229f1a11fe9780e40da1a8aed867fe158f481
|
||||
DIST libpreludedb-5.2.0.tar.gz 1372810 BLAKE2B 5a6bed23eba77591b8e97bb3c6f2b321970c94f88fb86094146a1a3fa64cc0f0c97ca1d1488b2202ab7042207ca2ca4f74029415ef1ca6ea13c84d158a23473f SHA512 357e3ce69927ed405bc757774466631d34cad9b53031be6ce456238dd8aef3781471ecbb36ab4a3131468f4686a635095aaf837d23a0efc9db758322298e7744
|
||||
|
@ -1,86 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python3_6 )
|
||||
USE_RUBY="ruby21 ruby22 ruby23 ruby24"
|
||||
DISTUTILS_OPTIONAL=1
|
||||
|
||||
inherit autotools distutils-r1 ruby-single
|
||||
|
||||
DESCRIPTION="Framework to easy access to the Prelude database"
|
||||
HOMEPAGE="https://www.prelude-siem.org"
|
||||
SRC_URI="https://www.prelude-siem.org/pkg/src/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="mysql postgres python sqlite"
|
||||
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
RDEPEND="~dev-libs/libprelude-${PV}
|
||||
net-libs/gnutls:=
|
||||
mysql? ( dev-db/mysql-connector-c:= )
|
||||
postgres? ( dev-db/postgresql:* )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
sqlite? ( dev-db/sqlite:3 )"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-lang/swig-3.0.7
|
||||
dev-util/gtk-doc-am
|
||||
sys-devel/flex
|
||||
virtual/pkgconfig
|
||||
virtual/yacc"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-fix-python-bindings.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
eautoreconf
|
||||
|
||||
if use python; then
|
||||
cd bindings/python || die
|
||||
distutils-r1_src_prepare
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=(
|
||||
--enable-easy-bindings
|
||||
--with-swig
|
||||
--without-python2
|
||||
$(use_with mysql)
|
||||
$(use_with postgres postgresql)
|
||||
$(use_with sqlite sqlite3)
|
||||
)
|
||||
|
||||
if use python; then
|
||||
python_setup
|
||||
myconf+=( --with-python3="${EPYTHON}" )
|
||||
else
|
||||
myconf+=( --without-python3 )
|
||||
fi
|
||||
|
||||
econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
if use python; then
|
||||
cd bindings/python || die
|
||||
distutils-r1_src_compile
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
find "${D}" -name '*.la' -delete || die
|
||||
if use python; then
|
||||
cd bindings/python || die
|
||||
distutils-r1_src_install
|
||||
fi
|
||||
}
|
@ -1,86 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python3_6 )
|
||||
USE_RUBY="ruby22 ruby23 ruby24 ruby25"
|
||||
DISTUTILS_OPTIONAL=1
|
||||
|
||||
inherit autotools distutils-r1 ruby-single
|
||||
|
||||
DESCRIPTION="Framework to easy access to the Prelude database"
|
||||
HOMEPAGE="https://www.prelude-siem.org"
|
||||
SRC_URI="https://www.prelude-siem.org/pkg/src/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="mysql postgres python sqlite"
|
||||
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
RDEPEND="~dev-libs/libprelude-${PV}
|
||||
net-libs/gnutls:=
|
||||
mysql? ( dev-db/mysql-connector-c:= )
|
||||
postgres? ( dev-db/postgresql:* )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
sqlite? ( dev-db/sqlite:3 )"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-lang/swig-3.0.11
|
||||
dev-util/gtk-doc-am
|
||||
sys-devel/flex
|
||||
virtual/pkgconfig
|
||||
virtual/yacc"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-4.0.0-fix-python-bindings.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
eautoreconf
|
||||
|
||||
if use python; then
|
||||
cd bindings/python || die
|
||||
distutils-r1_src_prepare
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=(
|
||||
--enable-easy-bindings
|
||||
--with-swig
|
||||
--without-python2
|
||||
$(use_with mysql)
|
||||
$(use_with postgres postgresql)
|
||||
$(use_with sqlite sqlite3)
|
||||
)
|
||||
|
||||
if use python; then
|
||||
python_setup
|
||||
myconf+=( --with-python3="${EPYTHON}" )
|
||||
else
|
||||
myconf+=( --without-python3 )
|
||||
fi
|
||||
|
||||
econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
if use python; then
|
||||
cd bindings/python || die
|
||||
distutils-r1_src_compile
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
find "${D}" -name '*.la' -delete || die
|
||||
if use python; then
|
||||
cd bindings/python || die
|
||||
distutils-r1_src_install
|
||||
fi
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue