parent
c33e077105
commit
c274bd1c6b
@ -1,123 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/gkrellm/gkrellm-2.3.5-r2.ebuild,v 1.11 2013/09/06 18:34:00 ago Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit eutils multilib toolchain-funcs user systemd
|
||||
|
||||
DESCRIPTION="Single process stack of various system monitors"
|
||||
HOMEPAGE="http://www.gkrellm.net/"
|
||||
SRC_URI="http://members.dslextreme.com/users/billw/${PN}/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="2"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux"
|
||||
IUSE="hddtemp gnutls lm_sensors nls ssl ntlm X kernel_FreeBSD"
|
||||
|
||||
RDEPEND="dev-libs/glib:2
|
||||
hddtemp? ( app-admin/hddtemp )
|
||||
gnutls? ( net-libs/gnutls )
|
||||
!gnutls? ( ssl? ( dev-libs/openssl ) )
|
||||
lm_sensors? ( sys-apps/lm_sensors )
|
||||
nls? ( virtual/libintl )
|
||||
ntlm? ( net-libs/libntlm )
|
||||
X? ( x11-libs/gtk+:2 )"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
nls? ( sys-devel/gettext )"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup gkrellmd
|
||||
enewuser gkrellmd -1 -1 -1 gkrellmd
|
||||
TARGET=
|
||||
use kernel_FreeBSD && TARGET="freebsd"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
sed -e 's:-O2 ::' \
|
||||
-e 's:override CC:CFLAGS:' \
|
||||
-e 's:-L/usr/X11R6/lib::' \
|
||||
-i */Makefile || die "sed Makefile(s) failed"
|
||||
|
||||
sed -e 's:#user\tnobody:user\tgkrellmd:' \
|
||||
-e 's:#group\tproc:group\tgkrellmd:' \
|
||||
-i server/gkrellmd.conf || die "sed gkrellmd.conf failed"
|
||||
|
||||
sed -e "s:/usr/lib:${EPREFIX}/usr/$(get_libdir):" \
|
||||
-e "s:/usr/local/lib:${EPREFIX}/usr/local/$(get_libdir):" \
|
||||
-i src/${PN}.h || die "sed ${PN}.h failed"
|
||||
|
||||
epatch "${FILESDIR}/${P}-autofs.patch"
|
||||
epatch "${FILESDIR}/${P}-cifs.patch"
|
||||
epatch "${FILESDIR}/${P}-dso.patch"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if use X ; then
|
||||
local sslopt=""
|
||||
if use gnutls; then
|
||||
sslopt="without-ssl=yes"
|
||||
elif use ssl; then
|
||||
sslopt="without-gnutls=yes"
|
||||
else
|
||||
sslopt="without-ssl=yes without-gnutls=yes"
|
||||
fi
|
||||
|
||||
emake ${TARGET} \
|
||||
CC="$(tc-getCC)" \
|
||||
STRIP="" \
|
||||
INSTALLROOT="${EPREFIX}/usr" \
|
||||
INCLUDEDIR="${EPREFIX}/usr/include/gkrellm2" \
|
||||
LOCALEDIR="${EPREFIX}/usr/share/locale" \
|
||||
$(use nls || echo enable_nls=0) \
|
||||
$(use lm_sensors || echo without-libsensors=yes) \
|
||||
$(use ntlm || echo without-ntlm=yes) \
|
||||
${sslopt} \
|
||||
|| die "emake failed"
|
||||
else
|
||||
cd server
|
||||
emake ${TARGET} \
|
||||
CC="$(tc-getCC)" \
|
||||
LINK_FLAGS="$LDFLAGS -Wl,-E" \
|
||||
STRIP="" \
|
||||
$(use nls || echo enable_nls=0) \
|
||||
$(use lm_sensors || echo without-libsensors=yes) \
|
||||
|| die "emake failed"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
if use X ; then
|
||||
emake install${TARGET:+_}${TARGET} \
|
||||
$(use nls || echo enable_nls=0) \
|
||||
STRIP="" \
|
||||
INSTALLDIR="${ED}/usr/bin" \
|
||||
INCLUDEDIR="${ED}/usr/include" \
|
||||
LOCALEDIR="${ED}/usr/share/locale" \
|
||||
PKGCONFIGDIR="${ED}/usr/$(get_libdir)/pkgconfig" \
|
||||
MANDIR="${ED}/usr/share/man/man1" \
|
||||
|| die "emake install failed"
|
||||
|
||||
dohtml *.html
|
||||
|
||||
newicon src/icon.xpm ${PN}.xpm
|
||||
make_desktop_entry ${PN} GKrellM ${PN}
|
||||
else
|
||||
dobin server/gkrellmd || die "dobin failed"
|
||||
|
||||
insinto /usr/include/gkrellm2
|
||||
doins server/gkrellmd.h || die "doins failed"
|
||||
doins shared/log.h || die "doins failed"
|
||||
fi
|
||||
|
||||
doinitd "${FILESDIR}"/gkrellmd || die "doinitd failed"
|
||||
newconfd "${FILESDIR}"/gkrellmd.conf gkrellmd || die "newconfd failed"
|
||||
|
||||
systemd_dounit "${FILESDIR}"/gkrellmd.service
|
||||
|
||||
insinto /etc
|
||||
doins server/gkrellmd.conf || die "doins failed"
|
||||
|
||||
dodoc Changelog CREDITS README
|
||||
}
|
@ -0,0 +1,50 @@
|
||||
From 88f92eb11d556bf43e2800a05973ad2da0db0195 Mon Sep 17 00:00:00 2001
|
||||
From: Flavio Percoco <flaper87@gmail.com>
|
||||
Date: Fri, 8 May 2015 11:44:14 +0200
|
||||
Subject: [PATCH] Save image data after setting the data
|
||||
|
||||
The image's locations are missing when image's are imported using tasks
|
||||
because the ImportToStore task is not saving the image metadata after
|
||||
the import. This patch fixes that.
|
||||
|
||||
Change-Id: I43dec450d5fc4bee2131d78dbe3c2b2373c3f739
|
||||
Closes-bug: #1453068
|
||||
(cherry picked from commit 4efb56aae9288952bdb0d368a7c307e8524b80d8)
|
||||
---
|
||||
glance/async/flows/base_import.py | 4 ++++
|
||||
glance/tests/unit/async/flows/test_import.py | 4 ++++
|
||||
2 files changed, 8 insertions(+)
|
||||
|
||||
diff --git a/glance/async/flows/base_import.py b/glance/async/flows/base_import.py
|
||||
index 487247c..7656bde 100644
|
||||
--- a/glance/async/flows/base_import.py
|
||||
+++ b/glance/async/flows/base_import.py
|
||||
@@ -283,6 +283,10 @@ class _ImportToStore(task.Task):
|
||||
|
||||
image_import.set_image_data(image, file_path or self.uri, None)
|
||||
|
||||
+ # NOTE(flaper87): We need to save the image again after the locations
|
||||
+ # have been set in the image.
|
||||
+ self.image_repo.save(image)
|
||||
+
|
||||
|
||||
class _SaveImage(task.Task):
|
||||
|
||||
diff --git a/glance/tests/unit/async/flows/test_import.py b/glance/tests/unit/async/flows/test_import.py
|
||||
index 0f355bc..7acd599 100644
|
||||
--- a/glance/tests/unit/async/flows/test_import.py
|
||||
+++ b/glance/tests/unit/async/flows/test_import.py
|
||||
@@ -112,6 +112,10 @@ class TestImportTask(test_utils.BaseTestCase):
|
||||
"%s.tasks_import" % image_path)
|
||||
self.assertFalse(os.path.exists(tmp_image_path))
|
||||
self.assertTrue(os.path.exists(image_path))
|
||||
+ self.assertEqual(1, len(list(self.image.locations)))
|
||||
+ self.assertEqual("file://%s/%s" % (self.test_dir,
|
||||
+ self.image.image_id),
|
||||
+ self.image.locations[0]['url'])
|
||||
|
||||
def test_import_flow_missing_work_dir(self):
|
||||
self.config(engine_mode='serial', group='taskflow_executor')
|
||||
--
|
||||
2.3.6
|
||||
|
@ -0,0 +1,186 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/glance/glance-2015.1.0-r1.ebuild,v 1.2 2015/07/29 07:25:08 ago Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1 user
|
||||
|
||||
DESCRIPTION="Provides services for discovering, registering, and retrieving
|
||||
virtual machine images"
|
||||
HOMEPAGE="https://launchpad.net/glance"
|
||||
SRC_URI="http://launchpad.net/${PN}/kilo/${PV}/+download/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~x86"
|
||||
IUSE="doc mysql postgres +sqlite +swift test"
|
||||
REQUIRED_USE="|| ( mysql postgres sqlite )"
|
||||
|
||||
DEPEND="
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
>=dev-python/pbr-0.8.0[${PYTHON_USEDEP}]
|
||||
<dev-python/pbr-1.0[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
${RDEPEND}
|
||||
>=dev-python/hacking-0.10.0[${PYTHON_USEDEP}]
|
||||
<dev-python/hacking-0.11[${PYTHON_USEDEP}]
|
||||
~dev-python/Babel-1.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/coverage-3.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/fixtures-0.3.14[${PYTHON_USEDEP}]
|
||||
>=dev-python/mock-1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}]
|
||||
!~dev-python/sphinx-1.2.0[${PYTHON_USEDEP}]
|
||||
<dev-python/sphinx-1.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-2.2.0[${PYTHON_USEDEP}]
|
||||
!~dev-python/requests-2.4.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}]
|
||||
>=dev-python/testtools-0.9.36[${PYTHON_USEDEP}]
|
||||
!~dev-python/testtools-1.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/psutil-1.1.1[${PYTHON_USEDEP}]
|
||||
<dev-python/psutil-2.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslotest-1.5.1[${PYTHON_USEDEP}]
|
||||
<dev-python/oslotest-1.6.0[${PYTHON_USEDEP}]
|
||||
dev-python/mysql-python[${PYTHON_USEDEP}]
|
||||
dev-python/psycopg[${PYTHON_USEDEP}]
|
||||
~dev-python/pysendfile-2.0.1[${PYTHON_USEDEP}]
|
||||
dev-python/qpid-python[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyxattr-0.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-sphinx-2.5.0[${PYTHON_USEDEP}]
|
||||
<dev-python/oslo-sphinx-2.6.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/elasticsearch-py-1.3.0[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
#note to self, wsgiref is a python builtin, no need to package it
|
||||
#>=dev-python/wsgiref-0.1.2[${PYTHON_USEDEP}]
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/greenlet-0.3.2[${PYTHON_USEDEP}]
|
||||
sqlite? (
|
||||
>=dev-python/sqlalchemy-0.9.7[sqlite,${PYTHON_USEDEP}]
|
||||
<=dev-python/sqlalchemy-0.9.99[sqlite,${PYTHON_USEDEP}]
|
||||
)
|
||||
mysql? (
|
||||
dev-python/mysql-python
|
||||
>=dev-python/sqlalchemy-0.9.7[${PYTHON_USEDEP}]
|
||||
<=dev-python/sqlalchemy-0.9.99[${PYTHON_USEDEP}]
|
||||
)
|
||||
postgres? (
|
||||
dev-python/psycopg:2
|
||||
>=dev-python/sqlalchemy-0.9.7[${PYTHON_USEDEP}]
|
||||
<=dev-python/sqlalchemy-0.9.99[${PYTHON_USEDEP}]
|
||||
)
|
||||
>=dev-python/anyjson-0.3.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/eventlet-0.16.1[${PYTHON_USEDEP}]
|
||||
!~dev-python/eventlet-0.17.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pastedeploy-1.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/routes-1.12.3[${PYTHON_USEDEP}]
|
||||
!~dev-python/routes-2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/webob-1.2.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/sqlalchemy-migrate-0.9.5[${PYTHON_USEDEP}]
|
||||
>=dev-python/httplib2-0.7.5[${PYTHON_USEDEP}]
|
||||
>=dev-python/kombu-2.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pycrypto-2.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/iso8601-0.1.9[${PYTHON_USEDEP}]
|
||||
dev-python/ordereddict[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-config-1.9.3[${PYTHON_USEDEP}]
|
||||
<dev-python/oslo-config-1.10.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-concurrency-1.8.0[${PYTHON_USEDEP}]
|
||||
<dev-python/oslo-concurrency-1.9.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-context-0.2.0[${PYTHON_USEDEP}]
|
||||
<dev-python/oslo-context-0.3.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-utils-1.4.0[${PYTHON_USEDEP}]
|
||||
<dev-python/oslo-utils-1.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/stevedore-1.3.0[${PYTHON_USEDEP}]
|
||||
<dev-python/stevedore-1.4.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/taskflow-0.7.1[${PYTHON_USEDEP}]
|
||||
<dev-python/taskflow-0.8.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/keystonemiddleware-1.5.0[${PYTHON_USEDEP}]
|
||||
<dev-python/keystonemiddleware-1.6.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/WSME-0.6[${PYTHON_USEDEP}]
|
||||
dev-python/posix_ipc[${PYTHON_USEDEP}]
|
||||
swift? (
|
||||
>=dev-python/python-swiftclient-2.2.0[${PYTHON_USEDEP}]
|
||||
<dev-python/python-swiftclient-2.5.0[${PYTHON_USEDEP}]
|
||||
)
|
||||
>=dev-python/oslo-vmware-0.11.1[${PYTHON_USEDEP}]
|
||||
<dev-python/oslo-vmware-0.12.0[${PYTHON_USEDEP}]
|
||||
dev-python/paste[${PYTHON_USEDEP}]
|
||||
>=dev-python/jsonschema-2.0.0[${PYTHON_USEDEP}]
|
||||
<dev-python/jsonschema-3.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-keystoneclient-1.1.0[${PYTHON_USEDEP}]
|
||||
<dev-python/python-keystoneclient-1.4.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyopenssl-0.11[${PYTHON_USEDEP}]
|
||||
>=dev-python/six-1.9.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-db-1.7.0[${PYTHON_USEDEP}]
|
||||
<dev-python/oslo-db-1.8.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-i18n-1.5.0[${PYTHON_USEDEP}]
|
||||
<dev-python/oslo-i18n-1.6.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-log-1.0.0[${PYTHON_USEDEP}]
|
||||
<dev-python/oslo-log-1.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-messaging-1.8.0[${PYTHON_USEDEP}]
|
||||
<dev-python/oslo-messaging-1.9.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-policy-0.3.1[${PYTHON_USEDEP}]
|
||||
<dev-python/oslo-policy-0.4.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-serialization-1.4.0[${PYTHON_USEDEP}]
|
||||
<dev-python/oslo-serialization-1.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/retrying-1.2.2[${PYTHON_USEDEP}]
|
||||
!~dev-python/retrying-1.3.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/osprofiler-0.3.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/glance_store-0.3.0[${PYTHON_USEDEP}]
|
||||
<dev-python/glance_store-0.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/semantic_version-2.3.1[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/CVE-2015-3289_2015.1.0.patch"
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup glance
|
||||
enewuser glance -1 -1 /var/lib/glance glance
|
||||
}
|
||||
|
||||
python_prepare_all() {
|
||||
sed -i '/xattr/d' test-requirements.txt || die
|
||||
sed -i '/pysendfile/d' test-requirements.txt || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && "${PYTHON}" setup.py build_sphinx
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# https://bugs.launchpad.net/glance/+bug/1251105
|
||||
# https://bugs.launchpad.net/glance/+bug/1242501
|
||||
testr init
|
||||
testr run --parallel || die "failed testsuite under python2.7"
|
||||
}
|
||||
|
||||
python_install() {
|
||||
distutils-r1_python_install
|
||||
|
||||
for svc in api registry scrubber; do
|
||||
newinitd "${FILESDIR}/glance.initd" glance-${svc}
|
||||
done
|
||||
|
||||
diropts -m 0750 -o glance -g glance
|
||||
dodir /var/log/glance /var/lib/glance/images /var/lib/glance/scrubber
|
||||
keepdir /etc/glance
|
||||
keepdir /var/log/glance
|
||||
keepdir /var/lib/glance/images
|
||||
keepdir /var/lib/glance/scrubber
|
||||
|
||||
insinto /etc/glance
|
||||
insopts -m 0640 -o glance -g glance
|
||||
doins etc/*.ini
|
||||
doins etc/*.conf
|
||||
doins etc/*.sample
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( doc/build/html/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -1,4 +1,2 @@
|
||||
DIST puppet-agent_1.2.1-1wheezy_amd64.deb 14844872 SHA256 32cbaa58766dc6d7dd35cfa952c161fd44414110b9cd787080375fd18850bf5f SHA512 22e39fb4110d4b3c7ea2df5a7ed76f0eb5879e9dd57f8c8f0cae360640e6b4058405fd07a5ba0ac25535cedf8e8435d14f719e79e225d4500b0384685bb78425 WHIRLPOOL ab4e1c746c9c2eb3648a27ced7a765f71d4b39afeef9a46a5e8bbb17646e91f278bcac2baa9fc8ccda22b7b74685ebee0f5710b64046701dbf809849e12f29f3
|
||||
DIST puppet-agent_1.2.1-1wheezy_i386.deb 14792652 SHA256 9fd6ce453c6b5183cad74941f763d7b8fca2754d733e2b52e3b7b5e7be4c7a3d SHA512 c773b18b424fb98a6213529787a1c52216bbd5070da86a96ae03293c3b2e079b2d77511ac05501056e1ec01f2ffce3ec357c25b6150c76375d407f6b1024d26d WHIRLPOOL 9bdfcc5ac2649a6d477097abe59cec80eb30eda0ebf15af6de0e328dee51bb7f7604092006b3e274ec50419bc27b2f6c2f1f0480eed3fe7492dc65d479de9190
|
||||
DIST puppet-agent_1.2.2-1wheezy_amd64.deb 14860604 SHA256 5910ff850e8814092b50dc70a68d8c5497d5fe3d960bfef9cd13f8dc689dc665 SHA512 ad11b0ba820186f4b315ac156e8bf78348acd69d11e4c03cb12314fc73e4e3fbfef0814664e7fd04f692e8db42f9e137194e267354b2fc4ec8dda424af9f5d98 WHIRLPOOL 25c42e9f7871ccf61eb55b83327813e6090ee359c42e1e473ef09155db69adebfe412fd61a5752b4b634e5ad8aa7bd45d4a86f7e5ba29c1bdb74033b91f45c3f
|
||||
DIST puppet-agent_1.2.2-1wheezy_i386.deb 14816930 SHA256 092b8bfe1e1156322d0ab68d411487c80146bd778916409b1c907791f41a49c8 SHA512 50879ce4eebcd451dafb33cb7a12c36ee9bcaedfc29ffa0d60552efa5aa4cd66d0007061d28a80d31615c67442f8526863185e6753418772d8275e58454d6886 WHIRLPOOL 7abb0b6f52f5dd07a5ccb56b1c795c05f8c4efd18665d2ca209400e51419e4ae335e630a845c031a47df09d96ce20fbc92d7cafa082deb3872306daf74838612
|
||||
|
@ -1,62 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/puppet-agent/puppet-agent-1.2.2.ebuild,v 1.1 2015/07/23 22:53:12 prometheanfire Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit eutils systemd unpacker
|
||||
|
||||
DESCRIPTION="general puppet client utils along with mcollective hiera and facter"
|
||||
HOMEPAGE="https://puppetlabs.com/"
|
||||
SRC_BASE="http://apt.puppetlabs.com/pool/wheezy/PC1/${PN:0:1}/${PN}/${PN}_${PV}-1wheezy"
|
||||
SRC_URI="
|
||||
amd64? ( ${SRC_BASE}_amd64.deb )
|
||||
x86? ( ${SRC_BASE}_i386.deb )
|
||||
"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="puppetdb"
|
||||
RESTRICT="strip"
|
||||
|
||||
DEPEND="
|
||||
${DEPEND}
|
||||
!app-admin/puppet
|
||||
!app-admin/mcollective
|
||||
!dev-ruby/hiera
|
||||
!dev-ruby/facter"
|
||||
RDEPEND="puppetdb? ( >=dev-ruby/puppetdb-termini-3.0.1-r2 )"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
src_install() {
|
||||
# conf.d
|
||||
doconfd etc/default/puppet
|
||||
doconfd etc/default/mcollective
|
||||
# logrotate.d
|
||||
insinto /etc/logrotate.d
|
||||
doins etc/logrotate.d/mcollective
|
||||
# puppet itself
|
||||
insinto /etc/puppetlabs
|
||||
doins -r etc/puppetlabs/*
|
||||
# logdir for systemd
|
||||
dodir var/log/puppetlabs/puppet/
|
||||
fperms 0750 var/log/puppetlabs/puppet/
|
||||
# the rest
|
||||
insinto /opt
|
||||
doins -r opt/*
|
||||
fperms 0750 /opt/puppetlabs/puppet/cache
|
||||
# init
|
||||
newinitd "${FILESDIR}/puppet.initd" puppet
|
||||
newinitd "${FILESDIR}/mcollective.initd" mcollective
|
||||
systemd_dounit "${FILESDIR}/puppet.service"
|
||||
systemd_dounit "${FILESDIR}/mcollective.service"
|
||||
systemd_newtmpfilesd "${FILESDIR}/puppet-agent.conf.tmpfilesd" puppet-agent.conf
|
||||
# symlinks
|
||||
chmod 0755 -R "${D}/opt/puppetlabs/puppet/bin/"
|
||||
dosym /opt/puppetlabs/bin/facter /usr/bin/facter
|
||||
dosym /opt/puppetlabs/bin/hiera /usr/bin/hiera
|
||||
dosym /opt/puppetlabs/bin/mco /usr/bin/mco
|
||||
dosym /opt/puppetlabs/bin/puppet /usr/bin/puppet
|
||||
dosym /opt/puppetlabs/puppet/bin/mcollectived /usr/sbin/mcollectived
|
||||
}
|
@ -1,41 +0,0 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/ulogd/files/ulogd-2-ng.init,v 1.4 2015/06/01 02:15:36 idella4 Exp $
|
||||
|
||||
ULOGD_PIDFILE="/run/ulogd.pid"
|
||||
ULOGD_BINARY="/usr/sbin/ulogd"
|
||||
ULOGD_OPTS="--daemon --uid ulogd --pidfile ${ULOGD_PIDFILE}"
|
||||
|
||||
extra_started_commands="reload reopen_logs"
|
||||
|
||||
depend() {
|
||||
before iptables ip6tables ebtables firewall
|
||||
after mysql postgresql
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting ${SVCNAME}"
|
||||
start-stop-daemon --start \
|
||||
--exec ${ULOGD_BINARY} --pidfile ${ULOGD_PIDFILE} \
|
||||
-- ${ULOGD_OPTS}
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping ${SVCNAME}"
|
||||
start-stop-daemon --stop --pidfile ${ULOGD_PIDFILE}
|
||||
eend $?
|
||||
}
|
||||
|
||||
reload() {
|
||||
ebegin "Reloading ${SVCNAME} configuration"
|
||||
start-stop-daemon --signal USR1 --pidfile ${ULOGD_PIDFILE}
|
||||
eend $?
|
||||
}
|
||||
|
||||
reopen_logs() {
|
||||
ebegin "Reopening ${SVCNAME} logfiles"
|
||||
start-stop-daemon --signal HUP --pidfile ${ULOGD_PIDFILE}
|
||||
eend $?
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
/var/log/ulogd/ulogd.log /var/log/ulogd/ulogd_syslogemu.log {
|
||||
sharedscripts
|
||||
missingok
|
||||
notifempty
|
||||
create 0640 ulogd
|
||||
postrotate
|
||||
/etc/init.d/ulogd reopen_logs > /dev/null
|
||||
endscript
|
||||
}
|
@ -1,139 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/ulogd/ulogd-2.0.4.ebuild,v 1.9 2015/01/28 10:26:01 ago Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
AUTOTOOLS_AUTORECONF=1
|
||||
AUTOTOOLS_IN_SOURCE_BUILD=1
|
||||
inherit autotools-utils eutils linux-info readme.gentoo user
|
||||
|
||||
DESCRIPTION="A userspace logging daemon for netfilter/iptables related logging"
|
||||
HOMEPAGE="http://netfilter.org/projects/ulogd/index.html"
|
||||
SRC_URI="ftp://ftp.netfilter.org/pub/${PN}/${P}.tar.bz2
|
||||
http://www.netfilter.org/projects/${PN}/files/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~ia64 ppc x86"
|
||||
IUSE="dbi doc json mysql nfacct +nfct +nflog pcap postgres sqlite"
|
||||
|
||||
RDEPEND="net-firewall/iptables
|
||||
>=net-libs/libnfnetlink-1.0.1
|
||||
dbi? ( dev-db/libdbi )
|
||||
json? ( dev-libs/jansson )
|
||||
nfacct? (
|
||||
>=net-libs/libmnl-1.0.3
|
||||
>=net-libs/libnetfilter_acct-1.0.1
|
||||
)
|
||||
nfct? ( >=net-libs/libnetfilter_conntrack-1.0.2 )
|
||||
nflog? ( >=net-libs/libnetfilter_log-1.0.0 )
|
||||
mysql? ( virtual/mysql )
|
||||
pcap? ( net-libs/libpcap )
|
||||
postgres? ( dev-db/postgresql )
|
||||
sqlite? ( dev-db/sqlite:3 )"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
doc? (
|
||||
app-text/linuxdoc-tools
|
||||
app-text/texlive-core
|
||||
virtual/latex-base
|
||||
)"
|
||||
|
||||
DOCS=( AUTHORS README TODO )
|
||||
DOC_CONTENTS="You must have at least one logging stack enabled to make ulogd work.
|
||||
Please edit example configuration located at /etc/ulogd.conf"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup ulogd
|
||||
enewuser ulogd -1 -1 /var/log/ulogd ulogd
|
||||
|
||||
linux-info_pkg_setup
|
||||
|
||||
if kernel_is lt 2 6 14; then
|
||||
die "ulogd2 requires kernel newer than 2.6.14"
|
||||
fi
|
||||
|
||||
if kernel_is lt 2 6 18; then
|
||||
ewarn
|
||||
ewarn "You are using kernel older than 2.6.18"
|
||||
ewarn "Some ulogd2 features may be unavailable"
|
||||
ewarn
|
||||
fi
|
||||
|
||||
if use nfacct && kernel_is lt 3 3 0; then
|
||||
ewarn "NFACCT input plugin requires kernel newer than 3.3.0"
|
||||
fi
|
||||
|
||||
if ! use nfacct && ! use nfct && ! use nflog && kernel_is gt 3 17 0; then
|
||||
ewarn "ULOG target was removed since 3.17.0 kernel release"
|
||||
ewarn "Consider enabling NFACCT, NFCT or NFLOG support"
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${P}-linux-headers-3.17-ipt_ulog.patch"
|
||||
|
||||
# - make all logs to be kept in a single dir /var/log/ulogd
|
||||
# - place sockets in /run instead of /tmp
|
||||
sed -i \
|
||||
-e 's:var/log:var/log/ulogd:g' \
|
||||
-e 's:tmp:run:g' \
|
||||
ulogd.conf.in || die 'sed on ulogd.conf.in failed'
|
||||
|
||||
autotools-utils_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
$(use_with dbi)
|
||||
$(use_with json jansson)
|
||||
$(use_enable nfacct)
|
||||
$(use_enable nfct)
|
||||
$(use_enable nflog)
|
||||
$(use_with mysql)
|
||||
$(use_with pcap)
|
||||
$(use_with postgres pgsql)
|
||||
$(use_with sqlite)
|
||||
)
|
||||
autotools-utils_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
autotools-utils_src_compile
|
||||
|
||||
if use doc ; then
|
||||
# prevent access violations from generation of bitmap font files
|
||||
export VARTEXFONTS="${T}"/fonts
|
||||
emake -C doc
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
autotools-utils_src_install
|
||||
readme.gentoo_create_doc
|
||||
prune_libtool_files --modules
|
||||
|
||||
if use doc ; then
|
||||
dohtml doc/${PN}.html
|
||||
dodoc doc/${PN}.dvi doc/${PN}.txt doc/${PN}.ps
|
||||
fi
|
||||
|
||||
use sqlite && dodoc doc/sqlite3.table
|
||||
use mysql && dodoc doc/mysql-*.sql
|
||||
use postgres && dodoc doc/pgsql-*.sql
|
||||
doman ${PN}.8
|
||||
|
||||
insinto /etc
|
||||
doins ${PN}.conf
|
||||
fowners root:ulogd /etc/ulogd.conf
|
||||
fperms 640 /etc/ulogd.conf
|
||||
|
||||
newinitd "${FILESDIR}/${PN}-2-ng.init" ${PN}
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/${PN}-2.logrotate" ${PN}
|
||||
|
||||
diropts -o ulogd -g ulogd
|
||||
keepdir /var/log/ulogd
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
Index: Makefile
|
||||
===================================================================
|
||||
--- Makefile (revision 109)
|
||||
+++ Makefile (working copy)
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
CC ?= gcc
|
||||
|
||||
-LIBS += -lncurses -lpthread -lrt -lm
|
||||
+LIBS += `pkg-config --libs ncurses` -lpthread -lrt -lm
|
||||
INCLUDEFLAGS =
|
||||
|
||||
BIN = i7z
|
||||
@@ -42,7 +42,7 @@
|
||||
|
||||
#http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=644728 for -ltinfo on debian
|
||||
static-bin: message $(OBJ)
|
||||
- $(CC) $(CFLAGS) $(LDFLAGS) -o $(BIN) $(OBJ) -static-libgcc -DNCURSES_STATIC -static -lpthread -lncurses -lrt -lm -ltinfo
|
||||
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $(BIN) $(OBJ) -static-libgcc -DNCURSES_STATIC -static -lpthread `pkg-config --static --libs ncurses` -lrt -lm
|
||||
|
||||
# perfmon-bin: message $(OBJ)
|
||||
# $(CC) $(CFLAGS) $(LDFLAGS) -o $(PERFMON-BIN) perfmon-i7z.c helper_functions.c $(LIBS)
|
@ -0,0 +1,161 @@
|
||||
From bde898de482645f6963b673e8ff0b486a0a6db25 Mon Sep 17 00:00:00 2001
|
||||
From: Matthias Maier <tamiko@kyomu.43-1.org>
|
||||
Date: Tue, 28 Jul 2015 11:10:59 -0500
|
||||
Subject: [PATCH] adapt paths for gentoo's fs layout
|
||||
|
||||
https://bugs.gentoo.org/show_bug.cgi?id=554628
|
||||
---
|
||||
examples/apparmor/Makefile.am | 4 +-
|
||||
examples/apparmor/usr.lib.libvirt.virt-aa-helper | 48 ------------------------
|
||||
examples/apparmor/usr.libexec.virt-aa-helper | 48 ++++++++++++++++++++++++
|
||||
examples/apparmor/usr.sbin.libvirtd | 4 +-
|
||||
4 files changed, 52 insertions(+), 52 deletions(-)
|
||||
delete mode 100644 examples/apparmor/usr.lib.libvirt.virt-aa-helper
|
||||
create mode 100644 examples/apparmor/usr.libexec.virt-aa-helper
|
||||
|
||||
diff --git a/examples/apparmor/Makefile.am b/examples/apparmor/Makefile.am
|
||||
index 7a20e16..c3c67b6 100644
|
||||
--- a/examples/apparmor/Makefile.am
|
||||
+++ b/examples/apparmor/Makefile.am
|
||||
@@ -19,13 +19,13 @@ EXTRA_DIST= \
|
||||
TEMPLATE.lxc \
|
||||
libvirt-qemu \
|
||||
libvirt-lxc \
|
||||
- usr.lib.libvirt.virt-aa-helper \
|
||||
+ usr.libexec.virt-aa-helper \
|
||||
usr.sbin.libvirtd
|
||||
|
||||
if WITH_APPARMOR_PROFILES
|
||||
apparmordir = $(sysconfdir)/apparmor.d/
|
||||
apparmor_DATA = \
|
||||
- usr.lib.libvirt.virt-aa-helper \
|
||||
+ usr.libexec.virt-aa-helper \
|
||||
usr.sbin.libvirtd \
|
||||
$(NULL)
|
||||
|
||||
diff --git a/examples/apparmor/usr.lib.libvirt.virt-aa-helper b/examples/apparmor/usr.lib.libvirt.virt-aa-helper
|
||||
deleted file mode 100644
|
||||
index b34fb35..0000000
|
||||
--- a/examples/apparmor/usr.lib.libvirt.virt-aa-helper
|
||||
+++ /dev/null
|
||||
@@ -1,48 +0,0 @@
|
||||
-# Last Modified: Mon Apr 5 15:10:27 2010
|
||||
-#include <tunables/global>
|
||||
-
|
||||
-profile virt-aa-helper /usr/{lib,lib64}/libvirt/virt-aa-helper {
|
||||
- #include <abstractions/base>
|
||||
-
|
||||
- # needed for searching directories
|
||||
- capability dac_override,
|
||||
- capability dac_read_search,
|
||||
-
|
||||
- # needed for when disk is on a network filesystem
|
||||
- network inet,
|
||||
-
|
||||
- deny @{PROC}/[0-9]*/mounts r,
|
||||
- @{PROC}/[0-9]*/net/psched r,
|
||||
- owner @{PROC}/[0-9]*/status r,
|
||||
- @{PROC}/filesystems r,
|
||||
-
|
||||
- # for hostdev
|
||||
- /sys/devices/ r,
|
||||
- /sys/devices/** r,
|
||||
-
|
||||
- /usr/{lib,lib64}/libvirt/virt-aa-helper mr,
|
||||
- /sbin/apparmor_parser Ux,
|
||||
-
|
||||
- /etc/apparmor.d/libvirt/* r,
|
||||
- /etc/apparmor.d/libvirt/libvirt-[0-9a-f]*-[0-9a-f]*-[0-9a-f]*-[0-9a-f]*-[0-9a-f]* rw,
|
||||
-
|
||||
- # for backingstore -- allow access to non-hidden files in @{HOME} as well
|
||||
- # as storage pools
|
||||
- audit deny @{HOME}/.* mrwkl,
|
||||
- audit deny @{HOME}/.*/ rw,
|
||||
- audit deny @{HOME}/.*/** mrwkl,
|
||||
- audit deny @{HOME}/bin/ rw,
|
||||
- audit deny @{HOME}/bin/** mrwkl,
|
||||
- @{HOME}/ r,
|
||||
- @{HOME}/** r,
|
||||
- /var/lib/libvirt/images/ r,
|
||||
- /var/lib/libvirt/images/** r,
|
||||
- /{media,mnt,opt,srv}/** r,
|
||||
-
|
||||
- /**.img r,
|
||||
- /**.qcow{,2} r,
|
||||
- /**.qed r,
|
||||
- /**.vmdk r,
|
||||
- /**.[iI][sS][oO] r,
|
||||
- /**/disk{,.*} r,
|
||||
-}
|
||||
diff --git a/examples/apparmor/usr.libexec.virt-aa-helper b/examples/apparmor/usr.libexec.virt-aa-helper
|
||||
new file mode 100644
|
||||
index 0000000..b34fb35
|
||||
--- /dev/null
|
||||
+++ b/examples/apparmor/usr.libexec.virt-aa-helper
|
||||
@@ -0,0 +1,48 @@
|
||||
+# Last Modified: Mon Apr 5 15:10:27 2010
|
||||
+#include <tunables/global>
|
||||
+
|
||||
+profile virt-aa-helper /usr/{lib,lib64}/libvirt/virt-aa-helper {
|
||||
+ #include <abstractions/base>
|
||||
+
|
||||
+ # needed for searching directories
|
||||
+ capability dac_override,
|
||||
+ capability dac_read_search,
|
||||
+
|
||||
+ # needed for when disk is on a network filesystem
|
||||
+ network inet,
|
||||
+
|
||||
+ deny @{PROC}/[0-9]*/mounts r,
|
||||
+ @{PROC}/[0-9]*/net/psched r,
|
||||
+ owner @{PROC}/[0-9]*/status r,
|
||||
+ @{PROC}/filesystems r,
|
||||
+
|
||||
+ # for hostdev
|
||||
+ /sys/devices/ r,
|
||||
+ /sys/devices/** r,
|
||||
+
|
||||
+ /usr/{lib,lib64}/libvirt/virt-aa-helper mr,
|
||||
+ /sbin/apparmor_parser Ux,
|
||||
+
|
||||
+ /etc/apparmor.d/libvirt/* r,
|
||||
+ /etc/apparmor.d/libvirt/libvirt-[0-9a-f]*-[0-9a-f]*-[0-9a-f]*-[0-9a-f]*-[0-9a-f]* rw,
|
||||
+
|
||||
+ # for backingstore -- allow access to non-hidden files in @{HOME} as well
|
||||
+ # as storage pools
|
||||
+ audit deny @{HOME}/.* mrwkl,
|
||||
+ audit deny @{HOME}/.*/ rw,
|
||||
+ audit deny @{HOME}/.*/** mrwkl,
|
||||
+ audit deny @{HOME}/bin/ rw,
|
||||
+ audit deny @{HOME}/bin/** mrwkl,
|
||||
+ @{HOME}/ r,
|
||||
+ @{HOME}/** r,
|
||||
+ /var/lib/libvirt/images/ r,
|
||||
+ /var/lib/libvirt/images/** r,
|
||||
+ /{media,mnt,opt,srv}/** r,
|
||||
+
|
||||
+ /**.img r,
|
||||
+ /**.qcow{,2} r,
|
||||
+ /**.qed r,
|
||||
+ /**.vmdk r,
|
||||
+ /**.[iI][sS][oO] r,
|
||||
+ /**/disk{,.*} r,
|
||||
+}
|
||||
diff --git a/examples/apparmor/usr.sbin.libvirtd b/examples/apparmor/usr.sbin.libvirtd
|
||||
index 5d606e6..ab2f1a9 100644
|
||||
--- a/examples/apparmor/usr.sbin.libvirtd
|
||||
+++ b/examples/apparmor/usr.sbin.libvirtd
|
||||
@@ -58,8 +58,8 @@
|
||||
audit deny /sys/kernel/security/apparmor/.* rwxl,
|
||||
/sys/kernel/security/apparmor/profiles r,
|
||||
/usr/{lib,lib64}/libvirt/* PUxr,
|
||||
- /usr/{lib,lib64}/libvirt/libvirt_parthelper ix,
|
||||
- /usr/{lib,lib64}/libvirt/libvirt_iohelper ix,
|
||||
+ /usr/libexec/libvirt_parthelper ix,
|
||||
+ /usr/libexec/libvirt_iohelper ix,
|
||||
/etc/libvirt/hooks/** rmix,
|
||||
/etc/xen/scripts/** rmix,
|
||||
|
||||
--
|
||||
2.3.6
|
||||
|
@ -0,0 +1,43 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-i18n/man-pages-pl/man-pages-pl-0_pre20070628-r2.ebuild,v 1.1 2015/07/28 10:34:33 idella4 Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit autotools
|
||||
|
||||
DESCRIPTION="A collection of Polish translations of Linux manual pages"
|
||||
HOMEPAGE="http://www.batnet.pl/ptm/"
|
||||
SRC_URI="http://www.batnet.pl/ptm/man-PL28-06-2007.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND=""
|
||||
|
||||
DOCS=(AUTHORS ChangeLog FAQ NEWS README TODO)
|
||||
|
||||
S="${WORKDIR}/pl_PL"
|
||||
|
||||
src_prepare() {
|
||||
# missing manpages
|
||||
sed -i -e '/\tpasswd.1/ d' man1/Makefile.am || die
|
||||
|
||||
# manpages provided by other packages
|
||||
mans="gendiff.1 groups.1 apropos.1 man.1 su.1 newgrp.1 whatis.1 gpasswd.1 chsh.1 \
|
||||
chfn.1 limits.5 login.1 expiry.1 porttime.5 lastlog.8 faillog.8 logoutd.8 \
|
||||
rpm.8 rpmdeps.8 rpmbuild.8 rpmcache.8 rpmgraph.8 rpm2cpio.8 evim.1 vim.1 \
|
||||
vimdiff.1 vimtutor.1 ex.1 rview.1 rvim.1 view.1 suauth.5 mc.1"
|
||||
# bug #375623:
|
||||
mans="${mans} manpath.5 catman.8 mandb.8 zsoelim.1 manpath.1"
|
||||
# bug #403379:
|
||||
mans="${mans} shadow.3"
|
||||
for page in ${mans} ; do
|
||||
sed -i -e "/\\t${page}/d; \$s,\\\,,;" man${page: -1}/Makefile.am || die
|
||||
done
|
||||
|
||||
eautoreconf
|
||||
}
|
@ -1,63 +0,0 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/cdargs/cdargs-1.35-r1.ebuild,v 1.6 2011/01/05 14:53:03 jlec Exp $
|
||||
|
||||
inherit elisp-common
|
||||
|
||||
DESCRIPTION="Bookmarks and browser for the shell builtin cd command"
|
||||
HOMEPAGE="http://www.skamphausen.de/cgi-bin/ska/CDargs"
|
||||
SRC_URI="http://www.skamphausen.de/software/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc ~sparc x86"
|
||||
IUSE="emacs"
|
||||
|
||||
DEPEND="sys-libs/ncurses
|
||||
emacs? ( virtual/emacs )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
SITEFILE=50${PN}-gentoo.el
|
||||
|
||||
src_compile() {
|
||||
econf
|
||||
emake || die "emake failed"
|
||||
|
||||
if use emacs; then
|
||||
elisp-compile contrib/cdargs.el || die "elisp-compile failed"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die "make install failed"
|
||||
dodoc README THANKS TODO AUTHORS || die
|
||||
|
||||
cd "${S}/contrib"
|
||||
insinto /usr/share/cdargs
|
||||
doins cdargs-bash.sh cdargs-tcsh.csh \
|
||||
|| die "failed to install contrib scripts"
|
||||
if use emacs ; then
|
||||
elisp-install ${PN} cdargs.{el,elc} || die "elisp-install failed"
|
||||
elisp-site-file-install "${FILESDIR}/${SITEFILE}" \
|
||||
|| die "elisp-site-file-install failed"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use emacs && elisp-site-regen
|
||||
|
||||
echo
|
||||
elog "Add the following line to your ~/.bashrc to enable cdargs helper"
|
||||
elog "functions/aliases in your environment:"
|
||||
elog "[ -f /usr/share/cdargs/cdargs-bash.sh ] && \\ "
|
||||
elog " source /usr/share/cdargs/cdargs-bash.sh"
|
||||
elog
|
||||
elog "Users of tcshell will find cdargs-tcsh.csh there with a reduced"
|
||||
elog "feature set. See INSTALL file in the documentation directory for"
|
||||
elog "more information."
|
||||
echo
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use emacs && elisp-site-regen
|
||||
}
|
@ -1,46 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/detox/detox-1.2.0-r2.ebuild,v 1.5 2012/07/29 18:03:08 armin76 Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit base
|
||||
|
||||
MY_P="${PN}-${PV/_/-}"
|
||||
|
||||
DESCRIPTION="Safely remove spaces and strange characters from filenames"
|
||||
HOMEPAGE="http://detox.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~hppa ~mips ppc x86 ~amd64-linux ~x86-linux"
|
||||
IUSE=""
|
||||
|
||||
S="${WORKDIR}"/${MY_P}
|
||||
|
||||
RDEPEND="dev-libs/popt"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/flex
|
||||
sys-devel/bison"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-parallel.patch
|
||||
"${FILESDIR}"/${P}-LDFLAGS.patch
|
||||
"${FILESDIR}"/${P}-change-default-sequence-to-use-utf8-table.patch
|
||||
"${FILESDIR}"/${P}-install-missing-file.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
sed \
|
||||
-e 's:Fl c Ar:Fl f Ar:g' \
|
||||
-i ${PN}.1 || die
|
||||
base_src_prepare
|
||||
sed \
|
||||
-e '/detoxrc.sample/d' \
|
||||
-i Makefile.in || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf --with-popt="${EPREFIX}/usr"
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST wcd-5.2.6.tar.gz 624904 SHA256 e23939e9d8aa7ad98d74bc6def1d6eaf405dd442b498984ab0c35b83efb9cfc7 SHA512 f223130a9878d9d62767a2a86dd3ec227f8349eecd149d5a86ff7c5b5cd8a2cf14e3752186ec4617ac25b9c3df6662ccb309cf96dcb9d4ede291dc4a12a33a82 WHIRLPOOL 0d63dbe663fef83c84cc3ca3c284f76d84913986533155a6cb4a1765ed4291886c4a1885b89dc9660d8f0102c74369a97e41ef4375627f843dfef99d3ba72f35
|
||||
DIST wcd-5.2.7.tar.gz 622613 SHA256 e5f56824e054c6726186271b20a5de3c5b167116b97785a925907981cf3e3b39 SHA512 9f5b89d8160f685b729234cc8c03f16b795797dd6eaf2d9e1bbf1949b27ef971908b78642679d3bf1d99b128b390cd5dbd211e4ff03b0539dd287c578088e02e WHIRLPOOL 3354e380dceaed394e0eb9bac3f474edc819270a117baf5812a1e7252b2cef207862746af2b21dd71de837459bc6281a45a9099f5a6351def49e3c1ce780960d
|
||||
|
@ -1,15 +0,0 @@
|
||||
Index: src/c3po/structur.h
|
||||
===================================================================
|
||||
--- src/c3po/structur.h (revision 835)
|
||||
+++ src/c3po/structur.h (working copy)
|
||||
@@ -20,6 +20,10 @@
|
||||
|
||||
*/
|
||||
|
||||
+#ifdef WCD_UNICODE
|
||||
+#include <wchar.h>
|
||||
+#endif
|
||||
+
|
||||
#ifndef C3PO_BASIC_TYPES_INCLUDED
|
||||
#define C3PO_BASIC_TYPES_INCLUDED
|
||||
|
@ -1,46 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/wcd/wcd-5.2.6.ebuild,v 1.3 2015/05/27 11:07:52 ago Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
DESCRIPTION="Wherever Change Directory"
|
||||
HOMEPAGE="http://waterlan.home.xs4all.nl/#WCD_ANCHOR"
|
||||
SRC_URI="http://waterlan.home.xs4all.nl/${PN}/${P}.tar.gz"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="amd64 ~arm x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="nls unicode"
|
||||
|
||||
CDEPEND="
|
||||
sys-libs/ncurses[unicode?]
|
||||
unicode? ( dev-libs/libunistring )"
|
||||
DEPEND="${CDEPEND}
|
||||
app-text/ghostscript-gpl"
|
||||
RDEPEND="${CDEPEND}"
|
||||
|
||||
S="${WORKDIR}"/${P}/src
|
||||
|
||||
src_prepare() {
|
||||
epatch \
|
||||
"${FILESDIR}"/${PN}-5.2.5-gentoo.patch \
|
||||
"${FILESDIR}"/${P}-wchar.patch
|
||||
tc-export CC
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local mycompile="LFS=1"
|
||||
use nls || mycompile="${mycompile} ENABLE_NLS="
|
||||
use unicode && mycompile="${mycompile} UCS=1 UNINORM=1"
|
||||
emake \
|
||||
${mycompile}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local DOCS="../README.txt"
|
||||
default
|
||||
emake DESTDIR="${D}" DOTWCD=1 install-profile sysconfdir="/etc"
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST rudiments-0.46.tar.gz 1732565 SHA256 b59b830af52cdf5a361d73524efa0a7aa2f804011e07bf3855551ad07273d70a SHA512 2248db71c23ced4344dbdd26e9efe8c45f20da2e8e106101c762b334b8797dc62c47621c0477d42ac06fc665aa91b772e959802b10103c6256d1dbc68418f2f1 WHIRLPOOL 96cd3e778dbf2d52dc66b5c9ac02358ffd8409eb1ddc4dca5cb6327d5e962445763e1fea9d32bd01955a248f3391d3873bc48570e77bb2543d4cea9b4171fe15
|
||||
DIST rudiments-0.51.tar.gz 1923612 SHA256 635b984d0d2d83c4c598f004cb5ec729796af6c9444f28e49b02e4539e5e7aaa SHA512 e36a93b21f8beb86f58d2e1f4d955d865fc68c40af11462f716e849a476786f99c9264dd5097f7110ef6f44752f113db8b62092a9db2f08d0eb34e861ea85888 WHIRLPOOL 3d4e474ab42c6d4b76fa9d924e87c9d7cb9f91876716a4df9ad5ea3e737b4f8d10053b29466f3457e3ab0ad77ee2df029d851d2264c1e1b99e1a8187fe815f41
|
||||
|
@ -0,0 +1,86 @@
|
||||
diff --git a/config.mk.in b/config.mk.in
|
||||
index ae29f27..c0b7e3d 100644
|
||||
--- a/config.mk.in
|
||||
+++ b/config.mk.in
|
||||
@@ -9,7 +9,7 @@ includedir = @includedir@
|
||||
libdir = @libdir@
|
||||
mandir = @mandir@
|
||||
datadir = @datadir@
|
||||
-docdir = ${datadir}/doc/rudiments
|
||||
+docdir = @docdir@
|
||||
|
||||
# command separator
|
||||
AND = ;
|
||||
@@ -25,7 +25,7 @@
|
||||
CXX = @CXX@
|
||||
COMPILE = -c
|
||||
OUT = -o
|
||||
-BASECPPFLAGS = @WALL@ @WERROR@ @WNOLONGDOUBLE@ @WNOFORMAT@ @WNOOVERLOADEDVIRTUAL@ @CPPFLAGS@ @PTHREADINCLUDES@ @SSLINCLUDES@ @PCREINCLUDES@
|
||||
+BASECPPFLAGS = @WALL@ @WNOLONGDOUBLE@ @WNOFORMAT@ @WNOOVERLOADEDVIRTUAL@ @CPPFLAGS@ @PTHREADINCLUDES@ @SSLINCLUDES@ @PCREINCLUDES@
|
||||
EXPORTSCPPFLAGS =
|
||||
EXTRACPPFLAGS = @EXTRACPPFLAGS@
|
||||
CXXFLAGS = @CXXFLAGS@ @PIPE@
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index d82ea0e..290a80b 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -32,7 +32,7 @@ AC_ARG_WITH(pthread-prefix,
|
||||
PTHREADPATH="")
|
||||
AC_ARG_ENABLE(ssl,
|
||||
[ --disable-ssl Disable SSL support],
|
||||
- ENABLE_RUDIMENTS_SSL="no",
|
||||
+ ENABLE_RUDIMENTS_SSL="$enableval",
|
||||
ENABLE_RUDIMENTS_SSL="yes")
|
||||
AC_ARG_WITH(ssl-includes,
|
||||
[ --with-ssl-includes SSL includes],
|
||||
@@ -44,7 +44,7 @@ AC_ARG_WITH(ssl-libs,
|
||||
SSLLIBS="")
|
||||
AC_ARG_ENABLE(pcre,
|
||||
[ --disable-pcre Don't use PCRE for regular expressions],
|
||||
- ENABLE_RUDIMENTS_PCRE="no",
|
||||
+ ENABLE_RUDIMENTS_PCRE="$enableval",
|
||||
ENABLE_RUDIMENTS_PCRE="yes")
|
||||
AC_ARG_WITH(pcre-includes,
|
||||
[ --with-pcre-includes PCRE includes],
|
||||
@@ -60,7 +60,7 @@ AC_ARG_ENABLE(built-in-regex,
|
||||
USE_BUILT_IN_REGULAREXPRESSION="0")
|
||||
AC_ARG_ENABLE(threads,
|
||||
[ --disable-threads Disable thread support],
|
||||
- ENABLE_RUDIMENTS_THREADS="no"; INCLUDE_THREAD="0",
|
||||
+ ENABLE_RUDIMENTS_THREADS="$enableval"; INCLUDE_THREAD="0",
|
||||
ENABLE_RUDIMENTS_THREADS="yes")
|
||||
|
||||
dnl options to disable building various classes
|
||||
@@ -4034,6 +4034,10 @@ if ( test "`echo $datadir | cut -c1`" = "/" )
|
||||
then
|
||||
datadir='${DESTDIR}'"$datadir"
|
||||
fi
|
||||
+if ( test "`echo $docdir | cut -c1`" = "/" )
|
||||
+then
|
||||
+ docdir='${DESTDIR}'"$docdir"
|
||||
+fi
|
||||
|
||||
|
||||
dnl Output files.
|
||||
diff --git a/src/Makefile.in b/src/Makefile.in
|
||||
index a224d83..3b990fb 100644
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
include ../config.mk
|
||||
|
||||
-CPPFLAGS = $(WERROR) $(BASECPPFLAGS) $(EXPORTSCPPFLAGS) $(INC)../ $(INC)../include $(EXTRACPPFLAGS)
|
||||
+CPPFLAGS = $(BASECPPFLAGS) $(EXPORTSCPPFLAGS) $(INC)../ $(INC)../include $(EXTRACPPFLAGS)
|
||||
LIBS = $(SOCKETLIBS) $(PTHREADLIB) $(SSLLIBS) $(PCRELIBS) $(NANOSLEEPLIB) $(CLOCKNANOSLEEPLIB) $(SHMOPENLIB) $(CRYPTLIB) $(INETATONLIB) $(NETAPI32LIB) $(BELIB) $(GNULIB) $(CRTLIB) $(DLLIB) $(DEBUGLIB)
|
||||
|
||||
SRCS = @SRCS@
|
||||
--- a/acsite.m4 2014-05-04 01:44:03.265919456 +0400
|
||||
+++ b/acsite.m4 2014-05-04 01:44:34.008920936 +0400
|
||||
@@ -279,7 +250,7 @@
|
||||
dnl Sometimes -Wall includes -Wunused-variables and -Wunused-parameters
|
||||
dnl which we don't care about. Disable it if it does.
|
||||
OLDCPPFLAGS=$CPPFLAGS
|
||||
- CPPFLAGS="$WALL $WERROR $CPPFLAGS"
|
||||
+ CPPFLAGS="$WALL $CPPFLAGS"
|
||||
AC_MSG_CHECKING(whether -Wall includes -Wunused-*)
|
||||
AC_TRY_COMPILE([void f(int a) { return; }],[f(1);],AC_MSG_RESULT(no),WALL=""; AC_MSG_RESULT(yes))
|
||||
CPPFLAGS=$OLDCPPFLAGS
|
@ -0,0 +1,43 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-cpp/rudiments/rudiments-0.51.ebuild,v 1.1 2015/07/28 09:50:38 pinkbyte Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
AUTOTOOLS_AUTORECONF=1
|
||||
AUTOTOOLS_IN_SOURCE_BUILD=1
|
||||
inherit autotools-utils
|
||||
|
||||
DESCRIPTION="C++ class library for daemons, clients and servers"
|
||||
HOMEPAGE="http://rudiments.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/rudiments/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE="debug pcre ssl static-libs"
|
||||
|
||||
DEPEND="pcre? ( dev-libs/libpcre )
|
||||
ssl? ( dev-libs/openssl:0 )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${P}-buildsystem.patch" )
|
||||
|
||||
src_prepare() {
|
||||
mv configure.in configure.ac || die
|
||||
|
||||
# bug #535936
|
||||
rm aclocal.m4 || die
|
||||
|
||||
autotools-utils_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
--docdir="/usr/share/doc/${PF}/html" \
|
||||
$(use debug && "--enable-debug") \
|
||||
$(use_enable pcre) \
|
||||
$(use_enable ssl)
|
||||
)
|
||||
autotools-utils_src_configure
|
||||
}
|
@ -1,5 +1,2 @@
|
||||
DIST tcl-core8.6.3-src.tar.gz 5820073 SHA256 7227879e706a3a72b50a53c647904b6eedda216049f255acdc597aaea6131207 SHA512 1ac78eab8a25b8c8e717d630848b5f493c91c345ac31154706a60f1f11c12745c27e91abb67052ff3131189d6c125b7160bb579ee99cb2e479fe7c96d9d1383b WHIRLPOOL e74f70f47bb4b323fe6fcac98a41177f11fff5e3ec73996ca41b312a45582e08d51a9a361c615222647e76f864279205dc06fbe28eaa6d81eb2e2adc27092120
|
||||
DIST tcl-core8.6.4-src.tar.gz 5813056 SHA256 373e849067f33159470060f35742110ff23b5fba07e42f01fbd0654d7a9a371f SHA512 cc73248b68528be46dbe1e29fa129bc827850e9a315ccd91bd0ca0afe61b8af633830a8da5706283de1c149df6cbf857da75ebd0f3998bb459e5456a4844a61f WHIRLPOOL 9b14d7dd31b2d8d1ca3bc44d4259514d8ff9df905a165fb7f95af018afffa1b87deeaf51ef602fd3d97a80c399687f842d24b539a301520dfeec172387de23b3
|
||||
DIST tcl8.5.13-src.tar.gz 4513204 SHA256 9b868dd563e65671a26fcf518b6b86c1bb1b6756f48fdc90f04301d4f3a6596a SHA512 e1c9f36dd0e1afd81f42d249fe0191f10d6e0eab73042e32c9c0af09063ebf19bc2a24364743fa7b6798c588e77fa81654e6e7eb7591e1aaf4b222e20ecc6c84 WHIRLPOOL f1c1b67508c5d5c85de7d76d075a577ef14b5df05ca5bb0a0d0d78261134e8d85accb82a27f135877585820d52f0d363ebde74cfd890dbfafbf3766985315b61
|
||||
DIST tcl8.5.15-src.tar.gz 4536117 SHA256 f24eaae461795e6b09bf54c7e9f38def025892da55f26008c16413cfdda2884e SHA512 44c8a975ffaeca1f954fbc160fed966064340b5de883e53321691c6c457283716c4ab5c87c7c754ff5c1bd293d46eb14bbf356a0bf6a5ed0078d8789703df3df WHIRLPOOL da369146ccc1a449eae6b2fddc7802457c267b1ed047dba665b2684f27105a0763646b6a985e697891b3da9b3531a89f1ffb78168dc386c27889bcdaaa175e1c
|
||||
DIST tcl8.5.17-src.tar.gz 4546317 SHA256 4c7cd8f2e0900cb36dde899b3f9f4d5c471ee3c4f8304cf9ec71fd18cd5e98d6 SHA512 ad5ddb4cd6378fd6bbea8cd85ceb1cf90392b2e8c49fbfb3e4b35c81d3ae3e3f087697c41fcba8c8e06de1d9e7539397e26d58b864dc01ba65abe4ba4efa9568 WHIRLPOOL 7e97049eb3875bcdc33b2d8ab02b0932173916fbbdfbc7970dd3c3ed1fe520c15ed1d6106215a823b5fc6f5008f12f3ccd1525dd536ec239388e6bf459352ab6
|
||||
|
@ -1,109 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/tcl/tcl-8.5.13-r1.ebuild,v 1.15 2014/01/20 07:34:30 jlec Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit autotools eutils flag-o-matic multilib toolchain-funcs versionator
|
||||
|
||||
MY_P="${PN}${PV/_beta/b}"
|
||||
|
||||
DESCRIPTION="Tool Command Language"
|
||||
HOMEPAGE="http://www.tcl.tk/"
|
||||
SRC_URI="mirror://sourceforge/tcl/${MY_P}-src.tar.gz"
|
||||
|
||||
LICENSE="tcltk"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x86-solaris"
|
||||
IUSE="debug threads"
|
||||
|
||||
SPARENT="${WORKDIR}/${MY_P}"
|
||||
S="${SPARENT}"/unix
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-multilib.patch
|
||||
|
||||
# Bug 125971
|
||||
epatch "${FILESDIR}"/${P}-conf.patch
|
||||
|
||||
# Bug 354067
|
||||
epatch "${FILESDIR}"/${PN}-8.5.9-gentoo-fbsd.patch
|
||||
|
||||
# workaround stack check issues, bug #280934
|
||||
use hppa && append-cflags "-DTCL_NO_STACK_CHECK=1"
|
||||
|
||||
tc-export CC
|
||||
|
||||
eautoconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# We went ahead and deleted the whole compat/ subdir which means
|
||||
# the configure tests to detect broken versions need to pass (else
|
||||
# we'll fail to build). This comes up when cross-compiling, but
|
||||
# might as well get a minor configure speed up normally.
|
||||
export ac_cv_func_memcmp_working="yes"
|
||||
export tcl_cv_str{str,toul,tod}_unbroken="ok"
|
||||
export tcl_cv_strtod_buggy="no"
|
||||
|
||||
econf \
|
||||
$(use_enable threads) \
|
||||
$(use_enable debug symbols)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
#short version number
|
||||
local v1=$(get_version_component_range 1-2)
|
||||
local mylibdir=$(get_libdir)
|
||||
|
||||
S= default
|
||||
|
||||
# fix the tclConfig.sh to eliminate refs to the build directory
|
||||
# and drop unnecessary -L inclusion to default system libdir
|
||||
|
||||
sed \
|
||||
-e "/^TCL_BUILD_LIB_SPEC=/s:-L${SPARENT}.*unix *::g" \
|
||||
-e "/^TCL_LIB_SPEC=/s:-L${EPREFIX}/usr/${mylibdir} *::g" \
|
||||
-e "/^TCL_SRC_DIR=/s:${SPARENT}:${EPREFIX}/usr/${mylibdir}/tcl${v1}/include:g" \
|
||||
-e "/^TCL_BUILD_STUB_LIB_SPEC=/s:-L${SPARENT}.*unix *::g" \
|
||||
-e "/^TCL_STUB_LIB_SPEC=/s:-L${EPREFIX}/usr/${mylibdir} *::g" \
|
||||
-e "/^TCL_BUILD_STUB_LIB_PATH=/s:${SPARENT}.*unix:${EPREFIX}/usr/${mylibdir}:g" \
|
||||
-e "/^TCL_LIB_FILE=/s:'libtcl${v1}..TCL_DBGX..so':\"libtcl${v1}\$\{TCL_DBGX\}.so\":g" \
|
||||
-i "${ED}"/usr/${mylibdir}/tclConfig.sh || die
|
||||
if use prefix && [[ ${CHOST} != *-darwin* && ${CHOST} != *-mint* ]] ; then
|
||||
sed \
|
||||
-e "/^TCL_CC_SEARCH_FLAGS=/s|'$|:${EPREFIX}/usr/${mylibdir}'|g" \
|
||||
-e "/^TCL_LD_SEARCH_FLAGS=/s|'$|:${EPREFIX}/usr/${mylibdir}'|" \
|
||||
-i "${ED}"/usr/${mylibdir}/tclConfig.sh || die
|
||||
fi
|
||||
|
||||
# install private headers
|
||||
insinto /usr/${mylibdir}/tcl${v1}/include/unix
|
||||
doins "${S}"/*.h
|
||||
insinto /usr/${mylibdir}/tcl${v1}/include/generic
|
||||
doins "${SPARENT}"/generic/*.h
|
||||
rm -f "${ED}"/usr/${mylibdir}/tcl${v1}/include/generic/{tcl,tclDecls,tclPlatDecls}.h || die
|
||||
|
||||
# install symlink for libraries
|
||||
dosym libtcl${v1}$(get_libname) /usr/${mylibdir}/libtcl$(get_libname)
|
||||
dosym libtclstub${v1}.a /usr/${mylibdir}/libtclstub.a
|
||||
|
||||
dosym tclsh${v1} /usr/bin/tclsh
|
||||
|
||||
dodoc "${SPARENT}"/{ChangeLog*,README,changes}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
for version in ${REPLACING_VERSIONS}; do
|
||||
if ! version_is_at_least 8.5 ${version}; then
|
||||
echo
|
||||
ewarn "You're upgrading from <dev-lang/tcl-8.5, you must recompile the other"
|
||||
ewarn "packages on your system that link with tcl after the upgrade"
|
||||
ewarn "completes. To perform this action, please run revdep-rebuild"
|
||||
ewarn "in package app-portage/gentoolkit."
|
||||
ewarn "If you have dev-lang/tk and dev-tcltk/tclx installed you should"
|
||||
ewarn "upgrade them before this recompilation, too,"
|
||||
echo
|
||||
fi
|
||||
done
|
||||
}
|
@ -1,114 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/tcl/tcl-8.5.15-r1.ebuild,v 1.17 2015/03/16 23:07:57 vapier Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit autotools eutils flag-o-matic multilib toolchain-funcs versionator multilib-minimal
|
||||
|
||||
MY_P="${PN}${PV/_beta/b}"
|
||||
|
||||
DESCRIPTION="Tool Command Language"
|
||||
HOMEPAGE="http://www.tcl.tk/"
|
||||
SRC_URI="mirror://sourceforge/tcl/${MY_P}-src.tar.gz"
|
||||
|
||||
LICENSE="tcltk"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x86-solaris"
|
||||
IUSE="debug threads"
|
||||
|
||||
RDEPEND=">=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
SPARENT="${WORKDIR}/${MY_P}"
|
||||
S="${SPARENT}"/unix
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-8.5.13-multilib.patch
|
||||
|
||||
# Bug 125971
|
||||
epatch "${FILESDIR}"/${PN}-8.5.14-conf.patch
|
||||
|
||||
# Bug 354067
|
||||
epatch "${FILESDIR}"/${PN}-8.5.9-gentoo-fbsd.patch
|
||||
|
||||
# workaround stack check issues, bug #280934
|
||||
use hppa && append-cflags "-DTCL_NO_STACK_CHECK=1"
|
||||
|
||||
tc-export CC
|
||||
|
||||
eautoconf
|
||||
multilib_copy_sources
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
# We went ahead and deleted the whole compat/ subdir which means
|
||||
# the configure tests to detect broken versions need to pass (else
|
||||
# we'll fail to build). This comes up when cross-compiling, but
|
||||
# might as well get a minor configure speed up normally.
|
||||
export ac_cv_func_memcmp_working="yes"
|
||||
export tcl_cv_str{str,toul,tod}_unbroken="ok"
|
||||
export tcl_cv_strtod_buggy="no"
|
||||
|
||||
econf \
|
||||
$(use_enable threads) \
|
||||
$(use_enable debug symbols)
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
#short version number
|
||||
local v1=$(get_version_component_range 1-2)
|
||||
local mylibdir=$(get_libdir)
|
||||
|
||||
S= default
|
||||
|
||||
# fix the tclConfig.sh to eliminate refs to the build directory
|
||||
# and drop unnecessary -L inclusion to default system libdir
|
||||
|
||||
sed \
|
||||
-e "/^TCL_BUILD_LIB_SPEC=/s:-L$(pwd) *::g" \
|
||||
-e "/^TCL_LIB_SPEC=/s:-L${EPREFIX}/usr/${mylibdir} *::g" \
|
||||
-e "/^TCL_SRC_DIR=/s:${SPARENT}:${EPREFIX}/usr/${mylibdir}/tcl${v1}/include:g" \
|
||||
-e "/^TCL_BUILD_STUB_LIB_SPEC=/s:-L$(pwd) *::g" \
|
||||
-e "/^TCL_STUB_LIB_SPEC=/s:-L${EPREFIX}/usr/${mylibdir} *::g" \
|
||||
-e "/^TCL_BUILD_STUB_LIB_PATH=/s:$(pwd):${EPREFIX}/usr/${mylibdir}:g" \
|
||||
-e "/^TCL_LIB_FILE=/s:'libtcl${v1}..TCL_DBGX..so':\"libtcl${v1}\$\{TCL_DBGX\}.so\":g" \
|
||||
-i "${ED}"/usr/${mylibdir}/tclConfig.sh || die
|
||||
if use prefix && [[ ${CHOST} != *-darwin* && ${CHOST} != *-mint* ]] ; then
|
||||
sed \
|
||||
-e "/^TCL_CC_SEARCH_FLAGS=/s|'$|:${EPREFIX}/usr/${mylibdir}'|g" \
|
||||
-e "/^TCL_LD_SEARCH_FLAGS=/s|'$|:${EPREFIX}/usr/${mylibdir}'|" \
|
||||
-i "${ED}"/usr/${mylibdir}/tclConfig.sh || die
|
||||
fi
|
||||
|
||||
# install private headers
|
||||
insinto /usr/${mylibdir}/tcl${v1}/include/unix
|
||||
doins *.h
|
||||
insinto /usr/${mylibdir}/tcl${v1}/include/generic
|
||||
doins "${SPARENT}"/generic/*.h
|
||||
rm -f "${ED}"/usr/${mylibdir}/tcl${v1}/include/generic/{tcl,tclDecls,tclPlatDecls}.h || die
|
||||
|
||||
# install symlink for libraries
|
||||
dosym libtcl${v1}$(get_libname) /usr/${mylibdir}/libtcl$(get_libname)
|
||||
dosym libtclstub${v1}.a /usr/${mylibdir}/libtclstub.a
|
||||
|
||||
if multilib_is_native_abi; then
|
||||
dosym tclsh${v1} /usr/bin/tclsh
|
||||
dodoc "${SPARENT}"/{ChangeLog*,README,changes}
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
for version in ${REPLACING_VERSIONS}; do
|
||||
if ! version_is_at_least 8.5 ${version}; then
|
||||
echo
|
||||
ewarn "You're upgrading from <${P}, you must recompile the other"
|
||||
ewarn "packages on your system that link with tcl after the upgrade"
|
||||
ewarn "completes. To perform this action, please run revdep-rebuild"
|
||||
ewarn "in package app-portage/gentoolkit."
|
||||
ewarn "If you have dev-lang/tk and dev-tcltk/tclx installed you should"
|
||||
ewarn "upgrade them before this recompilation, too,"
|
||||
echo
|
||||
fi
|
||||
done
|
||||
}
|
@ -1,120 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/tcl/tcl-8.6.3.ebuild,v 1.2 2015/01/23 11:23:00 jlec Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit autotools eutils flag-o-matic multilib multilib-minimal toolchain-funcs versionator
|
||||
|
||||
MY_P="${PN}${PV}"
|
||||
|
||||
DESCRIPTION="Tool Command Language"
|
||||
HOMEPAGE="http://www.tcl.tk/"
|
||||
SRC_URI="mirror://sourceforge/tcl/${PN}-core${PV}-src.tar.gz"
|
||||
|
||||
LICENSE="tcltk"
|
||||
SLOT="0/8.6"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x86-solaris"
|
||||
IUSE="debug +threads"
|
||||
|
||||
RDEPEND=">=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
SPARENT="${WORKDIR}/${MY_P}"
|
||||
S="${SPARENT}"/unix
|
||||
|
||||
src_prepare() {
|
||||
find \
|
||||
"${SPARENT}"/compat/* \
|
||||
"${SPARENT}"/doc/try.n \
|
||||
-delete || die
|
||||
|
||||
epatch "${FILESDIR}"/${PN}-8.5.13-multilib.patch
|
||||
|
||||
# Bug 125971
|
||||
epatch "${FILESDIR}"/${PN}-8.6.1-conf.patch
|
||||
|
||||
# workaround stack check issues, bug #280934
|
||||
use hppa && append-cflags "-DTCL_NO_STACK_CHECK=1"
|
||||
|
||||
tc-export CC
|
||||
|
||||
sed \
|
||||
-e 's:-O[2s]\?::g' \
|
||||
-i tcl.m4 || die
|
||||
|
||||
eautoconf
|
||||
|
||||
multilib_copy_sources
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
# We went ahead and deleted the whole compat/ subdir which means
|
||||
# the configure tests to detect broken versions need to pass (else
|
||||
# we'll fail to build). This comes up when cross-compiling, but
|
||||
# might as well get a minor configure speed up normally.
|
||||
export ac_cv_func_memcmp_working="yes"
|
||||
export tcl_cv_str{str,toul,tod}_unbroken="ok"
|
||||
export tcl_cv_strtod_buggy="no"
|
||||
|
||||
econf \
|
||||
$(use_enable threads) \
|
||||
$(use_enable debug symbols)
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
#short version number
|
||||
local v1=$(get_version_component_range 1-2)
|
||||
local mylibdir=$(get_libdir)
|
||||
|
||||
S= default
|
||||
# fix the tclConfig.sh to eliminate refs to the build directory
|
||||
# and drop unnecessary -L inclusion to default system libdir
|
||||
|
||||
sed \
|
||||
-e "/^TCL_BUILD_LIB_SPEC=/s:-L$(pwd) *::g" \
|
||||
-e "/^TCL_LIB_SPEC=/s:-L${EPREFIX}/usr/${mylibdir} *::g" \
|
||||
-e "/^TCL_SRC_DIR=/s:${SPARENT}:${EPREFIX}/usr/${mylibdir}/tcl${v1}/include:g" \
|
||||
-e "/^TCL_BUILD_STUB_LIB_SPEC=/s:-L$(pwd) *::g" \
|
||||
-e "/^TCL_STUB_LIB_SPEC=/s:-L${EPREFIX}/usr/${mylibdir} *::g" \
|
||||
-e "/^TCL_BUILD_STUB_LIB_PATH=/s:$(pwd):${EPREFIX}/usr/${mylibdir}:g" \
|
||||
-e "/^TCL_LIB_FILE=/s:'libtcl${v1}..TCL_DBGX..so':\"libtcl${v1}\$\{TCL_DBGX\}.so\":g" \
|
||||
-i "${ED}"/usr/${mylibdir}/tclConfig.sh || die
|
||||
if use prefix && [[ ${CHOST} != *-darwin* && ${CHOST} != *-mint* ]] ; then
|
||||
sed \
|
||||
-e "/^TCL_CC_SEARCH_FLAGS=/s|'$|:${EPREFIX}/usr/${mylibdir}'|g" \
|
||||
-e "/^TCL_LD_SEARCH_FLAGS=/s|'$|:${EPREFIX}/usr/${mylibdir}'|" \
|
||||
-i "${ED}"/usr/${mylibdir}/tclConfig.sh || die
|
||||
fi
|
||||
|
||||
# install private headers
|
||||
insinto /usr/${mylibdir}/tcl${v1}/include/unix
|
||||
doins *.h
|
||||
insinto /usr/${mylibdir}/tcl${v1}/include/generic
|
||||
doins "${SPARENT}"/generic/*.h
|
||||
rm -f "${ED}"/usr/${mylibdir}/tcl${v1}/include/generic/{tcl,tclDecls,tclPlatDecls}.h || die
|
||||
|
||||
# install symlink for libraries
|
||||
dosym libtcl${v1}$(get_libname) /usr/${mylibdir}/libtcl$(get_libname)
|
||||
dosym libtclstub${v1}.a /usr/${mylibdir}/libtclstub.a
|
||||
|
||||
if multilib_is_native_abi; then
|
||||
dosym tclsh${v1} /usr/bin/tclsh
|
||||
dodoc "${SPARENT}"/{ChangeLog*,README,changes}
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
for version in ${REPLACING_VERSIONS}; do
|
||||
if ! version_is_at_least 8.6 ${version}; then
|
||||
echo
|
||||
ewarn "You're upgrading from <${P}, you must recompile the other"
|
||||
ewarn "packages on your system that link with tcl after the upgrade"
|
||||
ewarn "completes. To perform this action, please run revdep-rebuild"
|
||||
ewarn "in package app-portage/gentoolkit."
|
||||
ewarn "If you have dev-lang/tk and dev-tcltk/tclx installed you should"
|
||||
ewarn "upgrade them before this recompilation, too,"
|
||||
echo
|
||||
fi
|
||||
done
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST cloog-0.18.0.tar.gz 3776262 SHA256 1c4aa8dde7886be9cbe0f9069c334843b21028f61d344a2d685f88cb1dcf2228 SHA512 34404984c4269dfc19673712271b08f220b6b49e451e7479cefbc5d2f27ab8e780f5d51fbbc7cecb974dab655673d8348f2a1ece3a60feaeeb9413fccf16eb1d WHIRLPOOL e079de53e876448f1e9b783c864b820ebae39fca4f51d59e2528b1b68530910c48b23719e3fd760bf105e03838651e15f367709a2c8dde022627fe3f158134ea
|
||||
DIST cloog-0.18.1.tar.gz 3857324 SHA256 02500a4edd14875f94fe84cbeda4290425cb0c1c2474c6f75d75a303d64b4196 SHA512 0b12d9f3c39a2425e28e1d7c0a2b3787287fe3e6e3052f094d2ab6cffeb205ce19044100cbfd805659b3e6b3d21ac2f5a3c92848f476de54edfe6b1cbd2172e9 WHIRLPOOL 7e5497cdc6d3df14305f848f0222ab41890c9a1a4668e1ccb8afc2b9f14b8c8b65f80a2fec6d6a94d1b91cf83b741d0108815707eb29aa59a439ed2c07f27378
|
||||
DIST cloog-0.18.3.tar.gz 4577597 SHA256 460c6c740acb8cdfbfbb387156b627cf731b3837605f2ec0001d079d89c69734 SHA512 14fc2af0da62cd17b1a9f5a7a1704da6bfe5dc78639928637588203e61847795a652ff788c313c34b6e7dd85fb329678eb4f72e0e1c9c149be6619ebf046cff8 WHIRLPOOL b35a16151c209500af836cb8ad32ec6479a01d2994860a379599e7a2183eab452dcffa757bad8c2af867cb71716c588415924b8c91db895372de88131b650490
|
||||
DIST cloog-0.18.4.tar.gz 4796456 SHA256 325adf3710ce2229b7eeb9e84d3b539556d093ae860027185e7af8a8b00a750e SHA512 d35d67b08ffe13c1a010b65bfe4dd02b0ae013d5b489e330dc950bd3514defca8f734bd37781856dcedf0491ff6122c34eecb4b0fe32a22d7e6bdadea98c8c23 WHIRLPOOL 0b82eec2d91bcdf839c71fd58e14562aabd837236303ffd95ee105d9c59bc728ad795deab3fb78855dc34abdf08a62b61f0587e85c1b84c6fa7f23fed35d7850
|
||||
|
@ -0,0 +1,63 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/cloog/cloog-0.18.4.ebuild,v 1.1 2015/07/28 12:53:43 blueness Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit eutils multilib-minimal
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
EGIT_REPO_URI="git://repo.or.cz/cloog.git"
|
||||
inherit autotools git-2
|
||||
else
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
|
||||
SRC_URI="http://www.bastoul.net/cloog/pages/download/${P}.tar.gz"
|
||||
fi
|
||||
|
||||
DESCRIPTION="A loop generator for scanning polyhedra"
|
||||
HOMEPAGE="http://www.bastoul.net/cloog/"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0/4"
|
||||
IUSE="static-libs"
|
||||
|
||||
RDEPEND=">=dev-libs/gmp-6.0.0[${MULTILIB_USEDEP}]
|
||||
>=dev-libs/isl-0.15:0=[${MULTILIB_USEDEP}]
|
||||
!dev-libs/cloog-ppl"
|
||||
DEPEND="${DEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
DOCS=( README )
|
||||
|
||||
src_prepare() {
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
./get_submodules.sh
|
||||
eautoreconf -i
|
||||
else
|
||||
# m4/ax_create_pkgconfig_info.m4 includes LDFLAGS
|
||||
# sed to avoid eautoreconf
|
||||
sed -i -e '/Libs:/s:@LDFLAGS@ ::' configure || die
|
||||
fi
|
||||
|
||||
# Make sure we always use the system isl.
|
||||
rm -rf isl
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
ECONF_SOURCE="${S}" econf \
|
||||
--with-gmp=system \
|
||||
--with-isl=system \
|
||||
--with-osl=no \
|
||||
$(use_enable static-libs static)
|
||||
}
|
||||
|
||||
# The default src_test() fails, so we'll just run these directly
|
||||
multilib_src_test () {
|
||||
echo ">>> Test phase [check]: ${CATEGORY}/${PF}"
|
||||
emake -j1 check
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einstalldocs
|
||||
prune_libtool_files
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST geoip-1.6.5.tar.gz 156441 SHA256 4a151b35e9d9db976b82645c758662a6cb778c669b2c65635d5834e4f885942e SHA512 1ed223a51d238b6bd8d247e1dcb20f6eb9e3f19d39bd262f7cbefb587ea029ed0abac540208916f3ca06bb86f9ea1e99614484fd1c32535892029e945471e702 WHIRLPOOL ca8cd55e16c9981b443fad9f788dc8f28a64dba86980740efeffaa9c4a9d5da84df8a23fb3710ef13741bb40bec0704ca80991e25d3b11fe10acd5a360c02d77
|
||||
DIST geoip-1.6.6.tar.gz 156796 SHA256 db8ed5d07292c75cb3018738e6411037f15cc2a517f38ee04c1232cbe3d30b46 SHA512 4cdd308500bcb827b3dd1c6d981299ea746251758b6a5df97bf2cf098b62b0a736394d5853a06c62437eb0808cb54efb14d0579f5212284f29016e3c8cdd9846 WHIRLPOOL 518749339b094c4166ab53d8ec38020c72f1550923e8c0084f438391dfe7965a9b2f7b3e27ef5ecac85a3f62aa14299e11fbd740ea103c320eef5fad357994b2
|
||||
|
@ -0,0 +1,52 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/geoip/geoip-1.6.6.ebuild,v 1.1 2015/07/29 04:29:25 jer Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit autotools eutils
|
||||
|
||||
DESCRIPTION="easily lookup countries by IP addresses, even when Reverse DNS entries don't exist"
|
||||
HOMEPAGE="https://github.com/maxmind/geoip-api-c"
|
||||
SRC_URI="
|
||||
https://github.com/maxmind/${PN}-api-c/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
"
|
||||
|
||||
# GPL-2 for md5.c - part of libGeoIPUpdate, MaxMind for GeoLite Country db
|
||||
LICENSE="LGPL-2.1 GPL-2 MaxMind2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~x86-macos"
|
||||
IUSE="static-libs"
|
||||
RESTRICT="test"
|
||||
|
||||
DEPEND="net-misc/wget"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S="${WORKDIR}/${PN}-api-c-${PV}"
|
||||
|
||||
src_prepare() {
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf $(use_enable static-libs static)
|
||||
sed -e "s|@PREFIX@|${ROOT}|g" "${FILESDIR}"/geoipupdate-r5.sh > geoipupdate.sh || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
dodoc AUTHORS ChangeLog NEWS.md README*
|
||||
|
||||
prune_libtool_files
|
||||
|
||||
keepdir /usr/share/GeoIP
|
||||
|
||||
dosbin geoipupdate.sh
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ewarn "WARNING: Databases are no longer installed by this ebuild."
|
||||
elog "Don't forget to run 'geoipupdate.sh -f' (or geoipupdate from"
|
||||
elog "net-misc/geoipupdate) to populate ${ROOT}/usr/share/GeoIP/"
|
||||
elog "with geo-located IP address databases."
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST libvterm-neovim-0.0_pre20150309.tar.xz 52244 SHA256 eefd3c2383b4378c4eb15b943e3db309577de760a7d06afe1575be40e2427234 SHA512 916bf1806f6c88b64debb19a119010e6e3ef968e289ab921ebf7a5ed2d98f52881379792bc9c8826bba546da0f65cb6154d9743bb89a614ac4e12d24167a1fb4 WHIRLPOOL d25c7049ee1146e8eb4a445fb5369839ffa934db290aa4706c2e118ad09d4cd199a4562f28a3156f4162b0dcd5ee98a53d7130c0310e022bb3c34db431205888
|
||||
DIST libvterm-neovim-0.0_pre20150621.tar.xz 52240 SHA256 473e16f72acc001a19c0ed3b1f66798e2cbcedb5c783ddfb7a7ecf95d8245733 SHA512 e6fe678da5498177d7fbd0cd945600b643f7cd76ff9ed00f3ac7923be55793765429a2f2da5fba4055dfaa4b7200c28a021f3672ce7ae16b99e58738e5093fd8 WHIRLPOOL 0d8131c1b7636df41cb83da7378bcba68f158873f5a7bd692317ee66cc84dc9f693913d2d3e5618643436143aeddd73a2b3db809f4c161fd078493706cf725a0
|
||||
|
@ -0,0 +1,31 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libvterm-neovim/libvterm-neovim-0.0_pre20150621.ebuild,v 1.1 2015/07/29 03:57:27 yngwin Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit eutils flag-o-matic multilib
|
||||
|
||||
DESCRIPTION="An abstract library implementation of a VT220/xterm/ECMA-48 terminal emulator"
|
||||
HOMEPAGE="http://www.leonerd.org.uk/code/libvterm/"
|
||||
SRC_URI="http://dev.gentoo.org/~yngwin/distfiles/${P}.tar.xz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="sys-devel/libtool
|
||||
virtual/pkgconfig"
|
||||
|
||||
src_compile() {
|
||||
append-cflags -fPIC
|
||||
emake PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}/usr/$(get_libdir)"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
|
||||
DESTDIR="${D}" install
|
||||
prune_libtool_files
|
||||
|
||||
dodoc doc/*
|
||||
}
|
@ -0,0 +1,41 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ml/core/core-112.35.01.ebuild,v 1.1 2015/07/28 07:33:49 aballier Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
OASIS_BUILD_DOCS=1
|
||||
OASIS_BUILD_TESTS=1
|
||||
|
||||
inherit eutils oasis
|
||||
|
||||
MY_P=${P/_/\~}
|
||||
DESCRIPTION="Jane Street's alternative to the standard library"
|
||||
HOMEPAGE="http://www.janestreet.com/ocaml"
|
||||
SRC_URI="http://ocaml.janestreet.com/ocaml-core/${PV%.*}/files/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1-with-linking-exception"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
>=dev-ml/core_kernel-109.35.00:=
|
||||
>=dev-ml/sexplib-109.20.00:=
|
||||
>=dev-ml/bin-prot-109.15.00:=
|
||||
>=dev-ml/fieldslib-109.20.00:=
|
||||
>=dev-ml/pa_ounit-109.27.00:=
|
||||
>=dev-ml/variantslib-109.15.00:=
|
||||
>=dev-ml/comparelib-109.27.00:=
|
||||
>=dev-ml/herelib-109.35.00:=
|
||||
>=dev-ml/pipebang-109.15.00:=
|
||||
dev-ml/custom_printf:=
|
||||
dev-ml/pa_bench:=
|
||||
dev-ml/pa_test:=
|
||||
dev-ml/enumerate:=
|
||||
dev-ml/camlp4:=
|
||||
dev-ml/pa_structural_sexp:=
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( >=dev-ml/ounit-1.1.2 )"
|
||||
DOCS=( "README.md" )
|
@ -1,9 +1,5 @@
|
||||
DIST Django-1.4.20.tar.gz 7877794 SHA256 58ac719464c4c8b13d664ded6770450602528bf4c36f9fd5daabdae8d410ebb1 SHA512 b4625547af0a7d53fa00f801239858619015ba990b50cb859168814a2cc385c867ce570192e762ef1399518407958c687e607536259e420b238a5dd587d2d4bd WHIRLPOOL 8b6bd9912fd27c03d7d06df29314eeb4ad1efbc1347780d2414f324b83f7869bdd7e322b11eecfc32a7fb0189eedf37f69774157292b92163f3fa0e78f24417c
|
||||
DIST Django-1.4.21.tar.gz 7878015 SHA256 934f1975218680d51c4da9d63a39bc5fb1ddaac48476fd34b9ab7903fd98bcf4 SHA512 25fca8362fa30822a5993a2f1d00bc7629b97acfac97daa406fc7658019e35f52ecc539cc875a8ece3b1edb140fd5260e8dd3a355c9405b693d191746df516fa WHIRLPOOL 50fdcd0129cbd23e0400b15b3da069318a731643f5817a8bc98872f9c402b2f23171a13eb031732c0753855440c357b0a54c155fdc0b7bc71761d40f2848acab
|
||||
DIST Django-1.5.10.tar.gz 8074324 SHA256 7cb4217e740f7d5d6d74617dbb9d960f9c09e8269c6762fe68c6e762219f4018 SHA512 5357116870370f7fd06f77e5bfad98f89c6bb131eb2828ded524422d0690d8842c3106e4e92614c374ab2549d205e77c98e4071894f0625dfe69a382171b1834 WHIRLPOOL e603767d6912e9bffd65161750baa626c315362c8c438a2c6fb25a47ecdc867bace998752a9acb6b8db1833f30e8bd7b9aa8fc87f823b906b394d4ab455aa265
|
||||
DIST Django-1.6.11.tar.gz 6764000 SHA256 7e50e573e484435873b3515d7982d80093b2695aba17fd0ff024307454dc3a56 SHA512 de6024b49e0344bf153f73ec344180fb701e415e4f9c330118821744d0e579436cc265724f7ef7213c9551847022ba9570312633f317b9003db533d06deb9829 WHIRLPOOL 5de086952bda9449f85798e8fe3bac82f11e1b856c1d39e340399e71ca6bf183318eebf1f536714567036485637166a929082a1ba9d6c1816f07c53dcc12c72a
|
||||
DIST Django-1.7.7.tar.gz 7603286 SHA256 4816f892063569ca9a77584fa23cb4995c1b3b954ef875102a8219229cbd2e33 SHA512 e08446e7b6a0c64594dca2411b8b3fe16a8fe9b951bd33ae4c1f5187c83a2ce36bd7e0a07e169c338236d6f258362861e868a62f59d9d86bea679d9d42722ceb WHIRLPOOL bf38ff3730d20107e7f25d8793c7ce487edf66407f3c4dda906eca98eb6d8d9ff080338e20d2e418d82b217ef7611511be838a398737717bbad97fca6c8acc5e
|
||||
DIST Django-1.7.8.tar.gz 7604685 SHA256 f0ab12c7c88a033681e44e2e4bf4a93d93c85d5b1e8e9c875b4b917abb246921 SHA512 8eaaf3fc743971341d375566b70ff95eab399388a7ee03057f48e4bfedccd9b32e7a69b0e9ab2197dd47ef76106099a47eb6762bb01e47044543a77b447892b5 WHIRLPOOL 56b7eb4cb84dcde4e876893e04f8dfccc16020c5ca83e638b7f8fcfbde39813d96d9471998db533d4daf2fbdbfd2af67bcfc371b944d06a66386401000bb0044
|
||||
DIST Django-1.7.9.tar.gz 7605194 SHA256 4f3f9fe4e5d20ff8ed6a90b5d2f2df2d8fc054e478cdcc3db81c6b29bd217860 SHA512 349f6950ec7cb37c8ae44a5fc9b924ef0d02e244c834a65bbdbe84d8a993474c6e94f82ac0df5bd08594c8cc6f72bf9413b7b30091319dbb5c018f211d3e9e67 WHIRLPOOL 977e011027f4783aab9cbf53cf6015dc705f63f6b442bc403ede76562822fb0c09027fd89fe776455f1e3d55e636db4f6b586130ad41a709aafbe9eac003870a
|
||||
DIST Django-1.8.2.tar.gz 7275112 SHA256 3bb60536b2fb2084612fc9486634295e7208790029081842524916b5a66d206f SHA512 845cb2502d023ac512cd29868d5d52957a304867e8e29f9fd83762a247e94ab98f418435baca0766f76bb9eb5966d2c5a5786aaf697a21d029ad77f6dbee8215 WHIRLPOOL 50c37d507589c64093b92d1ee9e0bbfd8ab3ee15efa9a6eaef5a8def1f0a44d161208ba752c5e3f337dd63547a2c62a587cf5ef29f9d7c62f81ccbb4be8f0ce1
|
||||
DIST Django-1.8.3.tar.gz 7284327 SHA256 2bb654fcc05fd53017c88caf2bc38b5c5ea23c91f8ac7f0a28b290daf2305bba SHA512 17943c4769bb11125ee23cee6e05ce120a769ff46b9b380219bb28a42d4119082c2041fbc826d59707cb9f2cd1dc19c94beb61ac644e8c4fa5ba3bd528efa06e WHIRLPOOL 2f0cb1df6f2029be61a9a350dc2d5a955d91652038f9c94e3e8717bfc7824e98486c6cbe3c4494bbbe451b82eb75d4ce00828c7b8f6d207cc22af6c65d565317
|
||||
|
@ -1,104 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/django/django-1.4.20.ebuild,v 1.3 2015/03/24 09:12:33 ago Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
PYTHON_REQ_USE='sqlite?'
|
||||
|
||||
inherit bash-completion-r1 distutils-r1 eutils versionator webapp
|
||||
|
||||
MY_P="Django-${PV}"
|
||||
|
||||
DESCRIPTION="High-level Python web framework"
|
||||
HOMEPAGE="http://www.djangoproject.com/ http://pypi.python.org/pypi/Django"
|
||||
SRC_URI="https://www.djangoproject.com/m/releases/$(get_version_component_range 1-2)/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~ia64 ~ppc ~ppc64 ~sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="sqlite test"
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
${PYTHON_DEPS//sqlite?/sqlite}
|
||||
dev-python/docutils[${PYTHON_USEDEP}]
|
||||
<dev-python/numpy-1.9[$(python_gen_usedep 'python*')]
|
||||
dev-python/pillow[${PYTHON_USEDEP}]
|
||||
dev-python/pytz[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
virtual/python-imaging[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
# app-text/pytextile[${PYTHON_USEDEP}]
|
||||
# dev-python/markdown[${PYTHON_USEDEP}]
|
||||
# dev-python/selenium[${PYTHON_USEDEP}]
|
||||
# dev-python/py-bcrypt[${PYTHON_USEDEP}]
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
WEBAPP_MANUAL_SLOT="yes"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-1.4.19-bashcomp.patch
|
||||
)
|
||||
|
||||
python_prepare_all() {
|
||||
# Disable tests requiring network connection.
|
||||
sed \
|
||||
-e "s/test_correct_url_value_passes/_&/" \
|
||||
-e "s/test_correct_url_with_redirect/_&/" \
|
||||
-i tests/modeltests/validation/tests.py || die
|
||||
sed \
|
||||
-e "s/test_urlfield_3/_&/" \
|
||||
-e "s/test_urlfield_4/_&/" \
|
||||
-e "s/test_urlfield_10/_&/" \
|
||||
-i tests/regressiontests/forms/tests/fields.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# Tests have non-standard assumptions about PYTHONPATH,
|
||||
# and don't work with ${BUILD_DIR}/lib.
|
||||
PYTHONPATH=. "${PYTHON}" tests/runtests.py --settings=test_sqlite -v2 \
|
||||
|| die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils-r1_src_install
|
||||
webapp_src_install
|
||||
|
||||
elog "Additional Backend support can be enabled via"
|
||||
optfeature "MySQL backend support in python 2.7 only" dev-python/mysql-python
|
||||
optfeature "MySQL backend support in python 2.7 - 3.4" dev-python/mysql-connector-python
|
||||
optfeature "PostgreSQL backend support" dev-python/psycopg:2
|
||||
optfeature "Memcached support" dev-python/python-memcached
|
||||
optfeature "ImageField Support" virtual/python-imaging
|
||||
echo ""
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
newbashcomp extras/django_bash_completion ${PN}-admin
|
||||
bashcomp_alias ${PN}-admin django-admin.py
|
||||
|
||||
insinto "${MY_HTDOCSDIR#${EPREFIX}}"
|
||||
doins -r django/contrib/admin/static/admin/.
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "A copy of the admin media is available to"
|
||||
elog "webapp-config for installation in a webroot,"
|
||||
elog "as well as the traditional location in python's"
|
||||
elog "site-packages dir for easy development"
|
||||
elog
|
||||
ewarn "If you build Django ${PV} without USE=\"vhosts\""
|
||||
|
||||
# XXX: call webapp_pkg_postinst? the old ebuild didn't do that...
|
||||
ewarn "webapp-config will automatically install the"
|
||||
ewarn "admin media into the localhost webroot."
|
||||
}
|
@ -1,105 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/django/django-1.7.7.ebuild,v 1.4 2015/04/20 20:36:15 jlec Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4} pypy )
|
||||
PYTHON_REQ_USE='sqlite?'
|
||||
WEBAPP_NO_AUTO_INSTALL="yes"
|
||||
|
||||
inherit bash-completion-r1 distutils-r1 eutils versionator webapp
|
||||
|
||||
MY_P="Django-${PV}"
|
||||
|
||||
DESCRIPTION="High-level Python web framework"
|
||||
HOMEPAGE="http://www.djangoproject.com/ http://pypi.python.org/pypi/Django"
|
||||
SRC_URI="https://www.djangoproject.com/m/releases/$(get_version_component_range 1-2)/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~ia64 ~ppc ~ppc64 ~sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="doc sqlite test"
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
doc? ( >=dev-python/sphinx-1.0.7[${PYTHON_USEDEP}] )
|
||||
test? (
|
||||
${PYTHON_DEPS//sqlite?/sqlite}
|
||||
dev-python/docutils[${PYTHON_USEDEP}]
|
||||
dev-python/numpy[$(python_gen_usedep 'python*')]
|
||||
dev-python/pillow[${PYTHON_USEDEP}]
|
||||
dev-python/pytz[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
# dev-python/python-sqlparse[${PYTHON_USEDEP}]
|
||||
# dev-python/bcrypt[${PYTHON_USEDEP}]
|
||||
# dev-python/selenium[${PYTHON_USEDEP}]
|
||||
# sci-libs/gdal[geos,${PYTHON_USEDEP}]
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
WEBAPP_MANUAL_SLOT="yes"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-1.7.6-bashcomp.patch
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
webapp_pkg_setup
|
||||
}
|
||||
|
||||
python_prepare_all() {
|
||||
# Prevent d'loading in the doc build
|
||||
sed -e '/^ "sphinx.ext.intersphinx",/d' -i docs/conf.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C docs html
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# Tests have non-standard assumptions about PYTHONPATH,
|
||||
# and don't work with ${BUILD_DIR}/lib.
|
||||
PYTHONPATH=. "${PYTHON}" tests/runtests.py --settings=test_sqlite -v2 \
|
||||
|| die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils-r1_src_install
|
||||
webapp_src_install
|
||||
|
||||
elog "Additional Backend support can be enabled via"
|
||||
optfeature "MySQL backend support in python 2.7 only" dev-python/mysql-python
|
||||
optfeature "MySQL backend support in python 2.7 - 3.4" dev-python/mysqlclient
|
||||
optfeature "PostgreSQL backend support" dev-python/psycopg:2
|
||||
optfeature "GEO Django" sci-libs/gdal[geos]
|
||||
optfeature "Memcached support" dev-python/python-memcached
|
||||
optfeature "ImageField Support" virtual/python-imaging
|
||||
echo ""
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
newbashcomp extras/django_bash_completion ${PN}-admin
|
||||
bashcomp_alias ${PN}-admin django-admin.py
|
||||
|
||||
if use doc; then
|
||||
rm -fr docs/_build/html/_sources || die
|
||||
local HTML_DOCS=( docs/_build/html/. )
|
||||
fi
|
||||
|
||||
insinto "${MY_HTDOCSDIR#${EPREFIX}}"
|
||||
doins -r django/contrib/admin/static/admin/.
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "A copy of the admin media is available to webapp-config for installation in a"
|
||||
elog "webroot, as well as the traditional location in python's site-packages dir"
|
||||
elog "for easy development."
|
||||
webapp_pkg_postinst
|
||||
}
|
@ -1,105 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/django/django-1.7.8.ebuild,v 1.1 2015/05/05 17:26:36 jlec Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4} pypy )
|
||||
PYTHON_REQ_USE='sqlite?'
|
||||
WEBAPP_NO_AUTO_INSTALL="yes"
|
||||
|
||||
inherit bash-completion-r1 distutils-r1 eutils versionator webapp
|
||||
|
||||
MY_P="Django-${PV}"
|
||||
|
||||
DESCRIPTION="High-level Python web framework"
|
||||
HOMEPAGE="http://www.djangoproject.com/ http://pypi.python.org/pypi/Django"
|
||||
SRC_URI="https://www.djangoproject.com/m/releases/$(get_version_component_range 1-2)/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="doc sqlite test"
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
doc? ( >=dev-python/sphinx-1.0.7[${PYTHON_USEDEP}] )
|
||||
test? (
|
||||
${PYTHON_DEPS//sqlite?/sqlite}
|
||||
dev-python/docutils[${PYTHON_USEDEP}]
|
||||
dev-python/numpy[$(python_gen_usedep 'python*')]
|
||||
dev-python/pillow[${PYTHON_USEDEP}]
|
||||
dev-python/pytz[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
# dev-python/python-sqlparse[${PYTHON_USEDEP}]
|
||||
# dev-python/bcrypt[${PYTHON_USEDEP}]
|
||||
# dev-python/selenium[${PYTHON_USEDEP}]
|
||||
# sci-libs/gdal[geos,${PYTHON_USEDEP}]
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
WEBAPP_MANUAL_SLOT="yes"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-1.7.6-bashcomp.patch
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
webapp_pkg_setup
|
||||
}
|
||||
|
||||
python_prepare_all() {
|
||||
# Prevent d'loading in the doc build
|
||||
sed -e '/^ "sphinx.ext.intersphinx",/d' -i docs/conf.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C docs html
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# Tests have non-standard assumptions about PYTHONPATH,
|
||||
# and don't work with ${BUILD_DIR}/lib.
|
||||
PYTHONPATH=. "${PYTHON}" tests/runtests.py --settings=test_sqlite -v2 \
|
||||
|| die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils-r1_src_install
|
||||
webapp_src_install
|
||||
|
||||
elog "Additional Backend support can be enabled via"
|
||||
optfeature "MySQL backend support in python 2.7 only" dev-python/mysql-python
|
||||
optfeature "MySQL backend support in python 2.7 - 3.4" dev-python/mysqlclient
|
||||
optfeature "PostgreSQL backend support" dev-python/psycopg:2
|
||||
optfeature "GEO Django" sci-libs/gdal[geos]
|
||||
optfeature "Memcached support" dev-python/python-memcached
|
||||
optfeature "ImageField Support" virtual/python-imaging
|
||||
echo ""
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
newbashcomp extras/django_bash_completion ${PN}-admin
|
||||
bashcomp_alias ${PN}-admin django-admin.py
|
||||
|
||||
if use doc; then
|
||||
rm -fr docs/_build/html/_sources || die
|
||||
local HTML_DOCS=( docs/_build/html/. )
|
||||
fi
|
||||
|
||||
insinto "${MY_HTDOCSDIR#${EPREFIX}}"
|
||||
doins -r django/contrib/admin/static/admin/.
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "A copy of the admin media is available to webapp-config for installation in a"
|
||||
elog "webroot, as well as the traditional location in python's site-packages dir"
|
||||
elog "for easy development."
|
||||
webapp_pkg_postinst
|
||||
}
|
@ -1,107 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/django/django-1.8.2.ebuild,v 1.1 2015/05/20 19:59:14 jlec Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4} pypy )
|
||||
PYTHON_REQ_USE='sqlite?'
|
||||
WEBAPP_NO_AUTO_INSTALL="yes"
|
||||
|
||||
inherit bash-completion-r1 distutils-r1 eutils versionator webapp
|
||||
|
||||
MY_PN="Django"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
DESCRIPTION="High-level Python web framework"
|
||||
HOMEPAGE="http://www.djangoproject.com/ http://pypi.python.org/pypi/Django"
|
||||
SRC_URI="
|
||||
https://www.djangoproject.com/m/releases/$(get_version_component_range 1-2)/${MY_P}.tar.gz
|
||||
mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz
|
||||
"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="doc sqlite test"
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
doc? ( >=dev-python/sphinx-1.0.7[${PYTHON_USEDEP}] )
|
||||
test? (
|
||||
${PYTHON_DEPS//sqlite?/sqlite}
|
||||
dev-python/docutils[${PYTHON_USEDEP}]
|
||||
dev-python/numpy[$(python_gen_usedep 'python*')]
|
||||
dev-python/pillow[${PYTHON_USEDEP}]
|
||||
dev-python/pytz[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
WEBAPP_MANUAL_SLOT="yes"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-1.7.6-bashcomp.patch
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
webapp_pkg_setup
|
||||
}
|
||||
|
||||
python_prepare_all() {
|
||||
# Prevent d'loading in the doc build
|
||||
sed -e '/^ "sphinx.ext.intersphinx",/d' -i docs/conf.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C docs html
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# Tests have non-standard assumptions about PYTHONPATH,
|
||||
# and don't work with ${BUILD_DIR}/lib.
|
||||
PYTHONPATH=. "${PYTHON}" tests/runtests.py --settings=test_sqlite -v2 \
|
||||
|| die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
newbashcomp extras/django_bash_completion ${PN}-admin
|
||||
bashcomp_alias ${PN}-admin django-admin.py
|
||||
|
||||
if use doc; then
|
||||
rm -fr docs/_build/html/_sources || die
|
||||
local HTML_DOCS=( docs/_build/html/. )
|
||||
fi
|
||||
|
||||
insinto "${MY_HTDOCSDIR#${EPREFIX}}"
|
||||
doins -r django/contrib/admin/static/admin/.
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils-r1_src_install
|
||||
webapp_src_install
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "Additional Backend support can be enabled via"
|
||||
optfeature "MySQL backend support in python 2.7 only" dev-python/mysql-python
|
||||
optfeature "MySQL backend support in python 2.7 - 3.4" dev-python/mysqlclient
|
||||
optfeature "PostgreSQL backend support" dev-python/psycopg:2
|
||||
echo ""
|
||||
elog "Other features can be enhanced by"
|
||||
optfeature "GEO Django" sci-libs/gdal[geos]
|
||||
optfeature "Memcached support" dev-python/python-memcached
|
||||
optfeature "ImageField Support" virtual/python-imaging
|
||||
optfeature "Password encryption" dev-python/bcrypt
|
||||
optfeature "High-level abstractions for Django forms" dev-python/django-formtools
|
||||
echo ""
|
||||
elog "A copy of the admin media is available to webapp-config for installation in a"
|
||||
elog "webroot, as well as the traditional location in python's site-packages dir"
|
||||
elog "for easy development."
|
||||
webapp_pkg_postinst
|
||||
}
|
@ -1,14 +0,0 @@
|
||||
tests/regressiontests/utils/jslex.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/tests/regressiontests/utils/jslex.py b/tests/regressiontests/utils/jslex.py
|
||||
index 7cd93ca..24317ff 100644
|
||||
--- a/tests/regressiontests/utils/jslex.py
|
||||
+++ b/tests/regressiontests/utils/jslex.py
|
||||
@@ -1,5 +1,5 @@
|
||||
+# -*- coding: utf-8 -*-
|
||||
"""Tests for jslex."""
|
||||
-# encoding: utf-8
|
||||
# originally from https://bitbucket.org/ned/jslex
|
||||
|
||||
from django.test import TestCase
|
@ -1,31 +0,0 @@
|
||||
Remove un-needed objects.inv files from d'loading during doc build
|
||||
diff -ur Django-1.5.1.orig/docs/conf.py Django-1.5.1/docs/conf.py
|
||||
--- docs/conf.py 2013-03-29 04:10:14.000000000 +0800
|
||||
+++ docs/conf.py 2013-05-28 01:54:49.695008477 +0800
|
||||
@@ -91,12 +91,6 @@
|
||||
|
||||
# Links to Python's docs should reference the most recent version of the 2.x
|
||||
# branch, which is located at this URL.
|
||||
-intersphinx_mapping = {
|
||||
- 'python': ('http://docs.python.org/2.7', None),
|
||||
- 'sphinx': ('http://sphinx.pocoo.org/', None),
|
||||
- 'six': ('http://packages.python.org/six/', None),
|
||||
- 'simplejson': ('http://simplejson.readthedocs.org/en/latest/', None),
|
||||
-}
|
||||
|
||||
# Python's docs don't change every week.
|
||||
intersphinx_cache_limit = 90 # days
|
||||
# Fix creation of html docs on python 3
|
||||
# https://github.com/django/django/commit/a5733fcd7be7adb8b236825beff4ccda19900f9e
|
||||
diff -ur Django-1.5.1.orig/docs/_ext/djangodocs.py Django-1.5.1/docs/_ext/djangodocs.py
|
||||
--- docs/_ext/djangodocs.py 2013-03-29 04:07:21.000000000 +0800
|
||||
+++ docs/_ext/djangodocs.py 2013-05-28 02:34:59.057009144 +0800
|
||||
@@ -204,7 +204,7 @@
|
||||
if t == "templatefilter" and l == "ref/templates/builtins"],
|
||||
}
|
||||
outfilename = os.path.join(self.outdir, "templatebuiltins.js")
|
||||
- with open(outfilename, 'wb') as fp:
|
||||
+ with open(outfilename, 'w') as fp:
|
||||
fp.write('var django_template_builtins = ')
|
||||
json.dump(templatebuiltins, fp)
|
||||
fp.write(';\n')
|
@ -1,81 +0,0 @@
|
||||
django/core/management/commands/makemessages.py | 4 ++--
|
||||
tests/i18n/commands/extraction.py | 14 +++++++++++---
|
||||
tests/utils_tests/test_jslex.py | 2 +-
|
||||
3 files changed, 14 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/django/core/management/commands/makemessages.py b/django/core/management/commands/makemessages.py
|
||||
index 5b09661..c8f05ac 100644
|
||||
--- a/django/core/management/commands/makemessages.py
|
||||
+++ b/django/core/management/commands/makemessages.py
|
||||
@@ -90,7 +90,7 @@ class TranslatableFile(object):
|
||||
orig_file = os.path.join(self.dirpath, self.file)
|
||||
is_templatized = file_ext in command.extensions
|
||||
if is_templatized:
|
||||
- with open(orig_file, "rU") as fp:
|
||||
+ with open(orig_file, "r") as fp:
|
||||
src_data = fp.read()
|
||||
thefile = '%s.py' % self.file
|
||||
content = templatize(src_data, orig_file[2:])
|
||||
@@ -404,7 +404,7 @@ class Command(NoArgsCommand):
|
||||
for domain in domains:
|
||||
django_po = os.path.join(django_dir, 'conf', 'locale', locale, 'LC_MESSAGES', '%s.po' % domain)
|
||||
if os.path.exists(django_po):
|
||||
- with io.open(django_po, 'rU', encoding='utf-8') as fp:
|
||||
+ with io.open(django_po, 'r', encoding='utf-8') as fp:
|
||||
m = plural_forms_re.search(fp.read())
|
||||
if m:
|
||||
plural_form_line = force_str(m.group('value'))
|
||||
diff --git a/tests/i18n/commands/extraction.py b/tests/i18n/commands/extraction.py
|
||||
index e0b6deb..06cf50d 100644
|
||||
--- a/tests/i18n/commands/extraction.py
|
||||
+++ b/tests/i18n/commands/extraction.py
|
||||
@@ -5,6 +5,7 @@ import io
|
||||
import os
|
||||
import re
|
||||
import shutil
|
||||
+import sys
|
||||
import warnings
|
||||
|
||||
from django.core import management
|
||||
@@ -141,6 +142,10 @@ class BasicExtractorTests(ExtractorTests):
|
||||
self.assertIn("UnicodeDecodeError: skipped file not_utf8.txt in .",
|
||||
force_text(stdout.getvalue()))
|
||||
|
||||
+ # This issue is fixed in 1.8+ (#23312).
|
||||
+ if six.PY3 and sys.platform.startswith('win'):
|
||||
+ test_unicode_decode_error = expectedFailure(test_unicode_decode_error)
|
||||
+
|
||||
def test_extraction_warning(self):
|
||||
"""test xgettext warning about multiple bare interpolation placeholders"""
|
||||
os.chdir(self.test_dir)
|
||||
@@ -206,13 +211,16 @@ class BasicExtractorTests(ExtractorTests):
|
||||
self.assertEqual(len(ws), 3)
|
||||
for w in ws:
|
||||
self.assertTrue(issubclass(w.category, TranslatorCommentWarning))
|
||||
- six.assertRegex(self, str(ws[0].message),
|
||||
+ six.assertRegex(
|
||||
+ self, str(ws[0].message),
|
||||
r"The translator-targeted comment 'Translators: ignored i18n comment #1' \(file templates[/\\]comments.thtml, line 4\) was ignored, because it wasn't the last item on the line\."
|
||||
)
|
||||
- six.assertRegex(self, str(ws[1].message),
|
||||
+ six.assertRegex(
|
||||
+ self, str(ws[1].message),
|
||||
r"The translator-targeted comment 'Translators: ignored i18n comment #3' \(file templates[/\\]comments.thtml, line 6\) was ignored, because it wasn't the last item on the line\."
|
||||
)
|
||||
- six.assertRegex(self, str(ws[2].message),
|
||||
+ six.assertRegex(
|
||||
+ self, str(ws[2].message),
|
||||
r"The translator-targeted comment 'Translators: ignored i18n comment #4' \(file templates[/\\]comments.thtml, line 8\) was ignored, because it wasn't the last item on the line\."
|
||||
)
|
||||
# Now test .po file contents
|
||||
diff --git a/tests/utils_tests/test_jslex.py b/tests/utils_tests/test_jslex.py
|
||||
index a2af7b4..e696149 100644
|
||||
--- a/tests/utils_tests/test_jslex.py
|
||||
+++ b/tests/utils_tests/test_jslex.py
|
||||
@@ -1,5 +1,5 @@
|
||||
+# -*- coding: utf-8 -*-
|
||||
"""Tests for jslex."""
|
||||
-# encoding: utf-8
|
||||
# originally from https://bitbucket.org/ned/jslex
|
||||
|
||||
from django.test import TestCase
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue