parent
5b96f3d2bd
commit
1a49189fe8
@ -1,6 +1,6 @@
|
||||
DIST xz-5.2.2.tar.gz 1464228 SHA256 73df4d5d34f0468bd57d09f2d8af363e95ed6cc3a4a86129d2f2c366259902a2 SHA512 8d6249f93c5c43e1c8eeb21f93b22330fd54575e20bbb4af3d06721192d9f0ca3351878964c9640238ac410b7dd9f16329793c7be7355c7ca0db92c6db6ab813 WHIRLPOOL 7707f10908a57b5780cdb9dda6bac2674f4c5e3350660ea61539b4df5ecc7dbeeb03f05a9b32873d28a14343f9c6491d68095769d3b283018e8139a95bf5f369
|
||||
EBUILD xz-utils-5.2.2.ebuild 2164 SHA256 4cb332f9aa6ab78a6e6eb3ee06d0fd492b0a737a97d176fd6a81408d36c0963d SHA512 fa2cff77f81192a13b11257cccf971b89df2bceb526b8e75c7c4f3a66a77397610b64912ac809b64c9ee2af92ef77abef44131fbd1b41e66d806075dae05a0d7 WHIRLPOOL 9d21b9f2e6ec17277e74d0e9efc437aa3a5806f39221c7084f54b1280b62e8c448e54d6090a0a47b7f495f120fbaacc2e5c993428796effb7931011f494196b0
|
||||
EBUILD xz-utils-9999.ebuild 2166 SHA256 e1cc036008d90d5aae5a4e2b599725b0726ec16256016f0779fdcb6feced0e13 SHA512 4cce17eef008974975072b0a2b2398f4bbf847879c44569693de1e03f43ef8851d5487f0cfb68c5d2b8f6df74873388289482a354ff0a0e075c44cfd58657bfb WHIRLPOOL bd85dcc1845a71b1f5fb932d6b0a9db18a7158ba904fbd5476d508ea7670693ba078734c15eee32b0c1097735a284a07731fe1efa111e9194232fa208bbdabee
|
||||
MISC ChangeLog 4722 SHA256 81c61d799f70e22ee189bb5a9d28e9f62cc10b65653999128c489a1800f1a87d SHA512 694ad4ac552e2168030b9bb8797233789e85fd2c8c76de787875926d6ab6e10e439738d5afe51819bbb41344c609208590a150b521af4b77c22911f792d55901 WHIRLPOOL 9cec9d5e621ac1b00d0f872fa10f442e9bb409a0d6bc0ab8ccb360b4cba28d1236cf38fd467dbca6b9089b85fb3f367ad06545c6c18973bb01eb80c43a4d087d
|
||||
MISC ChangeLog 5449 SHA256 d69f1208f895f611b314ae8f3de4e8b1c5dfbb4cc867b567c73da35f2c88b67f SHA512 e2aaaca806d48530574a0a816ac82186853c5c2a7b66b500f9de5832d2a68cc99f39d6352c3cd61ba1ff561e9cf845bca286962c9b59c12fe62148dde9fbccfc WHIRLPOOL e3ff1142f59e816cecdec9444b50824748719e3c1900375bd5c93c269e3d1da4d0b40a4ca7a3ae5c76a7a15895a53f2134b9f9f5864c5869646ca50ad03f1032
|
||||
MISC ChangeLog-2015 12969 SHA256 63686500ae830d3f1e9d0b1982c440a6e9dcb429e55d039e06ef5504482a8cf1 SHA512 acfb4e9cb443c31446c0499cdb0fafe13ffcac18e3b62b24df487096310468a5f6d4d7913a2d321cb6e9d6109467241d89a565d3c85a385be06899930aa99f0d WHIRLPOOL adefa045fb20f45aaa9abe710b74887bb7aa002331664cedc61ea4a9bcf810dba09ef1da62fcbe202a06f6b3a8aadc78c1001b1acc7af95c70e880ae614687e1
|
||||
MISC metadata.xml 253 SHA256 d82c33ef453113a5c1ebe250dcba373c22934a69b0a86c6ab15a5ca589c25b91 SHA512 54a9069aeb4165d2dff3d473c8001bc51613aac9dff3f7f5e9971a9891a737a31511ffa11cbd523febe581ac1d9de2bdf2f40410f0c4239138f2ccca3ef15555 WHIRLPOOL e5aee23acff864609953a1e4de768f0e4aef704b44c53c021f28573e1ca5c99f1a46d92935ecec2449f7b4419a36d8373127d0ecfa8d7bae72d835e1839eb3f8
|
||||
|
@ -1,7 +1,9 @@
|
||||
DIST anki-2.0.31.tgz 3329290 SHA256 4b969629255b00db9a9eb8a2fd70271cc41c92c47752eb1c78e8609ff025be2f SHA512 3e6e29247d83b026ece6974007c848822360a812838dbb718cf3f1423fc9d015236b027944cd99f3b419e0fe4fe6cb2390d185f00646af727ec8e76f4aa3cbb8 WHIRLPOOL 42b1ecf2cc856c15ad1fe690d45e8051a8b79ef0b850e701a6a8a510a56cc4e6711bf4c8acc8ae9add7a3c761788005979c9a6398a71e1b28c9821043d5f6053
|
||||
DIST anki-2.0.33.tgz 3376646 SHA256 b9fe2c35a68e90f3fa31f5c67f3447a7e1033d1c909baa381a1525ce5e71b9b4 SHA512 ac2df1ac94e5aa4cc04c17d41b8f96788b5f321860bc20b4a167d5ee0161ca4f7f586fda08ac9910a706ec3e7d1bd692d2e74f3de56997c9ce480122396e0d6d WHIRLPOOL fdddc9c51f2226373bdf5c6547a3b643b94aac37d68cf1e1430ee9355d4f5b11ae3e4cca218d65e7a76a0921f8d2e3e0676c2022aef4e49998e596531ce93848
|
||||
DIST anki-2.0.34.tgz 3411136 SHA256 ce70f10efb7deabb5cf5e6e003a3ee0b22a2d37ed24ac6c4d8f4e079b8ae5ff8 SHA512 289e937be7174b24b5213166d5d434a265ebef313815dbe105de6e21c83c6cf0cba93000e489b050fc5a04fc80bac25a71e7a42adad55bf2a1a2a246890dacdd WHIRLPOOL 3b3f2f9292b917dbde23825d75f2dde1219c3992538f29fea11a5c3bb6223abbf86a8593c50c0ee6d2ab783a23c38c5358c768a280a1cfbf6af01097e5070da2
|
||||
EBUILD anki-2.0.31.ebuild 1517 SHA256 4c1e6000057606916e5d305c01d96daaf606fcc03ddc491e58bac88b8b45b422 SHA512 3d59229f1bea607fd09639f554753fd91dd9079097f6ae19f083b3ac3795fea3634e72b94dd420980e8308da113142630e33517fb91d00ff29ea14234bbdbade WHIRLPOOL d4633a4886da4d5c5dc96aa6eb64ae45a61a939f28f7820d0d23c5f27ee4853dcd467f7775d2449c3ce24e50a112cc417513f7d4a86cbffc33b4a70f820ffdd8
|
||||
EBUILD anki-2.0.33.ebuild 1263 SHA256 6741ddcb74d696775761782a4c4ec1687cbba4ae1207455a6b103d5cd04d6861 SHA512 eab8551210e27f80bcd15dceb0f49b50ae38c65614e7f4bb71e61f33a0169bac33848ffd91d6759851ac7344ed093c7b7c7815f60d9a62ff57902b4235d84d09 WHIRLPOOL 39a45dcc3eabc81aac47a2e600fe41e6e72159497680d802105a9007eb2faa3567409ff1b7136f6604217d3883d7d17caee5847a1fde4d415140c17f847cdfc5
|
||||
MISC ChangeLog 3050 SHA256 460da65a5aa4a22467b7ab9e5a20db007a4f3dd743367feb7143a12ec376f614 SHA512 70e1f1b9a1ba4635e1eada61958430c6013e72f9fbe1305a6742ece0898825dcc1961b55350ddcbe44401be9c5c80fd86c62c88985735c38cd9fe140f65cfa21 WHIRLPOOL 986a2c1baa51216c38ca8d9902052ecfecf9977a03b5eeb937ee0a4719f231699c936ebc48692921b717a1194c753e18f838f14c69a9eb3f699a7c6184777b16
|
||||
EBUILD anki-2.0.34.ebuild 1265 SHA256 ef163daf0c4a597c9887fb3428bc7047fe6b1c5a7d6e5391aab1f07d06ced02b SHA512 4f73f5c3a2334ceb0d2fced5e7086b1141f14194be421de6ba93c88674268b73e7b78d3e6a523ec50a89ae6bc4f5c7bf7a3e09b119d2acde8a7e7795cbc2a417 WHIRLPOOL 40fd7fc4ba423f10e0388b3d939887ee74dcb8fd1f9cf90fa44220a2e3b1600fd55245054363733d6cb66011af8f717e4a49df33d9a48ad5ccca64838145536c
|
||||
MISC ChangeLog 3192 SHA256 4b108ee8afe95e885f0ad5cfb90c50db99b549155862468151861f3d908638d6 SHA512 ea4dda2a07b08329b196ff79c494b9917a52c5c87557e160f9dbd36f1b086687620891ab11256d6158aade104a89e0738996dc2d3d2498db169a2ccdb80b35da WHIRLPOOL 5a41ea9831fc903c5c7fbd7dde890149e272785aab1b5d434e89904fd625dce4f4fcb6d82275d69c7302f219f05928d2eb19a23da2b0b928064f312000541216
|
||||
MISC ChangeLog-2015 13597 SHA256 f169f73f5e36840c9b281c98f2d420597ea86866573b224c12c87f054be9c23b SHA512 8a148eca4be6552c783d903eea48cab5ea7f6a4bca1b9c9f3d80a3fe80f989855943069c99a7f361d3ee85b98d2f8f94d4a751fc7a456292fe7ffa02105cce22 WHIRLPOOL fd93017f71140b91cad14d2a30d2c1dd30e355c95db551c03e64aae79dced66f3ad4fd12e54ae8516c87b4a8ff85f074cb23bd8b5eb545c9dc5b7dbe9a1bc43c
|
||||
MISC metadata.xml 780 SHA256 5581e6cbeda1725f6de0f6d58e3d15b2d5ca37fe70027e74e82a0f49827690ef SHA512 6628f1e87e140d132e934d7bbac6f67fa8fa222186df47a3dc6bd92447d9ed6cbed338080d6a0652a725291b374b4f38c8fb4178cf0e51746c6e3cb318c43ac5 WHIRLPOOL df821aef881b1bbd7cfde11a63b1f8919584413dc096297cd7db9a92761c6758a926a44fa6f43d7396351cde3d3315eb5bb8f1042e7a075834021736637f8820
|
||||
|
@ -0,0 +1,64 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
PYTHON_REQ_USE="sqlite"
|
||||
|
||||
inherit eutils python-single-r1
|
||||
|
||||
DESCRIPTION="A spaced-repetition memory training program (flash cards)"
|
||||
HOMEPAGE="http://ichi2.net/anki/"
|
||||
SRC_URI="http://ankisrs.net/download/mirror/${P}.tgz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="latex +recording +sound"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
dev-python/PyQt4[X,svg,webkit]
|
||||
>=dev-python/httplib2-0.7.4
|
||||
dev-python/beautifulsoup:python-2
|
||||
dev-python/send2trash
|
||||
recording? ( media-sound/lame
|
||||
>=dev-python/pyaudio-0.2.4 )
|
||||
sound? ( media-video/mplayer )
|
||||
latex? ( app-text/texlive
|
||||
app-text/dvipng )"
|
||||
DEPEND=""
|
||||
|
||||
pkg_setup(){
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
rm -r thirdparty || die
|
||||
sed -i -e "s/updates=True/updates=False/" \
|
||||
aqt/profiles.py || die
|
||||
}
|
||||
|
||||
# Nothing to configure or compile
|
||||
src_configure() {
|
||||
true;
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
true;
|
||||
}
|
||||
|
||||
src_install() {
|
||||
doicon ${PN}.png
|
||||
domenu ${PN}.desktop
|
||||
doman ${PN}.1
|
||||
|
||||
dodoc README README.development
|
||||
python_domodule aqt anki
|
||||
python_doscript anki/anki
|
||||
|
||||
# Localization files go into the anki directory:
|
||||
python_moduleinto anki
|
||||
python_domodule locale
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
AUX vit-allow-nonsudo-install.patch 978 SHA256 280add74e4c57264bcac1b48fa75f60093a2a8abcb98af43818a265125947b64 SHA512 11b50594481934dd33a5f59bf04c61c7a347e517f1f0408be8c7463731490bf49c0c823c4b9ac1b951ac1f7e66d531f2d0df74ee12c3d25f47a299a2b16da628 WHIRLPOOL 9cb3859752e9af3eb379492e9213f1955a9f17f315d3d92afbebbb9ada9673a9cf37396bd48819a5ea05f112964f087de6f97b47532e9fd0290b3b8093bac4f2
|
||||
AUX vit-fix-man-installs.patch 739 SHA256 4d70541ce26a70b07480d1f5055b8c5f04e6777d88b3048552abd20d6f0241b8 SHA512 9b1795690ba090bf0487b35da28f3563f5bae4a8133d85f469a9b0104a84588d8948b98a2935b83c9c321fcffcf5a44027500eb87a736de4b254374f142dc572 WHIRLPOOL 492203fbc0dde0fbf651f9538beba6baea18e52fad918e50e0b681f0aa76681ca63cb79a04e2a3b6dbbd0140b3785206a1d4ddafcb1ee9655b4bf501b8a3ac78
|
||||
EBUILD vit-1.2.ebuild 758 SHA256 804212ecd5488c889a307f29ad0b9f6a5b0197ff9235786cca035a2baac0e328 SHA512 aafd2e0988607e4ce3fd1e2ed16d1943995b2f3e237c037fa477f8c0c9f0b5db25845c899188aa01cfdd6c0ad3b2738f51ac8b456e8f85c8d532471f37e5f194 WHIRLPOOL 82fd7c0b6d99b88950bf4795964212e3072bf000cad51f7b30c2704b7e3f3a1cca7e97cf445ba37c314edfaceb2a234011148591ee9f7f832750fc3bd884148a
|
||||
EBUILD vit-9999.ebuild 758 SHA256 804212ecd5488c889a307f29ad0b9f6a5b0197ff9235786cca035a2baac0e328 SHA512 aafd2e0988607e4ce3fd1e2ed16d1943995b2f3e237c037fa477f8c0c9f0b5db25845c899188aa01cfdd6c0ad3b2738f51ac8b456e8f85c8d532471f37e5f194 WHIRLPOOL 82fd7c0b6d99b88950bf4795964212e3072bf000cad51f7b30c2704b7e3f3a1cca7e97cf445ba37c314edfaceb2a234011148591ee9f7f832750fc3bd884148a
|
||||
MISC ChangeLog 541 SHA256 5c942764f4d8b0ff7719bcf97d886a15dd2476fb46f3a599b74db6e82ee1c8b2 SHA512 4623876ae7b2b3e4da9857888f48e9e7647b1788cc7d4e555e1d0ad7be8e2904aecbe47a0e77f8f555bf8d47f8999c007b9a86989a65c5559458e3a7bdaa32e2 WHIRLPOOL d9725ca88b724feeacb902ac4264bf47e442736c2bd98026ca8a3f8deb4509b4c8e99d120db93352610ebc8052cb446c79f995a77d2c02afd0024148dd476b40
|
||||
EBUILD vit-1.2.ebuild 788 SHA256 a6f2c34048199f9c0bf343ac802355770028dd0f1d0e89035d35224edc5f7688 SHA512 6a4d68c783c3dd6e5245ce429b4b442fc3be039bdf541c8954930dd47457879c655a3e18d76c6b9ec27b608c0947df23809cfbbd26ed69fee305179414cce044 WHIRLPOOL 3a823bf6d250c43eaa11c5deeef82192e5f9e9ca9451d8507ad8bcc55d789a54390d6e158c6b3284bc78cd466878ca54d0628a9972e4e37b5f7bbd420996c824
|
||||
EBUILD vit-9999.ebuild 788 SHA256 a6f2c34048199f9c0bf343ac802355770028dd0f1d0e89035d35224edc5f7688 SHA512 6a4d68c783c3dd6e5245ce429b4b442fc3be039bdf541c8954930dd47457879c655a3e18d76c6b9ec27b608c0947df23809cfbbd26ed69fee305179414cce044 WHIRLPOOL 3a823bf6d250c43eaa11c5deeef82192e5f9e9ca9451d8507ad8bcc55d789a54390d6e158c6b3284bc78cd466878ca54d0628a9972e4e37b5f7bbd420996c824
|
||||
MISC ChangeLog 695 SHA256 1a1800252b882882a3047d7e5b7d9c26cd2cf2caf2896de85a6809f0382094ed SHA512 89fb04cd1d7d3ae66b9c57d586cae56c29cfd1d55e1e459ca60345b3e2ac8debdc330fd83e27c2b1fac716389395a4e932be3d590adafe44c4e582c528f5825e WHIRLPOOL 3e4b88396004b1d58ea441f30ef7088ef06ade2ecbeef5a5c8b868549749742745e9da95048e5110d28e51fc3a1e99e0e51f4008587af13727635799baa8a56f
|
||||
MISC metadata.xml 379 SHA256 58ca2f21215f0b9037b8cb587a3e0e52d2d825262fbf99e2c140b5d4fb2c99b0 SHA512 128de3026710cd328707f464e15a63f4be7cdb13b1d3b61ac6e47b1322d152f9d0b3f3f9a4417f1c34d1a065c5c627cc76dbe9ad28527060569f4a288500a9bf WHIRLPOOL 828b6f37fe960171947147d287ce5eec9fcbba0dbc5de4c14e80ffc0d432e207c000b21835ee228b257f5b4f328bd2a7e16459afab9ef742177d026f35d4d6cd
|
||||
|
@ -0,0 +1,384 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
|
||||
# Testing within Portage's environment is broken, and the patch no
|
||||
# longer applies cleanly.
|
||||
RESTRICT="test"
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_4} )
|
||||
|
||||
inherit eutils flag-o-matic linux-info multilib pam prefix python-single-r1 \
|
||||
systemd user versionator
|
||||
|
||||
KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris"
|
||||
|
||||
SLOT="$(get_version_component_range 1-2)"
|
||||
|
||||
SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2"
|
||||
|
||||
LICENSE="POSTGRESQL GPL-2"
|
||||
DESCRIPTION="PostgreSQL RDBMS"
|
||||
HOMEPAGE="http://www.postgresql.org/"
|
||||
|
||||
LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr
|
||||
zh_CN zh_TW"
|
||||
IUSE="doc kerberos kernel_linux ldap libressl nls pam perl -pg_legacytimestamp python
|
||||
+readline selinux +server ssl static-libs tcl threads uuid xml zlib"
|
||||
|
||||
for lingua in ${LINGUAS}; do
|
||||
IUSE+=" linguas_${lingua}"
|
||||
done
|
||||
|
||||
wanted_languages() {
|
||||
local enable_langs
|
||||
|
||||
for lingua in ${LINGUAS} ; do
|
||||
use linguas_${lingua} && enable_langs+="${lingua} "
|
||||
done
|
||||
|
||||
echo -n ${enable_langs}
|
||||
}
|
||||
|
||||
CDEPEND="
|
||||
>=app-eselect/eselect-postgresql-1.2.0
|
||||
sys-apps/less
|
||||
virtual/libintl
|
||||
kerberos? ( virtual/krb5 )
|
||||
ldap? ( net-nds/openldap )
|
||||
pam? ( virtual/pam )
|
||||
perl? ( >=dev-lang/perl-5.8 )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
readline? ( sys-libs/readline:0= )
|
||||
ssl? (
|
||||
!libressl? ( >=dev-libs/openssl-0.9.6-r1:0= )
|
||||
libressl? ( dev-libs/libressl:= )
|
||||
)
|
||||
tcl? ( >=dev-lang/tcl-8:0= )
|
||||
uuid? ( dev-libs/ossp-uuid )
|
||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
||||
zlib? ( sys-libs/zlib )
|
||||
"
|
||||
|
||||
DEPEND="${CDEPEND}
|
||||
!!<sys-apps/sandbox-2.0
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
nls? ( sys-devel/gettext )
|
||||
xml? ( virtual/pkgconfig )
|
||||
"
|
||||
|
||||
RDEPEND="${CDEPEND}
|
||||
!dev-db/postgresql-docs:${SLOT}
|
||||
!dev-db/postgresql-base:${SLOT}
|
||||
!dev-db/postgresql-server:${SLOT}
|
||||
selinux? ( sec-policy/selinux-postgresql )
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
use server && CONFIG_CHECK="~SYSVIPC" linux-info_pkg_setup
|
||||
|
||||
enewgroup postgres 70
|
||||
enewuser postgres 70 /bin/sh /var/lib/postgresql postgres
|
||||
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Work around PPC{,64} compilation bug where bool is already defined
|
||||
sed '/#ifndef __cplusplus/a #undef bool' -i src/include/c.h || die
|
||||
|
||||
# Set proper run directory
|
||||
sed "s|\(PGSOCKET_DIR\s\+\)\"/tmp\"|\1\"${EPREFIX}/run/postgresql\"|" \
|
||||
-i src/include/pg_config_manual.h || die
|
||||
|
||||
epatch "${FILESDIR}/pg_ctl-exit-status.patch"
|
||||
|
||||
use server || epatch "${FILESDIR}/${PN}-${SLOT}-no-server.patch"
|
||||
|
||||
# Fix bug 486556 where the server would crash at start up because of
|
||||
# an infinite loop caused by a self-referencing symlink.
|
||||
epatch "${FILESDIR}/postgresql-9.1-tz-dir-overflow.patch"
|
||||
|
||||
if use pam ; then
|
||||
sed -e "s/\(#define PGSQL_PAM_SERVICE \"postgresql\)/\1-${SLOT}/" \
|
||||
-i src/backend/libpq/auth.c || \
|
||||
die 'PGSQL_PAM_SERVICE rename failed.'
|
||||
fi
|
||||
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
case ${CHOST} in
|
||||
*-darwin*|*-solaris*)
|
||||
use nls && append-libs intl
|
||||
;;
|
||||
esac
|
||||
|
||||
export LDFLAGS_SL="${LDFLAGS}"
|
||||
export LDFLAGS_EX="${LDFLAGS}"
|
||||
|
||||
local PO="${EPREFIX%/}"
|
||||
|
||||
econf \
|
||||
--prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \
|
||||
--datadir="${PO}/usr/share/postgresql-${SLOT}" \
|
||||
--docdir="${PO}/usr/share/doc/${PF}" \
|
||||
--includedir="${PO}/usr/include/postgresql-${SLOT}" \
|
||||
--mandir="${PO}/usr/share/postgresql-${SLOT}/man" \
|
||||
--sysconfdir="${PO}/etc/postgresql-${SLOT}" \
|
||||
--with-system-tzdata="${PO}/usr/share/zoneinfo" \
|
||||
$(use_enable !pg_legacytimestamp integer-datetimes) \
|
||||
$(use_enable threads thread-safety) \
|
||||
$(use_with kerberos gssapi) \
|
||||
$(use_with kerberos krb5) \
|
||||
$(use_with ldap) \
|
||||
$(use_with pam) \
|
||||
$(use_with perl) \
|
||||
$(use_with python) \
|
||||
$(use_with readline) \
|
||||
$(use_with ssl openssl) \
|
||||
$(use_with tcl) \
|
||||
$(use_with uuid ossp-uuid) \
|
||||
$(use_with xml libxml) \
|
||||
$(use_with xml libxslt) \
|
||||
$(use_with zlib) \
|
||||
"$(use_enable nls nls "$(wanted_languages)")"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake
|
||||
emake -C contrib
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
emake DESTDIR="${D}" install -C contrib
|
||||
|
||||
dodoc README HISTORY doc/{TODO,bug.template}
|
||||
|
||||
# man pages are already built, but if we have the target make them,
|
||||
# they'll be generated from source before being installed so we
|
||||
# manually install man pages.
|
||||
# We use ${SLOT} instead of doman for postgresql.eselect
|
||||
insinto /usr/share/postgresql-${SLOT}/man/
|
||||
doins -r doc/src/sgml/man{1,3,7}
|
||||
if ! use server; then
|
||||
# Remove man pages for non-existent binaries
|
||||
for m in {initdb,pg_{controldata,ctl,resetxlog},post{gres,master}}; do
|
||||
rm "${ED}/usr/share/postgresql-${SLOT}/man/man1/${m}.1"
|
||||
done
|
||||
fi
|
||||
docompress /usr/share/postgresql-${SLOT}/man/man{1,3,7}
|
||||
|
||||
insinto /etc/postgresql-${SLOT}
|
||||
newins src/bin/psql/psqlrc.sample psqlrc
|
||||
|
||||
dodir /etc/eselect/postgresql/slots/${SLOT}
|
||||
echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" > \
|
||||
"${ED}/etc/eselect/postgresql/slots/${SLOT}/base"
|
||||
|
||||
use static-libs || find "${ED}" -name '*.a' -delete
|
||||
|
||||
if use doc ; then
|
||||
docinto html
|
||||
dodoc doc/src/sgml/html/*
|
||||
|
||||
docinto sgml
|
||||
dodoc doc/src/sgml/*.{sgml,dsl}
|
||||
fi
|
||||
|
||||
if use server; then
|
||||
sed -e "s|@SLOT@|${SLOT}|g" -e "s|@LIBDIR@|$(get_libdir)|g" \
|
||||
"${FILESDIR}/${PN}.confd" | newconfd - ${PN}-${SLOT}
|
||||
|
||||
sed -e "s|@SLOT@|${SLOT}|g" -e "s|@LIBDIR@|$(get_libdir)|g" \
|
||||
"${FILESDIR}/${PN}.init-pre_9.2" | newinitd - ${PN}-${SLOT}
|
||||
|
||||
sed -e "s|@SLOT@|${SLOT}|g" -e "s|@LIBDIR@|$(get_libdir)|g" \
|
||||
"${FILESDIR}/${PN}.service" | \
|
||||
systemd_newunit - ${PN}-${SLOT}.service
|
||||
|
||||
newbin "${FILESDIR}"/${PN}-check-db-dir ${PN}-${SLOT}-check-db-dir
|
||||
|
||||
use pam && pamd_mimic system-auth ${PN}-${SLOT} auth account session
|
||||
|
||||
if use prefix ; then
|
||||
keepdir /run/postgresql
|
||||
fperms 0775 /run/postgresql
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
postgresql-config update
|
||||
|
||||
elog "If you need a global psqlrc-file, you can place it in:"
|
||||
elog " ${EROOT%/}/etc/postgresql-${SLOT}/"
|
||||
|
||||
if [[ -z ${REPLACING_VERSIONS} ]] ; then
|
||||
elog
|
||||
elog "It looks like this is your first time installing PostgreSQL. Run the"
|
||||
elog "following command in all active shells to pick up changes to the default"
|
||||
elog "environment:"
|
||||
elog " source /etc/profile"
|
||||
fi
|
||||
|
||||
if use server ; then
|
||||
elog
|
||||
elog "Gentoo specific documentation:"
|
||||
elog "https://wiki.gentoo.org/wiki/PostgreSQL"
|
||||
elog
|
||||
elog "Official documentation:"
|
||||
elog "http://www.postgresql.org/docs/${SLOT}/static/index.html"
|
||||
elog
|
||||
elog "The default location of the Unix-domain socket is:"
|
||||
elog " ${EROOT%/}/run/postgresql/"
|
||||
elog
|
||||
elog "Before initializing the database, you may want to edit PG_INITDB_OPTS"
|
||||
elog "so that it contains your preferred locale in:"
|
||||
elog " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}"
|
||||
elog
|
||||
elog "Then, execute the following command to setup the initial database"
|
||||
elog "environment:"
|
||||
elog " emerge --config =${CATEGORY}/${PF}"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
if use server && [[ -z ${REPLACED_BY_VERSION} ]] ; then
|
||||
ewarn "Have you dumped and/or migrated the ${SLOT} database cluster?"
|
||||
ewarn "\thttps://wiki.gentoo.org/wiki/PostgreSQL/QuickStart#Migrating_PostgreSQL"
|
||||
|
||||
ebegin "Resuming removal in 10 seconds (Control-C to cancel)"
|
||||
sleep 10
|
||||
eend 0
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
postgresql-config update
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
use server || die "USE flag 'server' not enabled. Nothing to configure."
|
||||
|
||||
[[ -f "${EROOT%/}/etc/conf.d/postgresql-${SLOT}" ]] \
|
||||
&& source "${EROOT%/}/etc/conf.d/postgresql-${SLOT}"
|
||||
[[ -z "${PGDATA}" ]] && PGDATA="${EROOT%/}/etc/postgresql-${SLOT}/"
|
||||
[[ -z "${DATA_DIR}" ]] \
|
||||
&& DATA_DIR="${EROOT%/}/var/lib/postgresql/${SLOT}/data"
|
||||
|
||||
# environment.bz2 may not contain the same locale as the current system
|
||||
# locale. Unset and source from the current system locale.
|
||||
if [ -f "${EROOT%/}/etc/env.d/02locale" ]; then
|
||||
unset LANG
|
||||
unset LC_CTYPE
|
||||
unset LC_NUMERIC
|
||||
unset LC_TIME
|
||||
unset LC_COLLATE
|
||||
unset LC_MONETARY
|
||||
unset LC_MESSAGES
|
||||
unset LC_ALL
|
||||
source "${EROOT%/}/etc/env.d/02locale"
|
||||
[ -n "${LANG}" ] && export LANG
|
||||
[ -n "${LC_CTYPE}" ] && export LC_CTYPE
|
||||
[ -n "${LC_NUMERIC}" ] && export LC_NUMERIC
|
||||
[ -n "${LC_TIME}" ] && export LC_TIME
|
||||
[ -n "${LC_COLLATE}" ] && export LC_COLLATE
|
||||
[ -n "${LC_MONETARY}" ] && export LC_MONETARY
|
||||
[ -n "${LC_MESSAGES}" ] && export LC_MESSAGES
|
||||
[ -n "${LC_ALL}" ] && export LC_ALL
|
||||
fi
|
||||
|
||||
einfo "You can modify the paths and options passed to initdb by editing:"
|
||||
einfo " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}"
|
||||
einfo
|
||||
einfo "Information on options that can be passed to initdb are found at:"
|
||||
einfo " http://www.postgresql.org/docs/${SLOT}/static/creating-cluster.html"
|
||||
einfo " http://www.postgresql.org/docs/${SLOT}/static/app-initdb.html"
|
||||
einfo
|
||||
einfo "PG_INITDB_OPTS is currently set to:"
|
||||
if [[ -z "${PG_INITDB_OPTS}" ]] ; then
|
||||
einfo " (none)"
|
||||
else
|
||||
einfo " ${PG_INITDB_OPTS}"
|
||||
fi
|
||||
einfo
|
||||
einfo "Configuration files will be installed to:"
|
||||
einfo " ${PGDATA}"
|
||||
einfo
|
||||
einfo "The database cluster will be created in:"
|
||||
einfo " ${DATA_DIR}"
|
||||
einfo
|
||||
while [ "$correct" != "true" ] ; do
|
||||
einfo "Are you ready to continue? (y/n)"
|
||||
read answer
|
||||
if [[ $answer =~ ^[Yy]([Ee][Ss])?$ ]] ; then
|
||||
correct="true"
|
||||
elif [[ $answer =~ ^[Nn]([Oo])?$ ]] ; then
|
||||
die "Aborting initialization."
|
||||
else
|
||||
echo "Answer not recognized"
|
||||
fi
|
||||
done
|
||||
|
||||
if [ -n "$(ls -A ${DATA_DIR} 2> /dev/null)" ] ; then
|
||||
eerror "The given directory, '${DATA_DIR}', is not empty."
|
||||
eerror "Modify DATA_DIR to point to an empty directory."
|
||||
die "${DATA_DIR} is not empty."
|
||||
fi
|
||||
|
||||
einfo "Creating the data directory ..."
|
||||
if [[ ${EUID} == 0 ]] ; then
|
||||
mkdir -p "${DATA_DIR}"
|
||||
chown -Rf postgres:postgres "${DATA_DIR}"
|
||||
chmod 0700 "${DATA_DIR}"
|
||||
fi
|
||||
|
||||
einfo "Initializing the database ..."
|
||||
|
||||
if [[ ${EUID} == 0 ]] ; then
|
||||
su postgres -c "${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -D \"${DATA_DIR}\" ${PG_INITDB_OPTS}"
|
||||
else
|
||||
"${EROOT%/}"/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -U postgres -D "${DATA_DIR}" ${PG_INITDB_OPTS}
|
||||
fi
|
||||
|
||||
if [[ "${DATA_DIR%/}" != "${PGDATA%/}" ]] ; then
|
||||
mv "${DATA_DIR%/}"/{pg_{hba,ident},postgresql}.conf "${PGDATA}"
|
||||
ln -s "${PGDATA%/}"/{pg_{hba,ident},postgresql}.conf "${DATA_DIR%/}"
|
||||
fi
|
||||
|
||||
cat <<- EOF >> "${PGDATA%/}"/postgresql.conf
|
||||
# This is here because of https://bugs.gentoo.org/show_bug.cgi?id=518522
|
||||
# On the off-chance that you might need to work with UTF-8 encoded
|
||||
# characters in PL/Perl
|
||||
plperl.on_init = 'use utf8; use re; package utf8; require "utf8_heavy.pl";'
|
||||
EOF
|
||||
|
||||
einfo "The autovacuum function, which was in contrib, has been moved to the main"
|
||||
einfo "PostgreSQL functions starting with 8.1, and starting with 8.4 is now enabled"
|
||||
einfo "by default. You can disable it in the cluster's:"
|
||||
einfo " ${PGDATA%/}/postgresql.conf"
|
||||
einfo
|
||||
einfo "The PostgreSQL server, by default, will log events to:"
|
||||
einfo " ${DATA_DIR%/}/postmaster.log"
|
||||
einfo
|
||||
if use prefix ; then
|
||||
einfo "The location of the configuration files have moved to:"
|
||||
einfo " ${PGDATA}"
|
||||
einfo "To start the server:"
|
||||
einfo " pg_ctl start -D ${DATA_DIR} -o '-D ${PGDATA} --data-directory=${DATA_DIR}'"
|
||||
einfo "To stop:"
|
||||
einfo " pg_ctl stop -D ${DATA_DIR}"
|
||||
einfo
|
||||
einfo "Or move the configuration files back:"
|
||||
einfo "mv ${PGDATA}*.conf ${DATA_DIR}"
|
||||
else
|
||||
einfo "You should use the '${EROOT%/}/etc/init.d/postgresql-${SLOT}' script to run PostgreSQL"
|
||||
einfo "instead of 'pg_ctl'."
|
||||
fi
|
||||
}
|
@ -0,0 +1,396 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_4} )
|
||||
|
||||
inherit eutils flag-o-matic linux-info multilib pam prefix python-single-r1 \
|
||||
systemd user versionator
|
||||
|
||||
KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris"
|
||||
|
||||
SLOT="$(get_version_component_range 1-2)"
|
||||
|
||||
SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2"
|
||||
|
||||
LICENSE="POSTGRESQL GPL-2"
|
||||
DESCRIPTION="PostgreSQL RDBMS"
|
||||
HOMEPAGE="http://www.postgresql.org/"
|
||||
|
||||
LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr
|
||||
zh_CN zh_TW"
|
||||
IUSE="doc kerberos kernel_linux ldap libressl nls pam perl -pg_legacytimestamp python
|
||||
+readline selinux +server ssl static-libs tcl threads uuid xml zlib"
|
||||
|
||||
for lingua in ${LINGUAS}; do
|
||||
IUSE+=" linguas_${lingua}"
|
||||
done
|
||||
|
||||
wanted_languages() {
|
||||
local enable_langs
|
||||
|
||||
for lingua in ${LINGUAS} ; do
|
||||
use linguas_${lingua} && enable_langs+="${lingua} "
|
||||
done
|
||||
|
||||
echo -n ${enable_langs}
|
||||
}
|
||||
|
||||
CDEPEND="
|
||||
>=app-eselect/eselect-postgresql-1.2.0
|
||||
sys-apps/less
|
||||
virtual/libintl
|
||||
kerberos? ( virtual/krb5 )
|
||||
ldap? ( net-nds/openldap )
|
||||
pam? ( virtual/pam )
|
||||
perl? ( >=dev-lang/perl-5.8 )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
readline? ( sys-libs/readline:0= )
|
||||
ssl? (
|
||||
!libressl? ( >=dev-libs/openssl-0.9.6-r1:0= )
|
||||
libressl? ( dev-libs/libressl:= )
|
||||
)
|
||||
tcl? ( >=dev-lang/tcl-8:0= )
|
||||
uuid? ( dev-libs/ossp-uuid )
|
||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
||||
zlib? ( sys-libs/zlib )
|
||||
"
|
||||
|
||||
DEPEND="${CDEPEND}
|
||||
!!<sys-apps/sandbox-2.0
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
nls? ( sys-devel/gettext )
|
||||
xml? ( virtual/pkgconfig )
|
||||
"
|
||||
|
||||
RDEPEND="${CDEPEND}
|
||||
!dev-db/postgresql-docs:${SLOT}
|
||||
!dev-db/postgresql-base:${SLOT}
|
||||
!dev-db/postgresql-server:${SLOT}
|
||||
selinux? ( sec-policy/selinux-postgresql )
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
use server && CONFIG_CHECK="~SYSVIPC" linux-info_pkg_setup
|
||||
|
||||
enewgroup postgres 70
|
||||
enewuser postgres 70 /bin/sh /var/lib/postgresql postgres
|
||||
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Work around PPC{,64} compilation bug where bool is already defined
|
||||
sed '/#ifndef __cplusplus/a #undef bool' -i src/include/c.h || die
|
||||
|
||||
# Set proper run directory
|
||||
sed "s|\(PGSOCKET_DIR\s\+\)\"/tmp\"|\1\"${EPREFIX}/run/postgresql\"|" \
|
||||
-i src/include/pg_config_manual.h || die
|
||||
|
||||
use server || epatch "${FILESDIR}/${PN}-${SLOT}-no-server.patch"
|
||||
|
||||
# Fix bug 486556 where the server would crash at start up because of
|
||||
# an infinite loop caused by a self-referencing symlink.
|
||||
epatch "${FILESDIR}/postgresql-9.2-9.4-tz-dir-overflow.patch"
|
||||
|
||||
if use pam ; then
|
||||
sed -e "s/\(#define PGSQL_PAM_SERVICE \"postgresql\)/\1-${SLOT}/" \
|
||||
-i src/backend/libpq/auth.c || \
|
||||
die 'PGSQL_PAM_SERVICE rename failed.'
|
||||
fi
|
||||
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
case ${CHOST} in
|
||||
*-darwin*|*-solaris*)
|
||||
use nls && append-libs intl
|
||||
;;
|
||||
esac
|
||||
|
||||
export LDFLAGS_SL="${LDFLAGS}"
|
||||
export LDFLAGS_EX="${LDFLAGS}"
|
||||
|
||||
local PO="${EPREFIX%/}"
|
||||
|
||||
econf \
|
||||
--prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \
|
||||
--datadir="${PO}/usr/share/postgresql-${SLOT}" \
|
||||
--docdir="${PO}/usr/share/doc/${PF}" \
|
||||
--includedir="${PO}/usr/include/postgresql-${SLOT}" \
|
||||
--mandir="${PO}/usr/share/postgresql-${SLOT}/man" \
|
||||
--sysconfdir="${PO}/etc/postgresql-${SLOT}" \
|
||||
--with-system-tzdata="${PO}/usr/share/zoneinfo" \
|
||||
$(use_enable !pg_legacytimestamp integer-datetimes) \
|
||||
$(use_enable threads thread-safety) \
|
||||
$(use_with kerberos gssapi) \
|
||||
$(use_with kerberos krb5) \
|
||||
$(use_with ldap) \
|
||||
$(use_with pam) \
|
||||
$(use_with perl) \
|
||||
$(use_with python) \
|
||||
$(use_with readline) \
|
||||
$(use_with ssl openssl) \
|
||||
$(use_with tcl) \
|
||||
$(use_with uuid ossp-uuid) \
|
||||
$(use_with xml libxml) \
|
||||
$(use_with xml libxslt) \
|
||||
$(use_with zlib) \
|
||||
"$(use_enable nls nls "$(wanted_languages)")"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake
|
||||
emake -C contrib
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
emake DESTDIR="${D}" install -C contrib
|
||||
|
||||
dodoc README HISTORY doc/{TODO,bug.template}
|
||||
|
||||
# man pages are already built, but if we have the target make them,
|
||||
# they'll be generated from source before being installed so we
|
||||
# manually install man pages.
|
||||
# We use ${SLOT} instead of doman for postgresql.eselect
|
||||
insinto /usr/share/postgresql-${SLOT}/man/
|
||||
doins -r doc/src/sgml/man{1,3,7}
|
||||
if ! use server; then
|
||||
# Remove man pages for non-existent binaries
|
||||
for m in {initdb,pg_{controldata,ctl,resetxlog},post{gres,master}}; do
|
||||
rm "${ED}/usr/share/postgresql-${SLOT}/man/man1/${m}.1"
|
||||
done
|
||||
fi
|
||||
docompress /usr/share/postgresql-${SLOT}/man/man{1,3,7}
|
||||
|
||||
insinto /etc/postgresql-${SLOT}
|
||||
newins src/bin/psql/psqlrc.sample psqlrc
|
||||
|
||||
dodir /etc/eselect/postgresql/slots/${SLOT}
|
||||
echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" > \
|
||||
"${ED}/etc/eselect/postgresql/slots/${SLOT}/base"
|
||||
|
||||
use static-libs || find "${ED}" -name '*.a' -delete
|
||||
|
||||
if use doc ; then
|
||||
docinto html
|
||||
dodoc doc/src/sgml/html/*
|
||||
|
||||
docinto sgml
|
||||
dodoc doc/src/sgml/*.{sgml,dsl}
|
||||
fi
|
||||
|
||||
if use server; then
|
||||
sed -e "s|@SLOT@|${SLOT}|g" -e "s|@LIBDIR@|$(get_libdir)|g" \
|
||||
"${FILESDIR}/${PN}.confd" | newconfd - ${PN}-${SLOT}
|
||||
|
||||
sed -e "s|@SLOT@|${SLOT}|g" -e "s|@LIBDIR@|$(get_libdir)|g" \
|
||||
"${FILESDIR}/${PN}.init" | newinitd - ${PN}-${SLOT}
|
||||
|
||||
sed -e "s|@SLOT@|${SLOT}|g" -e "s|@LIBDIR@|$(get_libdir)|g" \
|
||||
"${FILESDIR}/${PN}.service" | \
|
||||
systemd_newunit - ${PN}-${SLOT}.service
|
||||
|
||||
newbin "${FILESDIR}"/${PN}-check-db-dir ${PN}-${SLOT}-check-db-dir
|
||||
|
||||
use pam && pamd_mimic system-auth ${PN}-${SLOT} auth account session
|
||||
|
||||
if use prefix ; then
|
||||
keepdir /run/postgresql
|
||||
fperms 0775 /run/postgresql
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
postgresql-config update
|
||||
|
||||
elog "If you need a global psqlrc-file, you can place it in:"
|
||||
elog " ${EROOT%/}/etc/postgresql-${SLOT}/"
|
||||
|
||||
if [[ -z ${REPLACING_VERSIONS} ]] ; then
|
||||
elog
|
||||
elog "It looks like this is your first time installing PostgreSQL. Run the"
|
||||
elog "following command in all active shells to pick up changes to the default"
|
||||
elog "environment:"
|
||||
elog " source /etc/profile"
|
||||
fi
|
||||
|
||||
if use server ; then
|
||||
elog
|
||||
elog "Gentoo specific documentation:"
|
||||
elog "https://wiki.gentoo.org/wiki/PostgreSQL"
|
||||
elog
|
||||
elog "Official documentation:"
|
||||
elog "http://www.postgresql.org/docs/${SLOT}/static/index.html"
|
||||
elog
|
||||
elog "The default location of the Unix-domain socket is:"
|
||||
elog " ${EROOT%/}/run/postgresql/"
|
||||
elog
|
||||
elog "Before initializing the database, you may want to edit PG_INITDB_OPTS"
|
||||
elog "so that it contains your preferred locale in:"
|
||||
elog " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}"
|
||||
elog
|
||||
elog "Then, execute the following command to setup the initial database"
|
||||
elog "environment:"
|
||||
elog " emerge --config =${CATEGORY}/${PF}"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
if use server && [[ -z ${REPLACED_BY_VERSION} ]] ; then
|
||||
ewarn "Have you dumped and/or migrated the ${SLOT} database cluster?"
|
||||
ewarn "\thttps://wiki.gentoo.org/wiki/PostgreSQL/QuickStart#Migrating_PostgreSQL"
|
||||
|
||||
ebegin "Resuming removal in 10 seconds (Control-C to cancel)"
|
||||
sleep 10
|
||||
eend 0
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
postgresql-config update
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
use server || die "USE flag 'server' not enabled. Nothing to configure."
|
||||
|
||||
[[ -f "${EROOT%/}/etc/conf.d/postgresql-${SLOT}" ]] \
|
||||
&& source "${EROOT%/}/etc/conf.d/postgresql-${SLOT}"
|
||||
[[ -z "${PGDATA}" ]] && PGDATA="${EROOT%/}/etc/postgresql-${SLOT}/"
|
||||
[[ -z "${DATA_DIR}" ]] \
|
||||
&& DATA_DIR="${EROOT%/}/var/lib/postgresql/${SLOT}/data"
|
||||
|
||||
# environment.bz2 may not contain the same locale as the current system
|
||||
# locale. Unset and source from the current system locale.
|
||||
if [ -f "${EROOT%/}/etc/env.d/02locale" ]; then
|
||||
unset LANG
|
||||
unset LC_CTYPE
|
||||
unset LC_NUMERIC
|
||||
unset LC_TIME
|
||||
unset LC_COLLATE
|
||||
unset LC_MONETARY
|
||||
unset LC_MESSAGES
|
||||
unset LC_ALL
|
||||
source "${EROOT%/}/etc/env.d/02locale"
|
||||
[ -n "${LANG}" ] && export LANG
|
||||
[ -n "${LC_CTYPE}" ] && export LC_CTYPE
|
||||
[ -n "${LC_NUMERIC}" ] && export LC_NUMERIC
|
||||
[ -n "${LC_TIME}" ] && export LC_TIME
|
||||
[ -n "${LC_COLLATE}" ] && export LC_COLLATE
|
||||
[ -n "${LC_MONETARY}" ] && export LC_MONETARY
|
||||
[ -n "${LC_MESSAGES}" ] && export LC_MESSAGES
|
||||
[ -n "${LC_ALL}" ] && export LC_ALL
|
||||
fi
|
||||
|
||||
einfo "You can modify the paths and options passed to initdb by editing:"
|
||||
einfo " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}"
|
||||
einfo
|
||||
einfo "Information on options that can be passed to initdb are found at:"
|
||||
einfo " http://www.postgresql.org/docs/${SLOT}/static/creating-cluster.html"
|
||||
einfo " http://www.postgresql.org/docs/${SLOT}/static/app-initdb.html"
|
||||
einfo
|
||||
einfo "PG_INITDB_OPTS is currently set to:"
|
||||
if [[ -z "${PG_INITDB_OPTS}" ]] ; then
|
||||
einfo " (none)"
|
||||
else
|
||||
einfo " ${PG_INITDB_OPTS}"
|
||||
fi
|
||||
einfo
|
||||
einfo "Configuration files will be installed to:"
|
||||
einfo " ${PGDATA}"
|
||||
einfo
|
||||
einfo "The database cluster will be created in:"
|
||||
einfo " ${DATA_DIR}"
|
||||
einfo
|
||||
while [ "$correct" != "true" ] ; do
|
||||
einfo "Are you ready to continue? (y/n)"
|
||||
read answer
|
||||
if [[ $answer =~ ^[Yy]([Ee][Ss])?$ ]] ; then
|
||||
correct="true"
|
||||
elif [[ $answer =~ ^[Nn]([Oo])?$ ]] ; then
|
||||
die "Aborting initialization."
|
||||
else
|
||||
echo "Answer not recognized"
|
||||
fi
|
||||
done
|
||||
|
||||
if [ -n "$(ls -A ${DATA_DIR} 2> /dev/null)" ] ; then
|
||||
eerror "The given directory, '${DATA_DIR}', is not empty."
|
||||
eerror "Modify DATA_DIR to point to an empty directory."
|
||||
die "${DATA_DIR} is not empty."
|
||||
fi
|
||||
|
||||
einfo "Creating the data directory ..."
|
||||
if [[ ${EUID} == 0 ]] ; then
|
||||
mkdir -p "${DATA_DIR}"
|
||||
chown -Rf postgres:postgres "${DATA_DIR}"
|
||||
chmod 0700 "${DATA_DIR}"
|
||||
fi
|
||||
|
||||
einfo "Initializing the database ..."
|
||||
|
||||
if [[ ${EUID} == 0 ]] ; then
|
||||
su postgres -c "${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -D \"${DATA_DIR}\" ${PG_INITDB_OPTS}"
|
||||
else
|
||||
"${EROOT%/}"/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -U postgres -D "${DATA_DIR}" ${PG_INITDB_OPTS}
|
||||
fi
|
||||
|
||||
if [[ "${DATA_DIR%/}" != "${PGDATA%/}" ]] ; then
|
||||
mv "${DATA_DIR%/}"/{pg_{hba,ident},postgresql}.conf "${PGDATA}"
|
||||
ln -s "${PGDATA%/}"/{pg_{hba,ident},postgresql}.conf "${DATA_DIR%/}"
|
||||
fi
|
||||
|
||||
cat <<- EOF >> "${PGDATA%/}"/postgresql.conf
|
||||
# This is here because of https://bugs.gentoo.org/show_bug.cgi?id=518522
|
||||
# On the off-chance that you might need to work with UTF-8 encoded
|
||||
# characters in PL/Perl
|
||||
plperl.on_init = 'use utf8; use re; package utf8; require "utf8_heavy.pl";'
|
||||
EOF
|
||||
|
||||
einfo "The autovacuum function, which was in contrib, has been moved to the main"
|
||||
einfo "PostgreSQL functions starting with 8.1, and starting with 8.4 is now enabled"
|
||||
einfo "by default. You can disable it in the cluster's:"
|
||||
einfo " ${PGDATA%/}/postgresql.conf"
|
||||
einfo
|
||||
einfo "The PostgreSQL server, by default, will log events to:"
|
||||
einfo " ${DATA_DIR%/}/postmaster.log"
|
||||
einfo
|
||||
if use prefix ; then
|
||||
einfo "The location of the configuration files have moved to:"
|
||||
einfo " ${PGDATA}"
|
||||
einfo "To start the server:"
|
||||
einfo " pg_ctl start -D ${DATA_DIR} -o '-D ${PGDATA} --data-directory=${DATA_DIR}'"
|
||||
einfo "To stop:"
|
||||
einfo " pg_ctl stop -D ${DATA_DIR}"
|
||||
einfo
|
||||
einfo "Or move the configuration files back:"
|
||||
einfo "mv ${PGDATA}*.conf ${DATA_DIR}"
|
||||
else
|
||||
einfo "You should use the '${EROOT%/}/etc/init.d/postgresql-${SLOT}' script to run PostgreSQL"
|
||||
einfo "instead of 'pg_ctl'."
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
einfo ">>> Test phase [check]: ${CATEGORY}/${PF}"
|
||||
|
||||
if use server && [[ ${UID} -ne 0 ]] ; then
|
||||
emake check
|
||||
|
||||
einfo "If you think other tests besides the regression tests are necessary, please"
|
||||
einfo "submit a bug including a patch for this ebuild to enable them."
|
||||
else
|
||||
use server || \
|
||||
ewarn 'Tests cannot be run without the "server" use flag enabled.'
|
||||
[[ ${UID} -eq 0 ]] || \
|
||||
ewarn 'Tests cannot be run as root. Enable "userpriv" in FEATURES.'
|
||||
|
||||
ewarn 'Skipping.'
|
||||
fi
|
||||
}
|
@ -0,0 +1,401 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_4} )
|
||||
|
||||
inherit eutils flag-o-matic linux-info multilib pam prefix python-single-r1 \
|
||||
systemd user versionator
|
||||
|
||||
KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris"
|
||||
|
||||
SLOT="$(get_version_component_range 1-2)"
|
||||
|
||||
SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2"
|
||||
|
||||
LICENSE="POSTGRESQL GPL-2"
|
||||
DESCRIPTION="PostgreSQL RDBMS"
|
||||
HOMEPAGE="http://www.postgresql.org/"
|
||||
|
||||
LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr
|
||||
zh_CN zh_TW"
|
||||
IUSE="doc kerberos kernel_linux ldap libressl nls pam perl -pg_legacytimestamp python
|
||||
+readline selinux +server ssl static-libs tcl threads uuid xml zlib"
|
||||
|
||||
for lingua in ${LINGUAS}; do
|
||||
IUSE+=" linguas_${lingua}"
|
||||
done
|
||||
|
||||
wanted_languages() {
|
||||
local enable_langs
|
||||
|
||||
for lingua in ${LINGUAS} ; do
|
||||
use linguas_${lingua} && enable_langs+="${lingua} "
|
||||
done
|
||||
|
||||
echo -n ${enable_langs}
|
||||
}
|
||||
|
||||
CDEPEND="
|
||||
>=app-eselect/eselect-postgresql-1.2.0
|
||||
sys-apps/less
|
||||
virtual/libintl
|
||||
kerberos? ( virtual/krb5 )
|
||||
ldap? ( net-nds/openldap )
|
||||
pam? ( virtual/pam )
|
||||
perl? ( >=dev-lang/perl-5.8 )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
readline? ( sys-libs/readline:0= )
|
||||
ssl? (
|
||||
!libressl? ( >=dev-libs/openssl-0.9.6-r1:0= )
|
||||
libressl? ( dev-libs/libressl:= )
|
||||
)
|
||||
tcl? ( >=dev-lang/tcl-8:0= )
|
||||
uuid? ( dev-libs/ossp-uuid )
|
||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
||||
zlib? ( sys-libs/zlib )
|
||||
"
|
||||
|
||||
DEPEND="${CDEPEND}
|
||||
!!<sys-apps/sandbox-2.0
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
nls? ( sys-devel/gettext )
|
||||
xml? ( virtual/pkgconfig )
|
||||
"
|
||||
|
||||
RDEPEND="${CDEPEND}
|
||||
!dev-db/postgresql-docs:${SLOT}
|
||||
!dev-db/postgresql-base:${SLOT}
|
||||
!dev-db/postgresql-server:${SLOT}
|
||||
selinux? ( sec-policy/selinux-postgresql )
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
use server && CONFIG_CHECK="~SYSVIPC" linux-info_pkg_setup
|
||||
|
||||
enewgroup postgres 70
|
||||
enewuser postgres 70 /bin/sh /var/lib/postgresql postgres
|
||||
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Work around PPC{,64} compilation bug where bool is already defined
|
||||
sed '/#ifndef __cplusplus/a #undef bool' -i src/include/c.h || die
|
||||
|
||||
# Set proper run directory
|
||||
sed "s|\(PGSOCKET_DIR\s\+\)\"/tmp\"|\1\"${EPREFIX}/run/postgresql\"|" \
|
||||
-i src/include/pg_config_manual.h || die
|
||||
|
||||
# Rely on $PATH being in the proper order so that the correct
|
||||
# install program is used for modules utilizing PGXS in both
|
||||
# hardened and non-hardened environments. (Bug #528786)
|
||||
sed 's/@install_bin@/install -c/' -i src/Makefile.global.in || die
|
||||
|
||||
use server || epatch "${FILESDIR}/${PN}-${SLOT}-no-server.patch"
|
||||
|
||||
# Fix bug 486556 where the server would crash at start up because of
|
||||
# an infinite loop caused by a self-referencing symlink.
|
||||
epatch "${FILESDIR}/postgresql-9.2-9.4-tz-dir-overflow.patch"
|
||||
|
||||
if use pam ; then
|
||||
sed -e "s/\(#define PGSQL_PAM_SERVICE \"postgresql\)/\1-${SLOT}/" \
|
||||
-i src/backend/libpq/auth.c || \
|
||||
die 'PGSQL_PAM_SERVICE rename failed.'
|
||||
fi
|
||||
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
case ${CHOST} in
|
||||
*-darwin*|*-solaris*)
|
||||
use nls && append-libs intl
|
||||
;;
|
||||
esac
|
||||
|
||||
export LDFLAGS_SL="${LDFLAGS}"
|
||||
export LDFLAGS_EX="${LDFLAGS}"
|
||||
|
||||
local PO="${EPREFIX%/}"
|
||||
|
||||
econf \
|
||||
--prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \
|
||||
--datadir="${PO}/usr/share/postgresql-${SLOT}" \
|
||||
--docdir="${PO}/usr/share/doc/${PF}" \
|
||||
--includedir="${PO}/usr/include/postgresql-${SLOT}" \
|
||||
--mandir="${PO}/usr/share/postgresql-${SLOT}/man" \
|
||||
--sysconfdir="${PO}/etc/postgresql-${SLOT}" \
|
||||
--with-system-tzdata="${PO}/usr/share/zoneinfo" \
|
||||
$(use_enable !pg_legacytimestamp integer-datetimes) \
|
||||
$(use_enable threads thread-safety) \
|
||||
$(use_with kerberos gssapi) \
|
||||
$(use_with kerberos krb5) \
|
||||
$(use_with ldap) \
|
||||
$(use_with pam) \
|
||||
$(use_with perl) \
|
||||
$(use_with python) \
|
||||
$(use_with readline) \
|
||||
$(use_with ssl openssl) \
|
||||
$(use_with tcl) \
|
||||
$(use_with uuid ossp-uuid) \
|
||||
$(use_with xml libxml) \
|
||||
$(use_with xml libxslt) \
|
||||
$(use_with zlib) \
|
||||
"$(use_enable nls nls "$(wanted_languages)")"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake
|
||||
emake -C contrib
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
emake DESTDIR="${D}" install -C contrib
|
||||
|
||||
dodoc README HISTORY doc/{TODO,bug.template}
|
||||
|
||||
# man pages are already built, but if we have the target make them,
|
||||
# they'll be generated from source before being installed so we
|
||||
# manually install man pages.
|
||||
# We use ${SLOT} instead of doman for postgresql.eselect
|
||||
insinto /usr/share/postgresql-${SLOT}/man/
|
||||
doins -r doc/src/sgml/man{1,3,7}
|
||||
if ! use server; then
|
||||
# Remove man pages for non-existent binaries
|
||||
for m in {initdb,pg_{controldata,ctl,resetxlog},post{gres,master}}; do
|
||||
rm "${ED}/usr/share/postgresql-${SLOT}/man/man1/${m}.1"
|
||||
done
|
||||
fi
|
||||
docompress /usr/share/postgresql-${SLOT}/man/man{1,3,7}
|
||||
|
||||
insinto /etc/postgresql-${SLOT}
|
||||
newins src/bin/psql/psqlrc.sample psqlrc
|
||||
|
||||
dodir /etc/eselect/postgresql/slots/${SLOT}
|
||||
echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" > \
|
||||
"${ED}/etc/eselect/postgresql/slots/${SLOT}/base"
|
||||
|
||||
use static-libs || find "${ED}" -name '*.a' -delete
|
||||
|
||||
if use doc ; then
|
||||
docinto html
|
||||
dodoc doc/src/sgml/html/*
|
||||
|
||||
docinto sgml
|
||||
dodoc doc/src/sgml/*.{sgml,dsl}
|
||||
fi
|
||||
|
||||
if use server; then
|
||||
sed -e "s|@SLOT@|${SLOT}|g" -e "s|@LIBDIR@|$(get_libdir)|g" \
|
||||
"${FILESDIR}/${PN}.confd" | newconfd - ${PN}-${SLOT}
|
||||
|
||||
sed -e "s|@SLOT@|${SLOT}|g" -e "s|@LIBDIR@|$(get_libdir)|g" \
|
||||
"${FILESDIR}/${PN}.init-9.3" | newinitd - ${PN}-${SLOT}
|
||||
|
||||
sed -e "s|@SLOT@|${SLOT}|g" -e "s|@LIBDIR@|$(get_libdir)|g" \
|
||||
"${FILESDIR}/${PN}.service" | \
|
||||
systemd_newunit - ${PN}-${SLOT}.service
|
||||
|
||||
newbin "${FILESDIR}"/${PN}-check-db-dir ${PN}-${SLOT}-check-db-dir
|
||||
|
||||
use pam && pamd_mimic system-auth ${PN}-${SLOT} auth account session
|
||||
|
||||
if use prefix ; then
|
||||
keepdir /run/postgresql
|
||||
fperms 0775 /run/postgresql
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
postgresql-config update
|
||||
|
||||
elog "If you need a global psqlrc-file, you can place it in:"
|
||||
elog " ${EROOT%/}/etc/postgresql-${SLOT}/"
|
||||
|
||||
if [[ -z ${REPLACING_VERSIONS} ]] ; then
|
||||
elog
|
||||
elog "It looks like this is your first time installing PostgreSQL. Run the"
|
||||
elog "following command in all active shells to pick up changes to the default"
|
||||
elog "environment:"
|
||||
elog " source /etc/profile"
|
||||
fi
|
||||
|
||||
if use server ; then
|
||||
elog
|
||||
elog "Gentoo specific documentation:"
|
||||
elog "https://wiki.gentoo.org/wiki/PostgreSQL"
|
||||
elog
|
||||
elog "Official documentation:"
|
||||
elog "http://www.postgresql.org/docs/${SLOT}/static/index.html"
|
||||
elog
|
||||
elog "The default location of the Unix-domain socket is:"
|
||||
elog " ${EROOT%/}/run/postgresql/"
|
||||
elog
|
||||
elog "Before initializing the database, you may want to edit PG_INITDB_OPTS"
|
||||
elog "so that it contains your preferred locale in:"
|
||||
elog " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}"
|
||||
elog
|
||||
elog "Then, execute the following command to setup the initial database"
|
||||
elog "environment:"
|
||||
elog " emerge --config =${CATEGORY}/${PF}"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
if use server && [[ -z ${REPLACED_BY_VERSION} ]] ; then
|
||||
ewarn "Have you dumped and/or migrated the ${SLOT} database cluster?"
|
||||
ewarn "\thttps://wiki.gentoo.org/wiki/PostgreSQL/QuickStart#Migrating_PostgreSQL"
|
||||
|
||||
ebegin "Resuming removal in 10 seconds (Control-C to cancel)"
|
||||
sleep 10
|
||||
eend 0
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
postgresql-config update
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
use server || die "USE flag 'server' not enabled. Nothing to configure."
|
||||
|
||||
[[ -f "${EROOT%/}/etc/conf.d/postgresql-${SLOT}" ]] \
|
||||
&& source "${EROOT%/}/etc/conf.d/postgresql-${SLOT}"
|
||||
[[ -z "${PGDATA}" ]] && PGDATA="${EROOT%/}/etc/postgresql-${SLOT}/"
|
||||
[[ -z "${DATA_DIR}" ]] \
|
||||
&& DATA_DIR="${EROOT%/}/var/lib/postgresql/${SLOT}/data"
|
||||
|
||||
# environment.bz2 may not contain the same locale as the current system
|
||||
# locale. Unset and source from the current system locale.
|
||||
if [ -f "${EROOT%/}/etc/env.d/02locale" ]; then
|
||||
unset LANG
|
||||
unset LC_CTYPE
|
||||
unset LC_NUMERIC
|
||||
unset LC_TIME
|
||||
unset LC_COLLATE
|
||||
unset LC_MONETARY
|
||||
unset LC_MESSAGES
|
||||
unset LC_ALL
|
||||
source "${EROOT%/}/etc/env.d/02locale"
|
||||
[ -n "${LANG}" ] && export LANG
|
||||
[ -n "${LC_CTYPE}" ] && export LC_CTYPE
|
||||
[ -n "${LC_NUMERIC}" ] && export LC_NUMERIC
|
||||
[ -n "${LC_TIME}" ] && export LC_TIME
|
||||
[ -n "${LC_COLLATE}" ] && export LC_COLLATE
|
||||
[ -n "${LC_MONETARY}" ] && export LC_MONETARY
|
||||
[ -n "${LC_MESSAGES}" ] && export LC_MESSAGES
|
||||
[ -n "${LC_ALL}" ] && export LC_ALL
|
||||
fi
|
||||
|
||||
einfo "You can modify the paths and options passed to initdb by editing:"
|
||||
einfo " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}"
|
||||
einfo
|
||||
einfo "Information on options that can be passed to initdb are found at:"
|
||||
einfo " http://www.postgresql.org/docs/${SLOT}/static/creating-cluster.html"
|
||||
einfo " http://www.postgresql.org/docs/${SLOT}/static/app-initdb.html"
|
||||
einfo
|
||||
einfo "PG_INITDB_OPTS is currently set to:"
|
||||
if [[ -z "${PG_INITDB_OPTS}" ]] ; then
|
||||
einfo " (none)"
|
||||
else
|
||||
einfo " ${PG_INITDB_OPTS}"
|
||||
fi
|
||||
einfo
|
||||
einfo "Configuration files will be installed to:"
|
||||
einfo " ${PGDATA}"
|
||||
einfo
|
||||
einfo "The database cluster will be created in:"
|
||||
einfo " ${DATA_DIR}"
|
||||
einfo
|
||||
while [ "$correct" != "true" ] ; do
|
||||
einfo "Are you ready to continue? (y/n)"
|
||||
read answer
|
||||
if [[ $answer =~ ^[Yy]([Ee][Ss])?$ ]] ; then
|
||||
correct="true"
|
||||
elif [[ $answer =~ ^[Nn]([Oo])?$ ]] ; then
|
||||
die "Aborting initialization."
|
||||
else
|
||||
echo "Answer not recognized"
|
||||
fi
|
||||
done
|
||||
|
||||
if [ -n "$(ls -A ${DATA_DIR} 2> /dev/null)" ] ; then
|
||||
eerror "The given directory, '${DATA_DIR}', is not empty."
|
||||
eerror "Modify DATA_DIR to point to an empty directory."
|
||||
die "${DATA_DIR} is not empty."
|
||||
fi
|
||||
|
||||
einfo "Creating the data directory ..."
|
||||
if [[ ${EUID} == 0 ]] ; then
|
||||
mkdir -p "${DATA_DIR}"
|
||||
chown -Rf postgres:postgres "${DATA_DIR}"
|
||||
chmod 0700 "${DATA_DIR}"
|
||||
fi
|
||||
|
||||
einfo "Initializing the database ..."
|
||||
|
||||
if [[ ${EUID} == 0 ]] ; then
|
||||
su postgres -c "${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -D \"${DATA_DIR}\" ${PG_INITDB_OPTS}"
|
||||
else
|
||||
"${EROOT%/}"/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -U postgres -D "${DATA_DIR}" ${PG_INITDB_OPTS}
|
||||
fi
|
||||
|
||||
if [[ "${DATA_DIR%/}" != "${PGDATA%/}" ]] ; then
|
||||
mv "${DATA_DIR%/}"/{pg_{hba,ident},postgresql}.conf "${PGDATA}"
|
||||
ln -s "${PGDATA%/}"/{pg_{hba,ident},postgresql}.conf "${DATA_DIR%/}"
|
||||
fi
|
||||
|
||||
cat <<- EOF >> "${PGDATA%/}"/postgresql.conf
|
||||
# This is here because of https://bugs.gentoo.org/show_bug.cgi?id=518522
|
||||
# On the off-chance that you might need to work with UTF-8 encoded
|
||||
# characters in PL/Perl
|
||||
plperl.on_init = 'use utf8; use re; package utf8; require "utf8_heavy.pl";'
|
||||
EOF
|
||||
|
||||
einfo "The autovacuum function, which was in contrib, has been moved to the main"
|
||||
einfo "PostgreSQL functions starting with 8.1, and starting with 8.4 is now enabled"
|
||||
einfo "by default. You can disable it in the cluster's:"
|
||||
einfo " ${PGDATA%/}/postgresql.conf"
|
||||
einfo
|
||||
einfo "The PostgreSQL server, by default, will log events to:"
|
||||
einfo " ${DATA_DIR%/}/postmaster.log"
|
||||
einfo
|
||||
if use prefix ; then
|
||||
einfo "The location of the configuration files have moved to:"
|
||||
einfo " ${PGDATA}"
|
||||
einfo "To start the server:"
|
||||
einfo " pg_ctl start -D ${DATA_DIR} -o '-D ${PGDATA} --data-directory=${DATA_DIR}'"
|
||||
einfo "To stop:"
|
||||
einfo " pg_ctl stop -D ${DATA_DIR}"
|
||||
einfo
|
||||
einfo "Or move the configuration files back:"
|
||||
einfo "mv ${PGDATA}*.conf ${DATA_DIR}"
|
||||
else
|
||||
einfo "You should use the '${EROOT%/}/etc/init.d/postgresql-${SLOT}' script to run PostgreSQL"
|
||||
einfo "instead of 'pg_ctl'."
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
einfo ">>> Test phase [check]: ${CATEGORY}/${PF}"
|
||||
|
||||
if use server && [[ ${UID} -ne 0 ]] ; then
|
||||
emake check
|
||||
|
||||
einfo "If you think other tests besides the regression tests are necessary, please"
|
||||
einfo "submit a bug including a patch for this ebuild to enable them."
|
||||
else
|
||||
use server || \
|
||||
ewarn 'Tests cannot be run without the "server" use flag enabled.'
|
||||
[[ ${UID} -eq 0 ]] || \
|
||||
ewarn 'Tests cannot be run as root. Enable "userpriv" in FEATURES.'
|
||||
|
||||
ewarn 'Skipping.'
|
||||
fi
|
||||
}
|
@ -0,0 +1,433 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_4} )
|
||||
|
||||
inherit eutils flag-o-matic linux-info multilib pam prefix python-single-r1 \
|
||||
systemd user versionator
|
||||
|
||||
KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris"
|
||||
|
||||
SLOT="$(get_version_component_range 1-2)"
|
||||
|
||||
SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2"
|
||||
|
||||
LICENSE="POSTGRESQL GPL-2"
|
||||
DESCRIPTION="PostgreSQL RDBMS"
|
||||
HOMEPAGE="http://www.postgresql.org/"
|
||||
|
||||
LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr
|
||||
zh_CN zh_TW"
|
||||
IUSE="doc kerberos kernel_linux ldap libressl nls pam perl -pg_legacytimestamp python
|
||||
+readline selinux +server ssl static-libs tcl threads uuid xml zlib"
|
||||
|
||||
for lingua in ${LINGUAS}; do
|
||||
IUSE+=" linguas_${lingua}"
|
||||
done
|
||||
|
||||
wanted_languages() {
|
||||
local enable_langs
|
||||
|
||||
for lingua in ${LINGUAS} ; do
|
||||
use linguas_${lingua} && enable_langs+="${lingua} "
|
||||
done
|
||||
|
||||
echo -n ${enable_langs}
|
||||
}
|
||||
|
||||
CDEPEND="
|
||||
>=app-eselect/eselect-postgresql-1.2.0
|
||||
sys-apps/less
|
||||
virtual/libintl
|
||||
kerberos? ( virtual/krb5 )
|
||||
ldap? ( net-nds/openldap )
|
||||
pam? ( virtual/pam )
|
||||
perl? ( >=dev-lang/perl-5.8 )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
readline? ( sys-libs/readline:0= )
|
||||
ssl? (
|
||||
!libressl? ( >=dev-libs/openssl-0.9.6-r1:0= )
|
||||
libressl? ( dev-libs/libressl:= )
|
||||
)
|
||||
tcl? ( >=dev-lang/tcl-8:0= )
|
||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
||||
zlib? ( sys-libs/zlib )
|
||||
"
|
||||
|
||||
# uuid flags -- depend on sys-apps/util-linux for Linux libcs, or if no
|
||||
# supported libc in use depend on dev-libs/ossp-uuid. For BSD systems,
|
||||
# the libc includes UUID functions.
|
||||
UTIL_LINUX_LIBC=( elibc_{glibc,uclibc,musl} )
|
||||
BSD_LIBC=( elibc_{Free,Net,Open}BSD )
|
||||
|
||||
nest_usedep() {
|
||||
local front back
|
||||
while [[ ${#} -gt 1 ]]; do
|
||||
front+="${1}? ( "
|
||||
back+=" )"
|
||||
shift
|
||||
done
|
||||
echo "${front}${1}${back}"
|
||||
}
|
||||
|
||||
IUSE+=" ${UTIL_LINUX_LIBC[@]} ${BSD_LIBC[@]}"
|
||||
CDEPEND+="
|
||||
uuid? (
|
||||
${UTIL_LINUX_LIBC[@]/%/? ( sys-apps/util-linux )}
|
||||
$(nest_usedep ${UTIL_LINUX_LIBC[@]/#/!} ${BSD_LIBC[@]/#/!} dev-libs/ossp-uuid)
|
||||
)"
|
||||
|
||||
DEPEND="${CDEPEND}
|
||||
!!<sys-apps/sandbox-2.0
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
nls? ( sys-devel/gettext )
|
||||
xml? ( virtual/pkgconfig )
|
||||
"
|
||||
|
||||
RDEPEND="${CDEPEND}
|
||||
!dev-db/postgresql-docs:${SLOT}
|
||||
!dev-db/postgresql-base:${SLOT}
|
||||
!dev-db/postgresql-server:${SLOT}
|
||||
selinux? ( sec-policy/selinux-postgresql )
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
use server && CONFIG_CHECK="~SYSVIPC" linux-info_pkg_setup
|
||||
|
||||
enewgroup postgres 70
|
||||
enewuser postgres 70 /bin/sh /var/lib/postgresql postgres
|
||||
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Work around PPC{,64} compilation bug where bool is already defined
|
||||
sed '/#ifndef __cplusplus/a #undef bool' -i src/include/c.h || die
|
||||
|
||||
# Set proper run directory
|
||||
sed "s|\(PGSOCKET_DIR\s\+\)\"/tmp\"|\1\"${EPREFIX}/run/postgresql\"|" \
|
||||
-i src/include/pg_config_manual.h || die
|
||||
|
||||
# Rely on $PATH being in the proper order so that the correct
|
||||
# install program is used for modules utilizing PGXS in both
|
||||
# hardened and non-hardened environments. (Bug #528786)
|
||||
sed 's/@install_bin@/install -c/' -i src/Makefile.global.in || die
|
||||
|
||||
use server || epatch "${FILESDIR}/${PN}-${SLOT}-no-server.patch"
|
||||
|
||||
# Fix bug 486556 where the server would crash at start up because of
|
||||
# an infinite loop caused by a self-referencing symlink.
|
||||
epatch "${FILESDIR}/postgresql-9.2-9.4-tz-dir-overflow.patch"
|
||||
|
||||
if use pam ; then
|
||||
sed -e "s/\(#define PGSQL_PAM_SERVICE \"postgresql\)/\1-${SLOT}/" \
|
||||
-i src/backend/libpq/auth.c || \
|
||||
die 'PGSQL_PAM_SERVICE rename failed.'
|
||||
fi
|
||||
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
case ${CHOST} in
|
||||
*-darwin*|*-solaris*)
|
||||
use nls && append-libs intl
|
||||
;;
|
||||
esac
|
||||
|
||||
export LDFLAGS_SL="${LDFLAGS}"
|
||||
export LDFLAGS_EX="${LDFLAGS}"
|
||||
|
||||
local PO="${EPREFIX%/}"
|
||||
|
||||
local i uuid_config=""
|
||||
if use uuid; then
|
||||
for i in ${UTIL_LINUX_LIBC[@]}; do
|
||||
use ${i} && uuid_config="--with-uuid=e2fs"
|
||||
done
|
||||
for i in ${BSD_LIBC[@]}; do
|
||||
use ${i} && uuid_config="--with-uuid=bsd"
|
||||
done
|
||||
[[ -z $uuid_config ]] && uuid_config="--with-uuid=ossp"
|
||||
fi
|
||||
|
||||
econf \
|
||||
--prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \
|
||||
--datadir="${PO}/usr/share/postgresql-${SLOT}" \
|
||||
--docdir="${PO}/usr/share/doc/${PF}" \
|
||||
--includedir="${PO}/usr/include/postgresql-${SLOT}" \
|
||||
--mandir="${PO}/usr/share/postgresql-${SLOT}/man" \
|
||||
--sysconfdir="${PO}/etc/postgresql-${SLOT}" \
|
||||
--with-system-tzdata="${PO}/usr/share/zoneinfo" \
|
||||
$(use_enable !pg_legacytimestamp integer-datetimes) \
|
||||
$(use_enable threads thread-safety) \
|
||||
$(use_with kerberos gssapi) \
|
||||
$(use_with ldap) \
|
||||
$(use_with pam) \
|
||||
$(use_with perl) \
|
||||
$(use_with python) \
|
||||
$(use_with readline) \
|
||||
$(use_with ssl openssl) \
|
||||
$(use_with tcl) \
|
||||
${uuid_config} \
|
||||
$(use_with xml libxml) \
|
||||
$(use_with xml libxslt) \
|
||||
$(use_with zlib) \
|
||||
"$(use_enable nls nls "$(wanted_languages)")"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake
|
||||
emake -C contrib
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
emake DESTDIR="${D}" install -C contrib
|
||||
|
||||
dodoc README HISTORY doc/{TODO,bug.template}
|
||||
|
||||
# man pages are already built, but if we have the target make them,
|
||||
# they'll be generated from source before being installed so we
|
||||
# manually install man pages.
|
||||
# We use ${SLOT} instead of doman for postgresql.eselect
|
||||
insinto /usr/share/postgresql-${SLOT}/man/
|
||||
doins -r doc/src/sgml/man{1,3,7}
|
||||
if ! use server; then
|
||||
# Remove man pages for non-existent binaries
|
||||
for m in {initdb,pg_{controldata,ctl,resetxlog},post{gres,master}}; do
|
||||
rm "${ED}/usr/share/postgresql-${SLOT}/man/man1/${m}.1"
|
||||
done
|
||||
fi
|
||||
docompress /usr/share/postgresql-${SLOT}/man/man{1,3,7}
|
||||
|
||||
insinto /etc/postgresql-${SLOT}
|
||||
newins src/bin/psql/psqlrc.sample psqlrc
|
||||
|
||||
dodir /etc/eselect/postgresql/slots/${SLOT}
|
||||
echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" > \
|
||||
"${ED}/etc/eselect/postgresql/slots/${SLOT}/base"
|
||||
|
||||
use static-libs || find "${ED}" -name '*.a' -delete
|
||||
|
||||
if use doc ; then
|
||||
docinto html
|
||||
dodoc doc/src/sgml/html/*
|
||||
|
||||
docinto sgml
|
||||
dodoc doc/src/sgml/*.{sgml,dsl}
|
||||
fi
|
||||
|
||||
if use server; then
|
||||
sed -e "s|@SLOT@|${SLOT}|g" -e "s|@LIBDIR@|$(get_libdir)|g" \
|
||||
"${FILESDIR}/${PN}.confd" | newconfd - ${PN}-${SLOT}
|
||||
|
||||
sed -e "s|@SLOT@|${SLOT}|g" -e "s|@LIBDIR@|$(get_libdir)|g" \
|
||||
"${FILESDIR}/${PN}.init-9.3" | newinitd - ${PN}-${SLOT}
|
||||
|
||||
sed -e "s|@SLOT@|${SLOT}|g" -e "s|@LIBDIR@|$(get_libdir)|g" \
|
||||
"${FILESDIR}/${PN}.service" | \
|
||||
systemd_newunit - ${PN}-${SLOT}.service
|
||||
|
||||
newbin "${FILESDIR}"/${PN}-check-db-dir ${PN}-${SLOT}-check-db-dir
|
||||
|
||||
use pam && pamd_mimic system-auth ${PN}-${SLOT} auth account session
|
||||
|
||||
if use prefix ; then
|
||||
keepdir /run/postgresql
|
||||
fperms 0775 /run/postgresql
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
postgresql-config update
|
||||
|
||||
elog "If you need a global psqlrc-file, you can place it in:"
|
||||
elog " ${EROOT%/}/etc/postgresql-${SLOT}/"
|
||||
|
||||
if [[ -z ${REPLACING_VERSIONS} ]] ; then
|
||||
elog
|
||||
elog "It looks like this is your first time installing PostgreSQL. Run the"
|
||||
elog "following command in all active shells to pick up changes to the default"
|
||||
elog "environment:"
|
||||
elog " source /etc/profile"
|
||||
fi
|
||||
|
||||
if use server ; then
|
||||
elog
|
||||
elog "Gentoo specific documentation:"
|
||||
elog "https://wiki.gentoo.org/wiki/PostgreSQL"
|
||||
elog
|
||||
elog "Official documentation:"
|
||||
elog "http://www.postgresql.org/docs/${SLOT}/static/index.html"
|
||||
elog
|
||||
elog "The default location of the Unix-domain socket is:"
|
||||
elog " ${EROOT%/}/run/postgresql/"
|
||||
elog
|
||||
elog "Before initializing the database, you may want to edit PG_INITDB_OPTS"
|
||||
elog "so that it contains your preferred locale in:"
|
||||
elog " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}"
|
||||
elog
|
||||
elog "Then, execute the following command to setup the initial database"
|
||||
elog "environment:"
|
||||
elog " emerge --config =${CATEGORY}/${PF}"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
if use server && [[ -z ${REPLACED_BY_VERSION} ]] ; then
|
||||
ewarn "Have you dumped and/or migrated the ${SLOT} database cluster?"
|
||||
ewarn "\thttps://wiki.gentoo.org/wiki/PostgreSQL/QuickStart#Migrating_PostgreSQL"
|
||||
|
||||
ebegin "Resuming removal in 10 seconds (Control-C to cancel)"
|
||||
sleep 10
|
||||
eend 0
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
postgresql-config update
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
use server || die "USE flag 'server' not enabled. Nothing to configure."
|
||||
|
||||
[[ -f "${EROOT%/}/etc/conf.d/postgresql-${SLOT}" ]] \
|
||||
&& source "${EROOT%/}/etc/conf.d/postgresql-${SLOT}"
|
||||
[[ -z "${PGDATA}" ]] && PGDATA="${EROOT%/}/etc/postgresql-${SLOT}/"
|
||||
[[ -z "${DATA_DIR}" ]] \
|
||||
&& DATA_DIR="${EROOT%/}/var/lib/postgresql/${SLOT}/data"
|
||||
|
||||
# environment.bz2 may not contain the same locale as the current system
|
||||
# locale. Unset and source from the current system locale.
|
||||
if [ -f "${EROOT%/}/etc/env.d/02locale" ]; then
|
||||
unset LANG
|
||||
unset LC_CTYPE
|
||||
unset LC_NUMERIC
|
||||
unset LC_TIME
|
||||
unset LC_COLLATE
|
||||
unset LC_MONETARY
|
||||
unset LC_MESSAGES
|
||||
unset LC_ALL
|
||||
source "${EROOT%/}/etc/env.d/02locale"
|
||||
[ -n "${LANG}" ] && export LANG
|
||||
[ -n "${LC_CTYPE}" ] && export LC_CTYPE
|
||||
[ -n "${LC_NUMERIC}" ] && export LC_NUMERIC
|
||||
[ -n "${LC_TIME}" ] && export LC_TIME
|
||||
[ -n "${LC_COLLATE}" ] && export LC_COLLATE
|
||||
[ -n "${LC_MONETARY}" ] && export LC_MONETARY
|
||||
[ -n "${LC_MESSAGES}" ] && export LC_MESSAGES
|
||||
[ -n "${LC_ALL}" ] && export LC_ALL
|
||||
fi
|
||||
|
||||
einfo "You can modify the paths and options passed to initdb by editing:"
|
||||
einfo " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}"
|
||||
einfo
|
||||
einfo "Information on options that can be passed to initdb are found at:"
|
||||
einfo " http://www.postgresql.org/docs/${SLOT}/static/creating-cluster.html"
|
||||
einfo " http://www.postgresql.org/docs/${SLOT}/static/app-initdb.html"
|
||||
einfo
|
||||
einfo "PG_INITDB_OPTS is currently set to:"
|
||||
if [[ -z "${PG_INITDB_OPTS}" ]] ; then
|
||||
einfo " (none)"
|
||||
else
|
||||
einfo " ${PG_INITDB_OPTS}"
|
||||
fi
|
||||
einfo
|
||||
einfo "Configuration files will be installed to:"
|
||||
einfo " ${PGDATA}"
|
||||
einfo
|
||||
einfo "The database cluster will be created in:"
|
||||
einfo " ${DATA_DIR}"
|
||||
einfo
|
||||
while [ "$correct" != "true" ] ; do
|
||||
einfo "Are you ready to continue? (y/n)"
|
||||
read answer
|
||||
if [[ $answer =~ ^[Yy]([Ee][Ss])?$ ]] ; then
|
||||
correct="true"
|
||||
elif [[ $answer =~ ^[Nn]([Oo])?$ ]] ; then
|
||||
die "Aborting initialization."
|
||||
else
|
||||
echo "Answer not recognized"
|
||||
fi
|
||||
done
|
||||
|
||||
if [ -n "$(ls -A ${DATA_DIR} 2> /dev/null)" ] ; then
|
||||
eerror "The given directory, '${DATA_DIR}', is not empty."
|
||||
eerror "Modify DATA_DIR to point to an empty directory."
|
||||
die "${DATA_DIR} is not empty."
|
||||
fi
|
||||
|
||||
einfo "Creating the data directory ..."
|
||||
if [[ ${EUID} == 0 ]] ; then
|
||||
mkdir -p "${DATA_DIR}"
|
||||
chown -Rf postgres:postgres "${DATA_DIR}"
|
||||
chmod 0700 "${DATA_DIR}"
|
||||
fi
|
||||
|
||||
einfo "Initializing the database ..."
|
||||
|
||||
if [[ ${EUID} == 0 ]] ; then
|
||||
su postgres -c "${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -D \"${DATA_DIR}\" ${PG_INITDB_OPTS}"
|
||||
else
|
||||
"${EROOT%/}"/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -U postgres -D "${DATA_DIR}" ${PG_INITDB_OPTS}
|
||||
fi
|
||||
|
||||
if [[ "${DATA_DIR%/}" != "${PGDATA%/}" ]] ; then
|
||||
mv "${DATA_DIR%/}"/{pg_{hba,ident},postgresql}.conf "${PGDATA}"
|
||||
ln -s "${PGDATA%/}"/{pg_{hba,ident},postgresql}.conf "${DATA_DIR%/}"
|
||||
fi
|
||||
|
||||
cat <<- EOF >> "${PGDATA%/}"/postgresql.conf
|
||||
# This is here because of https://bugs.gentoo.org/show_bug.cgi?id=518522
|
||||
# On the off-chance that you might need to work with UTF-8 encoded
|
||||
# characters in PL/Perl
|
||||
plperl.on_init = 'use utf8; use re; package utf8; require "utf8_heavy.pl";'
|
||||
EOF
|
||||
|
||||
einfo "The autovacuum function, which was in contrib, has been moved to the main"
|
||||
einfo "PostgreSQL functions starting with 8.1, and starting with 8.4 is now enabled"
|
||||
einfo "by default. You can disable it in the cluster's:"
|
||||
einfo " ${PGDATA%/}/postgresql.conf"
|
||||
einfo
|
||||
einfo "The PostgreSQL server, by default, will log events to:"
|
||||
einfo " ${DATA_DIR%/}/postmaster.log"
|
||||
einfo
|
||||
if use prefix ; then
|
||||
einfo "The location of the configuration files have moved to:"
|
||||
einfo " ${PGDATA}"
|
||||
einfo "To start the server:"
|
||||
einfo " pg_ctl start -D ${DATA_DIR} -o '-D ${PGDATA} --data-directory=${DATA_DIR}'"
|
||||
einfo "To stop:"
|
||||
einfo " pg_ctl stop -D ${DATA_DIR}"
|
||||
einfo
|
||||
einfo "Or move the configuration files back:"
|
||||
einfo "mv ${PGDATA}*.conf ${DATA_DIR}"
|
||||
else
|
||||
einfo "You should use the '${EROOT%/}/etc/init.d/postgresql-${SLOT}' script to run PostgreSQL"
|
||||
einfo "instead of 'pg_ctl'."
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
einfo ">>> Test phase [check]: ${CATEGORY}/${PF}"
|
||||
|
||||
if use server && [[ ${UID} -ne 0 ]] ; then
|
||||
emake check
|
||||
|
||||
einfo "If you think other tests besides the regression tests are necessary, please"
|
||||
einfo "submit a bug including a patch for this ebuild to enable them."
|
||||
else
|
||||
use server || \
|
||||
ewarn 'Tests cannot be run without the "server" use flag enabled.'
|
||||
[[ ${UID} -eq 0 ]] || \
|
||||
ewarn 'Tests cannot be run as root. Enable "userpriv" in FEATURES.'
|
||||
|
||||
ewarn 'Skipping.'
|
||||
fi
|
||||
}
|
@ -0,0 +1,433 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_4,3_5} )
|
||||
|
||||
inherit eutils flag-o-matic linux-info multilib pam prefix python-single-r1 \
|
||||
systemd user versionator
|
||||
|
||||
KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris"
|
||||
|
||||
SLOT="$(get_version_component_range 1-2)"
|
||||
|
||||
SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2"
|
||||
|
||||
LICENSE="POSTGRESQL GPL-2"
|
||||
DESCRIPTION="PostgreSQL RDBMS"
|
||||
HOMEPAGE="http://www.postgresql.org/"
|
||||
|
||||
LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr
|
||||
zh_CN zh_TW"
|
||||
IUSE="doc kerberos kernel_linux ldap libressl nls pam perl -pg_legacytimestamp python
|
||||
+readline selinux +server ssl static-libs tcl threads uuid xml zlib"
|
||||
|
||||
for lingua in ${LINGUAS}; do
|
||||
IUSE+=" linguas_${lingua}"
|
||||
done
|
||||
|
||||
wanted_languages() {
|
||||
local enable_langs
|
||||
|
||||
for lingua in ${LINGUAS} ; do
|
||||
use linguas_${lingua} && enable_langs+="${lingua} "
|
||||
done
|
||||
|
||||
echo -n ${enable_langs}
|
||||
}
|
||||
|
||||
CDEPEND="
|
||||
>=app-eselect/eselect-postgresql-1.2.0
|
||||
sys-apps/less
|
||||
virtual/libintl
|
||||
kerberos? ( virtual/krb5 )
|
||||
ldap? ( net-nds/openldap )
|
||||
pam? ( virtual/pam )
|
||||
perl? ( >=dev-lang/perl-5.8 )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
readline? ( sys-libs/readline:0= )
|
||||
ssl? (
|
||||
!libressl? ( >=dev-libs/openssl-0.9.6-r1:0= )
|
||||
libressl? ( dev-libs/libressl:= )
|
||||
)
|
||||
tcl? ( >=dev-lang/tcl-8:0= )
|
||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
||||
zlib? ( sys-libs/zlib )
|
||||
"
|
||||
|
||||
# uuid flags -- depend on sys-apps/util-linux for Linux libcs, or if no
|
||||
# supported libc in use depend on dev-libs/ossp-uuid. For BSD systems,
|
||||
# the libc includes UUID functions.
|
||||
UTIL_LINUX_LIBC=( elibc_{glibc,uclibc,musl} )
|
||||
BSD_LIBC=( elibc_{Free,Net,Open}BSD )
|
||||
|
||||
nest_usedep() {
|
||||
local front back
|
||||
while [[ ${#} -gt 1 ]]; do
|
||||
front+="${1}? ( "
|
||||
back+=" )"
|
||||
shift
|
||||
done
|
||||
echo "${front}${1}${back}"
|
||||
}
|
||||
|
||||
IUSE+=" ${UTIL_LINUX_LIBC[@]} ${BSD_LIBC[@]}"
|
||||
CDEPEND+="
|
||||
uuid? (
|
||||
${UTIL_LINUX_LIBC[@]/%/? ( sys-apps/util-linux )}
|
||||
$(nest_usedep ${UTIL_LINUX_LIBC[@]/#/!} ${BSD_LIBC[@]/#/!} dev-libs/ossp-uuid)
|
||||
)"
|
||||
|
||||
DEPEND="${CDEPEND}
|
||||
!!<sys-apps/sandbox-2.0
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
nls? ( sys-devel/gettext )
|
||||
xml? ( virtual/pkgconfig )
|
||||
"
|
||||
|
||||
RDEPEND="${CDEPEND}
|
||||
!dev-db/postgresql-docs:${SLOT}
|
||||
!dev-db/postgresql-base:${SLOT}
|
||||
!dev-db/postgresql-server:${SLOT}
|
||||
selinux? ( sec-policy/selinux-postgresql )
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
use server && CONFIG_CHECK="~SYSVIPC" linux-info_pkg_setup
|
||||
|
||||
enewgroup postgres 70
|
||||
enewuser postgres 70 /bin/sh /var/lib/postgresql postgres
|
||||
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Work around PPC{,64} compilation bug where bool is already defined
|
||||
sed '/#ifndef __cplusplus/a #undef bool' -i src/include/c.h || die
|
||||
|
||||
# Set proper run directory
|
||||
sed "s|\(PGSOCKET_DIR\s\+\)\"/tmp\"|\1\"${EPREFIX}/run/postgresql\"|" \
|
||||
-i src/include/pg_config_manual.h || die
|
||||
|
||||
# Rely on $PATH being in the proper order so that the correct
|
||||
# install program is used for modules utilizing PGXS in both
|
||||
# hardened and non-hardened environments. (Bug #528786)
|
||||
sed 's/@install_bin@/install -c/' -i src/Makefile.global.in || die
|
||||
|
||||
use server || epatch "${FILESDIR}/${PN}-${SLOT}-no-server.patch"
|
||||
|
||||
# Fix bug 486556 where the server would crash at start up because of
|
||||
# an infinite loop caused by a self-referencing symlink.
|
||||
epatch "${FILESDIR}/postgresql-9.2-9.4-tz-dir-overflow.patch"
|
||||
|
||||
if use pam ; then
|
||||
sed -e "s/\(#define PGSQL_PAM_SERVICE \"postgresql\)/\1-${SLOT}/" \
|
||||
-i src/backend/libpq/auth.c || \
|
||||
die 'PGSQL_PAM_SERVICE rename failed.'
|
||||
fi
|
||||
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
case ${CHOST} in
|
||||
*-darwin*|*-solaris*)
|
||||
use nls && append-libs intl
|
||||
;;
|
||||
esac
|
||||
|
||||
export LDFLAGS_SL="${LDFLAGS}"
|
||||
export LDFLAGS_EX="${LDFLAGS}"
|
||||
|
||||
local PO="${EPREFIX%/}"
|
||||
|
||||
local i uuid_config=""
|
||||
if use uuid; then
|
||||
for i in ${UTIL_LINUX_LIBC[@]}; do
|
||||
use ${i} && uuid_config="--with-uuid=e2fs"
|
||||
done
|
||||
for i in ${BSD_LIBC[@]}; do
|
||||
use ${i} && uuid_config="--with-uuid=bsd"
|
||||
done
|
||||
[[ -z $uuid_config ]] && uuid_config="--with-uuid=ossp"
|
||||
fi
|
||||
|
||||
econf \
|
||||
--prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \
|
||||
--datadir="${PO}/usr/share/postgresql-${SLOT}" \
|
||||
--docdir="${PO}/usr/share/doc/${PF}" \
|
||||
--includedir="${PO}/usr/include/postgresql-${SLOT}" \
|
||||
--mandir="${PO}/usr/share/postgresql-${SLOT}/man" \
|
||||
--sysconfdir="${PO}/etc/postgresql-${SLOT}" \
|
||||
--with-system-tzdata="${PO}/usr/share/zoneinfo" \
|
||||
$(use_enable !pg_legacytimestamp integer-datetimes) \
|
||||
$(use_enable threads thread-safety) \
|
||||
$(use_with kerberos gssapi) \
|
||||
$(use_with ldap) \
|
||||
$(use_with pam) \
|
||||
$(use_with perl) \
|
||||
$(use_with python) \
|
||||
$(use_with readline) \
|
||||
$(use_with ssl openssl) \
|
||||
$(use_with tcl) \
|
||||
${uuid_config} \
|
||||
$(use_with xml libxml) \
|
||||
$(use_with xml libxslt) \
|
||||
$(use_with zlib) \
|
||||
"$(use_enable nls nls "$(wanted_languages)")"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake
|
||||
emake -C contrib
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
emake DESTDIR="${D}" install -C contrib
|
||||
|
||||
dodoc README HISTORY doc/{TODO,bug.template}
|
||||
|
||||
# man pages are already built, but if we have the target make them,
|
||||
# they'll be generated from source before being installed so we
|
||||
# manually install man pages.
|
||||
# We use ${SLOT} instead of doman for postgresql.eselect
|
||||
insinto /usr/share/postgresql-${SLOT}/man/
|
||||
doins -r doc/src/sgml/man{1,3,7}
|
||||
if ! use server; then
|
||||
# Remove man pages for non-existent binaries
|
||||
for m in {initdb,pg_{controldata,ctl,resetxlog},post{gres,master}}; do
|
||||
rm "${ED}/usr/share/postgresql-${SLOT}/man/man1/${m}.1"
|
||||
done
|
||||
fi
|
||||
docompress /usr/share/postgresql-${SLOT}/man/man{1,3,7}
|
||||
|
||||
insinto /etc/postgresql-${SLOT}
|
||||
newins src/bin/psql/psqlrc.sample psqlrc
|
||||
|
||||
dodir /etc/eselect/postgresql/slots/${SLOT}
|
||||
echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" > \
|
||||
"${ED}/etc/eselect/postgresql/slots/${SLOT}/base"
|
||||
|
||||
use static-libs || find "${ED}" -name '*.a' -delete
|
||||
|
||||
if use doc ; then
|
||||
docinto html
|
||||
dodoc doc/src/sgml/html/*
|
||||
|
||||
docinto sgml
|
||||
dodoc doc/src/sgml/*.{sgml,dsl}
|
||||
fi
|
||||
|
||||
if use server; then
|
||||
sed -e "s|@SLOT@|${SLOT}|g" -e "s|@LIBDIR@|$(get_libdir)|g" \
|
||||
"${FILESDIR}/${PN}.confd" | newconfd - ${PN}-${SLOT}
|
||||
|
||||
sed -e "s|@SLOT@|${SLOT}|g" -e "s|@LIBDIR@|$(get_libdir)|g" \
|
||||
"${FILESDIR}/${PN}.init-9.3" | newinitd - ${PN}-${SLOT}
|
||||
|
||||
sed -e "s|@SLOT@|${SLOT}|g" -e "s|@LIBDIR@|$(get_libdir)|g" \
|
||||
"${FILESDIR}/${PN}.service" | \
|
||||
systemd_newunit - ${PN}-${SLOT}.service
|
||||
|
||||
newbin "${FILESDIR}"/${PN}-check-db-dir ${PN}-${SLOT}-check-db-dir
|
||||
|
||||
use pam && pamd_mimic system-auth ${PN}-${SLOT} auth account session
|
||||
|
||||
if use prefix ; then
|
||||
keepdir /run/postgresql
|
||||
fperms 0775 /run/postgresql
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
postgresql-config update
|
||||
|
||||
elog "If you need a global psqlrc-file, you can place it in:"
|
||||
elog " ${EROOT%/}/etc/postgresql-${SLOT}/"
|
||||
|
||||
if [[ -z ${REPLACING_VERSIONS} ]] ; then
|
||||
elog
|
||||
elog "It looks like this is your first time installing PostgreSQL. Run the"
|
||||
elog "following command in all active shells to pick up changes to the default"
|
||||
elog "environment:"
|
||||
elog " source /etc/profile"
|
||||
fi
|
||||
|
||||
if use server ; then
|
||||
elog
|
||||
elog "Gentoo specific documentation:"
|
||||
elog "https://wiki.gentoo.org/wiki/PostgreSQL"
|
||||
elog
|
||||
elog "Official documentation:"
|
||||
elog "http://www.postgresql.org/docs/${SLOT}/static/index.html"
|
||||
elog
|
||||
elog "The default location of the Unix-domain socket is:"
|
||||
elog " ${EROOT%/}/run/postgresql/"
|
||||
elog
|
||||
elog "Before initializing the database, you may want to edit PG_INITDB_OPTS"
|
||||
elog "so that it contains your preferred locale in:"
|
||||
elog " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}"
|
||||
elog
|
||||
elog "Then, execute the following command to setup the initial database"
|
||||
elog "environment:"
|
||||
elog " emerge --config =${CATEGORY}/${PF}"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
if use server && [[ -z ${REPLACED_BY_VERSION} ]] ; then
|
||||
ewarn "Have you dumped and/or migrated the ${SLOT} database cluster?"
|
||||
ewarn "\thttps://wiki.gentoo.org/wiki/PostgreSQL/QuickStart#Migrating_PostgreSQL"
|
||||
|
||||
ebegin "Resuming removal in 10 seconds (Control-C to cancel)"
|
||||
sleep 10
|
||||
eend 0
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
postgresql-config update
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
use server || die "USE flag 'server' not enabled. Nothing to configure."
|
||||
|
||||
[[ -f "${EROOT%/}/etc/conf.d/postgresql-${SLOT}" ]] \
|
||||
&& source "${EROOT%/}/etc/conf.d/postgresql-${SLOT}"
|
||||
[[ -z "${PGDATA}" ]] && PGDATA="${EROOT%/}/etc/postgresql-${SLOT}/"
|
||||
[[ -z "${DATA_DIR}" ]] \
|
||||
&& DATA_DIR="${EROOT%/}/var/lib/postgresql/${SLOT}/data"
|
||||
|
||||
# environment.bz2 may not contain the same locale as the current system
|
||||
# locale. Unset and source from the current system locale.
|
||||
if [ -f "${EROOT%/}/etc/env.d/02locale" ]; then
|
||||
unset LANG
|
||||
unset LC_CTYPE
|
||||
unset LC_NUMERIC
|
||||
unset LC_TIME
|
||||
unset LC_COLLATE
|
||||
unset LC_MONETARY
|
||||
unset LC_MESSAGES
|
||||
unset LC_ALL
|
||||
source "${EROOT%/}/etc/env.d/02locale"
|
||||
[ -n "${LANG}" ] && export LANG
|
||||
[ -n "${LC_CTYPE}" ] && export LC_CTYPE
|
||||
[ -n "${LC_NUMERIC}" ] && export LC_NUMERIC
|
||||
[ -n "${LC_TIME}" ] && export LC_TIME
|
||||
[ -n "${LC_COLLATE}" ] && export LC_COLLATE
|
||||
[ -n "${LC_MONETARY}" ] && export LC_MONETARY
|
||||
[ -n "${LC_MESSAGES}" ] && export LC_MESSAGES
|
||||
[ -n "${LC_ALL}" ] && export LC_ALL
|
||||
fi
|
||||
|
||||
einfo "You can modify the paths and options passed to initdb by editing:"
|
||||
einfo " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}"
|
||||
einfo
|
||||
einfo "Information on options that can be passed to initdb are found at:"
|
||||
einfo " http://www.postgresql.org/docs/${SLOT}/static/creating-cluster.html"
|
||||
einfo " http://www.postgresql.org/docs/${SLOT}/static/app-initdb.html"
|
||||
einfo
|
||||
einfo "PG_INITDB_OPTS is currently set to:"
|
||||
if [[ -z "${PG_INITDB_OPTS}" ]] ; then
|
||||
einfo " (none)"
|
||||
else
|
||||
einfo " ${PG_INITDB_OPTS}"
|
||||
fi
|
||||
einfo
|
||||
einfo "Configuration files will be installed to:"
|
||||
einfo " ${PGDATA}"
|
||||
einfo
|
||||
einfo "The database cluster will be created in:"
|
||||
einfo " ${DATA_DIR}"
|
||||
einfo
|
||||
while [ "$correct" != "true" ] ; do
|
||||
einfo "Are you ready to continue? (y/n)"
|
||||
read answer
|
||||
if [[ $answer =~ ^[Yy]([Ee][Ss])?$ ]] ; then
|
||||
correct="true"
|
||||
elif [[ $answer =~ ^[Nn]([Oo])?$ ]] ; then
|
||||
die "Aborting initialization."
|
||||
else
|
||||
echo "Answer not recognized"
|
||||
fi
|
||||
done
|
||||
|
||||
if [ -n "$(ls -A ${DATA_DIR} 2> /dev/null)" ] ; then
|
||||
eerror "The given directory, '${DATA_DIR}', is not empty."
|
||||
eerror "Modify DATA_DIR to point to an empty directory."
|
||||
die "${DATA_DIR} is not empty."
|
||||
fi
|
||||
|
||||
einfo "Creating the data directory ..."
|
||||
if [[ ${EUID} == 0 ]] ; then
|
||||
mkdir -p "${DATA_DIR}"
|
||||
chown -Rf postgres:postgres "${DATA_DIR}"
|
||||
chmod 0700 "${DATA_DIR}"
|
||||
fi
|
||||
|
||||
einfo "Initializing the database ..."
|
||||
|
||||
if [[ ${EUID} == 0 ]] ; then
|
||||
su postgres -c "${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -D \"${DATA_DIR}\" ${PG_INITDB_OPTS}"
|
||||
else
|
||||
"${EROOT%/}"/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -U postgres -D "${DATA_DIR}" ${PG_INITDB_OPTS}
|
||||
fi
|
||||
|
||||
if [[ "${DATA_DIR%/}" != "${PGDATA%/}" ]] ; then
|
||||
mv "${DATA_DIR%/}"/{pg_{hba,ident},postgresql}.conf "${PGDATA}"
|
||||
ln -s "${PGDATA%/}"/{pg_{hba,ident},postgresql}.conf "${DATA_DIR%/}"
|
||||
fi
|
||||
|
||||
cat <<- EOF >> "${PGDATA%/}"/postgresql.conf
|
||||
# This is here because of https://bugs.gentoo.org/show_bug.cgi?id=518522
|
||||
# On the off-chance that you might need to work with UTF-8 encoded
|
||||
# characters in PL/Perl
|
||||
plperl.on_init = 'use utf8; use re; package utf8; require "utf8_heavy.pl";'
|
||||
EOF
|
||||
|
||||
einfo "The autovacuum function, which was in contrib, has been moved to the main"
|
||||
einfo "PostgreSQL functions starting with 8.1, and starting with 8.4 is now enabled"
|
||||
einfo "by default. You can disable it in the cluster's:"
|
||||
einfo " ${PGDATA%/}/postgresql.conf"
|
||||
einfo
|
||||
einfo "The PostgreSQL server, by default, will log events to:"
|
||||
einfo " ${DATA_DIR%/}/postmaster.log"
|
||||
einfo
|
||||
if use prefix ; then
|
||||
einfo "The location of the configuration files have moved to:"
|
||||
einfo " ${PGDATA}"
|
||||
einfo "To start the server:"
|
||||
einfo " pg_ctl start -D ${DATA_DIR} -o '-D ${PGDATA} --data-directory=${DATA_DIR}'"
|
||||
einfo "To stop:"
|
||||
einfo " pg_ctl stop -D ${DATA_DIR}"
|
||||
einfo
|
||||
einfo "Or move the configuration files back:"
|
||||
einfo "mv ${PGDATA}*.conf ${DATA_DIR}"
|
||||
else
|
||||
einfo "You should use the '${EROOT%/}/etc/init.d/postgresql-${SLOT}' script to run PostgreSQL"
|
||||
einfo "instead of 'pg_ctl'."
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
einfo ">>> Test phase [check]: ${CATEGORY}/${PF}"
|
||||
|
||||
if use server && [[ ${UID} -ne 0 ]] ; then
|
||||
emake check
|
||||
|
||||
einfo "If you think other tests besides the regression tests are necessary, please"
|
||||
einfo "submit a bug including a patch for this ebuild to enable them."
|
||||
else
|
||||
use server || \
|
||||
ewarn 'Tests cannot be run without the "server" use flag enabled.'
|
||||
[[ ${UID} -eq 0 ]] || \
|
||||
ewarn 'Tests cannot be run as root. Enable "userpriv" in FEATURES.'
|
||||
|
||||
ewarn 'Skipping.'
|
||||
fi
|
||||
}
|
@ -1,5 +1,7 @@
|
||||
DIST tiled-0.15.2.tar.gz 3004096 SHA256 af662bba4d7b930717359484da4f3cae0ae004d0a9e51f0eeb04704cefd74ee1 SHA512 0c866ad6733ed37a60967f9826d632e4e72669289329b8db0799dafc99b95a18ec3c9e9b454ea925f4289b6d05e06268533858c8b02f7b43a224a64255a7c214 WHIRLPOOL c920f8cd7130fc055eb08bb550439e473a638a6a305eee1b70af59f1294ff25b0511c40707538200438e857f45f9909059792bf8b9bfe39849262c5eb6767187
|
||||
DIST tiled-0.16.0.tar.gz 4485752 SHA256 c02df78021c07c5574a8b52fcb61a02649db039724f13ecacdd18840df7490ee SHA512 4850127fd05f477b47df3d44a25e457eade4719b2d6e295eb5e220574e8b0009c7b9b9972679b5ef539ec63c8ecc56c12be6f24e1cc611714ca8d4d9769150f3 WHIRLPOOL f42aa6dd38a223ba385a69a6f7f2e2fe2e99c4a65da2c59b915b2fe2ba9a597670f7737f57c23e2a1cb9c4b058143779c110c9c9dfdf1f833e84c5491a78c253
|
||||
EBUILD tiled-0.15.2.ebuild 1296 SHA256 98d3e55a02a977a906eb92f451c23840510821ef0d450617672bcaf4b2f5f2b4 SHA512 397f69dd1ef1bded0e17c86b70842e246b4801bc08fbd839530eb1202a717bd2a8063d7c8f063526202b7abee46606d16528c8f8f3097c1b9d358b926df9dbe4 WHIRLPOOL 269efcfa00fee128dedac44d85f41cac8a8f425f373885a6ab078ba46b5167978df20fe8fafb3ea9f7b334ac8c5d68a9ca87526fd279e60ec4c9dc8a62100753
|
||||
MISC ChangeLog 3343 SHA256 96e4b688ce2aeb694341c3ebc0b2de9c9b14490b1a4943281bb3a65c0b54c6eb SHA512 750f7d8a3f07be990de4f7111a5b1d3e7e2e9bfd3194ed250d52fa07482c0539cbce169bac06984db3bf1729255476a8bafabe2811e538299f6b0815aae8c27d WHIRLPOOL 3aba56049e85ea79ddae9626608d15fe904dccac129e3b2b20fbb1034f11f7da199dff4200aed93bdd532f072711c3b64c3f1b53b06a06c31d08781763b51df4
|
||||
EBUILD tiled-0.16.0.ebuild 1316 SHA256 e6c1e3aa11c5cd77943a38cf53015cb5d076774e699939ef44e26b8185594a1e SHA512 c454d5926525c9dbff63536fbc2ddc02df1d05bd1936dbc9f3cf7da70202e485cb0613a8983329928a373f2dd157f1e1ddf8b70bd484140b660af021a144f49a WHIRLPOOL e834488826ca90066f618aa3ca5ab35f0b47ca12378bc9d9e7ea1ec5e36dc194b72950794a33eaa8d154620974ab6a65238033ea78c646d1d8e583ec7bb51737
|
||||
MISC ChangeLog 3501 SHA256 6acc36a084ada8f56692a71a3669d0370e9f64a0cd3c7473b614000be9e3ea5e SHA512 85468f1668ef2ab26cea98336160628b83f4ffe6328bb7979ed909a80ef247e33b58d05e758011e46897cf02d16f7d4c3920ec9ab856f2771dae1e0f49b7b0e4 WHIRLPOOL c45e821480ed0cd173eac7a9c81876adbd98c2ba5a79dcea0d000f47f2d44b36f409c52c03f299734b52555e3117941d6b63b9bc4af8006e095772a4a68ddc4b
|
||||
MISC ChangeLog-2015 1944 SHA256 929acd5cc66b771842c29859d4fe9a41f23b3fd0d4f7401f53ec4190b89c3a2a SHA512 6d227e68ad33b08d51861d90654f26dbc096a7c9df1f928b450d5932c757f473d9e042eb6e7466be5b4bb03d3f5e1adad5a07beb13325b09dc525767a65bb0d3 WHIRLPOOL f47e1b3b6be3478176bc92bbf5f8d262d570d47318b5c558458701c2638966bd35adfad699949f929283250d2f5ef069ca7ce25e3b97d584bb13b077aafad011
|
||||
MISC metadata.xml 347 SHA256 c92029ecd58d4e60e3122dc61a597074b6354a13be009730220d867605b62d7f SHA512 a900a4bf6ae9db5e10126de70bf046d779acbf2d2291840eff2685e6f3b1a8d688a48a6fbb527d7ee4b0867278aed6127cecbdbb5a2e45ec13eb94514984fbe8 WHIRLPOOL c9fdebf0282f010a7caf8682668aceba6f7980339a4b1916983685b90dab402e23f855234c02976b33335ad6454bdeadd11f0f44e6252a402acd9273fa0f796e
|
||||
|
@ -0,0 +1,67 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
inherit fdo-mime gnome2-utils multilib python-single-r1 qmake-utils
|
||||
|
||||
DESCRIPTION="A general purpose tile map editor"
|
||||
HOMEPAGE="http://www.mapeditor.org/"
|
||||
SRC_URI="https://github.com/bjorn/tiled/archive/v${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD BSD-2 GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="examples python"
|
||||
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
RDEPEND="
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtnetwork:5
|
||||
dev-qt/qtopengl:5
|
||||
dev-qt/qtwidgets:5
|
||||
sys-libs/zlib
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-qt/linguist-tools:5
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
eqmake5 LIBDIR="/usr/$(get_libdir)" PREFIX="/usr" DISABLE_PYTHON_PLUGIN="$(usex !python)"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake INSTALL_ROOT="${D}" install
|
||||
|
||||
dodoc AUTHORS COPYING NEWS README.md
|
||||
|
||||
if use examples ; then
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
dodoc -r examples
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
gnome2_icon_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnome2_icon_cache_update
|
||||
fdo-mime_desktop_database_update
|
||||
fdo-mime_mime_database_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_icon_cache_update
|
||||
fdo-mime_desktop_database_update
|
||||
fdo-mime_mime_database_update
|
||||
}
|
@ -1,8 +1,8 @@
|
||||
DIST go-crypto-0_pre20150808.tar.gz 876947 SHA256 9ff25a17515c6c7ff0d13fb076ba7a1df868ce30fca105277b3f0356ce801518 SHA512 86826102ff7242259d79a31e543a03192d6b68a06635b46ebac349111bb8451605df1ad9b249c08d75895c38fb4ebbbfc716d40c8c981485395164e87db5a519 WHIRLPOOL 5e1a0372d0a2f493e68c213ce866237cab316c1bf712f2c58a95c16c6864c48ea795e5a6e1346aad7459f666802170aeb0db8f781423fb1d8e252e5bced2e435
|
||||
DIST go-crypto-0_pre20160126.tar.gz 902001 SHA256 c1efa4d05d59ef64db60e872fd80afe4e0060cf4cd6924bb51940ef98b45e4ff SHA512 168129ab9581b7348fb3285e045d99a0a837ac7bd65bf9f5e7a220fffbb9e2abf76da5f521c66eea7179eba0ad8da68d6f41cd9624ea40a9da25a18838427846 WHIRLPOOL dbe3067085b5a08c4dd2e13385691aadeda35336c479140684fdb2b08de27ab9447b63cf404c14b9a69520c585a09051f21374c81101599671be091b24fc92d5
|
||||
EBUILD go-crypto-0_pre20150808.ebuild 1378 SHA256 d4977e46df7faff31de56ed950726aa1b512b3d83d688ccbdb1c814ea5a284be SHA512 eefc55ed7cb5257ab8eb286886fcdedfa123bc88e1b60169c81e41bdd6da1a6955bb6a6dada6382625bd7ab8c3f793db5eb746741f67f12914d5f10a61abd9ed WHIRLPOOL 227e9808b0d64d2b933f57a4869daaeb1a34a99f6795186e7a82736fb68d6329ff6d16a57c39452daa50a3dc76c15785a79b77783599b3b0d32121224152ef6c
|
||||
EBUILD go-crypto-0_pre20160126.ebuild 1378 SHA256 48227de0d91024331ed2a7775369ad139e35a55b557e010c282fca7e554c79e7 SHA512 291e1c306fe34f950e1db91a7aa30b37730e0a41f8e628b415869e1ec4828fb94bee3cf66b5d6a4b0f8dbe03ce1d3a370a5266cf7c64473bfd76c607082c34b6 WHIRLPOOL 01cc0f90ff48c89910d4edddb0d45a928b3b34fcd03beee3ffebd58aaee624cb566842fdf09dfc8681fc0d7db6cd4c776d1853d1bbca8bd2ebe0e5b96389a64d
|
||||
EBUILD go-crypto-0_pre20160126.ebuild 1688 SHA256 3ea708c6ea1036e68d4265687376e6ed4ef79006f3c16cbeea736d4db3648265 SHA512 11a198a0410bca601b123150e42ac37fd96aaa8664b35319034e5599fba93398ef91a8870962ac7175c636a72c5fbe5209bbef13dfb283b95561148e98cd92c2 WHIRLPOOL a3941fce2e6a805c02ddfde57381a14bfb5ad37292eb2eeb5f8a563c62d555139cf11c2bdba78fb36c1752f3cba0245917a6aea8f92976ee891f230adfbbab67
|
||||
EBUILD go-crypto-9999.ebuild 1070 SHA256 2902f31eb93ee9a5f1e52151c2ed15f6534ee53ecf369352544276529243f537 SHA512 a29bfcd19d6e361416665ddbd9af57b3be89b7ec67c5febcf65e7bebe64f6680df4a043654d5900aa9623611f84969f2897208089b7c21b0aa2e1d3357d0b039 WHIRLPOOL 8b6b794f72ce35f2ca76a57519c63f6e367dac602a3833a835c41153ec516bcaba6aa34fbb1447c4a3b683de45694901e8fba55bb9b909a2e39c41dc81a8a8f3
|
||||
MISC ChangeLog 2889 SHA256 d6872f6f08bac61a1ca7fc73e47d35cc8bb4911f24d8271405c411c8d174ddc4 SHA512 446cdd97d8f877fc21046b6ef788cdd9c383735b1cc7c810bd8d834235f02c3e85942937161197ed49edd58fc2987e326650b001c7a82edc442c956a42d0d736 WHIRLPOOL a346b16a5f0513e7043bc49148be3c9215680b82a0bcb87ef24e914d719d634f6e2d87f45a9a9423d428fb025ed1df5fe888a145d79ba2887dbc0ca789b5f906
|
||||
MISC ChangeLog 3307 SHA256 97aa71ca91c029fb3eef2dd316a7ebf06f0aaae6da2fec2e57b838ee1ee89fcc SHA512 8ef52f1c2552a5c6ad978f94883ebcbd79bb29df6c1adf5a0ab9ed548c4006479a895fce2841a0f70e5ac453cf08984bffbce4e6f682ab612780c1c29a63f5e9 WHIRLPOOL 20119e20cee1676e53400d6dc58892cf3b51cdce94321f95fe671370d75625394aa41e1a07ff2f70bbb419c34d8f8f543972a289d138b8428bf347d058c7be53
|
||||
MISC ChangeLog-2015 1803 SHA256 6f5b35412260ae03aa0cb53972a7e0e09b19b2b37a02077101bdbbe7e8cf71d6 SHA512 ad08a20aa68a014c513bde286a15b3145870e10857974abbf6c7f8959f403117ead2f7adac455cec2c28a9ec3c85c699a8e5e350898495a5a23cf13eda665c46 WHIRLPOOL ec9ce05ab73582a5be34e9fc88fd9a56292a9d90d612bccdb8ab5f723fc4b799bd0217756bcb1de25629f50d7c77e3e193a751dbddfcc4969b01514aaedbe49c
|
||||
MISC metadata.xml 304 SHA256 da25dafd864b318140af787016293dc39a9d4be7f31423029282fcfb74608cd1 SHA512 1e30936f145a4bac0db6816b1ab4ee6b5c38864774023e99d9724caf50e9039798d8675d41aa939c339d99ef59ccc2485bf3b5e3077f1e60d8b850bb607807b9 WHIRLPOOL 6090367e448effc2a08c619059bab7425ba7eb4f2cf93b7138a2b26ebec9b0820886f66a3cf0652c29b03144d2ce5f0c829df04f7c261685beef156dabd0f9a6
|
||||
|
@ -1,6 +1,5 @@
|
||||
DIST jlex-1.2.6.tar.bz2 45868 SHA256 8367edecc3f31f0f55d6b1d92146d6ca9eeaf76de5eb0ff8614a0a2e38e4a2b5 SHA512 ebe16f87fe5b524de5c31651b0d5a0c282fdac99814c8f432a850a394657da4016880fba0f7418c8c42a989e78145d39188c3e68b79ed64fa1911d5680b00b9c WHIRLPOOL 43c51ca8b3ce452329bc7681f34bfb7304a0c9f6f2bf1d83eb8d048bed8863d7f037c38444146234160345692bcd3a3838279ffe7746e3919c37710edf156d9f
|
||||
EBUILD jlex-1.2.6-r1.ebuild 764 SHA256 350b7cd6a1550ab27107eacdd2172c76c178559eaf536dad57de410f32ab3ef9 SHA512 fd40eba62ba39b0c5c84e53be1e7be6589748d7c4a3113a6f97fdb06e3ba9a28471d3848c4f4fc94c89b7663087b8e061fd426f3191975987da4e2124695d52e WHIRLPOOL 4649571c109c72578f273dd50447410eca4c5643e64e40edcc1082d5ba1ffc33c395b90fe3dcc26bf9e70cb2ca87c71ac4dcf490658c9a65281662a24222926c
|
||||
EBUILD jlex-1.2.6-r2.ebuild 826 SHA256 4b4dc1a4ef5224401c6231c8f1b00926c87b9e993fd7c337d18023ca78fc1e21 SHA512 2157eeaf436ab90c10dc1ddbaf82eb99bf74eda2aaafd6a07687ea53776d024df626cd3cded9e668f39c8a681be0935bd5b175d8c7ad2a37bcf7b4859180dd12 WHIRLPOOL 8533101d4d1f19049bcace57e624cab1197c0e681d07c0de91e755e7fd9226b79ce673fdd46390b2499195131cadb0232c0bbac38f49dc3a7d77db2dc9562f13
|
||||
EBUILD jlex-1.2.6-r2.ebuild 877 SHA256 38205a309e9bee1259e7b1a2d840bfa61ac6f2c490da180413bb38ce181c6c78 SHA512 ccc663dbd881519758dda9a7765c851907628aab408ed32ebd1383729cef873f5b12bdaeb65920f2ffb69e524e8b6d2e1e1911bfb8fe4fb011772c34c758977d WHIRLPOOL 9c0d704b0c10d0df39c4bdde5fbaef8bf151dea563066f8f0da4344ec85a6d3147685ffef2e61034644fc6317601253c7f53fa63459fa779f1110da5056af9e5
|
||||
MISC ChangeLog 2638 SHA256 4438d724ff2e5d4c0b600f898846f32a814ac757e1725bce1fb0fab3595f9228 SHA512 4898ce3067fb1d38bdb343618a2825e6f4123f138f86b359b9ae632dfa26740721abb6e81ba2e61ed0db4d51f2f79a93eb5e6aa9af69efb33f87b6c1c6b81a99 WHIRLPOOL 5820e5856bb836e34039e390896ede8ef419c65576aae18af2aa6ed7d39f017046b500e1e8a9dc9ad7cb410fe5c169528f87d5f5106ac0a8e62b89bbd420c453
|
||||
MISC ChangeLog-2015 1955 SHA256 cfb8711b5f6c95d4f5fac74f77ed06f632091897d5fe013145f840ef0357afd1 SHA512 31f60fd58162fa0cacf68d25632a550322ff5d1681e5f56f4382e817bce12cd2ab96fdccf06e4fcda206ff7cede23bdcde9db6ee2e6b27d122e9f985b38c799c WHIRLPOOL 507cd90cf32f65dedb7fdcc1b1963715308ce7c65aecaeb9be7e45550d9e201311eca5fcfae19cdfdb3b57397a4caff0798bb340bcd5f9a824c1d432444db079
|
||||
MISC metadata.xml 232 SHA256 0c8d91b3d514ac42d0eaca567346ab909c0f947049c85c25a380ec2400f1b3fb SHA512 00beaf2c81112ff757c4395f4ea47e85f2d48e369e241f10ddf200090dd6513d52ae2b1aef6d28b7417f1cf34608a7258a167eb307d5670323a2190f3710f893 WHIRLPOOL 3a1a6d054edc9177d85ca868f9b0a6e84ee51bab4fbdbb9b1ead1a03874036bcc3f96e903fb751dc4d29fdb7d6b5f3d8dbe7b042fc697c887e23f41cc9c8c4ac
|
||||
|
@ -1,40 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
|
||||
inherit java-pkg-2
|
||||
|
||||
DESCRIPTION="JLex: a lexical analyzer generator for Java"
|
||||
SRC_URI="mirror://gentoo/${P}.tar.bz2"
|
||||
HOMEPAGE="http://www.cs.princeton.edu/~appel/modern/java/JLex/"
|
||||
KEYWORDS="amd64 x86"
|
||||
LICENSE="jlex"
|
||||
SLOT="0"
|
||||
DEPEND=">=virtual/jdk-1.4"
|
||||
RDEPEND=">=virtual/jre-1.4"
|
||||
IUSE=""
|
||||
|
||||
src_compile() {
|
||||
ejavac -nowarn Main.java
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodoc README Bugs
|
||||
|
||||
if use doc ; then
|
||||
dohtml manual.html
|
||||
dodoc sample.lex
|
||||
fi
|
||||
|
||||
mkdir JLex && mv *.class JLex/
|
||||
jar cf jlex.jar JLex/ || die "failed to jar"
|
||||
java-pkg_dojar jlex.jar
|
||||
|
||||
if use source ; then
|
||||
rm JLex/*
|
||||
cp Main.java JLex
|
||||
java-pkg_dosrc JLex
|
||||
fi
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
AUX joda-convert-1.3.1-build.xml 10459 SHA256 f8d10e8045681e688424de6f2db9d703cba1cca7906cd7d263f3e6ed49e7cf6a SHA512 cfeec9e9ee537814eaa3277037e45878a71b80cd73705bce560cf24d1c0d20033dadd030dcc447b1be5ad742fa97637f57931cab96ca7e21d6b79c7897d7f0ce WHIRLPOOL 69b1790299d38202d3bdb790f40a0eac92453b58b223532c4cbd0e1878a51fa99b27b3e7bbe7734181b6c8e90e2e9f25ecd5ce98f239924215b9665c8858022e
|
||||
DIST joda-convert-1.3.1-dist.tar.gz 131288 SHA256 f73decd925a63ff23f010c2e0f894662ccce087eece4027dc0353574a7d2e537 SHA512 ee3f7264e9ee445dd8cf088c862809faceb012d317c4974d2312e1ce9b580193096259978a79cdefc2217818600ff38569348625986e19bdb753edb03ba58451 WHIRLPOOL 1ed3df81cd70bfa52bd82b74d5a4e412d46ca54ca250e2d24a0ba6d0711ee29cb82696b9d3e24dc1f43d563506d8334a76646a3902513c2ba221b91f6e79583b
|
||||
EBUILD joda-convert-1.3.1.ebuild 932 SHA256 164757614f6206425f3e588eaad3252ec456afca9d16f2804937291a35b9695a SHA512 85bbc0aa05756686c37360e3508448f2a1a302f45ec745902c07a20378d0da90b535332539fd6a11ec3f01517973900b57b6f28ebaf37460b885a985675c6790 WHIRLPOOL 204e8ca5ed47ee7680724fa637afa0059e86ff90739888ee1d101a463044c4db83d37a3a60c15d30763104f79ac18ccee5e682419554daf74bb9e80460bdb1ad
|
||||
MISC ChangeLog 2481 SHA256 10ad23ad6e63975668811a3d007dcaecaaea64a47028e543fbfff7c4e9c06759 SHA512 100310d2424e10888b1fcc71b03e8c4a11de60cb5bc9bae229f3d7374778c51f23bccd7039c47a71bda271e6e89e64291a9c99d70acece65bff9c502460e2968 WHIRLPOOL 84dac03371bdf19a98daa22f0deeb38647e0bf3fb4415b2d1d910d59ca5b399509642b8b9a72b4771540502612f95ecf6227832d8bfbfefed71b4105490ac9e6
|
||||
EBUILD joda-convert-1.3.1.ebuild 936 SHA256 aef7732a4f625e2fa1ff7e52597b8ecd9ef35f766fc8928b820555d158bba846 SHA512 c6c906e0b241f7aaa20416542730370f8142bbe5a1735388ab8fd31fd5d204395421a010538cd713a151d645a6789d88d6b92125a80c54c596e5a6ef60d77006 WHIRLPOOL cb51099d4f90d610c6dc78f8e0b734d0afbc74cb7aa1581ed6d2a097c7b1551f9bc13fd52c9c2ec3f32a22d6dfc371afc795cb886e50bd499cb629e506aec8de
|
||||
MISC ChangeLog 2838 SHA256 c998ccd4a54a004a9973dd5383e9144dbc8f3d53361455b2a5e4bdc54ebf0386 SHA512 5fdc6118c579f96968718e840353424707a746b889a33f22298537e7efddcaf26266ec1386ab5d5a428fac691e3f7390a84428a3e4b5362252d098ffa7b22035 WHIRLPOOL 5bdb3abd211cc5a59188022ba057457bcf8aa9de53bd108096342f0a542403930b577e4b3fb2b239b8dfb5c2c154d4613d18e2c77efd4fcf0a8721139903dbc2
|
||||
MISC ChangeLog-2015 1412 SHA256 12db7be006df64189d3c90c4ccd68ac158de902a08a899fc445531afb5f835ca SHA512 169713a636b522e137eb1a575c183a4d8ca8087d721fd5061bad183c89f2f7152867441cf865786b2b89cf831561fa7ffe581d96c1fcfd5a611889f17a43dc61 WHIRLPOOL 4445cd4837a81a98fcfdee3b6b7187fcbe1e8569997451a278f423e7639671f45647b8e56d518d691ef12fee088ac3f2ff84f89695e5ecd0b953c8a0a794669b
|
||||
MISC metadata.xml 318 SHA256 9471af4a7a8aefe485c697fd7d62c144a86ad778ec7e6f5141090b9a119f9acc SHA512 13ce055f2cf64b4b5f7f6b780c98cfae6bcae0792d5bee30633cb465ab49045fc77da1337042d672bcb1c74cb3a1dc0e26b1d6c5e38f17d3a79152b423a97030 WHIRLPOOL f9cf362e6c42010bcadc7eee1bebca81c0a492caeb5e34e5a70903d670b8a4ba303ff24ac990169e1452b75ce7f33f55635e25b57356cd2247529f495cd9d972
|
||||
|
@ -1,15 +1,6 @@
|
||||
AUX 1.5.1-ecj.patch 675 SHA256 5e328c247172f6ec88de8350614a62eb501c0bc933499e48367e7d558e10f7fb SHA512 f63400950edf57ea6d060f444e69539882351e726b4296f3aa956b9dd84301799a4a922aa711664a0767f638ead0c994dcd5af8d87df2618442a7f8ee6e75974 WHIRLPOOL 25ce826182b4b91ab09bc87b94bb3fa67ad4a89a589d42316e9102c66cad26ba679368ba85978e453b0d9ead8f0539eb6b0421c7d1f2e2b74daa0cf0cc60b1b8
|
||||
AUX joda-time-2.2-build.xml 11600 SHA256 6249953e64e0cbdcf437404592919dfed5280990fa3c9b7bbfb19163a14494d3 SHA512 2244497dcccf8857823039ba942804136745ef2af924f7313a7cb8357a8ac75d837e9945c560e6a5a82ea3bcf62b9691142e1712278a4656a92e6f0557e0c945 WHIRLPOOL 942e14a6f7b24d56f77012a3a011814728999f91690dfad932d4d2244d03b2acbd7655223018d85a2f1defc5929debe626992180f573a49ebddf2213f45696c8
|
||||
AUX joda-time-2.3-build.xml 11427 SHA256 05b0b1a47ced5432022da009c8ba3008d7841b5db4fff11f4e4a41d07bb043b8 SHA512 3ad12e2d4f6130343275171cc85cc96c233de98eef500b0915091b7e3562d8acc63316c8489594b57c888a678660e83260bde747c00834d02ffdaf4f2f8894a6 WHIRLPOOL cfeb112f3f1437fa4e65cd631b9664ba36c35bda7ff1d21a7fc61486a5a7d827e27215b829dcec5dd73165039fb23a3536506415a4de3d3a88d0639020c6aa7e
|
||||
AUX joda-time-2.7-build.xml 11231 SHA256 0012657b2c03bc953ef442d829014b8e33311b36a8b406d239e032af0e632462 SHA512 c614cc2425b0cefdc5f9def196cd5014d6d65552038dd22f876bbb64ee25131ead57aa94ef967491e292cf1ddefef933d9827dd588056d58c9a311640a5af63f WHIRLPOOL 55fad18901e81b2021e5d5e8dbc6f2d1d8cb7aa59df3a7c125ef9f3427b93a10c46025e3aa9d55bd7951157d4204aa8d6f79b292cc29c9a0433a30a3505e7ae3
|
||||
DIST joda-time-1.6-src.tar.gz 1270950 SHA256 4dc645d2ef3c19eebdb388cf22d27fa1c51abcfae87f48f12e2477a91207f92f SHA512 30c1cf558b8dfce67de357dec72c6d64358639f83999eae4f637e436e2e1a4870d09fd4ff86547ece992e49d96fc5113d44cc1dceed910c4de9a65ebc1075c01 WHIRLPOOL fae630d09e01b058e95ebbbceb0f1725580171e0746135dab35f247d1455c712f4f4f6fde7e6edf2cb578cc94fae6b87c202ce581675809b054d05ebcd5c0037
|
||||
DIST joda-time-2.2-dist.tar.gz 4397101 SHA256 1cf6176f222f0155b20693dc2a9939e10c766d986d68b144e30f446772596c48 SHA512 8a67b420b4cd179bd80166c930efdf9e32b4813b431329dae7844a078c23688220130c8466993aae4a865bf01e593a8e22b992726d9a1fe64eb0b6f911197f10 WHIRLPOOL 4afb42425e72deaaf25067810538191b6fec1c8e7a214c2230ca98a445d7c5134d881d62bcc9d6b4eedd4776803dcf32a734c8d5c24acd169101a7197d924c57
|
||||
DIST joda-time-2.3-dist.tar.gz 3440289 SHA256 f27acf5361e50e0560b349aecf3211e6265b4546d3de0362583390c18cbf4c57 SHA512 b20b0c77878971af99a2e60f01ca73510d4244fc4a069d21a657c79bd3ec482494edd3945c6a98e5313e41e53ede51f1cc98a5396f97e3c3775659a982c0fa0c WHIRLPOOL 6c9c6fe1a4e06e7634a34864f85a70024ddf058c8c3d1a33d83285b1fcee57fc122ce0615e1bca0d15d0387841b91565591a533bcf61a5679a4b69c2efe2c949
|
||||
DIST joda-time-2.7-dist.tar.gz 4007765 SHA256 6f29f22ff88d39d988c600f1e274e7a59c451184d7d6d400e2ddb9e4bbb2ceeb SHA512 2a9bf91024bf20c4f1a28c87e5c6e560994ba6f7e131757c83a5ab6984ea79549e1d00452dcf767fc5cab374e531649759703acbaed724a1e49436cae0799209 WHIRLPOOL eb2f91d5bbff641495d3a7763872321718415e49c8adb864805a84a73c583ee562f145821621ffd38ce1b41a813a15f4dcf609c5130b7557ef4d5e9fed86b17f
|
||||
EBUILD joda-time-1.6.ebuild 1375 SHA256 3757e0889949af440890a8954337b385382f70f5ff9d1598816510b4c2453b4f SHA512 7f327b72cc5e0e01554405b17c9693412d9efa26a9359beff0fef848f9cf4d58b1fe85afd211b76c6ea75abb78da4a3901d9c04863a3ed7eae69b70efdaf0806 WHIRLPOOL 5d26965c242cab10bc0e3057588f3a06837f30114f45a68211d772105715797c8884bd70b7e25133154d3325d418fb052b9c0402bc11727d4e556bfcdc8b9ce8
|
||||
EBUILD joda-time-2.2.ebuild 1578 SHA256 0da64f270ee86626a62cc9fb6688049525bb30743d39a227cc81792f189d038c SHA512 560eb57477620392ab7a4eb62a655969948e6d85dcbe7b9a90ae1868a9f26adecab6636403cd7ea8c849f1b1a5d52bf45892d2c45c620c07d893f4dddfe147c6 WHIRLPOOL b2c4d33c5644c0e56e6e2f6fb53e7c3983297058ef9abf032099c7e5eb22703c7112207dbfcd2575a1aeadc4ab79b454a3c3514205903f64e87d9c2338861d94
|
||||
EBUILD joda-time-2.3.ebuild 1612 SHA256 11476ddeb8dd05a6d1fb2a7788a03a2de4d476f6ab2131576a3a5af206a187a9 SHA512 ccddc3561686c24fa24820c4fc1d1b4686d917d682fc8a458510418599357baff5fda17a5af0587a77d87a1dcdc33098a2bc1e91543c1c8f96db451e395a98cd WHIRLPOOL c0cd01af5dd60d92d1205c330a51777cc77a026bcaaafea65cad3389b6474ce6afce723a779cf9ac4ce6c2c97abeeba4e9452c984c20d56eaaa8ebcc31c93561
|
||||
EBUILD joda-time-2.7.ebuild 1899 SHA256 90fbd82a11bdab6e1c7127d84d3c95c1814716d7c39ee567d740b4dede407899 SHA512 7d18619712c1302bc6dcf08f0e055c8a5022060e1c3177fc8eb49ab25459f1c6318fd95e308c63259d7bdd1cebddf5b3ed8e24b8884fb2affbe72688d0953fc5 WHIRLPOOL b48e0e945f550f83a944b1b7822830e8205dac6b12805470cd91c8963962d2fed9c4ac0a2d9565b01baeb3259474c46c9f519a5cb37487c002928b4663076f61
|
||||
MISC ChangeLog 3395 SHA256 856b0d678d578c699fc35115cf1f1e49d4f96c643df81111d821ce3985eec5b1 SHA512 8d93a4501d31d2d2569ab42dc5640ee0471c56c7ff71afcad9af800cbd6d64afe6a27bedcea483e4e4ec87c402904c3e604691b76cc7842db3d29b1135e69b26 WHIRLPOOL bdfaa5b36881d7961fb510981367c21392d06b6bf1e7bf8fcf1d65e57256a57edf91a9f518771ed2a2606f360d3969f0282029340192c84c1e14f1e2fc1fbaeb
|
||||
EBUILD joda-time-2.7.ebuild 1920 SHA256 45d4ad788f47ffb2dc4297d287b3b4b39144562236a566de7e19d2ad4e4a86f6 SHA512 fb3e188269279d590e3250fb0a104889b1954a43fcee03fd708f0783752e41b8933b066d84e2aa0dcb9123db4e6078295e9c4bf2a7fa329635eaba8643c88c59 WHIRLPOOL c032c6a15439a3e9c546d8b95e74b54d4917d420d06f23c98191d68fb19778709f2e88b3daee5450cb55195821fc3fdfa8a23bfc8eb7d3dc8878ef0995b005e9
|
||||
MISC ChangeLog 4005 SHA256 7f9de578acc63b2d71f6c971c500ce671d824d811a53bf78613b8f4fcad8e1c1 SHA512 49c50cff797d5cd79965aff3263bb4d5afe227042ae4432affc625da71eaf2b9c4abf173404cd5f8da5760d81ecc95892796f04c6ab301198b3dad37f41560e9 WHIRLPOOL effb974aed8f2e5d5ca3e4d05efb57f32e4f7ac5cf0a47ec3684c41bc01f3aab26d06f0a06297c631b4087d68e2d21a853989790b31f9242a46b7a487d7bbc50
|
||||
MISC ChangeLog-2015 6634 SHA256 82a342048c0d11e22bdb616099a1dbde606b3e15678e668bf13a6c76f9b4418e SHA512 11d39759f2a670f099e83638b802ae4a3598eba0a55e2bd9bb0444cbc7f7bd662501f18975f415332dfd8ca9de2ede1d6447572c8d851453869454743a3a7528 WHIRLPOOL c5101bff8b43831151de807e6036f64a2c4b7a299572f10a4e9f5150349aa8b152705a680a0b5381d9c86a424a369274c874135f6c7b6bf84d306039d6968f0d
|
||||
MISC metadata.xml 384 SHA256 34408ffc8c822151e55e0b645b9d90c217f5d0cd75e3cfc88341d4876238b41c SHA512 441aa3d5876d8ff91b9f9d368e817bf6869266c27f7f8686e9eb47812f899f37c5fa2e65337e979dd3247932b61d84e4b4f0d7325ea2659d54221ab428c9c089 WHIRLPOOL 586556d3fae636a4904c31ca305c2e4d32bddbc3e85dc94124ec8d2e71e924c3fd59b964379a0dbedb6b7f343b34788f06626500ba57b0a0885bb504d6373f25
|
||||
|
@ -1,15 +0,0 @@
|
||||
diff -ur joda-time-1.5.1-src.old/src/test/org/joda/time/convert/MockUnknownCalendar.java joda-time-1.5.1-src/src/test/org/joda/time/convert/MockUnknownCalendar.java
|
||||
--- joda-time-1.5.1-src.old/src/test/org/joda/time/convert/MockUnknownCalendar.java 2007-12-21 00:43:52.000000000 +0200
|
||||
+++ joda-time-1.5.1-src/src/test/org/joda/time/convert/MockUnknownCalendar.java 2007-12-21 00:46:42.000000000 +0200
|
||||
@@ -34,7 +34,10 @@
|
||||
MockUnknownCalendar(TimeZone zone) {
|
||||
this.zone = zone;
|
||||
}
|
||||
-
|
||||
+
|
||||
+ public int compareTo(Object o) {
|
||||
+ return super.compareTo((Calendar) o);
|
||||
+ }
|
||||
public long getTimeInMillis() {
|
||||
return millis;
|
||||
}
|
@ -1,270 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Ant build file (http://ant.apache.org/) for Ant 1.6.2 or above. -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- ===================== - DO NOT EDIT THIS FILE! - ===================== -->
|
||||
<!-- ====================================================================== -->
|
||||
<!-- -->
|
||||
<!-- Any modifications will be overwritten. -->
|
||||
<!-- -->
|
||||
<!-- Generated by Maven Ant Plugin on 5/9/13 4:05 PM -->
|
||||
<!-- See: http://maven.apache.org/plugins/maven-ant-plugin/ -->
|
||||
<!-- -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<project name="joda-time-from-maven" default="package" basedir=".">
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Build environment properties -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<property file="${user.home}/.m2/maven.properties"/>
|
||||
<property file="maven-build.properties"/>
|
||||
|
||||
<property name="maven.build.finalName" value="joda-time-2.2"/>
|
||||
<property name="maven.build.dir" value="target"/>
|
||||
<property name="maven.build.outputDir" value="${maven.build.dir}/classes"/>
|
||||
<property name="maven.build.srcDir.0" value="src/main/java"/>
|
||||
<property name="maven.build.resourceDir.0" value="src/main/resources"/>
|
||||
<property name="maven.build.resourceDir.1" value="."/>
|
||||
<property name="maven.build.resourceDir.2" value="src/main/java"/>
|
||||
<property name="maven.build.testOutputDir" value="${maven.build.dir}/test-classes"/>
|
||||
<property name="maven.build.testDir.0" value="src/test/java"/>
|
||||
<property name="maven.build.testResourceDir.0" value="src/test/resources"/>
|
||||
<property name="maven.test.reports" value="${maven.build.dir}/test-reports"/>
|
||||
<property name="maven.reporting.outputDirectory" value="${maven.build.dir}/site"/>
|
||||
|
||||
<property name="maven.repo.local" value="${user.home}/.m2/repository"/>
|
||||
<property name="maven.settings.offline" value="false"/>
|
||||
<property name="maven.settings.interactiveMode" value="true"/>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Defining classpaths -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<path id="build.classpath">
|
||||
<pathelement location="${maven.repo.local}/org/joda/joda-convert/1.2/joda-convert-1.2.jar"/>
|
||||
</path>
|
||||
<path id="build.test.classpath">
|
||||
<pathelement location="${maven.repo.local}/org/joda/joda-convert/1.2/joda-convert-1.2.jar"/>
|
||||
<pathelement location="${maven.repo.local}/junit/junit/3.8.2/junit-3.8.2.jar"/>
|
||||
</path>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Cleaning up target -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="clean" description="Clean the output directory">
|
||||
<delete dir="${maven.build.dir}"/>
|
||||
</target>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Compilation target -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="compile" depends="get-deps" description="Compile the code">
|
||||
<mkdir dir="${maven.build.outputDir}"/>
|
||||
<javac destdir="${maven.build.outputDir}"
|
||||
nowarn="false"
|
||||
debug="true"
|
||||
optimize="true"
|
||||
deprecation="false"
|
||||
target="1.5"
|
||||
verbose="true"
|
||||
fork="true"
|
||||
source="1.5">
|
||||
<src>
|
||||
<pathelement location="${maven.build.srcDir.0}"/>
|
||||
</src>
|
||||
<classpath refid="build.classpath"/>
|
||||
</javac>
|
||||
<mkdir dir="${maven.build.outputDir}/META-INF"/>
|
||||
<copy todir="${maven.build.outputDir}/META-INF">
|
||||
<fileset dir="${maven.build.resourceDir.1}">
|
||||
<include name="LICENSE.txt"/>
|
||||
<include name="NOTICE.txt"/>
|
||||
</fileset>
|
||||
</copy>
|
||||
<mkdir dir="${maven.build.outputDir}/."/>
|
||||
<copy todir="${maven.build.outputDir}/.">
|
||||
<fileset dir="${maven.build.resourceDir.2}">
|
||||
<include name="org/joda/time/tz/data/**"/>
|
||||
<include name="**/*.properties"/>
|
||||
</fileset>
|
||||
</copy>
|
||||
</target>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Test-compilation target -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="compile-tests"
|
||||
depends="compile"
|
||||
description="Compile the test code"
|
||||
unless="maven.test.skip">
|
||||
<mkdir dir="${maven.build.testOutputDir}"/>
|
||||
<javac destdir="${maven.build.testOutputDir}"
|
||||
nowarn="false"
|
||||
debug="true"
|
||||
optimize="true"
|
||||
deprecation="false"
|
||||
target="1.5"
|
||||
verbose="true"
|
||||
fork="true"
|
||||
source="1.5">
|
||||
<src>
|
||||
<pathelement location="${maven.build.testDir.0}"/>
|
||||
</src>
|
||||
<classpath>
|
||||
<path refid="build.test.classpath"/>
|
||||
<pathelement location="${maven.build.outputDir}"/>
|
||||
</classpath>
|
||||
</javac>
|
||||
<copy todir="${maven.build.testOutputDir}">
|
||||
<fileset dir="${maven.build.testResourceDir.0}"/>
|
||||
</copy>
|
||||
</target>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Run all tests -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="test"
|
||||
depends="compile-tests, junit-missing"
|
||||
unless="junit.skipped"
|
||||
description="Run the test cases">
|
||||
<mkdir dir="${maven.test.reports}"/>
|
||||
<junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
|
||||
<sysproperty key="basedir" value="."/>
|
||||
<formatter type="xml"/>
|
||||
<formatter type="plain" usefile="false"/>
|
||||
<classpath>
|
||||
<path refid="build.test.classpath"/>
|
||||
<pathelement location="${maven.build.outputDir}"/>
|
||||
<pathelement location="${maven.build.testOutputDir}"/>
|
||||
</classpath>
|
||||
<batchtest todir="${maven.test.reports}" unless="test">
|
||||
<fileset dir="${maven.build.testDir.0}">
|
||||
<include name="**/TestAllPackages.java"/>
|
||||
<exclude name="**/*Abstract*Test.java"/>
|
||||
</fileset>
|
||||
</batchtest>
|
||||
<batchtest todir="${maven.test.reports}" if="test">
|
||||
<fileset dir="${maven.build.testDir.0}">
|
||||
<include name="**/${test}.java"/>
|
||||
<exclude name="**/*Abstract*Test.java"/>
|
||||
</fileset>
|
||||
</batchtest>
|
||||
</junit>
|
||||
</target>
|
||||
|
||||
<target name="test-junit-present">
|
||||
<available classname="junit.framework.Test" property="junit.present"/>
|
||||
</target>
|
||||
|
||||
<target name="test-junit-status"
|
||||
depends="test-junit-present">
|
||||
<condition property="junit.missing">
|
||||
<and>
|
||||
<isfalse value="${junit.present}"/>
|
||||
<isfalse value="${maven.test.skip}"/>
|
||||
</and>
|
||||
</condition>
|
||||
<condition property="junit.skipped">
|
||||
<or>
|
||||
<isfalse value="${junit.present}"/>
|
||||
<istrue value="${maven.test.skip}"/>
|
||||
</or>
|
||||
</condition>
|
||||
</target>
|
||||
|
||||
<target name="junit-missing"
|
||||
depends="test-junit-status"
|
||||
if="junit.missing">
|
||||
<echo>=================================== WARNING ===================================</echo>
|
||||
<echo> JUnit is not present in your $ANT_HOME/lib directory. Tests not executed.</echo>
|
||||
<echo>===============================================================================</echo>
|
||||
</target>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Javadoc target -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="javadoc" description="Generates the Javadoc of the application">
|
||||
<javadoc sourcepath="${maven.build.srcDir.0}"
|
||||
packagenames="*"
|
||||
destdir="${maven.reporting.outputDirectory}/apidocs"
|
||||
access="protected"
|
||||
old="false"
|
||||
verbose="false"
|
||||
encoding="UTF-8"
|
||||
version="true"
|
||||
use="true"
|
||||
author="true"
|
||||
splitindex="false"
|
||||
nodeprecated="false"
|
||||
nodeprecatedlist="false"
|
||||
notree="false"
|
||||
noindex="false"
|
||||
nohelp="false"
|
||||
nonavbar="false"
|
||||
serialwarn="false"
|
||||
charset="ISO-8859-1"
|
||||
linksource="true"
|
||||
breakiterator="false">
|
||||
<link href="http://download.oracle.com/javase/1.5.0/docs/api/"/>
|
||||
<group title="User packages"/>
|
||||
<group title="Implementation packages"/>
|
||||
</javadoc>
|
||||
</target>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Package target -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="package" depends="compile,test" description="Package the application">
|
||||
<jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar"
|
||||
compress="true"
|
||||
index="false"
|
||||
manifest="src/conf/MANIFEST.MF"
|
||||
basedir="${maven.build.outputDir}"
|
||||
excludes="**/package.html"/>
|
||||
</target>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- A dummy target for the package named after the type it creates -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="jar" depends="package" description="Builds the jar for the application"/>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Download dependencies target -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="test-offline">
|
||||
<condition property="maven.mode.offline">
|
||||
<equals arg1="${maven.settings.offline}" arg2="true"/>
|
||||
</condition>
|
||||
</target>
|
||||
|
||||
<target name="get-deps"
|
||||
depends="test-offline"
|
||||
description="Download all dependencies"
|
||||
unless="maven.mode.offline">
|
||||
<mkdir dir="${maven.repo.local}"/>
|
||||
<mkdir dir="${maven.repo.local}/org/joda/joda-convert/1.2"/>
|
||||
<get src="http://repo.maven.apache.org/maven2/org/joda/joda-convert/1.2/joda-convert-1.2.jar"
|
||||
dest="${maven.repo.local}/org/joda/joda-convert/1.2/joda-convert-1.2.jar"
|
||||
usetimestamp="false"
|
||||
ignoreerrors="true"/>
|
||||
<mkdir dir="${maven.repo.local}/junit/junit/3.8.2"/>
|
||||
<get src="http://repo.maven.apache.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar"
|
||||
dest="${maven.repo.local}/junit/junit/3.8.2/junit-3.8.2.jar"
|
||||
usetimestamp="false"
|
||||
ignoreerrors="true"/>
|
||||
</target>
|
||||
|
||||
</project>
|
@ -1,267 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Ant build file (http://ant.apache.org/) for Ant 1.6.2 or above. -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- ===================== - DO NOT EDIT THIS FILE! - ===================== -->
|
||||
<!-- ====================================================================== -->
|
||||
<!-- -->
|
||||
<!-- Any modifications will be overwritten. -->
|
||||
<!-- -->
|
||||
<!-- Generated by Maven Ant Plugin on 1/25/14 5:06 AM -->
|
||||
<!-- See: http://maven.apache.org/plugins/maven-ant-plugin/ -->
|
||||
<!-- -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<project name="joda-time-from-maven" default="package" basedir=".">
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Build environment properties -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<property file="${user.home}/.m2/maven.properties"/>
|
||||
<property file="maven-build.properties"/>
|
||||
|
||||
<property name="maven.build.finalName" value="joda-time-2.3"/>
|
||||
<property name="maven.build.dir" value="target"/>
|
||||
<property name="maven.build.outputDir" value="${maven.build.dir}/classes"/>
|
||||
<property name="maven.build.srcDir.0" value="src/main/java"/>
|
||||
<property name="maven.build.resourceDir.0" value="."/>
|
||||
<property name="maven.build.resourceDir.1" value="src/main/java"/>
|
||||
<property name="maven.build.testOutputDir" value="${maven.build.dir}/test-classes"/>
|
||||
<property name="maven.build.testDir.0" value="src/test/java"/>
|
||||
<property name="maven.build.testResourceDir.0" value="src/test/resources"/>
|
||||
<property name="maven.test.reports" value="${maven.build.dir}/test-reports"/>
|
||||
<property name="maven.reporting.outputDirectory" value="${maven.build.dir}/site"/>
|
||||
|
||||
<property name="maven.repo.local" value="${user.home}/.m2/repository"/>
|
||||
<property name="maven.settings.offline" value="false"/>
|
||||
<property name="maven.settings.interactiveMode" value="true"/>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Defining classpaths -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<path id="build.classpath">
|
||||
<pathelement location="${maven.repo.local}/org/joda/joda-convert/1.2/joda-convert-1.2.jar"/>
|
||||
</path>
|
||||
<path id="build.test.classpath">
|
||||
<pathelement location="${maven.repo.local}/org/joda/joda-convert/1.2/joda-convert-1.2.jar"/>
|
||||
<pathelement location="${maven.repo.local}/junit/junit/3.8.2/junit-3.8.2.jar"/>
|
||||
</path>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Cleaning up target -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="clean" description="Clean the output directory">
|
||||
<delete dir="${maven.build.dir}"/>
|
||||
</target>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Compilation target -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="compile" depends="get-deps" description="Compile the code">
|
||||
<mkdir dir="${maven.build.outputDir}"/>
|
||||
<javac destdir="${maven.build.outputDir}"
|
||||
nowarn="false"
|
||||
debug="true"
|
||||
optimize="true"
|
||||
deprecation="false"
|
||||
target="1.5"
|
||||
verbose="true"
|
||||
fork="true"
|
||||
source="1.5">
|
||||
<src>
|
||||
<pathelement location="${maven.build.srcDir.0}"/>
|
||||
</src>
|
||||
<classpath refid="build.classpath"/>
|
||||
</javac>
|
||||
<mkdir dir="${maven.build.outputDir}/META-INF"/>
|
||||
<copy todir="${maven.build.outputDir}/META-INF">
|
||||
<fileset dir="${maven.build.resourceDir.0}">
|
||||
<include name="LICENSE.txt"/>
|
||||
<include name="NOTICE.txt"/>
|
||||
</fileset>
|
||||
</copy>
|
||||
<copy todir="${maven.build.outputDir}">
|
||||
<fileset dir="${maven.build.resourceDir.1}">
|
||||
<include name="**/*.properties"/>
|
||||
</fileset>
|
||||
</copy>
|
||||
</target>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Test-compilation target -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="compile-tests"
|
||||
depends="compile"
|
||||
description="Compile the test code"
|
||||
unless="maven.test.skip">
|
||||
<mkdir dir="${maven.build.testOutputDir}"/>
|
||||
<javac destdir="${maven.build.testOutputDir}"
|
||||
nowarn="false"
|
||||
debug="true"
|
||||
optimize="true"
|
||||
deprecation="false"
|
||||
target="1.5"
|
||||
verbose="true"
|
||||
fork="true"
|
||||
source="1.5">
|
||||
<src>
|
||||
<pathelement location="${maven.build.testDir.0}"/>
|
||||
</src>
|
||||
<classpath>
|
||||
<path refid="build.test.classpath"/>
|
||||
<pathelement location="${maven.build.outputDir}"/>
|
||||
</classpath>
|
||||
</javac>
|
||||
<copy todir="${maven.build.testOutputDir}">
|
||||
<fileset dir="${maven.build.testResourceDir.0}"/>
|
||||
</copy>
|
||||
</target>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Run all tests -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="test"
|
||||
depends="compile-tests, junit-missing"
|
||||
unless="junit.skipped"
|
||||
description="Run the test cases">
|
||||
<mkdir dir="${maven.test.reports}"/>
|
||||
<junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
|
||||
<sysproperty key="basedir" value="."/>
|
||||
<formatter type="xml"/>
|
||||
<formatter type="plain" usefile="false"/>
|
||||
<classpath>
|
||||
<path refid="build.test.classpath"/>
|
||||
<pathelement location="${maven.build.outputDir}"/>
|
||||
<pathelement location="${maven.build.testOutputDir}"/>
|
||||
</classpath>
|
||||
<batchtest todir="${maven.test.reports}" unless="test">
|
||||
<fileset dir="${maven.build.testDir.0}">
|
||||
<include name="**/TestAllPackages.java"/>
|
||||
<exclude name="**/*Abstract*Test.java"/>
|
||||
</fileset>
|
||||
</batchtest>
|
||||
<batchtest todir="${maven.test.reports}" if="test">
|
||||
<fileset dir="${maven.build.testDir.0}">
|
||||
<include name="**/${test}.java"/>
|
||||
<exclude name="**/*Abstract*Test.java"/>
|
||||
</fileset>
|
||||
</batchtest>
|
||||
</junit>
|
||||
</target>
|
||||
|
||||
<target name="test-junit-present">
|
||||
<available classname="junit.framework.Test" property="junit.present"/>
|
||||
</target>
|
||||
|
||||
<target name="test-junit-status"
|
||||
depends="test-junit-present">
|
||||
<condition property="junit.missing">
|
||||
<and>
|
||||
<isfalse value="${junit.present}"/>
|
||||
<isfalse value="${maven.test.skip}"/>
|
||||
</and>
|
||||
</condition>
|
||||
<condition property="junit.skipped">
|
||||
<or>
|
||||
<isfalse value="${junit.present}"/>
|
||||
<istrue value="${maven.test.skip}"/>
|
||||
</or>
|
||||
</condition>
|
||||
</target>
|
||||
|
||||
<target name="junit-missing"
|
||||
depends="test-junit-status"
|
||||
if="junit.missing">
|
||||
<echo>=================================== WARNING ===================================</echo>
|
||||
<echo> JUnit is not present in your $ANT_HOME/lib directory. Tests not executed.</echo>
|
||||
<echo>===============================================================================</echo>
|
||||
</target>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Javadoc target -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="javadoc" description="Generates the Javadoc of the application">
|
||||
<javadoc sourcepath="${maven.build.srcDir.0}"
|
||||
packagenames="*"
|
||||
destdir="${maven.reporting.outputDirectory}/apidocs"
|
||||
access="protected"
|
||||
old="false"
|
||||
verbose="false"
|
||||
encoding="UTF-8"
|
||||
version="true"
|
||||
use="true"
|
||||
author="true"
|
||||
splitindex="false"
|
||||
nodeprecated="false"
|
||||
nodeprecatedlist="false"
|
||||
notree="false"
|
||||
noindex="false"
|
||||
nohelp="false"
|
||||
nonavbar="false"
|
||||
serialwarn="false"
|
||||
charset="ISO-8859-1"
|
||||
linksource="true"
|
||||
breakiterator="false">
|
||||
<link href="http://download.oracle.com/javase/1.5.0/docs/api/"/>
|
||||
<group title="User packages"/>
|
||||
<group title="Implementation packages"/>
|
||||
</javadoc>
|
||||
</target>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Package target -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="package" depends="compile,test" description="Package the application">
|
||||
<jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar"
|
||||
compress="true"
|
||||
index="false"
|
||||
manifest="src/conf/MANIFEST.MF"
|
||||
basedir="${maven.build.outputDir}"
|
||||
excludes="**/package.html"/>
|
||||
</target>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- A dummy target for the package named after the type it creates -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="jar" depends="package" description="Builds the jar for the application"/>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Download dependencies target -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="test-offline">
|
||||
<condition property="maven.mode.offline">
|
||||
<equals arg1="${maven.settings.offline}" arg2="true"/>
|
||||
</condition>
|
||||
</target>
|
||||
|
||||
<target name="get-deps"
|
||||
depends="test-offline"
|
||||
description="Download all dependencies"
|
||||
unless="maven.mode.offline">
|
||||
<mkdir dir="${maven.repo.local}"/>
|
||||
<mkdir dir="${maven.repo.local}/org/joda/joda-convert/1.2"/>
|
||||
<get src="http://repo.maven.apache.org/maven2/org/joda/joda-convert/1.2/joda-convert-1.2.jar"
|
||||
dest="${maven.repo.local}/org/joda/joda-convert/1.2/joda-convert-1.2.jar"
|
||||
usetimestamp="false"
|
||||
ignoreerrors="true"/>
|
||||
<mkdir dir="${maven.repo.local}/junit/junit/3.8.2"/>
|
||||
<get src="http://repo.maven.apache.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar"
|
||||
dest="${maven.repo.local}/junit/junit/3.8.2/junit-3.8.2.jar"
|
||||
usetimestamp="false"
|
||||
ignoreerrors="true"/>
|
||||
</target>
|
||||
|
||||
</project>
|
@ -1,50 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
JAVA_PKG_IUSE="doc examples source test"
|
||||
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
MY_P="${P}-src"
|
||||
|
||||
DESCRIPTION="A quality open-source replacement for the Java Date and Time classes"
|
||||
HOMEPAGE="http://joda-time.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="
|
||||
>=virtual/jdk-1.4
|
||||
test? ( dev-java/ant-junit )"
|
||||
RDEPEND=">=virtual/jre-1.4"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
rm -v *.jar || die
|
||||
# https://sourceforge.net/tracker/index.php?func=detail&aid=1855430&group_id=97367&atid=617889
|
||||
epatch "${FILESDIR}/1.5.1-ecj.patch"
|
||||
}
|
||||
|
||||
# chokes on static inner class making instance of non-static inner class
|
||||
EANT_FILTER_COMPILER="jikes"
|
||||
# little trick so it doesn't try to download junit
|
||||
EANT_EXTRA_ARGS="-Djunit.ant=1 -Djunit.present=1"
|
||||
|
||||
src_test() {
|
||||
ANT_TASKS="ant-junit" eant -Djunit.jar="$(java-pkg_getjars junit)" test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_newjar build/${P}.jar
|
||||
|
||||
dodoc LICENSE.txt NOTICE.txt RELEASE-NOTES.txt ToDo.txt || die
|
||||
use doc && java-pkg_dojavadoc build/docs
|
||||
use examples && java-pkg_doexamples src/example
|
||||
use source && java-pkg_dosrc src/java/org
|
||||
}
|
@ -1,56 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
|
||||
JAVA_PKG_IUSE="doc examples source test"
|
||||
JAVA_ANT_REWRITE_CLASSPATH="true"
|
||||
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="A quality open-source replacement for the Java Date and Time classes"
|
||||
HOMEPAGE="http://joda-time.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}-dist.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
|
||||
|
||||
DEPEND=">=virtual/jdk-1.5
|
||||
dev-java/joda-convert:0
|
||||
test? (
|
||||
dev-java/junit:0
|
||||
dev-java/ant-junit:0
|
||||
)"
|
||||
RDEPEND=">=virtual/jre-1.5"
|
||||
|
||||
java_prepare() {
|
||||
rm -v *.jar || die "Failed to remove bundled jars."
|
||||
cp "${FILESDIR}"/${P}-build.xml "${S}"/build.xml || die "Failed to copy build file."
|
||||
|
||||
mkdir -p "${S}"/target/classes || die "Failed to create target classes directory."
|
||||
cp -Rv "${S}"/src/tz-data/* "${S}"/target/classes/ || die "Failed to copy timezone data."
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
EANT_EXTRA_ARGS="-Dgentoo.classpath=$(java-pkg_getjar --build-only joda-convert joda-convert.jar)"
|
||||
|
||||
java-pkg-2_src_compile
|
||||
}
|
||||
|
||||
src_test() {
|
||||
EANT_EXTRA_ARGS="-Dgentoo.classpath=$(java-pkg_getjar --build-only joda-convert joda-convert.jar):$(java-pkg_getjar --build-only junit junit.jar)"
|
||||
|
||||
java-pkg-2_src_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_newjar target/${P}.jar
|
||||
|
||||
dodoc NOTICE.txt RELEASE-NOTES.txt
|
||||
|
||||
use doc && java-pkg_dojavadoc target/site/apidocs
|
||||
use examples && java-pkg_doexamples src/example
|
||||
use source && java-pkg_dosrc src/main/java/*
|
||||
}
|
@ -1,55 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
JAVA_PKG_IUSE="doc examples source test"
|
||||
JAVA_ANT_REWRITE_CLASSPATH="true"
|
||||
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="A quality open-source replacement for the Java Date and Time classes"
|
||||
HOMEPAGE="http://www.joda.org/joda-time/ https://github.com/JodaOrg/joda-time/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}-dist.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
|
||||
|
||||
DEPEND=">=virtual/jdk-1.5
|
||||
dev-java/joda-convert:0
|
||||
test? (
|
||||
dev-java/junit:0
|
||||
dev-java/ant-junit:0
|
||||
)"
|
||||
RDEPEND=">=virtual/jre-1.5"
|
||||
|
||||
java_prepare() {
|
||||
rm -v *.jar || die "Failed to remove bundled jars."
|
||||
cp "${FILESDIR}"/${P}-build.xml "${S}"/build.xml || die "Failed to copy build file."
|
||||
|
||||
mkdir -p "${S}"/target/classes || die "Failed to create target classes directory."
|
||||
cp -Rv "${S}"/src/tz-data/* "${S}"/target/classes/ || die "Failed to copy timezone data."
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
EANT_EXTRA_ARGS="-Dgentoo.classpath=$(java-pkg_getjar --build-only joda-convert joda-convert.jar)"
|
||||
|
||||
java-pkg-2_src_compile
|
||||
}
|
||||
|
||||
src_test() {
|
||||
EANT_EXTRA_ARGS="-Dgentoo.classpath=$(java-pkg_getjar --build-only joda-convert joda-convert.jar):$(java-pkg_getjar --build-only junit junit.jar)"
|
||||
|
||||
java-pkg-2_src_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_newjar target/${P}.jar
|
||||
|
||||
dodoc NOTICE.txt RELEASE-NOTES.txt
|
||||
|
||||
use doc && java-pkg_dojavadoc target/site/apidocs
|
||||
use examples && java-pkg_doexamples src/example
|
||||
use source && java-pkg_dosrc src/main/java/*
|
||||
}
|
@ -1,20 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>lloyd@randombit.net</email>
|
||||
<name>Jack Lloyd </name>
|
||||
<description>Ebuild contributor and botan author</description>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>crypto@gentoo.org</email>
|
||||
<name>Crypto</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="boost">use <pkg>dev-libs/boost</pkg></flag>
|
||||
</use>
|
||||
<maintainer type="person">
|
||||
<email>lloyd@randombit.net</email>
|
||||
<name>Jack Lloyd </name>
|
||||
<description>Ebuild contributor and botan author</description>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>crypto@gentoo.org</email>
|
||||
<name>Crypto</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers Project</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="boost">use <pkg>dev-libs/boost</pkg></flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
|
@ -1,84 +0,0 @@
|
||||
# ChangeLog for dev-libs/clearsilver
|
||||
# Copyright 1999-2016 Gentoo Foundation; Distributed under the GPL v2
|
||||
# (auto-generated from git log)
|
||||
|
||||
*clearsilver-0.10.5-r2 (09 Aug 2015)
|
||||
|
||||
09 Aug 2015; Robin H. Johnson <robbat2@gentoo.org>
|
||||
+clearsilver-0.10.5-r2.ebuild, +files/clearsilver-0.10.5-libdir.patch,
|
||||
+files/clearsilver-0.10.5-libz.patch,
|
||||
+files/clearsilver-0.10.5-perl_installdir.patch, +metadata.xml:
|
||||
proj/gentoo: Initial commit
|
||||
|
||||
This commit represents a new era for Gentoo:
|
||||
Storing the gentoo-x86 tree in Git, as converted from CVS.
|
||||
|
||||
This commit is the start of the NEW history.
|
||||
Any historical data is intended to be grafted onto this point.
|
||||
|
||||
Creation process:
|
||||
1. Take final CVS checkout snapshot
|
||||
2. Remove ALL ChangeLog* files
|
||||
3. Transform all Manifests to thin
|
||||
4. Remove empty Manifests
|
||||
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
|
||||
5.1. Do not touch files with -kb/-ko keyword flags.
|
||||
|
||||
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
|
||||
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration
|
||||
tests
|
||||
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this
|
||||
project
|
||||
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo
|
||||
developer, wrote Git features for the migration
|
||||
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve
|
||||
cvs2svn
|
||||
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
|
||||
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014
|
||||
work in migration
|
||||
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
|
||||
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on
|
||||
the bikeshed
|
||||
|
||||
24 Aug 2015; Justin Lecher <jlec@gentoo.org> metadata.xml:
|
||||
Use https by default
|
||||
|
||||
Convert all URLs for sites supporting encrypted connections from http to
|
||||
https
|
||||
|
||||
Signed-off-by: Justin Lecher <jlec@gentoo.org>
|
||||
|
||||
24 Aug 2015; Mike Gilbert <floppym@gentoo.org> metadata.xml:
|
||||
Revert DOCTYPE SYSTEM https changes in metadata.xml
|
||||
|
||||
repoman does not yet accept the https version.
|
||||
This partially reverts eaaface92ee81f30a6ac66fe7acbcc42c00dc450.
|
||||
|
||||
Bug: https://bugs.gentoo.org/552720
|
||||
|
||||
*clearsilver-0.10.5-r3 (01 Oct 2015)
|
||||
|
||||
01 Oct 2015; Patrice Clement <monsieurp@gentoo.org>
|
||||
+clearsilver-0.10.5-r3.ebuild,
|
||||
+files/clearsilver-0.10.5-disable-java-tests.patch:
|
||||
Add Java support. Fixes bug 251091.
|
||||
|
||||
Package-Manager: portage-2.2.18
|
||||
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
|
||||
|
||||
01 Oct 2015; Patrice Clement <monsieurp@gentoo.org>
|
||||
clearsilver-0.10.5-r3.ebuild:
|
||||
Add Java support. Fixes bug 251091.
|
||||
|
||||
Package-Manager: portage-2.2.18
|
||||
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
|
||||
|
||||
24 Jan 2016; Michał Górny <mgorny@gentoo.org> metadata.xml:
|
||||
Replace all herds with appropriate projects (GLEP 67)
|
||||
|
||||
Replace all uses of herd with appropriate project maintainers, or no
|
||||
maintainers in case of herds requested to be disbanded.
|
||||
|
||||
24 Jan 2016; Michał Górny <mgorny@gentoo.org> metadata.xml:
|
||||
Set appropriate maintainer types in metadata.xml (GLEP 67)
|
||||
|
@ -1,198 +0,0 @@
|
||||
# ChangeLog for dev-libs/clearsilver
|
||||
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/clearsilver/ChangeLog,v 1.47 2014/11/17 23:26:59 dilfridge Exp $
|
||||
|
||||
17 Nov 2014; Andreas K. Huettel <dilfridge@gentoo.org>
|
||||
clearsilver-0.10.5-r2.ebuild:
|
||||
Replace fixlocalpod with perl_delete_localpod
|
||||
|
||||
*clearsilver-0.10.5-r2 (25 Oct 2014)
|
||||
|
||||
25 Oct 2014; Andreas K. Huettel <dilfridge@gentoo.org>
|
||||
+clearsilver-0.10.5-r2.ebuild, -clearsilver-0.10.5-r1.ebuild:
|
||||
EAPI bump; add slot operator on Perl dependency
|
||||
|
||||
10 Aug 2014; Sergei Trofimovich <slyfox@gentoo.org>
|
||||
clearsilver-0.10.5-r1.ebuild:
|
||||
QA: drop trailing '.' from DESCRIPTION
|
||||
|
||||
02 Dec 2012; Ulrich Müller <ulm@gentoo.org> clearsilver-0.10.5-r1.ebuild:
|
||||
Update LICENSE, this is identical with the Apache-1.1 license, bug 444848.
|
||||
|
||||
25 Apr 2012; Justin Lecher <jlec@gentoo.org> clearsilver-0.10.5-r1.ebuild:
|
||||
Drop unnessecary die
|
||||
|
||||
16 Mar 2012; Mike Gilbert <floppym@gentoo.org> clearsilver-0.10.5-r1.ebuild:
|
||||
Python-related improvements by Arfrever. Bug 312179.
|
||||
|
||||
26 Mar 2011; Torsten Veller <tove@gentoo.org> -clearsilver-0.10.5.ebuild:
|
||||
Cleanup
|
||||
|
||||
26 Mar 2011; Christian Faulhammer <fauli@gentoo.org>
|
||||
clearsilver-0.10.5-r1.ebuild:
|
||||
stable x86, bug 295895
|
||||
|
||||
25 Mar 2011; Kacper Kowalik <xarthisius@gentoo.org>
|
||||
clearsilver-0.10.5-r1.ebuild:
|
||||
ppc/ppc64 stable wrt #295895
|
||||
|
||||
11 Mar 2011; Markos Chandras <hwoarang@gentoo.org>
|
||||
clearsilver-0.10.5-r1.ebuild:
|
||||
Stable on amd64 wrt bug #295895
|
||||
|
||||
*clearsilver-0.10.5-r1 (09 Mar 2011)
|
||||
|
||||
09 Mar 2011; Torsten Veller <tove@gentoo.org> +clearsilver-0.10.5-r1.ebuild,
|
||||
+files/clearsilver-0.10.5-perl_installdir.patch:
|
||||
Move perl modules to vendor_dir (#295895)
|
||||
|
||||
28 May 2008; Christian Heim <phreak@gentoo.org> metadata.xml:
|
||||
Removing Julien Allanos (dju) from metadata.xml (as per #87168).
|
||||
|
||||
25 Jan 2008; Doug Klima <cardoe@gentoo.org> clearsilver-0.10.5.ebuild:
|
||||
amd64 stable wrt bug #203584
|
||||
|
||||
29 Dec 2007; Brent Baude <ranger@gentoo.org> clearsilver-0.10.5.ebuild:
|
||||
Marking clearsilver-0.10.5 ppc64 for bug 203584
|
||||
|
||||
28 Dec 2007; Markus Meier <maekke@gentoo.org> clearsilver-0.10.5.ebuild:
|
||||
x86 stable wrt bug #203584 and quotes
|
||||
|
||||
28 Dec 2007; nixnut <nixnut@gentoo.org> clearsilver-0.10.5.ebuild:
|
||||
Stable on ppc wrt bug 203584
|
||||
|
||||
*clearsilver-0.10.5 (02 Nov 2007)
|
||||
|
||||
02 Nov 2007; Julien Allanos <dju@gentoo.org>
|
||||
+files/clearsilver-0.10.5-libdir.patch,
|
||||
+files/clearsilver-0.10.5-libz.patch, +clearsilver-0.10.5.ebuild:
|
||||
Version bump to 0.10.5, fixing bug #191601.
|
||||
Added user patch to fix bug #196422.
|
||||
|
||||
15 May 2007; Steve Dibb <beandog@gentoo.org> clearsilver-0.10.1.ebuild:
|
||||
amd64 stable
|
||||
|
||||
02 Mar 2007; Peter Weller <welp@gentoo.org> clearsilver-0.10.4.ebuild:
|
||||
Fixed on g/fbsd wrt bug #169055
|
||||
|
||||
14 Feb 2007; Simon Stelling <blubb@gentoo.org>
|
||||
+files/clearsilver-0.10.4-libdir.patch, clearsilver-0.10.4.ebuild:
|
||||
multilib-strict fixes; bug 164447
|
||||
|
||||
13 Feb 2007; Markus Rothe <corsair@gentoo.org> clearsilver-0.10.4.ebuild:
|
||||
Added ~ppc64; bug #166675
|
||||
|
||||
*clearsilver-0.10.4 (14 Dec 2006)
|
||||
|
||||
14 Dec 2006; <dju@gentoo.org> -clearsilver-0.10.2.ebuild,
|
||||
+clearsilver-0.10.4.ebuild:
|
||||
Version bump to 0.10.4, removing 0.10.2 ebuild.
|
||||
|
||||
*clearsilver-0.10.3 (27 Sep 2006)
|
||||
|
||||
27 Sep 2006; Julien Allanos <dju@gentoo.org>
|
||||
+files/0.10.3-PyObject_DEL.patch, +files/0.10.3-missing-csr.patch,
|
||||
+files/0.10.3-static.cgi.patch, +clearsilver-0.10.3.ebuild:
|
||||
Version bump to 0.10.3. Fixed bugs #144580, #146026 and #148863.
|
||||
|
||||
26 Jun 2006; Javier Villavicencio <the_paya@gentoo.org>
|
||||
clearsilver-0.10.2.ebuild:
|
||||
Add ~x86-fbsd keyword.
|
||||
|
||||
*clearsilver-0.10.2 (05 Feb 2006)
|
||||
|
||||
05 Feb 2006; Julien Allanos <dju@gentoo.org>
|
||||
-files/clearsilver-0.9.14-fPIC.patch,
|
||||
-files/clearsilver-0.9.14-python24.patch, -clearsilver-0.9.14-r1.ebuild,
|
||||
+clearsilver-0.10.2.ebuild:
|
||||
Version bump to 0.10.2, closes bug #119159. Removed old ebuild.
|
||||
|
||||
12 Jan 2006; Julien Allanos <dju@gentoo.org> metadata.xml:
|
||||
Removed upstream from metadata.xml.
|
||||
|
||||
12 Jan 2006; Julien Allanos <dju@gentoo.org>
|
||||
-files/clearsilver-0.9.7-python24.patch, -files/0.9.7-python.patch,
|
||||
-clearsilver-0.9.7.ebuild:
|
||||
Removing old ebuild.
|
||||
|
||||
11 Jan 2006; Tobias Scherbaum <dertobi123@gentoo.org>
|
||||
clearsilver-0.10.1.ebuild:
|
||||
ppc stable, bug #118302
|
||||
|
||||
10 Jan 2006; Mark Loeser <halcy0n@gentoo.org> clearsilver-0.10.1.ebuild:
|
||||
Stable on x86; bug #118302
|
||||
|
||||
28 Nov 2005; <mcumming@gentoo.org> clearsilver-0.10.1.ebuild,
|
||||
clearsilver-0.9.14-r1.ebuild, clearsilver-0.9.7.ebuild:
|
||||
Switched from perl-module to perl-app eclass
|
||||
|
||||
03 Sep 2005; Michael Hanselmann <hansmi@gentoo.org>
|
||||
clearsilver-0.9.14-r1.ebuild:
|
||||
Stable on ppc.
|
||||
|
||||
30 Aug 2005; Julien Allanos <dju@gentoo.org> clearsilver-0.9.7.ebuild,
|
||||
clearsilver-0.9.14-r1.ebuild, clearsilver-0.10.1.ebuild:
|
||||
Added fix for perllocal.pod, closes bug #104278.
|
||||
|
||||
29 Aug 2005; Julien Allanos <dju@gentoo.org> clearsilver-0.9.7.ebuild,
|
||||
-clearsilver-0.9.14.ebuild, clearsilver-0.9.14-r1.ebuild:
|
||||
Removed 0.9.14. Marked 0.9.14-r1 stable for x86.
|
||||
Removed RESTRICT="no mirror" for 0.9.7 and 0.9.14-r1.
|
||||
|
||||
*clearsilver-0.10.1 (29 Aug 2005)
|
||||
|
||||
29 Aug 2005; Julien Allanos <dju@gentoo.org>
|
||||
+files/clearsilver-0.10.1-fPIC.patch, +files/configure-python24.patch,
|
||||
metadata.xml, +clearsilver-0.10.1.ebuild:
|
||||
Bumping clearsilver-0.10.1. Removed RESTRICT="nomirror" for this release,
|
||||
as permitted by the licence. Added upstream contact to metadata.xml.
|
||||
|
||||
*clearsilver-0.9.14-r1 (04 Aug 2005)
|
||||
|
||||
04 Aug 2005; Herbie Hopkins <herbs@gentoo.org>
|
||||
+files/clearsilver-0.9.14-fPIC.patch,
|
||||
files/clearsilver-0.9.14-python24.patch, +clearsilver-0.9.14-r1.ebuild:
|
||||
Add patch to compile shared objects with -fPIC, bug #98362. Altered python24
|
||||
patch to not hardcode lib and so be multilib-strict safe.
|
||||
|
||||
02 Aug 2005; Renat Lumpau <rl03@gentoo.org>
|
||||
+files/clearsilver-0.9.7-python24.patch,
|
||||
+files/clearsilver-0.9.14-python24.patch, clearsilver-0.9.7.ebuild,
|
||||
clearsilver-0.9.14.ebuild:
|
||||
Fixes bug #98588, thanks to pythonhead
|
||||
|
||||
*clearsilver-0.9.14 (04 Jul 2005)
|
||||
|
||||
04 Jul 2005; Julien Allanos <dju@gentoo.org> metadata.xml, +clearsilver-0.9.14.ebuild:
|
||||
Version bump, closing bug #71302. Disable apache 1 module and java support.
|
||||
Cleaned up the ebuild and fixed the neo_cgi.so installation directory.
|
||||
Assigned myself as the maintainer.
|
||||
|
||||
11 Apr 2005; Christian Parpart <trapni@gentoo.org>
|
||||
clearsilver-0.9.7.ebuild:
|
||||
adding ~amd64 keyword
|
||||
|
||||
08 Sep 2004; Renat Lumpau <rl03@gentoo.org> metadata.xml:
|
||||
Fixed herd name
|
||||
|
||||
11 Jun 2004; Stuart Herbert <stuart@gentoo.org> clearsilver-0.9.7.ebuild:
|
||||
Disable csharp support (bug #52195)
|
||||
Disable ruby support (bug #53659)
|
||||
|
||||
26 May 2004; Stuart Herbert <stuart@gentoo.org> clearsilver-0.9.7.ebuild:
|
||||
Added ~sparc keyword
|
||||
|
||||
05 May 2004; Daniel Black <dragonheart@gentoo.org> clearsilver-0.9.7.ebuild:
|
||||
QA Fix - inherit before DESCRIPTION
|
||||
|
||||
29 Apr 2004; David Holm <dholm@gentoo.org> clearsilver-0.9.7.ebuild:
|
||||
Added to ~ppc.
|
||||
|
||||
28 Apr 2004; Stuart Herbert <stuart@gentoo.org> clearsilver-0.9.7.ebuild:
|
||||
Fixed the header
|
||||
|
||||
*clearsilver-0.9.7 (25 Apr 2004)
|
||||
|
||||
25 Apr 2004; Stuart Herbert <stuart@gentoo.org> clearsilver-0.9.7.ebuild,
|
||||
metadata.xml:
|
||||
Initial import; thanks to dju` <dju@elegiac.net> for the ebuild; see bug #48818
|
@ -1,10 +0,0 @@
|
||||
AUX clearsilver-0.10.5-disable-java-tests.patch 324 SHA256 91dbba7dc3c93c5150a7779aea356e6f6259e34655bbe405e8a0a05a88d0e9a0 SHA512 5041b6bbe56335953d8ddf58548c7fb0f34fda22cfd6da916d094969d103575bd71e8ea1ef983eec01b2b778b90031baeb19ccfed8b9c733de554696b51d8ef3 WHIRLPOOL 908f162b87dd1797cd29a9bd0a59d3e3b6001ce39fa0fb4729ae333b68ab7c7204084138fabe9f778a0a42fe6eb4b7b6e52e66279ee5840051b092a6a9f4ec3f
|
||||
AUX clearsilver-0.10.5-libdir.patch 693 SHA256 ec5e340eb9fdb94c8e05f5bdc79bc954c0560ed711dd438e0d6f863e1ab3abd2 SHA512 20bade33588affe0647de973179d932edd29452c463cc60c28bbeed243d8f6ab1223220f23ec7d98e1106d42263cf51ff0f8f389ed1e60314762d6552b822195 WHIRLPOOL 4d76fdbeccc85a575e00ccec4cc95552027b8d058315b36bc4495340ac8dbce574207ae89605245effbca633c57b185ba8bc07fb37a707f10c13f474fd0cc2b7
|
||||
AUX clearsilver-0.10.5-libz.patch 276 SHA256 51e769a619a23aff2b2a26e17954eba6cd3101f581b1807465226f55e0f42d02 SHA512 0c5ab50bd55f6a4e5d65f01e170ab17d268c3fde5615c83aef967b70973c844ad91770f30e8ec8382bed4d177685774d4a7d44c274e0e83db605e4a7148abf14 WHIRLPOOL bb4253569fa161eea75501d4a59f06b59c1c0fafb22b511824f913af8fb07adc2cf60078c6954e9ae67ac982b822676bca0b4ad6e9323e01e4bc7f3bac011b7c
|
||||
AUX clearsilver-0.10.5-perl_installdir.patch 857 SHA256 d08fc906d7cec21419166b2de962e1fc0485445552d03fc16024125094285212 SHA512 5e31edddf1f8c845bdbc3e313230825c1ee680bb65a72fe1eed21d3335c6c0bdb4a3c34342562adc1978cb8cf245e738c6a42077fe3136b45ac53191cc65da28 WHIRLPOOL e52d76e2efef619cd68f9dd646f51f86f5f8202f33d3a1d602a05c95eeb44cc4505be8ad42e96e61c682412c71f9d5557a71bebba35b001c2a07d8abac057152
|
||||
DIST clearsilver-0.10.5.tar.gz 439190 SHA256 1e9da038deafddd3d0c1c510626c28be5a0f4f17b9091d577fd30e7c5ba88680 SHA512 05a3c2140d462b8120fa41f74c09ca9246184259b6bdf147581e23e4441f700b9737f82145d8ff96996d93e37bd6a660c68f58f27370c903777a914235ea53b9 WHIRLPOOL a1ec3c88d46d4ab61f3540f62a5461679353102dbf4a0837b369a6a4d769c7f7a9934662575f75f2cf7b29aa7b9581d0dbcea6847548fae71f8998eb612146f2
|
||||
EBUILD clearsilver-0.10.5-r2.ebuild 1627 SHA256 1805421aa6ea1b13591d2c1db1ed9313e4cb312e75f2a54caf9fc26df1ae40e6 SHA512 aac13a02911cda909efacc32355af581b77a443e3fe31eac377d0ab1358249daccca07f29396cd56f24f1264c65467b603b76cfb81f8b3bae08d19bce3e5d9e2 WHIRLPOOL 549d29554ff1f3815c0bc6be87b23d708a1ba079976299df58c50b8683666f07b4c97433939b60f46515708ae793176791c23051598e908b8b9d7ebd70e6f158
|
||||
EBUILD clearsilver-0.10.5-r3.ebuild 2066 SHA256 b13480f990f15681d7e2c527d349e09be5987fde0097f05966f956cfde9ccb86 SHA512 8091b13fa7a03d11b763d0fe1f05b0f3acc73e6854d158f026d363298ce72131b9e708f35f0d00a5458c8b27732983e01d10801b6d3e6aa391a5251f3dc51bca WHIRLPOOL bba8658b67b538bf548e1cce8dac4cd02f8bd309225b99aa7bd3a646bacb480163eeb166382acdfdbef878759c2bc5f3658438451f0544bad21ff69e98ea5d51
|
||||
MISC ChangeLog 3103 SHA256 d7f2c2db1264e86516a6b48dd3a3960c5868c8e8dbdf7e61f1003723f4952c54 SHA512 3694eebb35626fbc05b3e40da5242e315ccfa572a214f1d90d1bb7169576d6b3cf7f21d7691e0ab67157f443715fa25e94b0ec6bdc9006e78510e64e0abecf19 WHIRLPOOL d3f90638c3e6d51970f0b6cae0772e2ac57d3fbfaa8f01bca35f8a62af6e3928681aab048c380309dd3d0d1e090de84d8824bfc9e7d7ec814854e7a21cbce790
|
||||
MISC ChangeLog-2015 7278 SHA256 46dbddc7236fb031adb4bd8e5cd316168296be4ab5c6dffa4570cf177ed1dcf7 SHA512 9d9b96e6b01219bea5020aab1a4390bff6fd167b74734ce7eddc86c0244a78d12bef02ce373ec96c50d30d825436b375c68f4feb9447169fece8a496e917d685 WHIRLPOOL 103e9fbce03ed76c0e3f9dcdc0f37c7e0e048c8c6b12eb6645a6b782ef344bc34ec9a89f3420cd7fa794c4a2b273aadc3f5693110dc7df614019ddd6d734e25c
|
||||
MISC metadata.xml 250 SHA256 d9fcac0092614f226b371c1819fe3a264758bfd9fedc2874c35a7b3dd6d77291 SHA512 8a7934e6db1aa1e0aba026a0438fb291819be69c134d54bb3af0638facc3e0a47bc30557c944bfaf5adbdd1dbdcbc96dec88d69ab809b1758e5701ff38fc6282 WHIRLPOOL 113cbaecb7ee19172633b0ee77ecfa10f6742848fd0f5f0797b95865f291e063ce3916719af48a81a72adfdaf40a4b18815e2434f0de91e2baa63822951470f0
|
@ -1,76 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
# Please note: apache, java, mono and ruby support disabled for now.
|
||||
# Fill a bug if you need it.
|
||||
#
|
||||
# dju@gentoo.org, 4th July 2005
|
||||
|
||||
EAPI=5
|
||||
GENTOO_DEPEND_ON_PERL="no"
|
||||
PYTHON_DEPEND="python? 2"
|
||||
|
||||
inherit autotools eutils multilib perl-app python
|
||||
|
||||
DESCRIPTION="Clearsilver is a fast, powerful, and language-neutral HTML template system"
|
||||
HOMEPAGE="http://www.clearsilver.net/"
|
||||
SRC_URI="http://www.clearsilver.net/downloads/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-1.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc ppc64 ~sparc x86 ~x86-fbsd"
|
||||
IUSE="perl python zlib"
|
||||
|
||||
DEPEND="perl? ( dev-lang/perl:= )
|
||||
zlib? ( sys-libs/zlib )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
DOCS=(README INSTALL)
|
||||
|
||||
pkg_setup() {
|
||||
if use python; then
|
||||
DOCS+=(README.python)
|
||||
|
||||
python_set_active_version 2
|
||||
python_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-perl_installdir.patch
|
||||
|
||||
use zlib && epatch "${FILESDIR}"/${P}-libz.patch
|
||||
|
||||
epatch "${FILESDIR}"/${P}-libdir.patch
|
||||
sed -i -e "s:GENTOO_LIBDIR:$(get_libdir):" configure.in
|
||||
eautoreconf
|
||||
|
||||
# Fix for Gentoo/Freebsd
|
||||
[[ "${ARCH}" == FreeBSD ]] && touch ${S}/features.h ${S}/cgi/features.h
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_enable perl) \
|
||||
$(use_with perl perl /usr/bin/perl) \
|
||||
$(use_enable python) \
|
||||
$(use_with python python /usr/bin/python) \
|
||||
$(use_enable zlib compression) \
|
||||
"--disable-apache" \
|
||||
"--disable-ruby" \
|
||||
"--disable-java" \
|
||||
"--disable-csharp"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
}
|
||||
|
||||
src_install () {
|
||||
default
|
||||
|
||||
if use perl ; then
|
||||
perl_delete_localpod || die "perl_delete_localpod failed"
|
||||
fi
|
||||
}
|
@ -1,97 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
# Please note: apache, mono and ruby support disabled for now.
|
||||
# Fill a bug if you need it.
|
||||
#
|
||||
# dju@gentoo.org, 4th July 2005
|
||||
|
||||
EAPI=5
|
||||
GENTOO_DEPEND_ON_PERL="no"
|
||||
PYTHON_DEPEND="python? 2"
|
||||
|
||||
inherit autotools eutils multilib perl-app python java-pkg-opt-2
|
||||
|
||||
DESCRIPTION="Clearsilver is a fast, powerful, and language-neutral HTML template system"
|
||||
HOMEPAGE="http://www.clearsilver.net/"
|
||||
SRC_URI="http://www.clearsilver.net/downloads/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-1.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd"
|
||||
IUSE="perl python zlib perl java"
|
||||
|
||||
DEPEND="perl? ( dev-lang/perl:= )
|
||||
zlib? ( sys-libs/zlib )
|
||||
java? ( >=virtual/jdk-1.6 )"
|
||||
|
||||
RDEPEND="
|
||||
java? ( >=virtual/jre-1.6 )"
|
||||
|
||||
DOCS=(README INSTALL)
|
||||
|
||||
pkg_setup() {
|
||||
if use python; then
|
||||
DOCS+=(README.python)
|
||||
python_set_active_version 2
|
||||
python_pkg_setup
|
||||
fi
|
||||
|
||||
if use java; then
|
||||
java-pkg-opt-2_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-perl_installdir.patch
|
||||
|
||||
use zlib && epatch "${FILESDIR}"/${P}-libz.patch
|
||||
|
||||
epatch "${FILESDIR}"/${P}-libdir.patch
|
||||
sed -i -e "s:GENTOO_LIBDIR:$(get_libdir):" configure.in
|
||||
eautoreconf
|
||||
|
||||
# Fix for Gentoo/Freebsd
|
||||
[[ "${ARCH}" == FreeBSD ]] && touch ${S}/features.h ${S}/cgi/features.h
|
||||
|
||||
if use java; then
|
||||
java-pkg-opt-2_src_prepare
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_enable perl) \
|
||||
$(use_with perl perl /usr/bin/perl) \
|
||||
$(use_enable python) \
|
||||
$(use_with python python /usr/bin/python) \
|
||||
$(use_enable zlib compression) \
|
||||
$(use_enable java) \
|
||||
$(use_with java java $(java-config -O)) \
|
||||
"--disable-apache" \
|
||||
"--disable-ruby" \
|
||||
"--disable-csharp"
|
||||
|
||||
# Java tests fail. Maybe investigate why?
|
||||
if use java; then
|
||||
epatch "${FILESDIR}"/${P}-disable-java-tests.patch
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
}
|
||||
|
||||
src_install () {
|
||||
default
|
||||
|
||||
if use perl; then
|
||||
perl_delete_localpod || die "perl_delete_localpod failed"
|
||||
fi
|
||||
|
||||
if use java; then
|
||||
java-pkg_doso "java-jni/lib${PN}-jni.so"
|
||||
java-pkg_dojar "java-jni/${PN}.jar"
|
||||
fi
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
--- java-jni/Makefile.orig 2015-10-01 16:20:55.775486000 +0000
|
||||
+++ java-jni/Makefile 2015-10-01 16:21:59.027486000 +0000
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
TARGETS = org_clearsilver_HDF.h org_clearsilver_CS.h $(NEO_UTIL_SO)
|
||||
|
||||
-all: $(TARGETS) test
|
||||
+all: $(TARGETS)
|
||||
|
||||
$(NEO_UTIL_JAVA_JAR): $(NEO_UTIL_JAVA_SRC)
|
||||
$(MKDIR) org/clearsilver
|
@ -1,13 +0,0 @@
|
||||
--- configure.in.orig 2007-02-14 13:13:10.000000000 +0100
|
||||
+++ configure.in 2007-02-14 13:18:39.000000000 +0100
|
||||
@@ -253,8 +253,8 @@
|
||||
vers=`$python_bin -c "import sys; print sys.version[[:3]]"`
|
||||
py_inst_dir=`$python_bin -c "import sys; print sys.exec_prefix"`
|
||||
python_inc=$py_inst_dir/include/python$vers
|
||||
- python_lib="-L$py_inst_dir/lib/python$vers/config -lpython$vers"
|
||||
- python_site=$py_inst_dir/lib/python$vers/site-packages
|
||||
+ python_lib="-L$py_inst_dir/GENTOO_LIBDIR/python$vers/config -lpython$vers"
|
||||
+ python_site=$py_inst_dir/GENTOO_LIBDIR/python$vers/site-packages
|
||||
else
|
||||
for vers in $python_versions; do
|
||||
for path in $python_search_path; do
|
@ -1,10 +0,0 @@
|
||||
--- python/setup.py.orig 2007-10-28 21:20:00.000000000 +0200
|
||||
+++ python/setup.py 2007-10-28 21:20:34.000000000 +0200
|
||||
@@ -122,6 +122,7 @@
|
||||
include_dirs=INC_DIRS,
|
||||
library_dirs=LIB_DIRS,
|
||||
libraries=LIBRARIES,
|
||||
+ extra_link_args = ["-lz"],
|
||||
)]
|
||||
}
|
||||
|
@ -1,22 +0,0 @@
|
||||
X-Bug-Debian: http://bugs.debian.org/357908
|
||||
X-Bug-Gentoo: https://bugs.gentoo.org/295895
|
||||
--- b/Makefile
|
||||
+++ a/Makefile
|
||||
@@ -29,7 +29,7 @@
|
||||
@for mdir in $(SUBDIRS); do \
|
||||
if test -d $$mdir; then \
|
||||
if test -f $$mdir/Makefile.PL -a ! -f $$mdir/Makefile; then \
|
||||
- cd $$mdir; $(PERL) Makefile.PL PREFIX=$(prefix); cd ..; \
|
||||
+ cd $$mdir; $(PERL) Makefile.PL PREFIX=$(prefix) INSTALLDIRS=vendor; cd ..; \
|
||||
fi; \
|
||||
$(MAKE) -C $$mdir PREFIX=$(prefix); \
|
||||
fi; \
|
||||
@@ -46,7 +46,7 @@
|
||||
@for mdir in $(SUBDIRS); do \
|
||||
if test -d $$mdir; then \
|
||||
if test -f $$mdir/Makefile.PL -a ! -f $$mdir/Makefile; then \
|
||||
- cd $$mdir; $(PERL) Makefile.PL PREFIX=$(prefix); cd ..; \
|
||||
+ cd $$mdir; $(PERL) Makefile.PL PREFIX=$(prefix) INSTALLDIRS=vendor; cd ..; \
|
||||
fi; \
|
||||
$(MAKE) -C $$mdir PREFIX=$(prefix) install; \
|
||||
fi; \
|
@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>web-apps@gentoo.org</email>
|
||||
<name>Gentoo Webapps</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
@ -1,5 +1,5 @@
|
||||
DIST libbsd-0.8.2.tar.xz 344292 SHA256 b2f644cae94a6e2fe109449c20ad79a0f6ee4faec2205b07eefa0020565e250a SHA512 2230d51a30a0c3a8518c7e325036d2b578c8c2b47525c2d0d5f530d28d82227ad48b50341e44521db21f99208fe7c0df7313254c90e3c92da1c8664a8cbb87c5 WHIRLPOOL 4f9b09aaa7c0775cd46bf0aaaba9e9a7f07040262739002bf3966aace3bb4d782f96b176e2c489e7d7cbc0840eecc463a414dee1b5c92414c9a821796d739290
|
||||
EBUILD libbsd-0.8.2.ebuild 1078 SHA256 5617e016c15b878a29fa9a703151fe2a0ac2000c7e3853c8aeb42d772255cdd0 SHA512 c1ca671df6a6412b759d88445d1a1e20c0a61251231df0c0bdc77f55837fd5f77afa1e9e45f1ddfd4386e4c7a0421df2f0da44a895cc53bb47f091105ef647c8 WHIRLPOOL d7eb622def7fb210a4fe17a9c0e9d8475dea3ae43775799f6d7ce05c5792cfa153a0d83ab5cba55acb2945f2cafe22d9fac36f47679620c06fbc43674b2a1d85
|
||||
MISC ChangeLog 5717 SHA256 9a1c524996f9d989a4a4fd63ce1d4c5e027219f018a210d5983dd945f51db6a5 SHA512 5fff074e12d2bc2363ce5560d69459f27b399464d0352620e8e961f20b3806dc6d64431f1e3581ed9ff47e41c7cf0e39b1338401e4e8d9a099b2d158f840a44c WHIRLPOOL 3f2794c4f53a5947463c1eb139a50985e42c4f1b6c99b2cc8b49ac70089b7f31d94df4c378c5de67fc32a8fa54c8f094c7e40ed7b1d23274333babbc82812fca
|
||||
EBUILD libbsd-0.8.2.ebuild 1077 SHA256 521217049e5eef08a05c251cabddd771ae2cd58d6c3ef7edb7c62ed18ae62035 SHA512 5aa98bdf406402ae4801635980fe913c56638a20a4e99ef6ea0d94a6a17d60efdfa91607e68f7ad139e2cee4e5942506544df0bce5c433ac1288432344c8ac9e WHIRLPOOL 9931cb17f18055da5625d9ded6030fa7c2bc46d9f5bebf2b4a8af01255e73d88df19033af2ec590d02939897fda739f8566e892a153684d8f53eb46f408ba488
|
||||
MISC ChangeLog 5947 SHA256 8b6e4691b226883b5991306affcf12958285ddd20aec28d64aa8ef5519e70240 SHA512 44fd4e9e2bda9a015daecd94e74e882514fc8f95626a87be42fe5d2337dd6e5101e664e6196fab7da724812d41146d5531cbee74e3fdc6f220bfae9cc6c9401c WHIRLPOOL f23b1ab9253e39e86d7668eb42bb70b0639354a6d82b134e82d174df92294541849081d9a933d3144c5bd74b7d4f42424725cdaae8c58064640b982140edaac5
|
||||
MISC ChangeLog-2015 5236 SHA256 5e8fd6dffc9bb76f2734a6da36bbf00792171f4167bfdb89419e08709ac4ec7d SHA512 dd4eae1cdfb9ab4eadf5ff529d291baa237612be9ea47794fefc7d86246172ef164c2bb65add1786acf651b89082ce5520aa5a0c1fd09fc70d65fba369d6bc41 WHIRLPOOL eda53a135a82ecfe31e32b9a6d03be9261f0ac14f4a1773494c2d7231de826bbaf7d4061f6827999ad79118c690bfd47d5983c7b9fb80c2a8795bfe061eeabc5
|
||||
MISC metadata.xml 276 SHA256 6bb81cdb026b199d78fb2a2327320a915a3bd241a9300bb069bd9c998521f613 SHA512 673180ba375ea401c0a8f197d516417b3f9361b11943c71bac88b0d0b1407b0bc657f5763c6fb6e429cc6ee112869a2247083fe56743e9ce918855c0ea929e59 WHIRLPOOL d494386e01171fe51879cf968a6cebca04c22477f3b8a52bfdd17b9ee06afd99c3979396f7abf40bee698d6fbb060e2f37e083cb3ed010c018d84211a2bc7cd0
|
||||
|
@ -1,5 +1,5 @@
|
||||
DIST libpwquality-1.3.0.tar.bz2 423910 SHA256 74d2ea90e103323c1f2d6a6cc9617cdae6877573eddb31aaf31a40f354cc2d2a SHA512 c3817c7a5ca962b161911b97b413a0db7c34a99ba2cd191435024abdbe060e248c0f88436f24d3992dcb1b00d34b88afb731ef1fd23efc3ad1abe56d4d7d53ea WHIRLPOOL b6451083551a13be259d1a81eb089889d9ee430c30afb2555aa2e5e7c4240febc71b152ce3c210b592a56db8988fc88a827d8e9f368c5aa478d5babf4e316b8c
|
||||
EBUILD libpwquality-1.3.0.ebuild 1917 SHA256 4f87c700c6a6cceabaffed7bc8d0d5d1c9c1e5e9ac87f91c41cb69252b3cd59a SHA512 e24384e63e912d6fef8184241d9a98d280cfa7265efcd7a5970ad4fee5872a2e9986dddbf0ac0bfb6600b1ae055a6f21ba2aaef54714080e45bbf2ca3ceffdcb WHIRLPOOL 921fa1c5b1a08fde43514555e1486cf47bd899f4fa0863e7a42141e947c465d44d31bd7b4d4af1249ac7208979cc7ec3e8b5339d7b9c1038d9af9bfa1230d518
|
||||
MISC ChangeLog 4378 SHA256 2588b8951ba5a102343e7c10b0534e3a252631f9f5f3b95b943ff0a85ca5f3da SHA512 32fc2639a9689eb0106cec964f149bc6e715018f5e36d6705eda02101d721d25dbf40f8021b5d7777960bdad371d26b12d7e9fbdbdd63f5f486c8bb37f159858 WHIRLPOOL d844f304586124a3dfcc708ede1933a347d9a26a8285b341e65fba5647e19f6d2066e4bc5a36d604cfdca24090ecfb99ef8fa3623aa25048987304fe34684b59
|
||||
MISC ChangeLog 4590 SHA256 fa1b8950540c5bff5ea5d3318e677653a587971577d01823d79885478125e12d SHA512 3aeb961bbbb626da07cc1a9f77095b782ecf0441c08c0a052b6b3266b1370ff19886392c97396a79a5f9830a718088c2c63e81041a6b86ca8c427db308a228ba WHIRLPOOL 347ed0c5962818f1ddaac904e7e53d530a3094d8229b70f28a3c4a06d98ecedcb68e289c5ae8e9eadabe3d0850f33631821534db784654bf1d532848f97b8207
|
||||
MISC ChangeLog-2015 3628 SHA256 9c7c39f5e71e19e1aa493c55b92f262445339731c2b840f342b244b99759862d SHA512 e44ce68f5a0cf02e14ac09b5ac1960446b0eecc84e846fa0f6b45b73f147183588527a2f58d5da1b6300eebab929db1740e35889cc213b28c9f5bedf6b628d86 WHIRLPOOL e8c1a56d0a8882de25903db453ff8d90162a1797b46479ce494b6b97a9c73bba1a692484d4022db4e811f61079b96a5d69369e74ce1cecc01095595711abe538
|
||||
MISC metadata.xml 249 SHA256 4505b0bfeadff287958620b7dc7b7209699065a8f17139a237a5dd409a726a97 SHA512 c40662134899a5c9f0369a1017806f35adf3280a0b3c91726f7a8ca6012a073a8b471583f5bfb6fe95faac1dcf607e8e2e43f8c91d48ec46f4a8824e2f551506 WHIRLPOOL 333a938ee1d2124595596c572697bf5ebad523a92ba12005cfb12e6bb6270881a94a911f0cc9c1cf2bb571559e8271e07dfd307dabe50058236dbe7103562b92
|
||||
|
@ -1,6 +1,8 @@
|
||||
DIST stringext-1.4.0.tar.gz 49163 SHA256 452caddd80c85aebda74f65615aeba4045ab2496498d844ab110605c97a156a5 SHA512 5c9b64f42b1517c255376a81886b946d852fe5f4b11dee87986eb1eab856e89a79f088d2bbd7d79dfa13cce5e51649a32bfe06242d5afbf7b868085b272173bf WHIRLPOOL 15b2501095f2c6143eac33751b26f9c82e7226125c49b270fe8dff92bd51b97eede8e7865343766fa56fcffa373b591da4f8170afba46d12c413dfec0d1431eb
|
||||
DIST stringext-1.4.1.tar.gz 49181 SHA256 abcecd6f8f207804b95ea87222ac263a37d76fb3a3fe0dfd6aaa7343585ef64c SHA512 a5b364e8a7f56c5b91b2114e10fd5c534ef7c2f5737505f52fddeb61de1a90fb75fd6f2cbb1b83934d5dfd020e2be9df81ab8774126a0d8c033c45faa0d17a00 WHIRLPOOL da524dce7541b87276eb12aee8138f5fafd3f282875e7ae464524399c3447470fee92d6ea43a3bf78102a9b5232c32de49cfb8bf9a95f9dff7a04f126662babc
|
||||
DIST stringext-1.4.2.tar.gz 49194 SHA256 1f0c108785ab4d80650748779fea38837a80fcf89f2b1ce9ccbbcc300134fdec SHA512 dd35b90d68f156ec6845fbd1c9b2c479874559696ea2a964c2b78a7ded61f128066a4752670b8db3c4dc0bde82fb6bce02733615c4950256c7071ae1c43b4b69 WHIRLPOOL c338647b23d426777c07febbe8494871471ee400cd8cb543f5d18a15c817986bd72a8e9028341e049cd7eb56427e3ca38d82939dbe981c98ec05ea4444c375f3
|
||||
EBUILD stringext-1.4.0-r1.ebuild 516 SHA256 7a040e69ea5e4aeb9dd374b32b8407d671b1452430aed6a13031217d0c981be9 SHA512 a05971ca7f1ad10d0b57fa1bd82095263526c8596436cd2968a6016cba670a01e9b282809959cce1dfc0787f8034ceba2894d193971e94f0add73d144efde275 WHIRLPOOL 2b4763fac1d7960b8fb84457b4579e647899959b7662e4b8a58c5130f1417384fe0f385c6072605ca739dfefa136576d742862a653759b43d75c68d3f604d1b7
|
||||
EBUILD stringext-1.4.1.ebuild 516 SHA256 7a040e69ea5e4aeb9dd374b32b8407d671b1452430aed6a13031217d0c981be9 SHA512 a05971ca7f1ad10d0b57fa1bd82095263526c8596436cd2968a6016cba670a01e9b282809959cce1dfc0787f8034ceba2894d193971e94f0add73d144efde275 WHIRLPOOL 2b4763fac1d7960b8fb84457b4579e647899959b7662e4b8a58c5130f1417384fe0f385c6072605ca739dfefa136576d742862a653759b43d75c68d3f604d1b7
|
||||
EBUILD stringext-1.4.2.ebuild 516 SHA256 7a040e69ea5e4aeb9dd374b32b8407d671b1452430aed6a13031217d0c981be9 SHA512 a05971ca7f1ad10d0b57fa1bd82095263526c8596436cd2968a6016cba670a01e9b282809959cce1dfc0787f8034ceba2894d193971e94f0add73d144efde275 WHIRLPOOL 2b4763fac1d7960b8fb84457b4579e647899959b7662e4b8a58c5130f1417384fe0f385c6072605ca739dfefa136576d742862a653759b43d75c68d3f604d1b7
|
||||
MISC ChangeLog 1878 SHA256 0c266f875ba2631ac339f5ca5ed52482ce4d54280b76f480a0a1f9ae5b5fa42f SHA512 260ab1f6e8b383f19ea87d3ec7fb49cc590c414a50c4748e04bdf70ce77da339ae55bcc250e40bd6dd4a2b4e4138ae72ae9875d2490758589cff5fd226af34a3 WHIRLPOOL 5fb9b3ce728804accab70fa16c3a4d34f640df59fc5246148dd415aa390984756ab0dea23ba726e1f03905baebd8abed13118ef7ba9b16e96d3e9aaf07a2cb7c
|
||||
MISC metadata.xml 677 SHA256 585b17b34516c6f915e1b21aa614ab9c67970e9f97e91bde91e3639eb75f85ab SHA512 f541f0f09025cf29de7567c1f7b32512b10a241565f5a418fe83ce88f4804091a7b551500ce4cbb762a6dc3ed0efc88e7fd7601570a9070f4cb21eef27295424 WHIRLPOOL 56f41aaf8a228f6bb7ecbb2eaf0e260c4d005b4719ede3345ca01f69d91059e32b3b6af554a4ae1f677174c547ccda20b39f0f639660d3288fbd65dcb4038aca
|
||||
|
@ -0,0 +1,27 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
OASIS_BUILD_TESTS=1
|
||||
|
||||
inherit oasis
|
||||
|
||||
DESCRIPTION="Extra string functions for OCaml"
|
||||
HOMEPAGE="https://github.com/rgrinberg/stringext"
|
||||
SRC_URI="https://github.com/rgrinberg/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="
|
||||
test? ( dev-ml/qcheck[ounit(-)] )
|
||||
>=dev-lang/ocaml-4:=
|
||||
"
|
||||
RDEPEND="
|
||||
>=dev-lang/ocaml-4:=
|
||||
"
|
||||
|
||||
DOCS=( README.md )
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue