parent
2859e01a8a
commit
a145be3a30
Binary file not shown.
Binary file not shown.
@ -1,58 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
inherit bash-completion-r1 distutils-r1
|
||||
|
||||
DESCRIPTION="Universal Command Line Environment for AWS"
|
||||
HOMEPAGE="https://pypi.org/project/awscli/"
|
||||
#SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
|
||||
SRC_URI="https://github.com/aws/aws-cli/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/aws-cli-${PV}"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm64 x86"
|
||||
|
||||
# botocore is x.(y+1).z
|
||||
BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 1)).$(ver_cut 3-)"
|
||||
RDEPEND="
|
||||
>=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
|
||||
dev-python/colorama[${PYTHON_USEDEP}]
|
||||
dev-python/docutils[${PYTHON_USEDEP}]
|
||||
dev-python/rsa[${PYTHON_USEDEP}]
|
||||
>=dev-python/s3transfer-0.4.0[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests --install nose
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/awscli-1.19.47-py39.patch
|
||||
)
|
||||
|
||||
python_test() {
|
||||
distutils_install_for_testing
|
||||
# integration tests require AWS credentials and Internet access
|
||||
nosetests -v tests/{functional,unit} ||
|
||||
die "Tests failed for ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
newbashcomp bin/aws_bash_completer aws
|
||||
|
||||
insinto /usr/share/zsh/site-functions
|
||||
newins bin/aws_zsh_completer.sh _aws
|
||||
|
||||
distutils-r1_python_install_all
|
||||
|
||||
rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die
|
||||
}
|
@ -1,58 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
inherit bash-completion-r1 distutils-r1
|
||||
|
||||
DESCRIPTION="Universal Command Line Environment for AWS"
|
||||
HOMEPAGE="https://pypi.org/project/awscli/"
|
||||
#SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
|
||||
SRC_URI="https://github.com/aws/aws-cli/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/aws-cli-${PV}"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
|
||||
# botocore is x.(y+1).z
|
||||
BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 1)).$(ver_cut 3-)"
|
||||
RDEPEND="
|
||||
>=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
|
||||
dev-python/colorama[${PYTHON_USEDEP}]
|
||||
dev-python/docutils[${PYTHON_USEDEP}]
|
||||
dev-python/rsa[${PYTHON_USEDEP}]
|
||||
>=dev-python/s3transfer-0.4.0[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests --install nose
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/awscli-1.19.47-py39.patch
|
||||
)
|
||||
|
||||
python_test() {
|
||||
distutils_install_for_testing
|
||||
# integration tests require AWS credentials and Internet access
|
||||
nosetests -v tests/{functional,unit} ||
|
||||
die "Tests failed for ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
newbashcomp bin/aws_bash_completer aws
|
||||
|
||||
insinto /usr/share/zsh/site-functions
|
||||
newins bin/aws_zsh_completer.sh _aws
|
||||
|
||||
distutils-r1_python_install_all
|
||||
|
||||
rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die
|
||||
}
|
@ -1,52 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
inherit bash-completion-r1 distutils-r1
|
||||
|
||||
DESCRIPTION="Universal Command Line Environment for AWS"
|
||||
HOMEPAGE="https://pypi.org/project/awscli/"
|
||||
#SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
|
||||
SRC_URI="https://github.com/aws/aws-cli/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/aws-cli-${PV}"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
|
||||
# botocore is x.(y+1).z
|
||||
BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 1)).$(ver_cut 3-)"
|
||||
RDEPEND="
|
||||
>=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
|
||||
dev-python/colorama[${PYTHON_USEDEP}]
|
||||
dev-python/docutils[${PYTHON_USEDEP}]
|
||||
dev-python/rsa[${PYTHON_USEDEP}]
|
||||
>=dev-python/s3transfer-0.4.0[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
distutils_enable_tests --install nose
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/awscli-1.19.47-py39.patch
|
||||
)
|
||||
|
||||
python_test() {
|
||||
distutils_install_for_testing
|
||||
# integration tests require AWS credentials and Internet access
|
||||
nosetests -v tests/{functional,unit} ||
|
||||
die "Tests failed for ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
newbashcomp bin/aws_bash_completer aws
|
||||
|
||||
insinto /usr/share/zsh/site-functions
|
||||
newins bin/aws_zsh_completer.sh _aws
|
||||
|
||||
distutils-r1_python_install_all
|
||||
|
||||
rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die
|
||||
}
|
@ -1,60 +0,0 @@
|
||||
From 85361123d2fa12eaedf912c046ffe39aebdd2bad Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
|
||||
Date: Sat, 22 May 2021 19:42:14 +0200
|
||||
Subject: [PATCH] Replace use of deprecated base64.encodestring()
|
||||
|
||||
Replace the uses of deprecated base64.encodestring() in favor
|
||||
of botocore.compat.encodebytes(). This fixes incompatibility with
|
||||
Python 3.9 where the former function has finally been removed.
|
||||
---
|
||||
awscli/customizations/ec2/bundleinstance.py | 4 +++-
|
||||
tests/functional/ec2/test_bundle_instance.py | 4 +++-
|
||||
2 files changed, 6 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/awscli/customizations/ec2/bundleinstance.py b/awscli/customizations/ec2/bundleinstance.py
|
||||
index f704ec301..775e75718 100644
|
||||
--- a/awscli/customizations/ec2/bundleinstance.py
|
||||
+++ b/awscli/customizations/ec2/bundleinstance.py
|
||||
@@ -17,6 +17,8 @@ import hmac
|
||||
import base64
|
||||
import datetime
|
||||
|
||||
+from botocore.compat import encodebytes
|
||||
+
|
||||
from awscli.compat import six
|
||||
|
||||
from awscli.arguments import CustomArgument
|
||||
@@ -135,7 +137,7 @@ def _generate_signature(params):
|
||||
policy = base64.b64encode(six.b(policy)).decode('utf-8')
|
||||
new_hmac = hmac.new(sak.encode('utf-8'), digestmod=sha1)
|
||||
new_hmac.update(six.b(policy))
|
||||
- ps = base64.encodestring(new_hmac.digest()).strip().decode('utf-8')
|
||||
+ ps = encodebytes(new_hmac.digest()).strip().decode('utf-8')
|
||||
params['UploadPolicySignature'] = ps
|
||||
del params['_SAK']
|
||||
|
||||
diff --git a/tests/functional/ec2/test_bundle_instance.py b/tests/functional/ec2/test_bundle_instance.py
|
||||
index 3eee363da..ca36d7cd5 100644
|
||||
--- a/tests/functional/ec2/test_bundle_instance.py
|
||||
+++ b/tests/functional/ec2/test_bundle_instance.py
|
||||
@@ -17,6 +17,8 @@ import datetime
|
||||
import mock
|
||||
from six.moves import cStringIO
|
||||
|
||||
+from botocore.compat import encodebytes
|
||||
+
|
||||
import awscli.customizations.ec2.bundleinstance
|
||||
from awscli.compat import six
|
||||
from awscli.testutils import BaseAWSCommandParamsTest
|
||||
@@ -70,7 +72,7 @@ class TestBundleInstance(BaseAWSCommandParamsTest):
|
||||
|
||||
def test_policy_provided(self):
|
||||
policy = '{"notarealpolicy":true}'
|
||||
- base64policy = base64.encodestring(six.b(policy)).strip().decode('utf-8')
|
||||
+ base64policy = encodebytes(six.b(policy)).strip().decode('utf-8')
|
||||
policy_signature = 'a5SmoLOxoM0MHpOdC25nE7KIafg='
|
||||
args = ' --instance-id i-12345678 --owner-akid AKIAIOSFODNN7EXAMPLE'
|
||||
args += ' --owner-sak wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY'
|
||||
--
|
||||
2.31.1
|
||||
|
@ -1,310 +0,0 @@
|
||||
# Copyright 1999-2020 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}
|
||||
}
|
@ -0,0 +1,371 @@
|
||||
# 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 v3.2.0+incompatible/go.mod"
|
||||
"github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod"
|
||||
"github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod"
|
||||
"github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod"
|
||||
"github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod"
|
||||
"github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod"
|
||||
"github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod"
|
||||
"github.com/armon/go-metrics v0.3.4"
|
||||
"github.com/armon/go-metrics v0.3.4/go.mod"
|
||||
"github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod"
|
||||
"github.com/armon/go-radix v1.0.0/go.mod"
|
||||
"github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod"
|
||||
"github.com/beorn7/perks v1.0.0/go.mod"
|
||||
"github.com/beorn7/perks v1.0.1/go.mod"
|
||||
"github.com/bgentry/speakeasy v0.1.0/go.mod"
|
||||
"github.com/cespare/xxhash/v2 v2.1.1/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-kit/kit v0.8.0/go.mod"
|
||||
"github.com/go-kit/kit v0.9.0/go.mod"
|
||||
"github.com/go-ldap/ldap v3.0.2+incompatible/go.mod"
|
||||
"github.com/go-logfmt/logfmt v0.3.0/go.mod"
|
||||
"github.com/go-logfmt/logfmt v0.4.0/go.mod"
|
||||
"github.com/go-stack/stack v1.8.0/go.mod"
|
||||
"github.com/go-test/deep v1.0.2-0.20181118220953-042da051cf31/go.mod"
|
||||
"github.com/gogo/protobuf v1.1.1/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/protobuf v1.3.2/go.mod"
|
||||
"github.com/golang/snappy v0.0.1/go.mod"
|
||||
"github.com/golang/snappy v0.0.2"
|
||||
"github.com/golang/snappy v0.0.2/go.mod"
|
||||
"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/go.mod"
|
||||
"github.com/google/go-cmp v0.3.1/go.mod"
|
||||
"github.com/google/go-cmp v0.4.0"
|
||||
"github.com/google/go-cmp v0.4.0/go.mod"
|
||||
"github.com/google/gofuzz v1.0.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/go.mod"
|
||||
"github.com/hashicorp/consul/sdk v0.4.1-0.20200910203702-bb2b5dd871ca"
|
||||
"github.com/hashicorp/consul/sdk v0.4.1-0.20200910203702-bb2b5dd871ca/go.mod"
|
||||
"github.com/hashicorp/errwrap v1.0.0/go.mod"
|
||||
"github.com/hashicorp/errwrap v1.1.0"
|
||||
"github.com/hashicorp/errwrap v1.1.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.9.2/go.mod"
|
||||
"github.com/hashicorp/go-hclog v0.12.0/go.mod"
|
||||
"github.com/hashicorp/go-hclog v0.14.1"
|
||||
"github.com/hashicorp/go-hclog v0.14.1/go.mod"
|
||||
"github.com/hashicorp/go-immutable-radix v1.0.0/go.mod"
|
||||
"github.com/hashicorp/go-immutable-radix v1.3.0"
|
||||
"github.com/hashicorp/go-immutable-radix v1.3.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/go.mod"
|
||||
"github.com/hashicorp/go-multierror v1.1.0"
|
||||
"github.com/hashicorp/go-multierror v1.1.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/go.mod"
|
||||
"github.com/hashicorp/go-retryablehttp v0.6.7"
|
||||
"github.com/hashicorp/go-retryablehttp v0.6.7/go.mod"
|
||||
"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/go.mod"
|
||||
"github.com/hashicorp/golang-lru v0.5.4"
|
||||
"github.com/hashicorp/golang-lru v0.5.4/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/mdns v1.0.1/go.mod"
|
||||
"github.com/hashicorp/memberlist v0.1.3/go.mod"
|
||||
"github.com/hashicorp/memberlist v0.2.2"
|
||||
"github.com/hashicorp/memberlist v0.2.2/go.mod"
|
||||
"github.com/hashicorp/serf v0.8.2/go.mod"
|
||||
"github.com/hashicorp/serf v0.9.4"
|
||||
"github.com/hashicorp/serf v0.9.4/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/imdario/mergo v0.3.12"
|
||||
"github.com/imdario/mergo v0.3.12/go.mod"
|
||||
"github.com/json-iterator/go v1.1.6/go.mod"
|
||||
"github.com/json-iterator/go v1.1.9/go.mod"
|
||||
"github.com/julienschmidt/httprouter v1.2.0/go.mod"
|
||||
"github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod"
|
||||
"github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod"
|
||||
"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/go.mod"
|
||||
"github.com/mattn/go-colorable v0.1.6/go.mod"
|
||||
"github.com/mattn/go-colorable v0.1.7"
|
||||
"github.com/mattn/go-colorable v0.1.7/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/matttproud/golang_protobuf_extensions v1.0.1/go.mod"
|
||||
"github.com/miekg/dns v1.0.14/go.mod"
|
||||
"github.com/miekg/dns v1.1.26"
|
||||
"github.com/miekg/dns v1.1.26/go.mod"
|
||||
"github.com/mitchellh/cli v1.0.0/go.mod"
|
||||
"github.com/mitchellh/cli v1.1.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/go.mod"
|
||||
"github.com/mitchellh/mapstructure v1.3.3"
|
||||
"github.com/mitchellh/mapstructure v1.3.3/go.mod"
|
||||
"github.com/mitchellh/reflectwalk v1.0.0/go.mod"
|
||||
"github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod"
|
||||
"github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod"
|
||||
"github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod"
|
||||
"github.com/modern-go/reflect2 v1.0.1/go.mod"
|
||||
"github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/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/go.mod"
|
||||
"github.com/pierrec/lz4 v2.5.2+incompatible"
|
||||
"github.com/pierrec/lz4 v2.5.2+incompatible/go.mod"
|
||||
"github.com/pkg/errors v0.8.0/go.mod"
|
||||
"github.com/pkg/errors v0.8.1/go.mod"
|
||||
"github.com/pkg/errors v0.9.1"
|
||||
"github.com/pkg/errors v0.9.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/posener/complete v1.2.3/go.mod"
|
||||
"github.com/prometheus/client_golang v0.9.1/go.mod"
|
||||
"github.com/prometheus/client_golang v1.0.0/go.mod"
|
||||
"github.com/prometheus/client_golang v1.4.0/go.mod"
|
||||
"github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod"
|
||||
"github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod"
|
||||
"github.com/prometheus/client_model v0.2.0/go.mod"
|
||||
"github.com/prometheus/common v0.4.1/go.mod"
|
||||
"github.com/prometheus/common v0.9.1/go.mod"
|
||||
"github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod"
|
||||
"github.com/prometheus/procfs v0.0.2/go.mod"
|
||||
"github.com/prometheus/procfs v0.0.8/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/sirupsen/logrus v1.2.0/go.mod"
|
||||
"github.com/sirupsen/logrus v1.4.2/go.mod"
|
||||
"github.com/stretchr/objx v0.1.0/go.mod"
|
||||
"github.com/stretchr/objx v0.1.1/go.mod"
|
||||
"github.com/stretchr/testify v1.2.2/go.mod"
|
||||
"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-20180904163835-0709b304e793/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-20190923035154-9ee001bba392/go.mod"
|
||||
"golang.org/x/crypto v0.0.0-20210817164053-32db794688a5"
|
||||
"golang.org/x/crypto v0.0.0-20210817164053-32db794688a5/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-20181114220301-adae6a3d119a/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/go.mod"
|
||||
"golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod"
|
||||
"golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod"
|
||||
"golang.org/x/net v0.0.0-20190923162816-aa69164e4478/go.mod"
|
||||
"golang.org/x/net v0.0.0-20210226172049-e18ecbb05110"
|
||||
"golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/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/go.mod"
|
||||
"golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod"
|
||||
"golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod"
|
||||
"golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/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-20180905080454-ebe1bf3edb33/go.mod"
|
||||
"golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod"
|
||||
"golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/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/go.mod"
|
||||
"golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod"
|
||||
"golang.org/x/sys v0.0.0-20190922100055-0a153f010e69/go.mod"
|
||||
"golang.org/x/sys v0.0.0-20190924154521-2837fb4f24fe/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-20200122134326-e047566fdf82/go.mod"
|
||||
"golang.org/x/sys v0.0.0-20200124204421-9fbb57f87de9/go.mod"
|
||||
"golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod"
|
||||
"golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod"
|
||||
"golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1"
|
||||
"golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod"
|
||||
"golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod"
|
||||
"golang.org/x/text v0.3.0/go.mod"
|
||||
"golang.org/x/text v0.3.1-0.20181227161524-e6919f6577db/go.mod"
|
||||
"golang.org/x/text v0.3.2/go.mod"
|
||||
"golang.org/x/text v0.3.3"
|
||||
"golang.org/x/text v0.3.3/go.mod"
|
||||
"golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod"
|
||||
"golang.org/x/time v0.0.0-20200630173020-3af7569d3a1e"
|
||||
"golang.org/x/time v0.0.0-20200630173020-3af7569d3a1e/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"
|
||||
"golang.org/x/tools v0.0.0-20190907020128-2ca718005c18/go.mod"
|
||||
"golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod"
|
||||
"golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543"
|
||||
"golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/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/alecthomas/kingpin.v2 v2.2.6/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/go.mod"
|
||||
"gopkg.in/square/go-jose.v2 v2.5.1"
|
||||
"gopkg.in/square/go-jose.v2 v2.5.1/go.mod"
|
||||
"gopkg.in/yaml.v2 v2.2.1/go.mod"
|
||||
"gopkg.in/yaml.v2 v2.2.2/go.mod"
|
||||
"gopkg.in/yaml.v2 v2.2.4/go.mod"
|
||||
"gopkg.in/yaml.v2 v2.2.5/go.mod"
|
||||
"gopkg.in/yaml.v2 v2.2.8/go.mod"
|
||||
"gopkg.in/yaml.v2 v2.3.0"
|
||||
"gopkg.in/yaml.v2 v2.3.0/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}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@ -1,27 +1,27 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>antivirus@gentoo.org</email>
|
||||
<name>Gentoo Antivirus Project</name>
|
||||
</maintainer>
|
||||
|
||||
<maintainer type="person">
|
||||
<!-- for the LTS 0.103.x branch only -->
|
||||
<email>mjo@gentoo.org</email>
|
||||
</maintainer>
|
||||
|
||||
<use>
|
||||
<flag name="clamapp">Build applications (clamscan, clamd, clamdscan, clamonacc(also has it's own USE flag), sigtool, clambc, clamav-milter(also requires milter USE flag), clamdtop, clamsubmit, clamconf).</flag>
|
||||
<flag name="clamonacc">Build the clamonacc on-access scanner</flag>
|
||||
<flag name="clamdtop">A Top like tool which shows what clamd is currently scanning amongst other things</flag>
|
||||
<flag name="clamsubmit">A tool to submit false positives / negatives</flag>
|
||||
<flag name="libclamav-only">Bypass building of libfreshclam and the ClamAV CLI applications.</flag>
|
||||
<flag name="metadata-analysis-api">Enables collection of file property metadata using ClamAV API for analysis by ClamAV bytecode programs.</flag>
|
||||
<flag name="xml">DMG and XAR support</flag>
|
||||
<flag name="rar">RAR support</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="sourceforge">clamav</remote-id>
|
||||
</upstream>
|
||||
<maintainer type="project">
|
||||
<email>antivirus@gentoo.org</email>
|
||||
<name>Gentoo Antivirus Project</name>
|
||||
</maintainer>
|
||||
<maintainer type="person">
|
||||
<!-- for the LTS 0.103.x branch only -->
|
||||
<email>mjo@gentoo.org</email>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="clamapp">
|
||||
Build applications (clamscan, clamd, clamdscan, clamonacc (also has its own USE flag), sigtool, clambc, clamav-milter (also requires milter USE flag), clamdtop, clamsubmit, clamconf).
|
||||
</flag>
|
||||
<flag name="clamonacc">Build the clamonacc on-access scanner</flag>
|
||||
<flag name="clamdtop">A Top like tool which shows what clamd is currently scanning amongst other things</flag>
|
||||
<flag name="clamsubmit">A tool to submit false positives / negatives</flag>
|
||||
<flag name="libclamav-only">Bypass building of libfreshclam and the ClamAV CLI applications.</flag>
|
||||
<flag name="metadata-analysis-api">Enables collection of file property metadata using ClamAV API for analysis by ClamAV bytecode programs.</flag>
|
||||
<flag name="xml">DMG and XAR support</flag>
|
||||
<flag name="rar">RAR support</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="sourceforge">clamav</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
|
Binary file not shown.
Binary file not shown.
@ -1,3 +1,2 @@
|
||||
DIST btrbk-0.29.1.tar.xz 98320 BLAKE2B f7e4939fec27cc85847d7cae8797de9c59040de641ed4c3c4dcd37102daad1d3910e2ef40c3ad486614a167a7d2206c92b961ba6e5d78e351dedb8de565e3172 SHA512 78bb24fff3606bcf5cb3f4b7e31c5423ca01208cf667efa6a67978696b06ffd4f368aed372d57372ef268ea9329d51f8abd7e2e9dc59dfb0d3133c992d1d788e
|
||||
DIST btrbk-0.31.2.tar.xz 107124 BLAKE2B a05ef8a665d50b0f9637b1bc7026f0ca0f8364377b4165dae09cd27790dc139aaea1096a54719d948adda5050f91580650bf58db70a086cfdd14b73559fad9f3 SHA512 f953fe1a231f7a28c2d98cf124e3d52cc6d0810e6cb1673b90f335e07cd7473d0302ec227361f902c40a36dab5c075c675d2ee0543a23c37cb1e4baaf74efea0
|
||||
DIST btrbk-0.31.3.tar.xz 109884 BLAKE2B 7f78d00815259e42bb3fd16ee48272717fe57913b7af83ca8a98f1dfd0de715cbf8b07177ea60b5b8bdcb9793ee0d5829b90b8327cd4810f6275611276a6e707 SHA512 62dee5430635b6a31edcdc9bed1829f549b60074ea09bb6f1fcd56d242d4215339846c8c2dbcd4bee05cd2a0cb32c1237ce7311d2b887885373c13fa15a6f476
|
||||
|
@ -1,76 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit systemd
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
EGIT_REPO_URI="https://github.com/digint/btrbk.git"
|
||||
inherit git-r3
|
||||
SRC_URI=""
|
||||
else
|
||||
SRC_URI="https://digint.ch/download/btrbk/releases/${P}.tar.xz"
|
||||
KEYWORDS="amd64 arm ~arm64 x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Tool for creating snapshots and remote backups of btrfs subvolumes"
|
||||
HOMEPAGE="https://digint.ch/btrbk/"
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
IUSE="+mbuffer +doc"
|
||||
|
||||
DEPEND="doc? ( >=dev-ruby/asciidoctor-1.5.7 )"
|
||||
|
||||
RDEPEND="dev-lang/perl
|
||||
net-misc/openssh
|
||||
mbuffer? ( >=sys-block/mbuffer-20180505 )
|
||||
>=sys-fs/btrfs-progs-4.12"
|
||||
|
||||
src_compile() {
|
||||
emake clean
|
||||
use doc && emake -C doc
|
||||
}
|
||||
src_install() {
|
||||
local targets="install-bin install-etc install-share install-systemd"
|
||||
use doc && targets="${targets} install-man install-doc"
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
DOCDIR="/usr/share/doc/${PF}" \
|
||||
SYSTEMDDIR="$(systemd_get_systemunitdir)" \
|
||||
${targets}
|
||||
}
|
||||
pkg_preinst() {
|
||||
if has_version "<${CATEGORY}/${PN}-0.26.0" ; then
|
||||
upgrade_0_26_0_warning="1"
|
||||
fi
|
||||
if has_version "<${CATEGORY}/${PN}-0.27.0" ; then
|
||||
upgrade_0_27_0_warning="1"
|
||||
fi
|
||||
}
|
||||
pkg_postinst() {
|
||||
if [[ "${upgrade_0_26_0_warning}" == "1" ]]; then
|
||||
ewarn "If you are using raw targets, make sure to run the"
|
||||
ewarn "\"raw_suffix2sidecar\" utility in each target directory."
|
||||
fi
|
||||
if [[ "${upgrade_0_27_0_warning}" == "1" ]]; then
|
||||
ewarn 'Due to a bugfix in the scheduler [1] [2], previously preserved'
|
||||
ewarn 'monthly/yearly backups could get deleted when upgrading to'
|
||||
ewarn 'btrbk-0.27.0.'
|
||||
ewarn ''
|
||||
ewarn 'Before upgrading to btrbk-0.27.0, make sure to stop all cron jobs'
|
||||
ewarn 'or systemd timers calling btrbk.'
|
||||
ewarn ''
|
||||
ewarn 'After upgrading, run "btrbk prune --dry-run --print-schedule" and'
|
||||
ewarn 'check if any snapshots/backups would get deleted. If you want to'
|
||||
ewarn 'forcibly preserve a snapshot/backup forever, rename it:'
|
||||
ewarn ''
|
||||
ewarn ' mv mysubvol.YYYYMMDD mysubvol.YYYYMMDD.keep_forever'
|
||||
ewarn ''
|
||||
ewarn 'Note that btrbk ignores subvolumes with unknown naming scheme, e.g.'
|
||||
ewarn '(".keep_forever" suffix in the example above).'
|
||||
ewarn ''
|
||||
ewarn ' [1] https://github.com/digint/btrbk/issues/217'
|
||||
ewarn ' [2] https://github.com/digint/btrbk/commit/719fb5f'
|
||||
fi
|
||||
}
|
Binary file not shown.
@ -1,3 +1,4 @@
|
||||
DIST ccid-1.4.33.tar.bz2 659673 BLAKE2B f8dd37ed4fd2bd15e6313417dc01feecd0303502d24eeae101ad13233510b5e26b08439c4de453abc734695618faa1c8031e545d045527aa841ab9056a3d729e SHA512 ccfcecbaca4c8f1ee4a4925bd313ced6d6f15ad422cbcc387627aef203a9ae0ff7775c4a2c5d25978ab33ebfd93c34de50e1f783df787b77ea7c774a45ed126b
|
||||
DIST ccid-1.4.34.tar.bz2 667477 BLAKE2B 81f8f97fdb4526fa2f0bfe0890cc447c87671989159022a51fa15ed6e85760f7fc3a9b3f673e2cbf72373a9fc67df5304c0a93a945b97f5ad483de213f5b1a45 SHA512 8a71c100e2f0adfd6de89a86dab6690629b10c91d1fddc0a810df2ebeaea978eaaa7c6a21fa964b5cd1ea277b0efe75a2885b490f9bd9ac4776b8ff1848e4122
|
||||
DIST ccid-1.4.35.tar.bz2 676789 BLAKE2B d1123c024a798a22906a5c2c2e35f5485b8d2252ddec28571af835bbf169bc5abeb26fea871ef70d67270cc1eb52f992c56f0abb74f6deed555f15e39dbf4756 SHA512 da990b5537ec35baa1b36b9c4be7f1bdccfc149cfa4ce024ddf59504f2a2044273057c1454f227fdad8f6b04fceaf48b88e70d4d0a5475384749b367529deaeb
|
||||
DIST ccid-1.4.36.tar.bz2 677047 BLAKE2B b3d48f1c51b64d260b7055251fb04aeea4a22cc5d4f024bb972a9a9874b1bdf4b75b9daf8cd7c9f26000b04e7d4c1779e20a26d4927aa1e403cd274f548b71b5 SHA512 e9ca3f5364c6cec988edad325c1ef1b35886e3ecb15d6e1409c989b9f669fbda3f0688e246e3976b58eacc0ed035cde36e65675abf12562e81c3630d4ce67773
|
||||
|
@ -0,0 +1,61 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit toolchain-funcs udev
|
||||
|
||||
DESCRIPTION="CCID free software driver"
|
||||
HOMEPAGE="https://ccid.apdu.fr https://github.com/LudovicRousseau/CCID"
|
||||
SRC_URI="https://ccid.apdu.fr/files/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="twinserial kobil-midentity +usb"
|
||||
|
||||
RDEPEND=">=sys-apps/pcsc-lite-1.8.3
|
||||
usb? ( virtual/libusb:1 )"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="kernel_linux? ( virtual/pkgconfig )"
|
||||
|
||||
DOCS=( README.md AUTHORS )
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
LEX=: \
|
||||
$(use_enable twinserial) \
|
||||
$(use_enable usb libusb)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
use kobil-midentity && emake -C contrib/Kobil_mIDentity_switch
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
if use kobil-midentity; then
|
||||
dosbin contrib/Kobil_mIDentity_switch/Kobil_mIDentity_switch
|
||||
doman contrib/Kobil_mIDentity_switch/Kobil_mIDentity_switch.8
|
||||
fi
|
||||
|
||||
if use kernel_linux; then
|
||||
# note: for eudev support, rules probably will always need to be
|
||||
# installed to /usr
|
||||
|
||||
# ccid >=1.4.11 version changed the rules drastically in a minor
|
||||
# release to no longer use the pcscd group. Using the old ones in
|
||||
# the mean time.
|
||||
udev_newrules "${FILESDIR}"/92_pcscd_ccid-2.rules 92-pcsc-ccid.rules
|
||||
|
||||
# disable Kobil_mIDentity_switch udev rule with USE=-kobil-midentity
|
||||
if ! use kobil-midentity; then
|
||||
sed \
|
||||
-e '/Kobil_mIDentity_switch/s/^/#/' \
|
||||
-i "${D}/$(get_udevdir)"/rules.d/92-pcsc-ccid.rules || die
|
||||
fi
|
||||
|
||||
fi
|
||||
}
|
@ -1,3 +1,2 @@
|
||||
DIST rhash-1.3.6-src.tar.gz 328097 BLAKE2B c74993d183f0f2e479f0bd5831a9f653b9bd17bbed4d1ba896f6e33db98b7141175cd3c688dc41dfd8ec4b98acb51255ae5b795435cbc9dfb5ab77573cb25543 SHA512 54f7f238ed1fdc01c29cc1338fa86be90b69beff0df8f20d24ce9cb3c48c7f4668b84a3fe0d4d8b04b54bc8145485d493435edf3219de3a637af0f9c007c85c6
|
||||
DIST rhash-1.4.1-src.tar.gz 413274 BLAKE2B 2027bccc677e8a1766f0624e67f475713653ddb4be457f9c8434c45019bc730934ca860e69f8b8e1fec349e724b1a366df0f5fb98501c825b44f9b8105068ff7 SHA512 30bbef7ce7815ee4ac062c537206a0b895845f61de4b1fdc0c0494f66284d9f3c1b06f812ea913fa35a3342d230d25d0986a1db644c7b4464bc1185997beb638
|
||||
DIST rhash-1.4.2-src.tar.gz 416853 BLAKE2B 06322825116cb00aa4987b01610d967eb57c94aa29b43348ec2c31f053fd471a900fcee776714263213e9a79eaf389b2e79d7b34a5afd3e98d68198193b5cbe7 SHA512 41df57e8b3f32c93d8e6f2ac668b32aaa23eb2eaf90a83f109e61e511404a5036ea88bcf2854e19c1ade0f61960e0d9edf01f3d82e1c645fed36579e9d7a6a25
|
||||
|
@ -0,0 +1,80 @@
|
||||
From 4dc506066cf1727b021e6352535a8bb315c3f8dc Mon Sep 17 00:00:00 2001
|
||||
From: Aleksey <rhash.admin@gmail.com>
|
||||
Date: Sat, 17 Jul 2021 18:39:41 +0300
|
||||
Subject: [PATCH] configure: fix clang detection on macOS
|
||||
|
||||
---
|
||||
configure | 58 +++++++++++++++++++++++++++----------------------------
|
||||
1 file changed, 28 insertions(+), 30 deletions(-)
|
||||
|
||||
diff --git a/configure b/configure
|
||||
index 59d432b..111270a 100755
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -519,38 +519,36 @@ else
|
||||
elif run_cmd "$CC --version"; then
|
||||
cc_name_tmp=$($CC --version 2>&1 | head -n 1 | cut -d ' ' -f 1)
|
||||
fi
|
||||
- if test -n "${cc_name_tmp}"; then
|
||||
- if echo "$cc_name_tmp" | grep -q "gcc"; then
|
||||
- cc_name=$cc_name_tmp
|
||||
- start_check "$CC version"
|
||||
- cc_vendor=gnu
|
||||
- cc_version=$($CC -dumpversion 2>&1)
|
||||
- if ! echo $cc_version | grep -q '^[0-9][0-9]*\.[0-9]'; then
|
||||
- cc_v2=$($CC -dumpfullversion -dumpversion 2>/dev/null)
|
||||
- if echo $cc_v2 | grep -q '^[0-9][0-9]*\.[0-9]'; then
|
||||
- cc_version=$cc_v2
|
||||
- fi
|
||||
+ if echo "$cc_name_tmp" | grep -q "gcc"; then
|
||||
+ cc_name=$cc_name_tmp
|
||||
+ start_check "$CC version"
|
||||
+ cc_vendor=gnu
|
||||
+ cc_version=$($CC -dumpversion 2>&1)
|
||||
+ if ! echo $cc_version | grep -q '^[0-9][0-9]*\.[0-9]'; then
|
||||
+ cc_v2=$($CC -dumpfullversion -dumpversion 2>/dev/null)
|
||||
+ if echo $cc_v2 | grep -q '^[0-9][0-9]*\.[0-9]'; then
|
||||
+ cc_version=$cc_v2
|
||||
fi
|
||||
- case $cc_version in
|
||||
- 2.96*)
|
||||
- cc_fail=yes
|
||||
- ;;
|
||||
- *)
|
||||
- _cc_major=$(echo $cc_version | cut -d '.' -f 1)
|
||||
- _cc_minor=$(echo $cc_version | cut -d '.' -f 2)
|
||||
- _cc_mini=$(echo $cc_version | cut -d '.' -f 3)
|
||||
- ;;
|
||||
- esac
|
||||
- finish_check "$cc_name $cc_version"
|
||||
- break
|
||||
- fi
|
||||
- if echo "$cc_name_tmp" | grep -q "clang"; then
|
||||
- start_check "$CC version"
|
||||
- cc_vendor=clang
|
||||
- cc_version=$($CC -dumpversion 2>&1)
|
||||
- finish_check "clang $cc_version"
|
||||
- break
|
||||
fi
|
||||
+ case $cc_version in
|
||||
+ 2.96*)
|
||||
+ cc_fail=yes
|
||||
+ ;;
|
||||
+ *)
|
||||
+ _cc_major=$(echo $cc_version | cut -d '.' -f 1)
|
||||
+ _cc_minor=$(echo $cc_version | cut -d '.' -f 2)
|
||||
+ _cc_mini=$(echo $cc_version | cut -d '.' -f 3)
|
||||
+ ;;
|
||||
+ esac
|
||||
+ finish_check "$cc_name $cc_version"
|
||||
+ break
|
||||
+ elif $CC --version 2>&1 | grep -q "clang"; then
|
||||
+ start_check "$CC version"
|
||||
+ cc_vendor=clang
|
||||
+ cc_version=$($CC -dumpversion 2>&1)
|
||||
+ finish_check "clang $cc_version"
|
||||
+ break
|
||||
+ else
|
||||
cc_name_tmp=$($CC -V 2>&1 | head -n 1 | cut -d ' ' -f 2,3)
|
||||
if test "$cc_name_tmp" = "Sun C"; then
|
||||
start_check "$CC version"
|
@ -1,80 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit toolchain-funcs multilib-minimal
|
||||
|
||||
DESCRIPTION="Console utility and library for computing and verifying file hash sums"
|
||||
HOMEPAGE="http://rhash.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="debug nls ssl static-libs"
|
||||
|
||||
RDEPEND="
|
||||
ssl? (
|
||||
dev-libs/openssl:0=[${MULTILIB_USEDEP}]
|
||||
)"
|
||||
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
nls? ( sys-devel/gettext )
|
||||
"
|
||||
|
||||
S="${WORKDIR}/RHash-${PV}"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
if [[ ${CHOST} == *-darwin* && ${CHOST##*darwin} -le 9 ]] ; then
|
||||
# we lack posix_memalign
|
||||
sed -i -e '/if _POSIX_VERSION/s/if .*$/if 0/' \
|
||||
librhash/util.h || die
|
||||
fi
|
||||
|
||||
multilib_copy_sources
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
set -- \
|
||||
./configure \
|
||||
--target="${CHOST}" \
|
||||
--cc="$(tc-getCC)" \
|
||||
--ar="$(tc-getAR)" \
|
||||
--extra-cflags="${CFLAGS}" \
|
||||
--extra-ldflags="${LDFLAGS}" \
|
||||
--prefix="${EPREFIX}"/usr \
|
||||
--libdir="${EPREFIX}"/usr/$(get_libdir) \
|
||||
--sysconfdir="${EPREFIX}"/etc \
|
||||
--disable-openssl-runtime \
|
||||
--disable-static \
|
||||
--enable-lib-shared \
|
||||
$(use_enable debug) \
|
||||
$(use_enable nls gettext) \
|
||||
$(use_enable ssl openssl) \
|
||||
$(use_enable static-libs lib-static)
|
||||
|
||||
echo "${@}"
|
||||
"${@}" || die "configure failed"
|
||||
}
|
||||
|
||||
# We would add compile-gmo to the build targets but install-gmo always
|
||||
# recompiles unconditionally. :(
|
||||
|
||||
multilib_src_install() {
|
||||
# -j1 needed due to race condition.
|
||||
emake DESTDIR="${D}" -j1 \
|
||||
install{,-lib-headers,-pkg-config} \
|
||||
$(use nls && echo install-gmo) \
|
||||
$(use kernel_Winnt || echo install-lib-so-link)
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
emake test
|
||||
}
|
Binary file not shown.
@ -1,37 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
USE_RUBY="ruby23 ruby24 ruby25 ruby26"
|
||||
|
||||
inherit ruby-ng
|
||||
|
||||
DESCRIPTION="A Linux editor for the masses"
|
||||
HOMEPAGE="http://diakonos.pist0s.ca"
|
||||
SRC_URI="http://diakonos.pist0s.ca/archives/${P}.tar.bz2"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc test"
|
||||
|
||||
ruby_add_rdepend "dev-ruby/curses"
|
||||
|
||||
ruby_add_bdepend "doc? ( dev-ruby/yard )
|
||||
test? ( dev-ruby/bacon )"
|
||||
|
||||
each_ruby_install() {
|
||||
${RUBY} install.rb --dest-dir "${D}" --doc-dir /usr/share/doc/${P} || die "install failed"
|
||||
}
|
||||
|
||||
all_ruby_install() {
|
||||
if use doc; then
|
||||
rake docs || die
|
||||
dodoc -r doc/*
|
||||
fi
|
||||
}
|
||||
|
||||
each_ruby_test() {
|
||||
${RUBY} -S bacon -Ilib spec/*.rb spec/*/*.rb || die
|
||||
}
|
@ -1 +1 @@
|
||||
DIST fe-2.0.tar.gz 217430 BLAKE2B bbc886abdb54d5fe05f031a5e5700907586c4bae8812f4edd5bf6d35fa0ce16edb93a6f988a597e1b4aba69bde4019f3044091ab9285ee6138d913498816453b SHA512 85afa800466376e59aa8de4af06db51c5df8566109a1f632b30a366f944be3237f88a639329d44114360747836ed75c31746c7d6bf1568b7b4ff3e11d595a6e7
|
||||
DIST fe-2.0.tar.gz 237890 BLAKE2B 9fb2ad310016b52ebc807854c942c248b75a9e543aa919ccee0a1963d9a12b23ad9cbc4df884422654e2efb0b97ba2d590ac2d70be48dec3a19e7a455de5c168 SHA512 6967362b8ff9ce91e0480dfa8538e3d13b43748283423923a4ba19efc76fbe007975318d9fde758f9c9f0b8bd084ff49e45bfd5b9773a79ee85a2153646e0143
|
||||
|
@ -0,0 +1,32 @@
|
||||
https://bugs.gentoo.org/818415
|
||||
|
||||
--- fe-2.0/configure.ac
|
||||
+++ fe-2.0/configure.ac
|
||||
@@ -55,19 +55,6 @@
|
||||
AC_CHECK_FUNCS(strdup)
|
||||
AC_CHECK_FUNCS(strndup)
|
||||
|
||||
-AC_CHECK_LIB(ncursesw, get_wch, [have_utf8_ncurses=yes; LIBS="-lncursesw $LIBS"])
|
||||
-if test "$have_utf8_ncurses" = yes
|
||||
-then
|
||||
- AC_DEFINE(HAVE_UTF8_NCURSES)
|
||||
- AC_CHECK_HEADERS(ncurses/ncurses.h,have_ncurses_ncurses_h=yes)
|
||||
- if test "$have_ncurses_ncurses_h" != yes
|
||||
- then
|
||||
- AC_CHECK_HEADERS(ncurses.h,have_ncurses_h=yes)
|
||||
- fi
|
||||
-fi
|
||||
-
|
||||
-if test "$have_utf8_ncurses" != yes
|
||||
-then
|
||||
AC_CHECK_LIB(ncurses, get_wch, [have_utf8_ncurses=yes; LIBS="-lncurses $LIBS"])
|
||||
if test "$have_utf8_ncurses" = yes
|
||||
then
|
||||
@@ -78,7 +65,6 @@
|
||||
AC_CHECK_HEADERS(ncurses.h,have_ncurses_h=yes)
|
||||
fi
|
||||
fi
|
||||
-fi
|
||||
|
||||
if test "$have_utf8_ncurses" != yes
|
||||
then
|
@ -0,0 +1,259 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# Note: xemacs currently does not work with position independent code
|
||||
# so the build forces the use of the -no-pie option
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit flag-o-matic xdg-utils desktop
|
||||
|
||||
DESCRIPTION="highly customizable open source text editor and application development system"
|
||||
HOMEPAGE="http://www.xemacs.org/"
|
||||
SRC_URI="http://ftp.xemacs.org/xemacs-21.5/${P}.tar.gz
|
||||
http://www.malfunction.de/afterstep/files/NeXT_XEmacs.tar.gz"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~ppc ~ppc64 -riscv ~sparc ~x86"
|
||||
IUSE="alsa debug eolconv gif gpm pop postgres ldap xface nas dnd X jpeg tiff png mule motif freewnn xft xim athena neXt Xaw3d gdbm berkdb"
|
||||
|
||||
X_DEPEND="x11-libs/libXt x11-libs/libXmu x11-libs/libXext x11-misc/xbitmaps"
|
||||
|
||||
RDEPEND="
|
||||
berkdb? ( >=sys-libs/db-4:= !!<sys-libs/db-4 )
|
||||
gdbm? ( >=sys-libs/gdbm-1.8.3[berkdb(+)] )
|
||||
>=sys-libs/zlib-1.1.4
|
||||
>=dev-libs/openssl-0.9.6:0
|
||||
>=media-libs/audiofile-0.2.3
|
||||
gpm? ( >=sys-libs/gpm-1.19.6 )
|
||||
postgres? ( dev-db/postgresql:= )
|
||||
ldap? ( net-nds/openldap )
|
||||
alsa? ( media-libs/alsa-lib )
|
||||
nas? ( media-libs/nas )
|
||||
X? ( $X_DEPEND !Xaw3d? ( !neXt? ( x11-libs/libXaw ) ) )
|
||||
dnd? ( x11-libs/dnd )
|
||||
motif? ( >=x11-libs/motif-2.3:0[xft=] )
|
||||
athena? ( x11-libs/libXaw )
|
||||
Xaw3d? ( x11-libs/libXaw3d )
|
||||
xft? ( media-libs/freetype:2 x11-libs/libXft x11-libs/libXrender >=media-libs/fontconfig-2.5.0 )
|
||||
neXt? ( x11-libs/neXtaw )
|
||||
xface? ( media-libs/compface )
|
||||
tiff? ( media-libs/tiff:0 )
|
||||
png? ( >=media-libs/libpng-1.2:0 )
|
||||
jpeg? ( virtual/jpeg:0 )
|
||||
freewnn? ( app-i18n/freewnn )
|
||||
>=sys-libs/ncurses-5.2:=
|
||||
>=app-eselect/eselect-emacs-1.15"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
PDEPEND="app-xemacs/xemacs-base
|
||||
mule? ( app-xemacs/mule-base )"
|
||||
|
||||
src_unpack() {
|
||||
default_src_unpack
|
||||
|
||||
use neXt && unpack NeXT_XEmacs.tar.gz
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
use neXt && cp "${WORKDIR}"/NeXT.XEmacs/xemacs-icons/* "${S}"/etc/toolbar/
|
||||
find "${S}"/lisp -name '*.elc' -exec rm {} \; || die
|
||||
eapply "${FILESDIR}/${P}-ncurses-tinfo.patch"
|
||||
eapply "${FILESDIR}/${P}-gcc5.patch"
|
||||
eapply "${FILESDIR}/${P}-glibc-macro.patch"
|
||||
eapply "${FILESDIR}/${P}-as-needed.patch"
|
||||
eapply "${FILESDIR}/${P}-configure-libc-version.patch"
|
||||
eapply "${FILESDIR}/${P}-ar.patch"
|
||||
eapply "${FILESDIR}/${P}-strsignal.patch"
|
||||
eapply "${FILESDIR}/${P}-process-test-qa.patch"
|
||||
|
||||
eapply_user
|
||||
|
||||
# Some binaries and man pages are installed under suffixed names
|
||||
# to avoid collions with their GNU Emacs counterparts (see below).
|
||||
# Fix internal filename references.
|
||||
sed -i -e 's/exec gnuclient/&-xemacs/' lib-src/gnudoit || die
|
||||
sed -i -e '/^\.so/s/etags/&-xemacs/' etc/ctags.1 || die
|
||||
sed -i -e '/^\.so/s/gnuserv/&-xemacs/' etc/gnu{client,doit,attach}.1 || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=""
|
||||
|
||||
# bug #639642
|
||||
test-flags -no-pie >/dev/null && append-flags -no-pie
|
||||
filter-flags -pie
|
||||
|
||||
if use X; then
|
||||
|
||||
myconf="${myconf} --with-widgets=athena"
|
||||
myconf="${myconf} --with-dialogs=athena"
|
||||
myconf="${myconf} --with-menubars=lucid"
|
||||
myconf="${myconf} --with-scrollbars=lucid"
|
||||
if use motif ; then
|
||||
myconf="--with-widgets=motif"
|
||||
myconf="${myconf} --with-dialogs=motif"
|
||||
myconf="${myconf} --with-scrollbars=motif"
|
||||
myconf="${myconf} --with-menubars=lucid"
|
||||
fi
|
||||
if use athena or use Xaw3d ; then
|
||||
myconf="--with-scrollbars=athena"
|
||||
fi
|
||||
|
||||
if use Xaw3d; then
|
||||
myconf="${myconf} --with-athena=3d"
|
||||
elif use neXt; then
|
||||
myconf="${myconf} --with-athena=next"
|
||||
else
|
||||
myconf="${myconf} --with-athena=xaw"
|
||||
fi
|
||||
|
||||
use dnd && myconf="${myconf} --with-dragndrop --with-offix"
|
||||
|
||||
myconf="${myconf} $(use_with tiff )"
|
||||
myconf="${myconf} $(use_with png )"
|
||||
myconf="${myconf} $(use_with jpeg )"
|
||||
myconf="${myconf} $(use_with xface )"
|
||||
|
||||
use xft && myconf="${myconf} --with-xft=emacs,tabs,menubars,gauges" ||
|
||||
myconf="${myconf} --with-xft=no"
|
||||
|
||||
else
|
||||
myconf="${myconf}
|
||||
--without-x
|
||||
--without-xpm
|
||||
--without-dragndrop
|
||||
--with-xft=no
|
||||
--with-gif=no"
|
||||
fi
|
||||
|
||||
if use mule ; then
|
||||
myconf="${myconf} --with-mule"
|
||||
|
||||
if use xim ; then
|
||||
if use motif ; then
|
||||
myconf="${myconf} --with-xim=motif"
|
||||
else
|
||||
myconf="${myconf} --with-xim=xlib"
|
||||
fi
|
||||
else
|
||||
myconf="${myconf} --with-xim=no"
|
||||
fi
|
||||
|
||||
myconf="${myconf} $(use_with freewnn wnn )"
|
||||
fi
|
||||
|
||||
# This determines the type of sounds we are playing
|
||||
local soundconf="native"
|
||||
|
||||
# This determines how these sounds should be played
|
||||
use nas && soundconf="${soundconf},nas"
|
||||
use alsa && soundconf="${soundconf},alsa"
|
||||
|
||||
myconf="${myconf} --with-sound=${soundconf}"
|
||||
|
||||
if use gdbm || use berkdb ; then
|
||||
use gdbm && mydb="gdbm"
|
||||
use berkdb && mydb="${mydb},berkdb"
|
||||
|
||||
myconf="${myconf} --with-database=${mydb}"
|
||||
else
|
||||
myconf="${myconf} --without-database"
|
||||
fi
|
||||
|
||||
use debug && myconf="${myconf} --with-debug" ||
|
||||
myconf="${myconf} --with-optimization"
|
||||
|
||||
econf ${myconf} \
|
||||
$(use_with gif ) \
|
||||
$(use_with gpm ) \
|
||||
$(use_with postgres postgresql ) \
|
||||
$(use_with ldap ) \
|
||||
$(use_with eolconv file-coding ) \
|
||||
$(use_with pop ) \
|
||||
--prefix=/usr \
|
||||
--without-canna \
|
||||
--with-ncurses \
|
||||
--with-msw=no \
|
||||
--with-mail-locking=flock \
|
||||
--with-site-lisp=yes \
|
||||
--with-site-modules=yes \
|
||||
--with-system-malloc \
|
||||
--enable-option-checking=no \
|
||||
--with-last-packages=/usr/lib/xemacs
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake EMACSLOADPATH="${S}"/lisp
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake prefix="${ED}"/usr \
|
||||
mandir="${ED}"/usr/share/man/man1 \
|
||||
infodir="${ED}"/usr/share/info \
|
||||
libdir="${ED}"/usr/$(get_libdir) \
|
||||
datadir="${ED}"/usr/share \
|
||||
install
|
||||
|
||||
# Rename some applications installed in bin so that it is clear
|
||||
# which application installed them and so that conflicting
|
||||
# packages (emacs) can't clobber the actual applications.
|
||||
# Addresses bug #62991.
|
||||
for i in b2m ctags etags gnuclient gnudoit gnuattach; do
|
||||
mv "${ED}"/usr/bin/${i} "${ED}"/usr/bin/${i}-xemacs || die "mv ${i} failed"
|
||||
done
|
||||
|
||||
# rename man pages
|
||||
for i in ctags etags gnuserv gnuclient gnudoit gnuattach; do
|
||||
mv "${ED}"/usr/share/man/man1/${i}{,-xemacs}.1 || die "mv ${i}.1 failed"
|
||||
done
|
||||
|
||||
# install base packages directories
|
||||
dodir /usr/lib/xemacs/xemacs-packages/
|
||||
dodir /usr/lib/xemacs/site-packages/
|
||||
dodir /usr/lib/xemacs/site-modules/
|
||||
dodir /usr/lib/xemacs/site-lisp/
|
||||
|
||||
if use mule;
|
||||
then
|
||||
dodir /usr/lib/xemacs/mule-packages
|
||||
fi
|
||||
|
||||
# remove extraneous info files
|
||||
cd "${ED}"/usr/share/info
|
||||
rm -f dir info.info texinfo* termcap* standards*
|
||||
|
||||
cd "${S}"
|
||||
dodoc CHANGES-* ChangeLog INSTALL Installation PROBLEMS README*
|
||||
|
||||
newicon "${S}"/etc/${PN}-icon.xpm ${PN}.xpm
|
||||
|
||||
domenu "${FILESDIR}"/${PN}.desktop
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
eselect emacs update ifunset
|
||||
eselect gnuclient update ifunset
|
||||
xdg_desktop_database_update
|
||||
|
||||
einfo "If you are upgrading from XEmacs 21.4 you should note the following"
|
||||
einfo "incompatibilities:"
|
||||
einfo "- Mule-UCS is no longer supported due to proper UTF-8 support in XEmacs 21.5"
|
||||
einfo "- The X resource class has changed from Emacs to XEmacs,"
|
||||
einfo " settings in your .Xdefaults file should be updated accordingly."
|
||||
|
||||
if use xft;
|
||||
then
|
||||
einfo "You have enabled Xft font support. Xft requires font names to be provided"
|
||||
einfo "in a different way, so you may need to adjust your .Xdefaults accordingly."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
eselect emacs update ifunset
|
||||
eselect gnuclient update ifunset
|
||||
xdg_desktop_database_update
|
||||
}
|
Binary file not shown.
@ -1,4 +1,4 @@
|
||||
DIST conmon-2.0.22.tar.gz 103371 BLAKE2B f509ba800c847886ec2350e141d2b965ff1cc09822467718fb0d94acdabdc86c6f40dff9428679e4c4171ac6a522b3ba7622d66ebd8108be1a68cbf7418d5c09 SHA512 819e1d9279c1a22388220d710b975cdeb3c0b56413afb177afe1c96b649e2dce496d5f51fe4094f572111f771102ccd0ae86f1776e99fedb2e76e6e9130c2d5c
|
||||
DIST conmon-2.0.26.tar.gz 104681 BLAKE2B fc8369258a414d3a169b64019199c604d1d8bded70d5a38230f243053dcf09c6f9aee931b328913e6cbbe3c495aab4894647897f40f537a79eb587ecee58517a SHA512 5cbb66053fb48b514f93b3be4d4ac428f9eea8a3e1452b4df232250e9cd01202ecb7477c05e1e4dfb21595f2d1881be35cdea9b23f43c02bb7c0e67a3161396e
|
||||
DIST conmon-2.0.27.tar.gz 106647 BLAKE2B f242b1be4f86b18ca94dade3d1f5522d1ae1951f4b7abf7e563e1a93472c2a673cd48a136fdff12b410ebaa46694b70ffbf173fc37a3bbefb03891452c22dfae SHA512 2bc389fa3963cbb612669ec1d288adc888d7ac1de2b9bf483f18e0f62220775327ebcb771bfa7236815ef7247adb8fc6b8ae38748f7a383ec9590e3ee5769b65
|
||||
DIST conmon-2.0.29.tar.gz 160628 BLAKE2B 9cff934a6774ea51476624b9c56bc0dc71eeb9383d48fbb3d6b04ad7be462e8cb792e72cf9d98f9ca54eff274f1a3c2bbad3f8d8cf53fe0d2e259e4f6d93ed7e SHA512 0eec0322ee209efacae93b6e96c3bea2468a309d6211c8c047b49fa3bd8b5d1a198a16b3ff1ffe629dc37a12e2e0db1979e8876833c5cef0f69be35d4be8b550
|
||||
DIST conmon-2.0.30.tar.gz 161285 BLAKE2B c4e01759d819d3dff94b9ae09caa72b6f664e49d907d3a1be9fb4a0e1f782fad29a7cd7c89703e861f4aa6d7955996386f81460f19f22be2889c4f88c34536cb SHA512 2451e441913925f8423385b83e97630e980948a9bd57ae8800889016c4412a26bed598825d3c034c3edcecbab66c38417f55ad3866d3c2c98cada6acce2b2d16
|
||||
|
@ -0,0 +1,25 @@
|
||||
From 4e6295094978817ba02e16ac5404ac9c9e287c82 Mon Sep 17 00:00:00 2001
|
||||
From: James Le Cuirot <chewi@gentoo.org>
|
||||
Date: Sun, 17 Oct 2021 09:54:24 +0100
|
||||
Subject: [PATCH] Have configure respect the AR variable instead of setting it
|
||||
to "ar"
|
||||
|
||||
---
|
||||
configure.ac | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index bb2c69de..6e41d68e 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -66,6 +66,7 @@ AC_PROG_INSTALL
|
||||
AC_PROG_LN_S
|
||||
AC_PROG_MAKE_SET
|
||||
AC_PROG_RANLIB
|
||||
+AM_PROG_AR
|
||||
AM_PROG_CC_C_O
|
||||
# AC_PATH_TOOL(OBJCOPY, objcopy)
|
||||
AC_PATH_PROG([MSGFMT], [msgfmt], [not found])
|
||||
--
|
||||
2.32.0
|
||||
|
@ -0,0 +1,43 @@
|
||||
From c5b02df4598c5fbe7a034b67ee06c506abeb3828 Mon Sep 17 00:00:00 2001
|
||||
From: James Le Cuirot <chewi@gentoo.org>
|
||||
Date: Mon, 18 Oct 2021 10:22:09 +0100
|
||||
Subject: [PATCH] Don't assume RTLD_DEEPBIND is always present on Linux
|
||||
|
||||
It's not supported by musl.
|
||||
---
|
||||
configure.ac | 5 +++++
|
||||
src/dlopen.cpp | 2 +-
|
||||
2 files changed, 6 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 6e41d68e..2cac2dac 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -655,6 +655,11 @@ AC_CHECK_FUNCS([gettimeofday])
|
||||
AC_CHECK_DECLS([CLOCK_MONOTONIC], [], [], [#include <time.h>])
|
||||
|
||||
|
||||
+# RTLD_DEEPBIND is not supported by all C libraries.
|
||||
+
|
||||
+AC_CHECK_DECLS([RTLD_DEEPBIND], [], [], [#include <dlfcn.h>])
|
||||
+
|
||||
+
|
||||
# Check for POSIX support.
|
||||
|
||||
AS_CASE([$host_os],
|
||||
diff --git a/src/dlopen.cpp b/src/dlopen.cpp
|
||||
index f79c401b..14edbc02 100644
|
||||
--- a/src/dlopen.cpp
|
||||
+++ b/src/dlopen.cpp
|
||||
@@ -22,7 +22,7 @@ UAE_DLHANDLE uae_dlopen(const TCHAR *path)
|
||||
}
|
||||
#ifdef _WIN32
|
||||
result = LoadLibrary(path);
|
||||
-#elif defined(LINUX)
|
||||
+#elif HAVE_DECL_RTLD_DEEPBIND == 1
|
||||
result = dlopen(path, RTLD_NOW | RTLD_DEEPBIND);
|
||||
#else
|
||||
result = dlopen(path, RTLD_NOW);
|
||||
--
|
||||
2.32.0
|
||||
|
@ -1,2 +1,2 @@
|
||||
DIST slirp4netns-1.1.8.tar.gz 58022 BLAKE2B cb65af6a5298411c158dd3da8160f8e4999ce5cb6bafc85f233d4d64a58c545ff7e9db21501f718ce7990d2497a6960853ecb9ff548859b1be19f3d74e86610b SHA512 28b2dd73cfd0a0fc71338c55a7f4ae448456620a0d27eb1e7c79f2d58da2a90f2f9af363c9abf5148d4d6435f69ea26809e5f20721fec5daf4c9897bb29c3547
|
||||
DIST slirp4netns-1.1.12.tar.gz 60223 BLAKE2B 2bd4ed6cded075a151fec0e6b2222b0a72f2027d702cd3e2760ab8c811e375ea5becfeb32ccf71f4b41a257b9e7f32852d6d805912ad950da3364e240d191674 SHA512 82584e40079c2a7730c098f2a2406dc042498f7d50cc9ad8404acf3bb3a50c6969737be531d64b2eca6ba86a968bb5bfea9ad10eba4979cc40a5da5c9745ebdb
|
||||
DIST slirp4netns-1.1.9.tar.gz 58951 BLAKE2B e4fde408b3cd55dec0cca495c58936ec32c6201a0fe63c1a9fc9502ac41da615f92271d5fb365475f6864dd3c195097c81f01268b1b8d10d0f888c4e154cac34 SHA512 6471bf2b2eff9bd3ef037de986ab612f20bfce7a52bfd2b1b434d0606a3d2e6170b3fc43b168c8cc6f56ffb82f8361f21a26522ac1092c71f6e694a9588d5854
|
||||
|
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST eselect-java-0.4.2.tar.bz2 13782 BLAKE2B 10fd7faa3759f5b0d52c04bcd5a9f1c438814f4b477c12d2f0843c146d10cd8f7db43594ca4dc29de85bc33864fe1b205c69f9d2dc10c739ca1d50071fac6aad SHA512 dbb9ff873cf3073f60ba783e32b5a75c88114f790643d4a898db5429d04452f64cc5757a1ec2fb7c33beee1fc4509abeb7016f112c2bc75543a4250a85cb19cb
|
||||
DIST eselect-java-0.4.3.tar.bz2 13799 BLAKE2B 353035ef1c0b3e1cd79021c9198bedf29fdcb3f13fdfb2e5a8384796f2a48236d671f07d7657409273dd1f52e37272d91383d2a14d64ed0cedb686a8e277b009 SHA512 40b10768f00f03c49e1b60aab615658ac1d986444aaf487ca74f7c14edb5dce62d85fc3ce049e857d0ec2eaea496afa17c45de59e7179331f112eb51cbe451e5
|
||||
|
@ -0,0 +1,37 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools
|
||||
|
||||
DESCRIPTION="A set of eselect modules for Java"
|
||||
HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Java"
|
||||
SRC_URI="https://gitweb.gentoo.org/proj/${PN}.git/snapshot/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
|
||||
RDEPEND="
|
||||
!app-eselect/eselect-maven
|
||||
app-admin/eselect"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
local REMOVED=0
|
||||
|
||||
rm -v "${EROOT}"/usr/lib*/nsbrowser/plugins/javaplugin.so 2>/dev/null && REMOVED=1
|
||||
rm -v "${EROOT}"/etc/java-config-2/current-icedtea-web-vm 2>/dev/null && REMOVED=1
|
||||
|
||||
if [[ ${REMOVED} = 1 ]]; then
|
||||
elog "The eselect java-nsplugin module has been removed and your configuration"
|
||||
elog "has been cleaned up. From now on, you may only install either Oracle or"
|
||||
elog "IcedTea's plugin but not both. Note you can use IcedTea's plugin with an"
|
||||
elog "Oracle VM. See the README installed with icedtea-web for more details."
|
||||
fi
|
||||
}
|
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST ibus-chewing-1.6.1_p20210117.tar.gz 112715 BLAKE2B 80279a40c8733fc8e9f43b09cf825bea53442a6572d7863bf7d8faf06765fcb3609c71b9087551c6b2d35b268b2585f6e4c019f15ccc08c8f91bc3a14427ad57 SHA512 979f58d3b32ec22051d32c7425867761eea8e13eb9dc900975e3986bb7b3064883474267731c32f79c96d2029da0415dba8d5ed7ae3645f04c3fed44dbe25bd6
|
||||
DIST ibus-chewing-gob2.patch.xz 11760 BLAKE2B 929c6f09ddc22efa47eb53fd9bd5833a5a5105e9e8c6251009699548b4b3a1bf124f335f9d963c42efe00a9f9276f4df303a087632d894237ee3f69f5c08b74e SHA512 4317f5e807d6114f9d1057421db9c032670578ca83898c7495a27bf76aaa0fee88649a5df9f16df74e7961129cfe2029eda66dcea9407263344add7670de088c
|
||||
|
@ -1,2 +1,3 @@
|
||||
DIST ibus-unikey-0.6.1-gcc6.patch 31686 BLAKE2B 5d04ba5e66b1a128a04d23e73e20a8e6a269240a07604e71f3e232e0087f0a47d9a4ff6aeaa10a001c5be9b113d8cdc2a917ecc5084d576d6f918b4c699f2ab3 SHA512 9e1b172a904076ba817c7bab80cbbf7d736c078d3ea285cb946be23552ff0f571ca8e0187cac4e5bfecc2b0032512d6f09af4435056d6b653a3648d07356d9b2
|
||||
DIST ibus-unikey-0.6.1.tar.gz 516250 BLAKE2B edb5e46df983fe54ce84f778a23814ae946c6ace772d262a06f473013b84d87d3b1293e7faa62f070763ea837eccc08dfde51cf4b23353e84ac1ceca79a44d80 SHA512 f8d519802d9b304cdaebfcee3f9fef5f17756cde48aa48b9dd357d714e2eaaba0df8f91218b658fdd1d85343804e054b7987caff2734913b29dc76263c30d4e6
|
||||
DIST ibus-unikey-0.7.0_beta1.tar.gz 90086 BLAKE2B 450968ce10d5a455a9014cbd2cd9e6cbfbf559ae354dca8ca02b3a010edba4ff56caef7d79d5d80becbc51436e2192a8f9be5e936b606bae8ac65d003431188f SHA512 5e0bc188fe720014071c1c563c7bd3e92bc9e00d063c5c0647a9277fe3e05cb6c00a0aabb33e44ac5d31274f0fb03f495107195432bd7b0a89948ed3ba43d363
|
||||
|
@ -0,0 +1,27 @@
|
||||
--- a/setup/Makefile.am
|
||||
+++ b/setup/Makefile.am
|
||||
@@ -34,7 +34,8 @@
|
||||
|
||||
ibus_setup_unikey_LDFLAGS = \
|
||||
@IBUS_LIBS@ \
|
||||
- @GTK_LIBS@ \
|
||||
+ @GTK_LIBS@
|
||||
+
|
||||
+ibus_setup_unikey_LDADD = \
|
||||
$(top_builddir)/ukengine/libunikey-ibus.la \
|
||||
$(top_builddir)/src/ibus_engine_unikey-utils.o
|
||||
-
|
||||
--- a/src/Makefile.am
|
||||
+++ b/src/Makefile.am
|
||||
@@ -25,8 +25,9 @@
|
||||
|
||||
ibus_engine_unikey_LDFLAGS = \
|
||||
@IBUS_LIBS@ \
|
||||
- @X11_LIBS@ \
|
||||
- $(top_builddir)/ukengine/libunikey-ibus.la
|
||||
+ @X11_LIBS@
|
||||
+
|
||||
+ibus_engine_unikey_LDADD = $(top_builddir)/ukengine/libunikey-ibus.la
|
||||
|
||||
component_DATA = unikey.xml
|
||||
|
@ -1,35 +1,41 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
EAPI="7"
|
||||
|
||||
inherit autotools
|
||||
|
||||
DESCRIPTION="Vietnamese UniKey engine for IBus"
|
||||
HOMEPAGE="https://github.com/mrlequoctuan/ibus-unikey"
|
||||
HOMEPAGE="https://github.com/vn-input/ibus-unikey"
|
||||
SRC_URI="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/${PN}/${P}.tar.gz
|
||||
https://dev.gentoo.org/~dlan/distfiles/${P}-gcc6.patch"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="+gtk gtk2 nls"
|
||||
REQUIRED_USE="gtk2? ( gtk )"
|
||||
IUSE="nls"
|
||||
|
||||
RDEPEND="app-i18n/ibus
|
||||
x11-libs/libX11
|
||||
gtk? (
|
||||
gtk2? ( x11-libs/gtk+:2 )
|
||||
!gtk2? ( x11-libs/gtk+:3 )
|
||||
)
|
||||
x11-libs/gtk+:3
|
||||
nls? ( virtual/libintl )"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="virtual/pkgconfig
|
||||
dev-util/intltool
|
||||
nls? ( sys-devel/gettext )"
|
||||
|
||||
PATCHES=( "${DISTDIR}"/${P}-gcc6.patch )
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-slibtool.patch
|
||||
"${DISTDIR}"/${P}-gcc6.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_enable nls) \
|
||||
--with-gtk-version=$(usex gtk2 3 2)
|
||||
--with-gtk-version=3
|
||||
}
|
||||
|
@ -0,0 +1,42 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
inherit cmake gnome2-utils
|
||||
|
||||
DESCRIPTION="Vietnamese UniKey engine for IBus"
|
||||
HOMEPAGE="https://github.com/vn-input/ibus-unikey"
|
||||
SRC_URI="https://github.com/vn-input/${PN}/archive/${PV/_/-}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="app-i18n/ibus
|
||||
x11-libs/gtk+:3
|
||||
virtual/libintl"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="virtual/pkgconfig
|
||||
sys-devel/gettext"
|
||||
S="${WORKDIR}/${P/_/-}"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DGSETTINGS_COMPILE=OFF
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
gnome2_schemas_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnome2_schemas_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_schemas_update
|
||||
}
|
@ -1,18 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>cjk@gentoo.org</email>
|
||||
<name>Cjk</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
The UniKey engine for IBus. It provides a Vietnamese input method using
|
||||
UniKey. Support via forum at: http://forum.ubuntu-vn.com/viewforum.php?f=85
|
||||
</longdescription>
|
||||
<use>
|
||||
<flag name="gtk2">Enable support for <pkg>x11-libs/gtk+</pkg>:2</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="github">mrlequoctuan/ibus-unikey</remote-id>
|
||||
</upstream>
|
||||
<maintainer type="project">
|
||||
<email>cjk@gentoo.org</email>
|
||||
<name>Cjk</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
The UniKey engine for IBus. It provides a Vietnamese input method using
|
||||
UniKey. Support via forum at: http://forum.ubuntu-vn.com/viewforum.php?f=85
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="github">vn-input/ibus-unikey</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
|
Binary file not shown.
@ -1,61 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit xdg cmake
|
||||
|
||||
DESCRIPTION="Corsair K65/K70/K95 Driver"
|
||||
HOMEPAGE="https://github.com/ckb-next/ckb-next"
|
||||
SRC_URI="https://github.com/ckb-next/ckb-next/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="systemd"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/libdbusmenu-qt
|
||||
dev-libs/quazip:0=
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtdbus:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtnetwork:5
|
||||
dev-qt/qtwidgets:5
|
||||
dev-qt/qtx11extras:5
|
||||
media-sound/pulseaudio
|
||||
virtual/libudev:=
|
||||
x11-libs/libX11
|
||||
x11-libs/libxcb:=
|
||||
x11-libs/xcb-util-wm"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="dev-qt/linguist-tools:5"
|
||||
|
||||
S="${WORKDIR}/${PN}-next-${PV}"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DDISABLE_UPDATER=yes
|
||||
-DFORCE_INIT_SYSTEM=$(usex systemd systemd openrc)
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
dodoc CHANGELOG.md
|
||||
|
||||
newinitd "${FILESDIR}"/ckb.initd ckb-daemon
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -z "${REPLACING_VERSIONS}" ]]; then
|
||||
elog "The ckb daemon will have to be started before use:"
|
||||
elog
|
||||
if use systemd ; then
|
||||
elog "# systemctl start ckb-next-daemon"
|
||||
else
|
||||
elog "# rc-service ckb start"
|
||||
fi
|
||||
fi
|
||||
}
|
Binary file not shown.
@ -0,0 +1,57 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit meson virtualx xdg
|
||||
|
||||
DESCRIPTION="A highly customizable and functional document viewer"
|
||||
HOMEPAGE="https://pwmt.org/projects/zathura/"
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://git.pwmt.org/pwmt/${PN}.git"
|
||||
EGIT_BRANCH="develop"
|
||||
else
|
||||
SRC_URI="https://github.com/pwmt/zathura/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm ~riscv ~x86 ~amd64-linux ~x86-linux"
|
||||
fi
|
||||
|
||||
LICENSE="ZLIB"
|
||||
SLOT="0"
|
||||
IUSE="doc +magic seccomp sqlite synctex test"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
DEPEND=">=dev-libs/girara-0.3.6
|
||||
>=dev-libs/glib-2.50:2
|
||||
>=sys-devel/gettext-0.19.8
|
||||
x11-libs/cairo
|
||||
>=x11-libs/gtk+-3.22:3
|
||||
magic? ( sys-apps/file )
|
||||
seccomp? ( sys-libs/libseccomp )
|
||||
sqlite? ( >=dev-db/sqlite-3.5.9:3 )
|
||||
synctex? ( app-text/texlive-core )"
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
BDEPEND="doc? ( dev-python/sphinx )
|
||||
test? ( dev-libs/appstream-glib
|
||||
dev-libs/check )
|
||||
virtual/pkgconfig"
|
||||
|
||||
src_configure() {
|
||||
local emesonargs=(
|
||||
-Dconvert-icon=disabled
|
||||
-Dmagic=$(usex magic enabled disabled)
|
||||
-Dmanpages=$(usex doc enabled disabled)
|
||||
-Dseccomp=$(usex seccomp enabled disabled)
|
||||
-Dsqlite=$(usex sqlite enabled disabled)
|
||||
-Dsynctex=$(usex synctex enabled disabled)
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
src_test() {
|
||||
virtx meson_src_test
|
||||
}
|
Binary file not shown.
@ -1,47 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
USE_RUBY="ruby23 ruby24 ruby25 ruby26"
|
||||
|
||||
inherit vim-plugin ruby-ng
|
||||
|
||||
DESCRIPTION="vim plugin: fast file navigation for vim"
|
||||
HOMEPAGE="https://vim.sourceforge.io/scripts/script.php?script_id=3025 https://github.com/wincent/command-t"
|
||||
SRC_URI="https://github.com/wincent/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
LICENSE="BSD-2"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
VIM_PLUGIN_HELPFILES="${PN}.txt"
|
||||
|
||||
RDEPEND="|| ( app-editors/vim[ruby] app-editors/gvim[ruby] )"
|
||||
|
||||
all_ruby_prepare() {
|
||||
find "${S}" -name .gitignore -delete || die
|
||||
}
|
||||
|
||||
each_ruby_configure() {
|
||||
cd ruby/${PN}/ext/${PN} || die
|
||||
${RUBY} extconf.rb || die "extconf.rb failed"
|
||||
}
|
||||
|
||||
each_ruby_compile() {
|
||||
cd ruby/${PN}/ext/${PN} || die
|
||||
emake V=1
|
||||
rm *.o *.c *.h *.log extconf.rb depend Makefile || die
|
||||
}
|
||||
|
||||
each_ruby_install() {
|
||||
local sitelibdir=$(ruby_rbconfig_value "sitelibdir")
|
||||
insinto "${sitelibdir}"
|
||||
doins -r ruby/${PN}/{ext,lib}/*
|
||||
}
|
||||
|
||||
all_ruby_install() {
|
||||
rm -r appstream bin fixtures data ruby/${PN}/{ext,lib,*.gemspec} spec vendor || die
|
||||
|
||||
vim-plugin_src_install
|
||||
|
||||
# make sure scripts are executable
|
||||
chmod +x "${ED}"/usr/share/vim/vimfiles/ruby/${PN}/bin/* || die
|
||||
}
|
Binary file not shown.
@ -1,4 +1,3 @@
|
||||
DIST asio-1.10.8.tar.bz2 1270332 BLAKE2B 97e4a6a7c8b4562f10af1d122e9b08c12d567fd0447d1951a907f47f77832dcd42df4cb9b5b392feaaa2ea7c79d8bedfcf12e3052957ec012d8bb6b4d1347eb5 SHA512 d870686d2b19bec9925c311f2f0fd370e9797bbad252176a80a998f9c322ecd502b5081826105712e7caf87c03c3e6b70a0e219019e5bff46077d6e8c3c6db09
|
||||
DIST asio-1.17.0.tar.bz2 1694631 BLAKE2B 0463355eef1714604290be43247139ea0220c5614c3c280ccf6049b64a2bb920c9eb885cf5f00c7e007caf3b049fe5cd6589dad0cb23cda4994fd31c7ecd8102 SHA512 5978cbf452aff07d6d19a2e641824628f409ab74e2e1a964776dae4c586386149acea56e4c8aa1075b247d2ce566daad640c3bbd15e211df1f73fc7b02964353
|
||||
DIST asio-1.19.1.tar.bz2 1842955 BLAKE2B d60c1f98ad563eb7c1b163baac3a5560be1cd712e6b21dedc367b547d62725f22c96cea2ebb4dce1e37163a540ae24d65e9ebc37cde0046c043e83685b7d80c9 SHA512 af4501fbd6965ef2efb1f71cd703dec9bb65aaa62243649899469b711f9260936bbce7d261a6bb0db5ca47b7bccb89f72b219b19a249171c18d0a30fb40607e2
|
||||
DIST asio-1.19.2.tar.bz2 1842597 BLAKE2B b2236c33432984ab660eba4c93be32374bb49f688a1e6a0711d7bac322cc4a7f817db209278f216468c6a72b9d3dd564cf298e1f49f8098c3fd9aec7acd66eb7 SHA512 07f9c29d8f02090b4d4b6a1867bcc07a8e9f3388556dff787ca3ba143022eeb63bfac0b5bc264076fed4db3b2e5ec6b7ff0ebefde40ba4753c832032a72d54cc
|
||||
DIST asio-1.20.0.tar.bz2 1845826 BLAKE2B a768dc0b9ae380bef07d674507f7571d0bc47e182cdde10b24cee246814874dd7739c523b071dfede61a12059f52e04d7bbd309a03d93070bc1dd4640c253c19 SHA512 6421960abd2cf0c205cc50e86adfe492bca2870b486328b4825dc0cefc9c40cdc085516d474c23e15a73f4c108c0e69add5fab6dbe594a1e53636c5c3027e4c5
|
||||
|
@ -1,51 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DESCRIPTION="Asynchronous Network Library"
|
||||
HOMEPAGE="https://think-async.com https://github.com/chriskohlhoff/asio"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${PN}/${P}.tar.bz2"
|
||||
|
||||
LICENSE="Boost-1.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE="doc examples ssl test"
|
||||
RESTRICT="!test? ( test )"
|
||||
# test searches for libssl during ./configure, and REQUIRED_USE is easier than
|
||||
# patching configure to not search for it with USE=-ssl
|
||||
REQUIRED_USE="test? ( ssl )"
|
||||
|
||||
RDEPEND="dev-libs/boost:=
|
||||
ssl? (
|
||||
dev-libs/openssl:0=
|
||||
)"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
if ! use test; then
|
||||
# Don't build nor install any examples or unittests
|
||||
# since we don't have a script to run them
|
||||
cat > src/Makefile.in <<-EOF || die
|
||||
all:
|
||||
|
||||
install:
|
||||
|
||||
clean:
|
||||
EOF
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
use doc && local HTML_DOCS=( doc/. )
|
||||
default
|
||||
|
||||
if use examples; then
|
||||
# Get rid of the object files
|
||||
emake clean
|
||||
dodoc -r src/examples
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
fi
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
DIST nlohmann_json-3.10.0.tar.gz 7006504 BLAKE2B 2ccb2e50a46a8579b6a848f6fee35ad1ff11a1491157bdf5d343133f24d4468ddfabc4fe4e9909b47011d52b3604566d5d7e275f0731c8d91efd1e1b9c545ef2 SHA512 1531780110260ea4cd8fbe79d860f1ea46fa8377d520669f938ddb5f8a4b11fe550fc7d2d978a281d5ddcc511447d160a2f68c06583672496c57c6672a4036a1
|
||||
DIST nlohmann_json-3.10.2.tar.gz 7054440 BLAKE2B e7da213fb75d528b1f5425822f5b598e882f232a67670aaae2d8f89c76e72ee23fa3344d1acfef2b0338a6a423d17b231b7e047ff064c984c2ec7783b721a22c SHA512 9a399dfc8aab19c9fc12470e8087895b1c05d48a9bcc731b483d8670c361cffb2adc3ccced822b7f17255e88387a441d619c4e1f1afeb702d1d035ad24fe22ed
|
||||
DIST nlohmann_json-3.10.3.tar.gz 7061586 BLAKE2B 266dc441a88b36c2314d5fb85699b03ba054be0d620718c62949a5860d7678bc07aede206b353d7d25b81e8813c1ec1190db6d322ff2c5bbcbdab7a2f3dc4c59 SHA512 92d438e9c23480ebc3f335213c77b0872524530f1118f9bba269ac4ec500c485e18e5e774bd0cf3c428db2f344c39a42b98dcc7e83121be0adcee301e415a0ea
|
||||
DIST nlohmann_json-3.10.4.tar.gz 7062443 BLAKE2B 7f526d12c4ce8148c874c76d280090ef69ae3adf817b63758bbcc23ff9476e119ede90bebc397b9bb84b54012f057e3e010d643c595b4699a8ecd437a5a3f913 SHA512 f78592db6218165cbc74c10bcba40366f1bfea84405b7ee25fe97a056d5b7a15aeeb956d93296673928dcbd6e26ffcfb152f885b4a44d5d55751396ccf090835
|
||||
DIST nlohmann_json-3.9.1.tar.gz 6882818 BLAKE2B 97276dc2345ac2070ac2d30d0a2e1953bb2f6ecde437eaed87dad46c108daa4b21c662a047e7d4e7c180179df9e7dfb71f545f3e42b2528201630d9093539090 SHA512 e0eb4727bea993af984f832e069d03a21219befae0f24ee49e67a1144cf1e8428dcf2e37f683aedb8d14118545d5087f2b7d822a576944cef3e590a12be51642
|
||||
DIST nlohmann_json-testdata-3.0.0.tar.gz 112348454 BLAKE2B f0a47b41805bf1426f612e9a82efea2a3e5b1c15740c1c531d859e60dc5daeb85209b4fe363fd8fb84e3bbf01a2578c74538ba3e769726494047979f5a4d468d SHA512 d9af8419b837c592ec7519cd5772651c761078a9c43cf2a309cee55c323aee0df0c233fb58a07d5ee2e77492ac8b16398de234b387eae037a60e3c9ba5b08891
|
||||
|
Binary file not shown.
@ -0,0 +1,16 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
VERSION="OpenJDK ${PV}"
|
||||
JAVA_HOME="${EPREFIX}/usr/$(get_libdir)/${PN}-${SLOT}"
|
||||
JDK_HOME="${EPREFIX}/usr/$(get_libdir)/${PN}-${SLOT}"
|
||||
JAVAC="\${JAVA_HOME}/bin/javac"
|
||||
PATH="\${JAVA_HOME}/bin"
|
||||
ROOTPATH="\${JAVA_HOME}/bin"
|
||||
LDPATH="\${JAVA_HOME}/lib/:\${JAVA_HOME}/lib/server/"
|
||||
MANPATH=""
|
||||
PROVIDES_TYPE="JDK JRE"
|
||||
PROVIDES_VERSION="${SLOT}"
|
||||
BOOTCLASSPATH=""
|
||||
GENERATION="2"
|
||||
ENV_VARS="JAVA_HOME JDK_HOME JAVAC PATH ROOTPATH LDPATH MANPATH"
|
@ -0,0 +1,274 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit check-reqs eapi7-ver flag-o-matic java-pkg-2 java-vm-2 multiprocessing pax-utils toolchain-funcs
|
||||
|
||||
MY_PV="${PV//_p/+}"
|
||||
SLOT="$(ver_cut 1)"
|
||||
|
||||
DESCRIPTION="Open source implementation of the Java programming language"
|
||||
HOMEPAGE="https://openjdk.java.net"
|
||||
SRC_URI="https://github.com/openjdk/jdk${SLOT}u/archive/refs/tags/jdk-${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64"
|
||||
|
||||
IUSE="alsa cups debug doc examples gentoo-vm headless-awt javafx +jbootstrap +pch selinux source systemtap"
|
||||
|
||||
COMMON_DEPEND="
|
||||
media-libs/freetype:2=
|
||||
media-libs/giflib:0/7
|
||||
media-libs/harfbuzz:=
|
||||
media-libs/libpng:0=
|
||||
media-libs/lcms:2=
|
||||
sys-libs/zlib
|
||||
virtual/jpeg:0=
|
||||
systemtap? ( dev-util/systemtap )
|
||||
"
|
||||
|
||||
# Many libs are required to build, but not to run, make is possible to remove
|
||||
# by listing conditionally in RDEPEND unconditionally in DEPEND
|
||||
RDEPEND="
|
||||
${COMMON_DEPEND}
|
||||
>=sys-apps/baselayout-java-0.1.0-r1
|
||||
!headless-awt? (
|
||||
x11-libs/libX11
|
||||
x11-libs/libXext
|
||||
x11-libs/libXi
|
||||
x11-libs/libXrandr
|
||||
x11-libs/libXrender
|
||||
x11-libs/libXt
|
||||
x11-libs/libXtst
|
||||
)
|
||||
alsa? ( media-libs/alsa-lib )
|
||||
cups? ( net-print/cups )
|
||||
selinux? ( sec-policy/selinux-java )
|
||||
"
|
||||
|
||||
DEPEND="
|
||||
${COMMON_DEPEND}
|
||||
app-arch/zip
|
||||
media-libs/alsa-lib
|
||||
net-print/cups
|
||||
x11-base/xorg-proto
|
||||
x11-libs/libX11
|
||||
x11-libs/libXext
|
||||
x11-libs/libXi
|
||||
x11-libs/libXrandr
|
||||
x11-libs/libXrender
|
||||
x11-libs/libXt
|
||||
x11-libs/libXtst
|
||||
javafx? ( dev-java/openjfx:${SLOT}= )
|
||||
|| (
|
||||
dev-java/openjdk-bin:${SLOT}
|
||||
dev-java/openjdk:${SLOT}
|
||||
)
|
||||
"
|
||||
|
||||
REQUIRED_USE="javafx? ( alsa !headless-awt )"
|
||||
|
||||
S="${WORKDIR}/jdk${SLOT}u-jdk-${MY_PV//+/-}"
|
||||
|
||||
# The space required to build varies wildly depending on USE flags,
|
||||
# ranging from 2GB to 16GB. This function is certainly not exact but
|
||||
# should be close enough to be useful.
|
||||
openjdk_check_requirements() {
|
||||
local M
|
||||
M=2048
|
||||
M=$(( $(usex jbootstrap 2 1) * $M ))
|
||||
M=$(( $(usex debug 3 1) * $M ))
|
||||
M=$(( $(usex doc 320 0) + $(usex source 128 0) + 192 + $M ))
|
||||
|
||||
CHECKREQS_DISK_BUILD=${M}M check-reqs_pkg_${EBUILD_PHASE}
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
openjdk_check_requirements
|
||||
if [[ ${MERGE_TYPE} != binary ]]; then
|
||||
has ccache ${FEATURES} && die "FEATURES=ccache doesn't work with ${PN}, bug #677876"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
openjdk_check_requirements
|
||||
java-vm-2_pkg_setup
|
||||
|
||||
JAVA_PKG_WANT_BUILD_VM="openjdk-${SLOT} openjdk-bin-${SLOT}"
|
||||
JAVA_PKG_WANT_SOURCE="${SLOT}"
|
||||
JAVA_PKG_WANT_TARGET="${SLOT}"
|
||||
|
||||
# The nastiness below is necessary while the gentoo-vm USE flag is
|
||||
# masked. First we call java-pkg-2_pkg_setup if it looks like the
|
||||
# flag was unmasked against one of the possible build VMs. If not,
|
||||
# we try finding one of them in their expected locations. This would
|
||||
# have been slightly less messy if openjdk-bin had been installed to
|
||||
# /opt/${PN}-${SLOT} or if there was a mechanism to install a VM env
|
||||
# file but disable it so that it would not normally be selectable.
|
||||
|
||||
local vm
|
||||
for vm in ${JAVA_PKG_WANT_BUILD_VM}; do
|
||||
if [[ -d ${EPREFIX}/usr/lib/jvm/${vm} ]]; then
|
||||
java-pkg-2_pkg_setup
|
||||
return
|
||||
fi
|
||||
done
|
||||
|
||||
if has_version --host-root dev-java/openjdk:${SLOT}; then
|
||||
export JDK_HOME=${EPREFIX}/usr/$(get_libdir)/openjdk-${SLOT}
|
||||
else
|
||||
if [[ ${MERGE_TYPE} != "binary" ]]; then
|
||||
JDK_HOME=$(best_version --host-root dev-java/openjdk-bin:${SLOT})
|
||||
[[ -n ${JDK_HOME} ]] || die "Build VM not found!"
|
||||
JDK_HOME=${JDK_HOME#*/}
|
||||
JDK_HOME=${EPREFIX}/opt/${JDK_HOME%-r*}
|
||||
export JDK_HOME
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
chmod +x configure || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# Work around stack alignment issue, bug #647954. in case we ever have x86
|
||||
use x86 && append-flags -mincoming-stack-boundary=2
|
||||
|
||||
# Work around -fno-common ( GCC10 default ), bug #713180
|
||||
append-flags -fcommon
|
||||
|
||||
# Enabling full docs appears to break doc building. If not
|
||||
# explicitly disabled, the flag will get auto-enabled if pandoc and
|
||||
# graphviz are detected. pandoc has loads of dependencies anyway.
|
||||
|
||||
local myconf=(
|
||||
--disable-ccache
|
||||
--disable-warnings-as-errors
|
||||
--enable-full-docs=no
|
||||
--with-boot-jdk="${JDK_HOME}"
|
||||
--with-extra-cflags="${CFLAGS}"
|
||||
--with-extra-cxxflags="${CXXFLAGS}"
|
||||
--with-extra-ldflags="${LDFLAGS}"
|
||||
--with-freetype=system
|
||||
--with-giflib=system
|
||||
--with-harfbuzz=system
|
||||
--with-lcms=system
|
||||
--with-libjpeg=system
|
||||
--with-libpng=system
|
||||
--with-native-debug-symbols=$(usex debug internal none)
|
||||
--with-vendor-name="Gentoo"
|
||||
--with-vendor-url="https://gentoo.org"
|
||||
--with-vendor-bug-url="https://bugs.gentoo.org"
|
||||
--with-vendor-vm-bug-url="https://bugs.openjdk.java.net"
|
||||
--with-vendor-version-string="${PVR}"
|
||||
--with-version-pre=""
|
||||
--with-version-string="${PV%_p*}"
|
||||
--with-version-build="${PV#*_p}"
|
||||
--with-zlib=system
|
||||
--enable-dtrace=$(usex systemtap yes no)
|
||||
--enable-headless-only=$(usex headless-awt yes no)
|
||||
$(tc-is-clang && echo "--with-toolchain-type=clang")
|
||||
)
|
||||
|
||||
if use javafx; then
|
||||
local zip="${EPREFIX%/}/usr/$(get_libdir)/openjfx-${SLOT}/javafx-exports.zip"
|
||||
if [[ -r ${zip} ]]; then
|
||||
myconf+=( --with-import-modules="${zip}" )
|
||||
else
|
||||
die "${zip} not found or not readable"
|
||||
fi
|
||||
fi
|
||||
|
||||
# PaX breaks pch, bug #601016
|
||||
if use pch && ! host-is-pax; then
|
||||
myconf+=( --enable-precompiled-headers )
|
||||
else
|
||||
myconf+=( --disable-precompiled-headers )
|
||||
fi
|
||||
|
||||
(
|
||||
unset _JAVA_OPTIONS JAVA JAVA_TOOL_OPTIONS JAVAC XARGS
|
||||
CFLAGS= CXXFLAGS= LDFLAGS= \
|
||||
CONFIG_SITE=/dev/null \
|
||||
econf "${myconf[@]}"
|
||||
)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local myemakeargs=(
|
||||
JOBS=$(makeopts_jobs)
|
||||
LOG=debug
|
||||
CFLAGS_WARNINGS_ARE_ERRORS= # No -Werror
|
||||
$(usex doc docs '')
|
||||
$(usex jbootstrap bootcycle-images product-images)
|
||||
)
|
||||
emake "${myemakeargs[@]}" -j1 #nowarn
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local dest="/usr/$(get_libdir)/${PN}-${SLOT}"
|
||||
local ddest="${ED}${dest#/}"
|
||||
|
||||
cd "${S}"/build/*-release/images/jdk || die
|
||||
|
||||
# Create files used as storage for system preferences.
|
||||
mkdir .systemPrefs || die
|
||||
touch .systemPrefs/.system.lock || die
|
||||
touch .systemPrefs/.systemRootModFile || die
|
||||
|
||||
# Oracle and IcedTea have libjsoundalsa.so depending on
|
||||
# libasound.so.2 but OpenJDK only has libjsound.so. Weird.
|
||||
if ! use alsa ; then
|
||||
rm -v lib/libjsound.* || die
|
||||
fi
|
||||
|
||||
if ! use examples ; then
|
||||
rm -vr demo/ || die
|
||||
fi
|
||||
|
||||
if ! use source ; then
|
||||
rm -v lib/src.zip || die
|
||||
fi
|
||||
|
||||
rm -v lib/security/cacerts || die
|
||||
|
||||
dodir "${dest}"
|
||||
cp -pPR * "${ddest}" || die
|
||||
|
||||
dosym ../../../../../etc/ssl/certs/java/cacerts "${dest}"/lib/security/cacerts
|
||||
|
||||
# must be done before running itself
|
||||
java-vm_set-pax-markings "${ddest}"
|
||||
|
||||
einfo "Creating the Class Data Sharing archives and disabling usage tracking"
|
||||
"${ddest}/bin/java" -server -Xshare:dump -Djdk.disableLastUsageTracking || die
|
||||
|
||||
use gentoo-vm && java-vm_install-env "${FILESDIR}"/${PN}-${SLOT}.env.sh
|
||||
java-vm_revdep-mask
|
||||
java-vm_sandbox-predict /dev/random /proc/self/coredump_filter
|
||||
|
||||
if use doc ; then
|
||||
docinto html
|
||||
dodoc -r "${S}"/build/*-release/images/docs/*
|
||||
dosym ../../../usr/share/doc/"${PF}" /usr/share/doc/"${PN}-${SLOT}"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
java-vm-2_pkg_postinst
|
||||
|
||||
if use gentoo-vm ; then
|
||||
ewarn "WARNING! You have enabled the gentoo-vm USE flag, making this JDK"
|
||||
ewarn "recognised by the system. This will almost certainly break"
|
||||
ewarn "many java ebuilds as they are not ready for openjdk-${SLOT}"
|
||||
else
|
||||
ewarn "The experimental gentoo-vm USE flag has not been enabled so this JDK"
|
||||
ewarn "will not be recognised by the system. For example, simply calling"
|
||||
ewarn "\"java\" will launch a different JVM. This is necessary until Gentoo"
|
||||
ewarn "fully supports Java ${SLOT}. This JDK must therefore be invoked using its"
|
||||
ewarn "absolute location under ${EPREFIX}/usr/$(get_libdir)/${PN}-${SLOT}."
|
||||
fi
|
||||
}
|
@ -1,10 +1,7 @@
|
||||
DIST apache-tomcat-10.0.10-src.tar.gz 6032784 BLAKE2B f73d2b0d549d773a13a8adcc76a87713f0f146d80bca2d2ba633ce3145d69505fb7172eac0f04bb6d10fd9f9abb0cbbca7fb6d5b4608e2f6f07df88e5e661d70 SHA512 6241a62d01dcbf37e4745803c77dfbc4307d43c884e8e4c78c33b10d45a9b42e0103ef94acaff19790fa4876bdb369e9aca4974a4dae2622cedfa56b3fbe0658
|
||||
DIST apache-tomcat-10.0.12-src.tar.gz 6066701 BLAKE2B 24acb9e10de923c9d6443c956cd6e6c5b5463f4f6af72d89445c7d635731449afc9b7050c95af3cbd3653168c073840f02472dd01bde65c1bcbdfcba41814117 SHA512 753d36edb5ce873e346856305d6a7f40d762ae8fb9ecd20406ed9ff400e9e1261f66d4549fc98f20a05b01136ff4beaacb462147e84a306858e2acc7fcd98d5b
|
||||
DIST apache-tomcat-4.1.40-src.tar.gz 3709719 BLAKE2B f7ca82052c1148a5c384fcbc3871beeddccdb4cfed05ba176581ebb50f52ba867bed8dbc500e97b7348a3a87b9693fb73eb81209df4f31e8c1ced7e30a6af30b SHA512 c455fa3da9da8fcbf1d54ae5dce808f8a4520ccafd627a6b2d1b003c37e8395d8b2a55d5471bf6c196549d082715862b3b8958aef88613293a07fc0160aa5c6e
|
||||
DIST apache-tomcat-5.5.36-src.tar.gz 3743113 BLAKE2B dbfcfd123a23b0ceb9f1fdd936e42324ea8b10cf327a1d0abf1703006535859c7122690a08b5ec27b86b526cc7709a7199b4f35f123538ff11f23f3b489358f3 SHA512 845636b5b992fbbb7d657d192afbab1e6a924bfd0c71b025cf22776eb4527d92d63f9b3f33475d4349a0df4cebd984ba3776eedd7482b820abdea909e90a97b7
|
||||
DIST apache-tomcat-6.0.53-src.tar.gz 3522914 BLAKE2B 054b097c16861abaa8bdbeba713b49bc1dfcff573bb3f4bd0ff5807c33a2a0fb991af618f6e11e5b3ce3fa55c589fc6569342cab5d5a00349c79bc7061d81e40 SHA512 915a0a18f5c2883625c9441eed6465973eff4f6bf41e08e925c7edaea89ef8f6ee9476d3e06fa38228d4bcb4decaf53e3a7bdb7ec7e899e6250db3e12a9f5f2c
|
||||
DIST apache-tomcat-7.0.109-src.tar.gz 5314401 BLAKE2B 56583caea6879bf8ca5cc02a886de3d7af413032f88d367653e709dc1c8f590e78620c788317bbff4b6e65dd3e242cc26863164ac8e7c87334a22636f3ed0703 SHA512 ecf9c0bee0e3e1aa24f299fe633705c5a2f6aa264d9e4968cfc96aa5d0a425c2b0ff07765a8b6c67221766733bdfaed6e6c6377a8d0870d889e7063ce90a46ce
|
||||
DIST apache-tomcat-8.5.70-src.tar.gz 5939095 BLAKE2B 9a2bf14c9b9f551af15ebf2b95ffede140b3accdb9fc1b9836c980169b597e8c796d5aa59df28cd42ccff67dbda83c7b7ced8b0ac2954a40214a0767ad8b90ce SHA512 fe752c4196d12496a3dcb4e6b59df30da10cd52b8642f9273de7158dcf6dd16d2443675744db0033e6dc5c1cf0aeaf0125c9921e1e36ceb8dea9ba58328a4133
|
||||
DIST apache-tomcat-8.5.72-src.tar.gz 5954383 BLAKE2B ddf342e3bb604ffd5d70e9b822a110654434aac0da0bd28e8649a0ce312706c202f48077ee18f43398d91bc000ea5287d87e0fd2bda9d2c8493e1b6b012945fc SHA512 69c27076d193a874416c83a1dcb80f71af78cb201b0990795d389f0a389e0537749b62256408c6249031abd2e62f268c8b451328284dbbff50a457937cfa6f6d
|
||||
DIST apache-tomcat-9.0.52-src.tar.gz 6110883 BLAKE2B 8d2d4e3640fdc43a3b20d9722a73a8756de7ad71b2f05e8b2090bc712811cfcf6f8e79eeded039291b9306d1c49aec46fe8c7e347aab10384ca293894984ab27 SHA512 8b1817c171fa49e5568fb24a72b6b7533c5eb3ddd6d232b78e67186574f70bb311bbef9a58af047caa14bdae57c27c6a3df721c4583072740fec0a3863bb068d
|
||||
DIST apache-tomcat-9.0.54-src.tar.gz 6132613 BLAKE2B 5d37359ac9cac2a1387675a095aa0bea3e2bc74740d761a13fb2313aaca8ddb14f10922a8edc0932c9139c04b4df7f5735b067a71ac75ebbfe16ff6066311993 SHA512 e9d532a966aa8e7c2fcf28e4ecb0a618a8be4dacf8dc579a407483de86ef969383e3662fba07be629bfb8fbd85c041a5a2f1dd8875cc309b69a147b37c58974b
|
||||
|
@ -1,98 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
JAVA_PKG_IUSE="source"
|
||||
|
||||
inherit java-pkg-2 java-pkg-simple
|
||||
|
||||
MY_A="apache-${PN}-${PV}-src"
|
||||
MY_P="${MY_A/-servlet-api/}"
|
||||
DESCRIPTION="Tomcat's Servlet API 5.0/JSP API 3.0/EL API 4.0 implementation"
|
||||
HOMEPAGE="https://tomcat.apache.org/"
|
||||
SRC_URI="mirror://apache/tomcat/tomcat-10/v${PV}/src/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="5.0"
|
||||
KEYWORDS="amd64 ~arm arm64 x86 ~amd64-linux ~x86-linux ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=">=virtual/jdk-1.8:*"
|
||||
RDEPEND=">=virtual/jre-1.8:*"
|
||||
|
||||
S="${WORKDIR}/${MY_P}/"
|
||||
|
||||
JAVA_TEST_SRC_DIR="src/test"
|
||||
|
||||
SERVLET_API_JAR="servlet-api.jar"
|
||||
SERVLET_API_SRC="src/main/servlet-api"
|
||||
SERVLET_API_RESOURCES="src/resources/servlet-api"
|
||||
EL_API_JAR="el-api.jar"
|
||||
EL_API_SRC="src/main/el-api"
|
||||
EL_API_RESOURCES="src/resources/el-api"
|
||||
JSP_API_JAR="jsp-api.jar"
|
||||
JSP_API_SRC="src/main/jsp-api"
|
||||
JSP_API_RESOURCES="src/resources/jsp-api"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# The sources and also resources are mixed together so we first give it a structure to make it easier to compile and package
|
||||
mkdir -p ${SERVLET_API_SRC} ${SERVLET_API_RESOURCES} \
|
||||
${EL_API_SRC} ${EL_API_RESOURCES} \
|
||||
${JSP_API_SRC}/jakarta/servlet ${JSP_API_RESOURCES} \
|
||||
${JAVA_TEST_SRC_DIR} || die "Failed to create source directory"
|
||||
|
||||
pushd java || die "Failed to cd to java dir"
|
||||
|
||||
cp --parents -R jakarta/servlet "${S}/${SERVLET_API_SRC}/" || die "Failed to copy servlet-api sources"
|
||||
mv "${S}/${SERVLET_API_SRC}/jakarta/servlet/jsp" "${S}/${JSP_API_SRC}/jakarta/servlet" || die "Failed to copy jsp-api sources"
|
||||
cp --parents -R jakarta/el "${S}/${EL_API_SRC}/" || die "Failed to copy el-api sources"
|
||||
|
||||
popd
|
||||
|
||||
for file in $(find src -type f | grep -vE "\.java$"); do
|
||||
target_dir=$(dirname $file | sed "s%src/main/%src/resources/%g")
|
||||
mkdir -p ${target_dir} || die "Failed to create resource directory"
|
||||
mv $file ${target_dir} || die "Failed to move resource file"
|
||||
done
|
||||
|
||||
mv test/jakarta ${JAVA_TEST_SRC_DIR} || die "Failed to copy test sources"
|
||||
|
||||
java-pkg-2_src_prepare
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
JAVA_SRC_DIR="${SERVLET_API_SRC}"
|
||||
JAVA_RESOURCE_DIRS="${SERVLET_API_RESOURCES}"
|
||||
JAVA_JAR_FILENAME="${SERVLET_API_JAR}"
|
||||
java-pkg-simple_src_compile
|
||||
rm -fr target || die "Failed to remove compiled files"
|
||||
|
||||
JAVA_SRC_DIR="${EL_API_SRC}"
|
||||
JAVA_RESOURCE_DIRS="${EL_API_RESOURCES}"
|
||||
JAVA_JAR_FILENAME="${EL_API_JAR}"
|
||||
java-pkg-simple_src_compile
|
||||
rm -fr target || die "Failed to remove compiled files"
|
||||
|
||||
JAVA_SRC_DIR="${JSP_API_SRC}"
|
||||
JAVA_RESOURCE_DIRS="${JSP_API_RESOURCES}"
|
||||
JAVA_JAR_FILENAME="${JSP_API_JAR}"
|
||||
JAVA_GENTOO_CLASSPATH_EXTRA="servlet-api.jar:el-api.jar"
|
||||
java-pkg-simple_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
JAVA_SRC_DIR="${SERVLET_API_SRC}"
|
||||
JAVA_JAR_FILENAME="${SERVLET_API_JAR}"
|
||||
java-pkg-simple_src_install
|
||||
|
||||
JAVA_SRC_DIR="${EL_API_SRC}"
|
||||
JAVA_JAR_FILENAME="${EL_API_JAR}"
|
||||
java-pkg-simple_src_install
|
||||
|
||||
JAVA_SRC_DIR="${JSP_API_SRC}"
|
||||
JAVA_JAR_FILENAME="${JSP_API_JAR}"
|
||||
java-pkg-simple_src_install
|
||||
}
|
@ -1,99 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
JAVA_PKG_IUSE="source"
|
||||
|
||||
inherit java-pkg-2 java-pkg-simple
|
||||
|
||||
MY_A="apache-${P}-src"
|
||||
MY_P="${MY_A/-servlet-api/}"
|
||||
DESCRIPTION="Tomcat's Servlet API 3.1/JSP API 2.3/EL API 3.0 implementation"
|
||||
HOMEPAGE="https://tomcat.apache.org/"
|
||||
SRC_URI="mirror://apache/tomcat/tomcat-8/v${PV}/src/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="3.1"
|
||||
KEYWORDS="amd64 ~arm arm64 ppc64 x86 ~amd64-linux ~x86-linux ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=">=virtual/jdk-1.8:*"
|
||||
RDEPEND=">=virtual/jre-1.8:*"
|
||||
|
||||
S="${WORKDIR}/${MY_P}/"
|
||||
|
||||
JAVA_TEST_SRC_DIR="src/test"
|
||||
|
||||
SERVLET_API_JAR="servlet-api.jar"
|
||||
SERVLET_API_SRC="src/main/servlet-api"
|
||||
SERVLET_API_RESOURCES="src/resources/servlet-api"
|
||||
EL_API_JAR="el-api.jar"
|
||||
EL_API_SRC="src/main/el-api"
|
||||
EL_API_RESOURCES="src/resources/el-api"
|
||||
JSP_API_JAR="jsp-api.jar"
|
||||
JSP_API_SRC="src/main/jsp-api"
|
||||
JSP_API_RESOURCES="src/resources/jsp-api"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# The sources and also resources are mixed together so we first give it a structure to make it easier to compila and package
|
||||
|
||||
mkdir -p ${SERVLET_API_SRC} ${SERVLET_API_RESOURCES} \
|
||||
${EL_API_SRC} ${EL_API_RESOURCES} \
|
||||
${JSP_API_SRC}/javax/servlet ${JSP_API_RESOURCES} \
|
||||
${JAVA_TEST_SRC_DIR} || die "Failed to create source directory"
|
||||
|
||||
pushd java || die "Failed to cd to java dir"
|
||||
|
||||
cp --parents -R javax/servlet "${S}/${SERVLET_API_SRC}/" || die "Failed to copy servlet-api sources"
|
||||
mv "${S}/${SERVLET_API_SRC}/javax/servlet/jsp" "${S}/${JSP_API_SRC}/javax/servlet" || die "Failed to copy jsp-api sources"
|
||||
cp --parents -R javax/el "${S}/${EL_API_SRC}/" || die "Failed to copy el-api sources"
|
||||
|
||||
popd
|
||||
|
||||
for file in $(find src -type f | grep -vE "\.java$"); do
|
||||
target_dir=$(dirname $file | sed "s%src/main/%src/resources/%g")
|
||||
mkdir -p ${target_dir} || die "Failed to create resource directory"
|
||||
mv $file ${target_dir} || die "Failed to move resource file"
|
||||
done
|
||||
|
||||
mv test/javax ${JAVA_TEST_SRC_DIR} || die "Failed to copy test sources"
|
||||
|
||||
java-pkg-2_src_prepare
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
JAVA_SRC_DIR="${SERVLET_API_SRC}"
|
||||
JAVA_RESOURCE_DIRS="${SERVLET_API_RESOURCES}"
|
||||
JAVA_JAR_FILENAME="${SERVLET_API_JAR}"
|
||||
java-pkg-simple_src_compile
|
||||
rm -fr target || die "Failed to remove compiled files"
|
||||
|
||||
JAVA_SRC_DIR="${EL_API_SRC}"
|
||||
JAVA_RESOURCE_DIRS="${EL_API_RESOURCES}"
|
||||
JAVA_JAR_FILENAME="${EL_API_JAR}"
|
||||
java-pkg-simple_src_compile
|
||||
rm -fr target || die "Failed to remove compiled files"
|
||||
|
||||
JAVA_SRC_DIR="${JSP_API_SRC}"
|
||||
JAVA_RESOURCE_DIRS="${JSP_API_RESOURCES}"
|
||||
JAVA_JAR_FILENAME="${JSP_API_JAR}"
|
||||
JAVA_GENTOO_CLASSPATH_EXTRA="servlet-api.jar:el-api.jar"
|
||||
java-pkg-simple_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
JAVA_SRC_DIR="${SERVLET_API_SRC}"
|
||||
JAVA_JAR_FILENAME="${SERVLET_API_JAR}"
|
||||
java-pkg-simple_src_install
|
||||
|
||||
JAVA_SRC_DIR="${EL_API_SRC}"
|
||||
JAVA_JAR_FILENAME="${EL_API_JAR}"
|
||||
java-pkg-simple_src_install
|
||||
|
||||
JAVA_SRC_DIR="${JSP_API_SRC}"
|
||||
JAVA_JAR_FILENAME="${JSP_API_JAR}"
|
||||
java-pkg-simple_src_install
|
||||
}
|
@ -1,99 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
JAVA_PKG_IUSE="source"
|
||||
|
||||
inherit java-pkg-2 java-pkg-simple
|
||||
|
||||
MY_A="apache-${PN}-${PV}-src"
|
||||
MY_P="${MY_A/-servlet-api/}"
|
||||
DESCRIPTION="Tomcat's Servlet API 4.0/JSP API 2.3/EL API 3.0 implementation"
|
||||
HOMEPAGE="https://tomcat.apache.org/"
|
||||
SRC_URI="mirror://apache/tomcat/tomcat-9/v${PV}/src/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="4.0"
|
||||
KEYWORDS="amd64 ~arm arm64 ppc64 x86 ~amd64-linux ~x86-linux ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=">=virtual/jdk-1.8:*"
|
||||
RDEPEND=">=virtual/jre-1.8:*"
|
||||
|
||||
S="${WORKDIR}/${MY_P}/"
|
||||
|
||||
JAVA_TEST_SRC_DIR="src/test"
|
||||
|
||||
SERVLET_API_JAR="servlet-api.jar"
|
||||
SERVLET_API_SRC="src/main/servlet-api"
|
||||
SERVLET_API_RESOURCES="src/resources/servlet-api"
|
||||
EL_API_JAR="el-api.jar"
|
||||
EL_API_SRC="src/main/el-api"
|
||||
EL_API_RESOURCES="src/resources/el-api"
|
||||
JSP_API_JAR="jsp-api.jar"
|
||||
JSP_API_SRC="src/main/jsp-api"
|
||||
JSP_API_RESOURCES="src/resources/jsp-api"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# The sources and also resources are mixed together so we first give it a structure to make it easier to compila and package
|
||||
|
||||
mkdir -p ${SERVLET_API_SRC} ${SERVLET_API_RESOURCES} \
|
||||
${EL_API_SRC} ${EL_API_RESOURCES} \
|
||||
${JSP_API_SRC}/javax/servlet ${JSP_API_RESOURCES} \
|
||||
${JAVA_TEST_SRC_DIR} || die "Failed to create source directory"
|
||||
|
||||
pushd java || die "Failed to cd to java dir"
|
||||
|
||||
cp --parents -R javax/servlet "${S}/${SERVLET_API_SRC}/" || die "Failed to copy servlet-api sources"
|
||||
mv "${S}/${SERVLET_API_SRC}/javax/servlet/jsp" "${S}/${JSP_API_SRC}/javax/servlet" || die "Failed to copy jsp-api sources"
|
||||
cp --parents -R javax/el "${S}/${EL_API_SRC}/" || die "Failed to copy el-api sources"
|
||||
|
||||
popd
|
||||
|
||||
for file in $(find src -type f | grep -vE "\.java$"); do
|
||||
target_dir=$(dirname $file | sed "s%src/main/%src/resources/%g")
|
||||
mkdir -p ${target_dir} || die "Failed to create resource directory"
|
||||
mv $file ${target_dir} || die "Failed to move resource file"
|
||||
done
|
||||
|
||||
mv test/javax ${JAVA_TEST_SRC_DIR} || die "Failed to copy test sources"
|
||||
|
||||
java-pkg-2_src_prepare
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
JAVA_SRC_DIR="${SERVLET_API_SRC}"
|
||||
JAVA_RESOURCE_DIRS="${SERVLET_API_RESOURCES}"
|
||||
JAVA_JAR_FILENAME="${SERVLET_API_JAR}"
|
||||
java-pkg-simple_src_compile
|
||||
rm -fr target || die "Failed to remove compiled files"
|
||||
|
||||
JAVA_SRC_DIR="${EL_API_SRC}"
|
||||
JAVA_RESOURCE_DIRS="${EL_API_RESOURCES}"
|
||||
JAVA_JAR_FILENAME="${EL_API_JAR}"
|
||||
java-pkg-simple_src_compile
|
||||
rm -fr target || die "Failed to remove compiled files"
|
||||
|
||||
JAVA_SRC_DIR="${JSP_API_SRC}"
|
||||
JAVA_RESOURCE_DIRS="${JSP_API_RESOURCES}"
|
||||
JAVA_JAR_FILENAME="${JSP_API_JAR}"
|
||||
JAVA_GENTOO_CLASSPATH_EXTRA="servlet-api.jar:el-api.jar"
|
||||
java-pkg-simple_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
JAVA_SRC_DIR="${SERVLET_API_SRC}"
|
||||
JAVA_JAR_FILENAME="${SERVLET_API_JAR}"
|
||||
java-pkg-simple_src_install
|
||||
|
||||
JAVA_SRC_DIR="${EL_API_SRC}"
|
||||
JAVA_JAR_FILENAME="${EL_API_JAR}"
|
||||
java-pkg-simple_src_install
|
||||
|
||||
JAVA_SRC_DIR="${JSP_API_SRC}"
|
||||
JAVA_JAR_FILENAME="${JSP_API_JAR}"
|
||||
java-pkg-simple_src_install
|
||||
}
|
Binary file not shown.
@ -0,0 +1,91 @@
|
||||
https://gitlab.com/redhat/centos-stream/rpms/ocaml/-/raw/c9s/0006-Dynamically-allocate-the-alternate-signal-stack-1026.patch
|
||||
https://bugs.gentoo.org/804498
|
||||
|
||||
From 24a9db7784ddfcf0af2d2be2f51616ed960ae7e8 Mon Sep 17 00:00:00 2001
|
||||
From: Xavier Leroy <xavierleroy@users.noreply.github.com>
|
||||
Date: Fri, 5 Mar 2021 19:14:07 +0100
|
||||
Subject: [PATCH 6/6] Dynamically allocate the alternate signal stack (#10266)
|
||||
|
||||
In Glibc 2.34 and later, SIGSTKSZ may not be a compile-time constant.
|
||||
It is no longer possible to statically allocate the alternate signal
|
||||
stack for the main thread, as we've been doing for the last 25 years.
|
||||
|
||||
This commit implements dynamic allocation of the alternate signal stack
|
||||
even for the main thread. It reuses the code already in place to allocate
|
||||
the alternate signal stack for other threads.
|
||||
|
||||
Fixes: #10250.
|
||||
(cherry picked from commit fc9534746bf5d08a4c109f22e344cf49d5d46d54)
|
||||
--- a/runtime/caml/signals.h
|
||||
+++ b/runtime/caml/signals.h
|
||||
@@ -82,7 +82,7 @@ void caml_set_action_pending (void);
|
||||
value caml_do_pending_actions_exn (void);
|
||||
value caml_process_pending_actions_with_root (value extra_root); // raises
|
||||
int caml_set_signal_action(int signo, int action);
|
||||
-void caml_setup_stack_overflow_detection(void);
|
||||
+CAMLextern int caml_setup_stack_overflow_detection(void);
|
||||
|
||||
CAMLextern void (*caml_enter_blocking_section_hook)(void);
|
||||
CAMLextern void (*caml_leave_blocking_section_hook)(void);
|
||||
--- a/runtime/signals_byt.c
|
||||
+++ b/runtime/signals_byt.c
|
||||
@@ -86,4 +86,4 @@ int caml_set_signal_action(int signo, int action)
|
||||
return 0;
|
||||
}
|
||||
|
||||
-void caml_setup_stack_overflow_detection(void) {}
|
||||
+CAMLexport int caml_setup_stack_overflow_detection(void) { return 0; }
|
||||
--- a/runtime/signals_nat.c
|
||||
+++ b/runtime/signals_nat.c
|
||||
@@ -195,8 +195,6 @@ DECLARE_SIGNAL_HANDLER(trap_handler)
|
||||
#error "CONTEXT_SP is required if HAS_STACK_OVERFLOW_DETECTION is defined"
|
||||
#endif
|
||||
|
||||
-static char sig_alt_stack[SIGSTKSZ];
|
||||
-
|
||||
/* Code compiled with ocamlopt never accesses more than
|
||||
EXTRA_STACK bytes below the stack pointer. */
|
||||
#define EXTRA_STACK 256
|
||||
@@ -282,28 +280,33 @@ void caml_init_signals(void)
|
||||
#endif
|
||||
|
||||
#ifdef HAS_STACK_OVERFLOW_DETECTION
|
||||
- {
|
||||
- stack_t stk;
|
||||
+ if (caml_setup_stack_overflow_detection() != -1) {
|
||||
struct sigaction act;
|
||||
- stk.ss_sp = sig_alt_stack;
|
||||
- stk.ss_size = SIGSTKSZ;
|
||||
- stk.ss_flags = 0;
|
||||
SET_SIGACT(act, segv_handler);
|
||||
act.sa_flags |= SA_ONSTACK | SA_NODEFER;
|
||||
sigemptyset(&act.sa_mask);
|
||||
- if (sigaltstack(&stk, NULL) == 0) { sigaction(SIGSEGV, &act, NULL); }
|
||||
+ sigaction(SIGSEGV, &act, NULL);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
-void caml_setup_stack_overflow_detection(void)
|
||||
+/* Allocate and select an alternate stack for handling signals,
|
||||
+ especially SIGSEGV signals.
|
||||
+ Each thread needs its own alternate stack.
|
||||
+ The alternate stack used to be statically-allocated for the main thread,
|
||||
+ but this is incompatible with Glibc 2.34 and newer, where SIGSTKSZ
|
||||
+ may not be a compile-time constant (issue #10250). */
|
||||
+
|
||||
+CAMLexport int caml_setup_stack_overflow_detection(void)
|
||||
{
|
||||
#ifdef HAS_STACK_OVERFLOW_DETECTION
|
||||
stack_t stk;
|
||||
stk.ss_sp = malloc(SIGSTKSZ);
|
||||
+ if (stk.ss_sp == NULL) return -1;
|
||||
stk.ss_size = SIGSTKSZ;
|
||||
stk.ss_flags = 0;
|
||||
- if (stk.ss_sp)
|
||||
- sigaltstack(&stk, NULL);
|
||||
+ return sigaltstack(&stk, NULL);
|
||||
+#else
|
||||
+ return 0;
|
||||
#endif
|
||||
}
|
@ -1,6 +1,3 @@
|
||||
DIST perl-5.32.0-patches-1.tar.xz 20220 BLAKE2B 46ebca5c74f59aa935ceec2a5807426c0e653ad7ba27de441d26e049e62dc67b17d58dfe5755f31bdd157e349d47fd46a98699207729f8f4f747930ed1064ba2 SHA512 42ed00f5f6be40af59e02691ff439a048cccd96fb970cca0976209faa921af98a773cc4cb1466e164328350d58cb46950ffa8c6f2fddabbeb3e8819349b06849
|
||||
DIST perl-5.32.1.tar.xz 12610988 BLAKE2B 9f89bcf9cffb245a0f2cb0afa17c25f092c84cc2f29bb1c744294c2f0393c72dc3beb9fcbe256cf252677b33bc594b294b3f6a4774ad9e30b771aceed1f4f147 SHA512 3443c75aea91f0fe3712fee576239f1946d2301b8f7390b690e2f5d070fe71af8f9fa7769e42086c2d33d5f84370f80368fa9350b4f10cc0ac3e6c1f6209d8f9
|
||||
DIST perl-5.34.0-patches-1.tar.xz 20360 BLAKE2B e60074c49f357d4841708f58b5165a44201783238ff33ee81580bb83ba07d3d2dda447edd30a71ce8c9bafe5e5e0235b68e31a79081c3482bdd589231f0e898e SHA512 909e1fb22cda4ca769b51645b51a64df81b92210cfee388ac57834406bc13e404f0a1e6bad0888fafc73fc34b7fb224801fd02e87fb4c2f9145482ad74374e7b
|
||||
DIST perl-5.34.0.tar.xz 12881416 BLAKE2B 4139e77fbb38b2b72671c0b130233cf5ed35112bbba3301b8ed724739c7ff96b041752aa505b938e257ef6ebf98a9b6dad1858e00f756c841a0520688d974e9a SHA512 691b4b31eacec357191fba777612b4e3eae59e946a22998a50766697c0d61db1d42a9b3bc1e41abf0d1ca1893e4a7c06d7bf3290480cf03d7f79befd7a8a3267
|
||||
DIST perl-cross-1.3.4.tar.gz 108461 BLAKE2B 28f207d235f51ebf681598cf85f7f16923574aafb593426a59d67578135ee3632efb12b9e1a672759195a79f80e49f5c929ec42b2b4571b1d36f5d8c8dceadc2 SHA512 7e1fc7b2b19d8c2e2fb8615e074e218b2e1a4d276b563ffabccfd0c7398bc8680fca96da89cc61d611993f38a2c67dfbb0201c58658e05437395ad8c00d31874
|
||||
DIST perl-cross-1.3.6.tar.gz 110210 BLAKE2B 39074d6f4a526f59de2b1c40432936552e625a5a4e44fbb7ce3c1c3828b12c5298d1ab49b7d34ea92e2a4c8c88f8bbef8cc0c582a3fbbed975cf46d331e89c08 SHA512 d394fbd75d890442aa599eae8893a26540c8b7af966583ad1c3213c3fe0e074415cfed8814de8f397830833fd78267bdc55adc5267168198f269634c2ef3b982
|
||||
|
@ -1,105 +0,0 @@
|
||||
https://bugs.gentoo.org/634162
|
||||
|
||||
Source:
|
||||
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=869122
|
||||
|
||||
Index: perl-5.26.0/op.c
|
||||
===================================================================
|
||||
--- perl-5.26.0.orig/op.c
|
||||
+++ perl-5.26.0/op.c
|
||||
@@ -14832,6 +14832,7 @@ Perl_custom_op_get_field(pTHX_ const OP
|
||||
SV *keysv;
|
||||
HE *he = NULL;
|
||||
XOP *xop;
|
||||
+ XOPRETANY any;
|
||||
|
||||
static const XOP xop_null = { 0, 0, 0, 0, 0 };
|
||||
|
||||
@@ -14874,58 +14875,37 @@ Perl_custom_op_get_field(pTHX_ const OP
|
||||
else
|
||||
xop = INT2PTR(XOP *, SvIV(HeVAL(he)));
|
||||
}
|
||||
- {
|
||||
- XOPRETANY any;
|
||||
- if(field == XOPe_xop_ptr) {
|
||||
- any.xop_ptr = xop;
|
||||
- } else {
|
||||
- const U32 flags = XopFLAGS(xop);
|
||||
- if(flags & field) {
|
||||
- switch(field) {
|
||||
- case XOPe_xop_name:
|
||||
- any.xop_name = xop->xop_name;
|
||||
- break;
|
||||
- case XOPe_xop_desc:
|
||||
- any.xop_desc = xop->xop_desc;
|
||||
- break;
|
||||
- case XOPe_xop_class:
|
||||
- any.xop_class = xop->xop_class;
|
||||
- break;
|
||||
- case XOPe_xop_peep:
|
||||
- any.xop_peep = xop->xop_peep;
|
||||
- break;
|
||||
- default:
|
||||
- NOT_REACHED; /* NOTREACHED */
|
||||
- break;
|
||||
- }
|
||||
- } else {
|
||||
- switch(field) {
|
||||
- case XOPe_xop_name:
|
||||
- any.xop_name = XOPd_xop_name;
|
||||
- break;
|
||||
- case XOPe_xop_desc:
|
||||
- any.xop_desc = XOPd_xop_desc;
|
||||
- break;
|
||||
- case XOPe_xop_class:
|
||||
- any.xop_class = XOPd_xop_class;
|
||||
- break;
|
||||
- case XOPe_xop_peep:
|
||||
- any.xop_peep = XOPd_xop_peep;
|
||||
- break;
|
||||
- default:
|
||||
- NOT_REACHED; /* NOTREACHED */
|
||||
- break;
|
||||
- }
|
||||
- }
|
||||
+
|
||||
+ if(field == XOPe_xop_ptr) {
|
||||
+ any.xop_ptr = xop;
|
||||
+ } else {
|
||||
+ const U32 flags = XopFLAGS(xop);
|
||||
+ switch(field) {
|
||||
+ case XOPe_xop_name:
|
||||
+ any.xop_name = (flags & field) ? xop->xop_name : XOPd_xop_name;
|
||||
+ break;
|
||||
+ case XOPe_xop_desc:
|
||||
+ any.xop_desc = (flags & field) ? xop->xop_desc : XOPd_xop_desc;
|
||||
+ break;
|
||||
+ case XOPe_xop_class:
|
||||
+ any.xop_class = (flags & field) ? xop->xop_class : XOPd_xop_class;
|
||||
+ break;
|
||||
+ case XOPe_xop_peep:
|
||||
+ any.xop_peep = (flags & field) ? xop->xop_peep : XOPd_xop_peep;
|
||||
+ break;
|
||||
+ default:
|
||||
+ NOT_REACHED; /* NOTREACHED */
|
||||
+ break;
|
||||
}
|
||||
- /* On some platforms (HP-UX, IA64) gcc emits a warning for this function:
|
||||
- * op.c: In function 'Perl_custom_op_get_field':
|
||||
- * op.c:...: warning: 'any.xop_name' may be used uninitialized in this function [-Wmaybe-uninitialized]
|
||||
- * This is because on those platforms (with -DEBUGGING) NOT_REACHED
|
||||
- * expands to assert(0), which expands to ((0) ? (void)0 :
|
||||
- * __assert(...)), and gcc doesn't know that __assert can never return. */
|
||||
- return any;
|
||||
}
|
||||
+
|
||||
+ /* On some platforms (HP-UX, IA64) gcc emits a warning for this function:
|
||||
+ * op.c: In function 'Perl_custom_op_get_field':
|
||||
+ * op.c:...: warning: 'any.xop_name' may be used uninitialized in this function [-Wmaybe-uninitialized]
|
||||
+ * This is because on those platforms (with -DEBUGGING) NOT_REACHED
|
||||
+ * expands to assert(0), which expands to ((0) ? (void)0 :
|
||||
+ * __assert(...)), and gcc doesn't know that __assert can never return. */
|
||||
+ return any;
|
||||
}
|
||||
|
||||
/*
|
@ -1,822 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit alternatives flag-o-matic toolchain-funcs multilib multiprocessing
|
||||
|
||||
PATCH_VER=1
|
||||
CROSS_VER=1.3.4
|
||||
PATCH_BASE="perl-5.32.0-patches-${PATCH_VER}"
|
||||
PATCH_DEV=kentnl
|
||||
|
||||
DIST_AUTHOR=XSAWYERX
|
||||
|
||||
# Greatest first, don't include yourself
|
||||
# Devel point-releases are not ABI-intercompatible, but stable point releases are
|
||||
# BIN_OLDVERSEN is contains only C-ABI-intercompatible versions
|
||||
PERL_BIN_OLDVERSEN=""
|
||||
|
||||
# Yes we can.
|
||||
PERL_SINGLE_SLOT=y
|
||||
|
||||
if [[ "${PV##*.}" == "9999" ]]; then
|
||||
DIST_VERSION=5.30.0
|
||||
else
|
||||
DIST_VERSION="${PV/_rc/-RC}"
|
||||
fi
|
||||
SHORT_PV="${DIST_VERSION%.*}"
|
||||
# Even numbered major versions are ABI intercompatible
|
||||
# Odd numbered major versions are not
|
||||
if [[ $(( ${SHORT_PV#*.} % 2 )) == 1 ]]; then
|
||||
SUBSLOT="${DIST_VERSION%-RC*}"
|
||||
else
|
||||
SUBSLOT="${DIST_VERSION%.*}"
|
||||
fi
|
||||
# Used only in tar paths
|
||||
MY_P="perl-${DIST_VERSION}"
|
||||
# Used in library paths
|
||||
MY_PV="${DIST_VERSION%-RC*}"
|
||||
|
||||
DESCRIPTION="Larry Wall's Practical Extraction and Report Language"
|
||||
|
||||
SRC_URI="
|
||||
mirror://cpan/src/5.0/${MY_P}.tar.xz
|
||||
mirror://cpan/authors/id/${DIST_AUTHOR:0:1}/${DIST_AUTHOR:0:2}/${DIST_AUTHOR}/${MY_P}.tar.xz
|
||||
https://github.com/gentoo-perl/perl-patchset/releases/download/${PATCH_BASE}/${PATCH_BASE}.tar.xz
|
||||
https://dev.gentoo.org/~${PATCH_DEV}/distfiles/${PATCH_BASE}.tar.xz
|
||||
https://github.com/arsv/perl-cross/releases/download/${CROSS_VER}/perl-cross-${CROSS_VER}.tar.gz
|
||||
"
|
||||
HOMEPAGE="https://www.perl.org/"
|
||||
|
||||
LICENSE="|| ( Artistic GPL-1+ )"
|
||||
SLOT="0/${SUBSLOT}"
|
||||
|
||||
if [[ "${PV##*.}" != "9999" ]] && [[ "${PV/rc//}" == "${PV}" ]] ; then
|
||||
# SOMEWHAT EXPERIMENTAL CODE, DO NOT USE WITHOUT AN ADULT PRESENT, CHECK CHANGELOG
|
||||
# FOR DETAILS
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
fi
|
||||
|
||||
IUSE="berkdb debug doc gdbm ithreads minimal"
|
||||
|
||||
RDEPEND="
|
||||
berkdb? ( sys-libs/db:= )
|
||||
gdbm? ( >=sys-libs/gdbm-1.8.3:= )
|
||||
app-arch/bzip2
|
||||
sys-libs/zlib
|
||||
virtual/libcrypt:=
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="${RDEPEND}"
|
||||
|
||||
PDEPEND="
|
||||
!minimal? (
|
||||
>=app-admin/perl-cleaner-2.5
|
||||
>=virtual/perl-File-Temp-0.230.400-r2
|
||||
>=virtual/perl-Data-Dumper-2.154.0
|
||||
virtual/perl-Test-Harness
|
||||
)
|
||||
"
|
||||
# bug 390719, bug 523624
|
||||
# virtual/perl-Test-Harness is here for the bundled ExtUtils::MakeMaker
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
dual_scripts() {
|
||||
src_remove_dual perl-core/Archive-Tar 2.360.0 ptar ptardiff ptargrep
|
||||
src_remove_dual perl-core/CPAN 2.270.0 cpan
|
||||
src_remove_dual perl-core/Digest-SHA 6.20.0 shasum
|
||||
src_remove_dual perl-core/Encode 3.60.0 enc2xs piconv
|
||||
src_remove_dual perl-core/ExtUtils-MakeMaker 7.440.0 instmodsh
|
||||
src_remove_dual perl-core/ExtUtils-ParseXS 3.400.0 xsubpp
|
||||
src_remove_dual perl-core/IO-Compress 2.93.0 zipdetails
|
||||
src_remove_dual perl-core/JSON-PP 4.40.0 json_pp
|
||||
src_remove_dual perl-core/Module-CoreList 5.202.101.23 corelist
|
||||
src_remove_dual perl-core/Pod-Checker 1.730.0 podchecker
|
||||
src_remove_dual perl-core/Pod-Perldoc 3.280.100 perldoc
|
||||
src_remove_dual perl-core/Pod-Usage 1.690.0 pod2usage
|
||||
src_remove_dual perl-core/Test-Harness 3.420.0 prove
|
||||
src_remove_dual perl-core/podlators 4.140.0 pod2man pod2text
|
||||
src_remove_dual_man perl-core/podlators 4.140.0 /usr/share/man/man1/perlpodstyle.1
|
||||
}
|
||||
|
||||
check_rebuild() {
|
||||
# Fresh install
|
||||
if [[ -z "${REPLACING_VERSIONS}" ]]; then
|
||||
return 0;
|
||||
# Major Upgrade
|
||||
# doesn't matter if there's multiple copies, it still needs a rebuild
|
||||
# if the string is anything other than "5.CURRENTMAJOR"
|
||||
elif [[ "${REPLACING_VERSIONS%.*}" != "${PV%.*}" ]]; then
|
||||
echo ""
|
||||
ewarn "UPDATE THE PERL MODULES:"
|
||||
ewarn "After updating dev-lang/perl the installed Perl modules"
|
||||
ewarn "have to be re-installed. In most cases, this is done automatically"
|
||||
ewarn "by the package manager, but subsequent steps are still recommended"
|
||||
ewarn "to ensure system consistency."
|
||||
ewarn
|
||||
ewarn "You should start with a depclean to remove any unused perl dependencies"
|
||||
ewarn "that may confuse portage in future. Regular depcleans are also encouraged"
|
||||
ewarn "as part of your regular update cycle, as that will keep perl upgrades working."
|
||||
ewarn "Recommended: emerge --depclean -va"
|
||||
ewarn
|
||||
ewarn "You should then call perl-cleaner to clean up any old files and trigger any"
|
||||
ewarn "remaining rebuilds portage may have missed."
|
||||
ewarn "Use: perl-cleaner --all"
|
||||
return 0;
|
||||
|
||||
# Reinstall w/ USE Change
|
||||
elif ( use ithreads && ! has_version dev-lang/perl[ithreads] ) || \
|
||||
( ! use ithreads && has_version dev-lang/perl[ithreads] ) || \
|
||||
( use debug && ! has_version dev-lang/perl[debug] ) || \
|
||||
( ! use debug && has_version dev-lang/perl[debug] ) ; then
|
||||
echo ""
|
||||
ewarn "TOGGLED USE-FLAGS WARNING:"
|
||||
ewarn "You changed one of the use-flags ithreads or debug."
|
||||
ewarn "You must rebuild all perl-modules installed."
|
||||
ewarn "Use: perl-cleaner --modules ; perl-cleaner --force --libperl"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
case ${CHOST} in
|
||||
*-freebsd*) osname="freebsd" ;;
|
||||
*-dragonfly*) osname="dragonfly" ;;
|
||||
*-netbsd*) osname="netbsd" ;;
|
||||
*-openbsd*) osname="openbsd" ;;
|
||||
*-darwin*) osname="darwin" ;;
|
||||
*-solaris*) osname="solaris" ;;
|
||||
*-cygwin*) osname="cygwin" ;;
|
||||
*) osname="linux" ;;
|
||||
esac
|
||||
|
||||
myarch="${CHOST%%-*}-${osname}"
|
||||
if use debug ; then
|
||||
myarch+="-debug"
|
||||
fi
|
||||
if use ithreads ; then
|
||||
mythreading="-multi"
|
||||
myarch+="-thread"
|
||||
fi
|
||||
|
||||
PRIV_BASE="/usr/$(get_libdir)/perl5"
|
||||
SITE_BASE="/usr/local/$(get_libdir)/perl5"
|
||||
VENDOR_BASE="/usr/$(get_libdir)/perl5/vendor_perl"
|
||||
|
||||
LIBPERL="libperl$(get_libname ${MY_PV} )"
|
||||
|
||||
# This ENV var tells perl to build with a directory like "5.30"
|
||||
# regardless of its patch version. This is for experts only
|
||||
# at this point.
|
||||
if [[ -z "${PERL_SINGLE_SLOT}" ]]; then
|
||||
PRIV_LIB="${PRIV_BASE}/${MY_PV}"
|
||||
ARCH_LIB="${PRIV_BASE}/${MY_PV}/${myarch}${mythreading}"
|
||||
SITE_LIB="${SITE_BASE}/${MY_PV}"
|
||||
SITE_ARCH="${SITE_BASE}/${MY_PV}/${myarch}${mythreading}"
|
||||
VENDOR_LIB="${VENDOR_BASE}/${MY_PV}"
|
||||
VENDOR_ARCH="${VENDOR_BASE}/${MY_PV}/${myarch}${mythreading}"
|
||||
else
|
||||
PRIV_LIB="${PRIV_BASE}/${SUBSLOT}"
|
||||
ARCH_LIB="${PRIV_BASE}/${SUBSLOT}/${myarch}${mythreading}"
|
||||
SITE_LIB="${SITE_BASE}/${SUBSLOT}"
|
||||
SITE_ARCH="${SITE_BASE}/${SUBSLOT}/${myarch}${mythreading}"
|
||||
VENDOR_LIB="${VENDOR_BASE}/${SUBSLOT}"
|
||||
VENDOR_ARCH="${VENDOR_BASE}/${SUBSLOT}/${myarch}${mythreading}"
|
||||
fi
|
||||
|
||||
dual_scripts
|
||||
}
|
||||
|
||||
src_remove_dual_file() {
|
||||
local i pkg ver
|
||||
pkg="$1"
|
||||
ver="$2"
|
||||
shift 2
|
||||
case "${EBUILD_PHASE:-none}" in
|
||||
postinst|postrm)
|
||||
for i in "$@" ; do
|
||||
alternatives_auto_makesym "${i}" "${i}-[0-9]*"
|
||||
done
|
||||
;;
|
||||
setup)
|
||||
for i in "$@" ; do
|
||||
if [[ -f ${EROOT}${i} && ! -h ${EROOT}${i} ]] ; then
|
||||
has_version ${pkg} && ewarn "You must reinstall ${pkg} !"
|
||||
break
|
||||
fi
|
||||
done
|
||||
;;
|
||||
install)
|
||||
for i in "$@" ; do
|
||||
if ! [[ -f "${ED}"${i} ]] ; then
|
||||
ewarn "${i} does not exist!"
|
||||
continue
|
||||
fi
|
||||
mv "${ED}"${i}{,-${ver}-${P}} || die
|
||||
done
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
src_remove_dual_man() {
|
||||
local i pkg ver ff
|
||||
pkg="$1"
|
||||
ver="$2"
|
||||
shift 2
|
||||
case "${EBUILD_PHASE:-none}" in
|
||||
postinst|postrm)
|
||||
for i in "$@" ; do
|
||||
ff=`echo "${EROOT}${i%.[0-9]}-${ver}-${P}${i#${i%.[0-9]}}"*`
|
||||
ff=${ff##*${i#${i%.[0-9]}}}
|
||||
alternatives_auto_makesym "${i}${ff}" "${i%.[0-9]}-[0-9]*"
|
||||
done
|
||||
;;
|
||||
install)
|
||||
for i in "$@" ; do
|
||||
if ! [[ -f "${ED}"${i} ]] ; then
|
||||
ewarn "${i} does not exist!"
|
||||
continue
|
||||
fi
|
||||
mv "${ED}"${i} "${ED}"${i%.[0-9]}-${ver}-${P}${i#${i%.[0-9]}} || die
|
||||
done
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
src_remove_dual() {
|
||||
local i pkg ver
|
||||
pkg="$1"
|
||||
ver="$2"
|
||||
shift 2
|
||||
for i in "$@" ; do
|
||||
src_remove_dual_file "${pkg}" "${ver}" "/usr/bin/${i}"
|
||||
src_remove_dual_man "${pkg}" "${ver}" "/usr/share/man/man1/${i}.1"
|
||||
done
|
||||
}
|
||||
|
||||
src_prepare_perlcross() {
|
||||
cp -a ../perl-cross-${CROSS_VER}/* . || die
|
||||
|
||||
# bug 604072
|
||||
MAKEOPTS+=" -j1"
|
||||
export MAKEOPTS
|
||||
}
|
||||
src_prepare_dynamic() {
|
||||
ln -s ${LIBPERL} libperl$(get_libname ${SHORT_PV}) || die
|
||||
ln -s ${LIBPERL} libperl$(get_libname ) || die
|
||||
}
|
||||
|
||||
# Copy a patch into the patch series
|
||||
# add_patch SRC_PATH DEST_NAME ['description'] ['bug'] ['bug']
|
||||
# - description is optional, but recommended
|
||||
# - all arguments after descriptions are bug URLs
|
||||
add_patch() {
|
||||
local patchdir="${WORKDIR}/patches"
|
||||
local infodir="${WORKDIR}/patch-info"
|
||||
local src_name dest_name desc
|
||||
src_name="$1"
|
||||
dest_name="$2"
|
||||
desc="$3"
|
||||
shift; shift; shift;
|
||||
einfo "Adding ${dest_name} to patch bundle"
|
||||
cp "${src_name}" "${patchdir}/${dest_name}" || die "Couldn't copy ${src_name} to ${dest_name}"
|
||||
if [[ -n "${desc}" ]]; then
|
||||
printf "%s" "${desc}" > "${infodir}/${dest_name}.desc" || die "Couldn't write ${dest_name}.desc"
|
||||
fi
|
||||
if [[ $# -gt 0 ]]; then
|
||||
# Note: when $@ is more than one element, this emits a
|
||||
# line for each element
|
||||
printf "%s\n" "$@" > "${infodir}/${dest_name}.bugs" || die "Couldn't write ${dest_name}.bugs"
|
||||
fi
|
||||
}
|
||||
# Remove a patch using a glob expr
|
||||
# eg:
|
||||
# rm_patch *-darin-Use-CC*
|
||||
#
|
||||
rm_patch() {
|
||||
local patchdir="${WORKDIR}/patches"
|
||||
local expr="$1"
|
||||
local patch="$( cd "${patchdir}"; echo $expr )"
|
||||
einfo "Removing $patch ($expr) from patch bundle"
|
||||
if [[ -e "${patchdir}/${patch}" ]]; then
|
||||
rm -f "${patchdir}/${patch}" || die "Can't remove ${patch} ( $expr )"
|
||||
else
|
||||
ewarn "No ${expr} found in ${patchdir} to remove"
|
||||
fi
|
||||
}
|
||||
# Yes, this is a reasonable amount of code for something seemingly simple
|
||||
# but this is far easier to debug when things go wrong, and things went wrong
|
||||
# multiple times while I was getting the exact number of slashes right, which
|
||||
# requires circumnavigating both bash and sed escape mechanisms.
|
||||
c_escape_string() {
|
||||
local slash dquote
|
||||
slash='\'
|
||||
dquote='"'
|
||||
re_slash="${slash}${slash}"
|
||||
re_dquote="${slash}${dquote}"
|
||||
|
||||
# Convert \ to \\,
|
||||
# " to \"
|
||||
echo "$1" |\
|
||||
sed "s|${re_slash}|${re_slash}${re_slash}|g" |\
|
||||
sed "s|${re_dquote}|${re_slash}${re_dquote}|g"
|
||||
}
|
||||
c_escape_file() {
|
||||
c_escape_string "$(cat "$1")"
|
||||
}
|
||||
|
||||
apply_patchdir() {
|
||||
local patchdir="${WORKDIR}/patches"
|
||||
local infodir="${WORKDIR}/patch-info"
|
||||
local patchoutput="patchlevel-gentoo.h"
|
||||
|
||||
# Inject Patch-Level info into description for patchlevel.h patch
|
||||
# to show in -V
|
||||
local patch_expr="*List-packaged-patches*"
|
||||
local patch="$( cd "${patchdir}"; echo $patch_expr )";
|
||||
einfo "Injecting patch-level info into ${patch}.desc ( $patch_expr )"
|
||||
|
||||
if [[ -e "${patchdir}/${patch}" ]]; then
|
||||
printf "List packaged patches for %s(%s) in patchlevel.h" "${PF}" "${PATCH_BASE}"\
|
||||
>"${infodir}/${patch}.desc" || die "Can't rewrite ${patch}.desc"
|
||||
else
|
||||
eerror "No $patch_expr found in ${patchdir}"
|
||||
fi
|
||||
|
||||
# Compute patch list to apply
|
||||
# different name other than PATCHES to stop default
|
||||
# reapplying it
|
||||
# Single depth is currently only supported, as artifacts can reside
|
||||
# from the old layout being multiple-directories, as well as it grossly
|
||||
# simplifying the patchlevel_gentoo.h generation.
|
||||
local PERL_PATCHES=($(
|
||||
find "${patchdir}" -maxdepth 1 -mindepth 1 -type f -printf "%f\n" |\
|
||||
grep -E '[.](diff|patch)$' |\
|
||||
sort -n
|
||||
))
|
||||
|
||||
for patch in "${PERL_PATCHES[@]}"; do
|
||||
eapply "${WORKDIR}"/patches/${patch}
|
||||
done
|
||||
|
||||
einfo "Generating $patchoutput"
|
||||
|
||||
# This code creates a header file, each iteration
|
||||
# creates one-or-more-lines for each entry found in PERL_PATCHES
|
||||
# and STDOUT is redirected to the .h file
|
||||
for patch in "${PERL_PATCHES[@]}"; do
|
||||
local desc_f="${infodir}/${patch}.desc"
|
||||
local bugs_f="${infodir}/${patch}.bugs"
|
||||
|
||||
printf ',"%s"\n' "${patch}"
|
||||
if [[ ! -e "${desc_f}" ]]; then
|
||||
ewarn "No description provided for ${patch} (expected: ${desc_f} )"
|
||||
else
|
||||
local desc="$(c_escape_file "${desc_f}")"
|
||||
printf ',"- %s"\n' "${desc}"
|
||||
fi
|
||||
if [[ -e "${bugs_f}" ]]; then
|
||||
while read -d $'\n' -r line; do
|
||||
local esc_line="$(c_escape_string "${line}")"
|
||||
printf ',"- Bug: %s"\n' "${esc_line}"
|
||||
done <"${bugs_f}"
|
||||
fi
|
||||
done > "${S}/${patchoutput}"
|
||||
printf "%s\n" "${patchoutput}" >> "${S}/MANIFEST"
|
||||
|
||||
}
|
||||
src_prepare() {
|
||||
local patchdir="${WORKDIR}/patches"
|
||||
|
||||
# Prepare Patch dir with additional patches / remove unwanted patches
|
||||
# Inject bug/desc entries for perl -V
|
||||
if use hppa ; then
|
||||
# bug 634162
|
||||
add_patch "${FILESDIR}/${PN}-5.26.2-hppa.patch" "100-5.26.2-hppa.patch"\
|
||||
"Fix broken miniperl on hppa"\
|
||||
"https://bugs.debian.org/869122" "https://bugs.gentoo.org/634162"
|
||||
fi
|
||||
if [[ ${CHOST} == *-solaris* ]] ; then
|
||||
# do NOT mess with nsl, on Solaris this is always necessary,
|
||||
# when -lsocket is used e.g. to get h_errno
|
||||
rm_patch "*-nsl-and-cl*"
|
||||
fi
|
||||
|
||||
apply_patchdir
|
||||
|
||||
tc-is-cross-compiler && src_prepare_perlcross
|
||||
|
||||
tc-is-static-only || src_prepare_dynamic
|
||||
|
||||
if use gdbm; then
|
||||
sed -i "s:INC => .*:INC => \"-I${EROOT}/usr/include/gdbm\":g" \
|
||||
ext/NDBM_File/Makefile.PL || die
|
||||
fi
|
||||
|
||||
# Use errno.h from prefix rather than from host system, bug #645804
|
||||
if use prefix && [[ -e "${EPREFIX}"/usr/include/errno.h ]] ; then
|
||||
sed -i "/my..sysroot/s:'':'${EPREFIX}':" ext/Errno/Errno_pm.PL || die
|
||||
fi
|
||||
|
||||
if [[ ${CHOST} == *-solaris* ]] ; then
|
||||
# set a soname, fix linking against just built libperl
|
||||
sed -i -e 's/netbsd\*/netbsd*|solaris*/' Makefile.SH || die
|
||||
fi
|
||||
|
||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
||||
# fix install_name (soname) not to reference $D
|
||||
sed -i -e '/install_name `pwd/s/`pwd`/\\$(shrpdir)/' Makefile.SH || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
myconf() {
|
||||
# the myconf array is declared in src_configure
|
||||
myconf=( "${myconf[@]}" "$@" )
|
||||
}
|
||||
|
||||
# Outputs a list of versions which have been seen in any of the
|
||||
# primary perl @INC prefix paths, such as:
|
||||
# /usr/lib64/perl5/<NUMBER>
|
||||
# /usr/local/lib64/perl5/<NUMBER>
|
||||
# /usr/lib64/perl5/vendor_perl/<NUMBER>
|
||||
#
|
||||
# All values of NUMBER must be like "5.x.y", unless PERL_SUPPORT_SINGLE_SLOT
|
||||
# is enabled, where it will also allow numbers like "5.x"
|
||||
#
|
||||
# PERL_SUPPORT_SINGLE_SLOT should only be used to transition *away* from PERL_SINGLE_SLOT
|
||||
# if you used that.
|
||||
find_candidate_inc_versions() {
|
||||
local regex='.*/5[.][0-9]+[.][0-9]+$';
|
||||
if [[ ! -z "${PERL_SUPPORT_SINGLE_SLOT}" || ! -z "${PERL_SINGLE_SLOT}" ]]; then
|
||||
regex='.*/5[.][0-9]+\([.][0-9]+\|\)$'
|
||||
fi
|
||||
local dirs=(
|
||||
"${EROOT}${PRIV_BASE}"
|
||||
"${EROOT}${SITE_BASE}"
|
||||
"${EROOT}${VENDOR_BASE}"
|
||||
)
|
||||
for dir in "${dirs[@]}"; do
|
||||
if [[ ! -e "${dir}" ]]; then
|
||||
continue
|
||||
fi
|
||||
# Without access to readdir() on these dirs, find will not be able
|
||||
# to reveal any @INC directories inside them, and will subsequently prune
|
||||
# them from the built perl's @INC support, breaking our compatiblity options
|
||||
# entirely.
|
||||
if [[ ! -r "${dir}" || ! -x "${dir}" ]]; then
|
||||
eerror "Bad permissions on ${dir}, this will probably break things"
|
||||
eerror "Ensure ${dir} is +rx for at least uid=$EUID"
|
||||
eerror "Recommended permission is +rx for all"
|
||||
eerror "> chmod o+rx ${dir}"
|
||||
fi
|
||||
done
|
||||
einfo "Scanning for old @INC dirs matching '$regex' in: ${dirs[*]}"
|
||||
find "${dirs[@]}" -maxdepth 1 -mindepth 1 -type d -regex "${regex}" -printf "%f " 2>/dev/null
|
||||
}
|
||||
# Sort versions passed versiony-ly, remove self-version if present
|
||||
# dedup. Takes each version as an argument
|
||||
sanitize_inc_versions() {
|
||||
local vexclude="${DIST_VERSION%-RC}"
|
||||
if [[ ! -z "${PERL_SINGLE_SLOT}" ]]; then
|
||||
vexclude="${SUBSLOT}"
|
||||
fi
|
||||
einfo "Normalizing/Sorting candidate list: $*"
|
||||
einfo " to remove '${vexclude}'"
|
||||
# Note, general numeric sort has to be used
|
||||
# for the last component, or unique will convert
|
||||
# 5.30.0 + 5.30 into just 5.30
|
||||
printf "%s\n" "$@" |\
|
||||
grep -vxF "${vexclude}" |\
|
||||
sort -u -nr -t'.' -k1,1rn -k2,2rn -k3,3rg
|
||||
}
|
||||
|
||||
versions_to_inclist() {
|
||||
local oldv="${PERL_BIN_OLDVERSEN}"
|
||||
if [[ ! -z "${PERL_SINGLE_SLOT}" ]]; then
|
||||
oldv="${DIST_VERSION%-RC} ${PERL_BIN_OLDVERSEN}"
|
||||
fi
|
||||
for v; do
|
||||
has "${v}" ${oldv} && echo -n "${v}/${myarch}${mythreading}/ ";
|
||||
echo -n "${v}/ ";
|
||||
done
|
||||
}
|
||||
versions_to_gentoolibdirs() {
|
||||
local oldv="${PERL_BIN_OLDVERSEN}"
|
||||
local root
|
||||
local v
|
||||
if [[ ! -z "${PERL_SINGLE_SLOT}" ]]; then
|
||||
oldv="${DIST_VERSION%-RC} ${PERL_BIN_OLDVERSEN}"
|
||||
fi
|
||||
for v; do
|
||||
for root in "${PRIV_BASE}" "${VENDOR_BASE}" "${SITE_BASE}"; do
|
||||
local fullpath="${EROOT}${root}/${v}"
|
||||
if [[ -e "${fullpath}" ]]; then
|
||||
has "${v}" ${oldv} && printf "%s:" "${fullpath}/${myarch}${mythreading}";
|
||||
printf "%s:" "${fullpath}"
|
||||
fi
|
||||
done
|
||||
done
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
declare -a myconf
|
||||
|
||||
export LC_ALL="C"
|
||||
[[ ${COLUMNS:-1} -ge 1 ]] || unset COLUMNS # bug #394091
|
||||
|
||||
# Perl has problems compiling with -Os in your flags with glibc
|
||||
use elibc_uclibc || replace-flags "-Os" "-O2"
|
||||
|
||||
# xlocale.h is going away in glibc-2.26, so it's counterproductive
|
||||
# if we use it and include it in CORE/perl.h ... Perl builds just
|
||||
# fine with glibc and locale.h only.
|
||||
# However, the darwin prefix people have no locale.h ...
|
||||
use elibc_glibc && myconf -Ui_xlocale
|
||||
|
||||
# This flag makes compiling crash in interesting ways
|
||||
filter-flags "-malign-double"
|
||||
|
||||
# Generic LTO broken since 5.28, triggers EUMM failures
|
||||
filter-flags "-flto"
|
||||
|
||||
use sparc && myconf -Ud_longdbl
|
||||
|
||||
export BUILD_BZIP2=0
|
||||
export BZIP2_INCLUDE=${EROOT}/usr/include
|
||||
export BZIP2_LIB=${EROOT}/usr/$(get_libdir)
|
||||
|
||||
export BUILD_ZLIB=False
|
||||
export ZLIB_INCLUDE=${EROOT}/usr/include
|
||||
export ZLIB_LIB=${EROOT}/usr/$(get_libdir)
|
||||
|
||||
# allow either gdbm to provide ndbm (in <gdbm/ndbm.h>) or db1
|
||||
myndbm='U'
|
||||
mygdbm='U'
|
||||
mydb='U'
|
||||
if use gdbm ; then
|
||||
mygdbm='D'
|
||||
if use berkdb ; then
|
||||
myndbm='D'
|
||||
fi
|
||||
fi
|
||||
if use berkdb ; then
|
||||
mydb='D'
|
||||
has_version '=sys-libs/db-1*' && myndbm='D'
|
||||
fi
|
||||
|
||||
myconf "-${myndbm}i_ndbm" "-${mygdbm}i_gdbm" "-${mydb}i_db"
|
||||
|
||||
if use alpha && [[ "$(tc-getCC)" = "ccc" ]] ; then
|
||||
ewarn "Perl will not be built with berkdb support, use gcc if you needed it..."
|
||||
myconf -Ui_db -Ui_ndbm
|
||||
fi
|
||||
|
||||
use ithreads && myconf -Dusethreads
|
||||
|
||||
if use debug ; then
|
||||
append-cflags "-g"
|
||||
myconf -DDEBUGGING
|
||||
elif [[ ${CFLAGS} == *-g* ]] ; then
|
||||
myconf -DDEBUGGING=-g
|
||||
else
|
||||
myconf -DDEBUGGING=none
|
||||
fi
|
||||
|
||||
# modifying 'optimize' prevents cross configure script from appending required flags
|
||||
if tc-is-cross-compiler; then
|
||||
append-cflags "-fwrapv -fno-strict-aliasing"
|
||||
fi
|
||||
|
||||
# Autodiscover all old version directories, some of them will even be newer
|
||||
# if you downgrade
|
||||
if [[ -z ${PERL_OLDVERSEN} ]]; then
|
||||
PERL_OLDVERSEN="$( find_candidate_inc_versions )"
|
||||
fi
|
||||
|
||||
# Fixup versions, removing self match, fixing order and dupes
|
||||
PERL_OLDVERSEN="$( sanitize_inc_versions ${PERL_OLDVERSEN} )"
|
||||
|
||||
# Experts who want a "Pure" install can set PERL_OLDVERSEN to an empty string
|
||||
if [[ -n "${PERL_OLDVERSEN// }" ]]; then
|
||||
local inclist="$( versions_to_inclist ${PERL_OLDVERSEN} )"
|
||||
einfo "This version of perl may partially support modules previously"
|
||||
einfo "installed in any of the following paths:"
|
||||
for incpath in ${inclist}; do
|
||||
[[ -e "${EROOT}${VENDOR_BASE}/${incpath}" ]] && einfo " ${EROOT}${VENDOR_BASE}/${incpath}"
|
||||
[[ -e "${EROOT}${PRIV_BASE}/${incpath}" ]] && einfo " ${EROOT}${PRIV_BASE}/${incpath}"
|
||||
[[ -e "${EROOT}${SITE_BASE}/${incpath}" ]] && einfo " ${EROOT}${SITE_BASE}/${incpath}"
|
||||
done
|
||||
einfo "This is a temporary measure and you should aim to cleanup these paths"
|
||||
einfo "via world updates and perl-cleaner"
|
||||
# myconf -Dinc_version_list="${inclist}"
|
||||
myconf -Dgentoolibdirs="$( versions_to_gentoolibdirs ${PERL_OLDVERSEN} )"
|
||||
fi
|
||||
|
||||
[[ ${ELIBC} == "FreeBSD" ]] && myconf "-Dlibc=/usr/$(get_libdir)/libc.a"
|
||||
|
||||
# Make sure we can do the final link #523730, need to set deployment
|
||||
# target to override hardcoded 10.3 which breaks on modern OSX
|
||||
[[ ${CHOST} == *-darwin* ]] && \
|
||||
myconf "-Dld=env MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET} $(tc-getCC)"
|
||||
|
||||
# Older macOS with non-Apple GCC chokes on inline in system headers
|
||||
# using c89 mode as injected by cflags.SH
|
||||
[[ ${CHOST} == *-darwin* && ${CHOST##*darwin} -le 9 ]] && tc-is-gcc && \
|
||||
append-cflags -Dinline=__inline__
|
||||
|
||||
# flock on 32-bit sparc Solaris is broken, fall back to fcntl
|
||||
[[ ${CHOST} == sparc-*-solaris* ]] && \
|
||||
myconf -Ud_flock
|
||||
|
||||
# Prefix: the host system needs not to follow Gentoo multilib stuff, and in
|
||||
# Prefix itself we don't do multilib either, so make sure perl can find
|
||||
# something compatible.
|
||||
if use prefix ; then
|
||||
# Set a hook to check for each detected library whether it actually works.
|
||||
export libscheck="
|
||||
( echo 'main(){}' > '${T}'/conftest.c &&
|
||||
$(tc-getCC) -o '${T}'/conftest '${T}'/conftest.c -l\$thislib >/dev/null 2>/dev/null
|
||||
) || xxx=/dev/null"
|
||||
|
||||
# Use all host paths that might contain useful stuff, the hook above will filter out bad choices.
|
||||
local paths="/lib/*-linux-gnu /usr/lib/*-linux-gnu /lib64 /lib/64 /usr/lib64 /usr/lib/64 /lib32 /usr/lib32 /lib /usr/lib"
|
||||
myconf "-Dlibpth=${EPREFIX}/$(get_libdir) ${EPREFIX}/usr/$(get_libdir) ${paths}"
|
||||
elif [[ $(get_libdir) != "lib" ]] ; then
|
||||
# We need to use " and not ', as the written config.sh use ' ...
|
||||
myconf "-Dlibpth=/usr/local/$(get_libdir) /$(get_libdir) /usr/$(get_libdir)"
|
||||
fi
|
||||
|
||||
# don't try building ODBM, bug #354453
|
||||
disabled_extensions="ODBM_File"
|
||||
|
||||
if ! use gdbm ; then
|
||||
# workaround for bug #157774: don't try building GDBM related stuff with USE="-gdbm"
|
||||
disabled_extensions="${disabled_extensions} GDBM_File NDBM_File"
|
||||
fi
|
||||
|
||||
myconf -Dnoextensions="${disabled_extensions}"
|
||||
|
||||
[[ "${PV##*.}" == "9999" ]] && myconf -Dusedevel -Uversiononly
|
||||
|
||||
[[ -n "${EXTRA_ECONF}" ]] && ewarn During Perl build, EXTRA_ECONF=${EXTRA_ECONF}
|
||||
# allow fiddling via EXTRA_ECONF, bug 558070
|
||||
eval "local -a EXTRA_ECONF=(${EXTRA_ECONF})"
|
||||
|
||||
# setting -Dld= to tc-getLD breaks perl and all perl things
|
||||
# https://github.com/Perl/perl5/issues/17791#issuecomment-630145202
|
||||
myconf \
|
||||
-Duseshrplib \
|
||||
-Darchname="${myarch}" \
|
||||
-Dcc="$(tc-getCC)" \
|
||||
-Dar="$(tc-getAR)" \
|
||||
-Dnm="$(tc-getNM)" \
|
||||
-Dcpp="$(tc-getCPP)" \
|
||||
-Dranlib="$(tc-getRANLIB)" \
|
||||
-Doptimize="${CFLAGS}" \
|
||||
-Dldflags="${LDFLAGS}" \
|
||||
-Dprefix="${EPREFIX}"'/usr' \
|
||||
-Dsiteprefix="${EPREFIX}"'/usr/local' \
|
||||
-Dvendorprefix="${EPREFIX}"'/usr' \
|
||||
-Dscriptdir="${EPREFIX}"'/usr/bin' \
|
||||
-Dprivlib="${EPREFIX}${PRIV_LIB}" \
|
||||
-Darchlib="${EPREFIX}${ARCH_LIB}" \
|
||||
-Dsitelib="${EPREFIX}${SITE_LIB}" \
|
||||
-Dsitearch="${EPREFIX}${SITE_ARCH}" \
|
||||
-Dvendorlib="${EPREFIX}${VENDOR_LIB}" \
|
||||
-Dvendorarch="${EPREFIX}${VENDOR_ARCH}" \
|
||||
-Dman1dir="${EPREFIX}"/usr/share/man/man1 \
|
||||
-Dman3dir="${EPREFIX}"/usr/share/man/man3 \
|
||||
-Dsiteman1dir="${EPREFIX}"/usr/local/man/man1 \
|
||||
-Dsiteman3dir="${EPREFIX}"/usr/local/man/man3 \
|
||||
-Dvendorman1dir="${EPREFIX}"/usr/share/man/man1 \
|
||||
-Dvendorman3dir="${EPREFIX}"/usr/share/man/man3 \
|
||||
-Dman1ext='1' \
|
||||
-Dman3ext='3pm' \
|
||||
-Dlibperl="${LIBPERL}" \
|
||||
-Dlocincpth="${EPREFIX}"'/usr/include ' \
|
||||
-Dglibpth="${EPREFIX}/$(get_libdir) ${EPREFIX}/usr/$(get_libdir)"' ' \
|
||||
-Duselargefiles \
|
||||
-Dd_semctl_semun \
|
||||
-Dcf_by='Gentoo' \
|
||||
-Dmyhostname='localhost' \
|
||||
-Dperladmin='root@localhost' \
|
||||
-Ud_csh \
|
||||
-Dsh="${EPREFIX}"/bin/sh \
|
||||
-Dtargetsh="${EPREFIX}"/bin/sh \
|
||||
-Uusenm \
|
||||
"${myconf[@]}" \
|
||||
"${EXTRA_ECONF[@]}"
|
||||
|
||||
if tc-is-cross-compiler; then
|
||||
./configure \
|
||||
--target="${CHOST}" \
|
||||
--build="${CBUILD}" \
|
||||
-Dinstallprefix='' \
|
||||
-Dinstallusrbinperl='undef' \
|
||||
-Dusevendorprefix='define' \
|
||||
"${myconf[@]}" \
|
||||
|| die "Unable to configure"
|
||||
else
|
||||
sh Configure \
|
||||
-des \
|
||||
-Dinstallprefix="${EPREFIX}"'/usr' \
|
||||
-Dinstallusrbinperl='n' \
|
||||
"${myconf[@]}" \
|
||||
|| die "Unable to configure"
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
export NO_GENTOO_NETWORK_TESTS=1;
|
||||
export GENTOO_ASSUME_SANDBOXED="${GENTOO_ASSUME_SANDBOXED:-1}"
|
||||
export GENTOO_NO_PORTING_TESTS="${GENTOO_NO_PORTING_TESTS:-1}"
|
||||
if [[ ${EUID} == 0 ]] ; then
|
||||
ewarn "Test fails with a sandbox error (#328793) if run as root. Skipping tests..."
|
||||
return 0
|
||||
fi
|
||||
use elibc_uclibc && export MAKEOPTS+=" -j1"
|
||||
TEST_JOBS="$(makeopts_jobs)" make test_harness || die "test failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local i
|
||||
local coredir="${ARCH_LIB}/CORE"
|
||||
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
rm -f "${ED}/usr/bin/perl${MY_PV}"
|
||||
ln -s perl "${ED}"/usr/bin/perl${MY_PV} || die
|
||||
|
||||
if ! tc-is-static-only ; then
|
||||
dolib.so "${ED}"${coredir}/${LIBPERL}
|
||||
rm -f "${ED}"${coredir}/${LIBPERL}
|
||||
ln -sf ${LIBPERL} "${ED}"/usr/$(get_libdir)/libperl$(get_libname ${SHORT_PV}) || die
|
||||
ln -sf ${LIBPERL} "${ED}"/usr/$(get_libdir)/libperl$(get_libname) || die
|
||||
|
||||
ln -sf ../../../../${LIBPERL} "${ED}"${coredir}/${LIBPERL} || die
|
||||
ln -sf ../../../../${LIBPERL} "${ED}"${coredir}/libperl$(get_libname ${SHORT_PV}) || die
|
||||
ln -sf ../../../../${LIBPERL} "${ED}"${coredir}/libperl$(get_libname) || die
|
||||
fi
|
||||
|
||||
rm -rf "${ED}"/usr/share/man/man3 || die "Unable to remove module man pages"
|
||||
|
||||
# This removes ${D} from Config.pm
|
||||
for i in $(find "${D}" -iname "Config.pm" ) ; do
|
||||
einfo "Removing ${D} from ${i}..."
|
||||
sed -i -e "s:${D}::" "${i}" || die "Sed failed"
|
||||
done
|
||||
|
||||
dodoc Changes* README AUTHORS
|
||||
|
||||
if use doc ; then
|
||||
# HTML Documentation
|
||||
# We expect errors, warnings, and such with the following.
|
||||
|
||||
dodir /usr/share/doc/${PF}/html
|
||||
LD_LIBRARY_PATH=. ./perl installhtml \
|
||||
--podroot='.' \
|
||||
--podpath='lib:ext:pod:vms' \
|
||||
--recurse \
|
||||
--htmldir="${ED}/usr/share/doc/${PF}/html"
|
||||
fi
|
||||
|
||||
[[ -d ${ED}/usr/local ]] && rm -r "${ED}"/usr/local
|
||||
|
||||
dual_scripts
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
check_rebuild
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
dual_scripts
|
||||
|
||||
if [[ "${ROOT}" = "/" ]] ; then
|
||||
local INC DIR file
|
||||
INC=$(perl -e 'for $line (@INC) { next if $line eq "."; next if $line =~ m/'${SHORT_PV}'|etc|local|perl$/; print "$line\n" }')
|
||||
einfo "Removing old .ph files"
|
||||
for DIR in ${INC} ; do
|
||||
if [[ -d "${DIR}" ]] ; then
|
||||
for file in $(find "${DIR}" -name "*.ph" -type f ) ; do
|
||||
rm -f "${file}"
|
||||
einfo "<< ${file}"
|
||||
done
|
||||
fi
|
||||
done
|
||||
# Silently remove the now empty dirs
|
||||
for DIR in ${INC} ; do
|
||||
if [[ -d "${DIR}" ]] ; then
|
||||
find "${DIR}" -depth -type d -print0 | xargs -0 -r rmdir &> /dev/null
|
||||
fi
|
||||
done
|
||||
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
dual_scripts
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue