parent
7ffe93afe7
commit
6e4d0ec0cd
@ -1,3 +1,3 @@
|
||||
DIST emacs-24.0.93.tar.gz 51257120 RMD160 6a3b6ae0ecab96a53828856de6db0c016cc5d47f SHA1 0b98ecf3e9f44497bfaf4203c2afc81252c4bafe SHA256 4a100accb2f76231aed4dddb32d3725dec131280ad3bdf1b39b52ce337a210fe
|
||||
DIST emacs-24.0.94.tar.gz 51251891 RMD160 3593d6a003b556f3755ba6ea3f8a92ba1b5ba2af SHA1 d70fe6da2d2b943423fcf16badb0294566710eaa SHA256 238dacb608e74fce088cde61b82907ba6ae5d975e88f38a0b199dbdbdb28feb5
|
||||
DIST emacs-24.0.95.tar.gz 51371928 RMD160 14a0ca326c18dc549495e862d83eb9e1917d2ead SHA1 09c1eaed7400f8cc0e5dab9fb2337c3c4cee5449 SHA256 434b8e4a27d376257a6fe93b35936466985ac45c90310e6041e0a0577752df64
|
||||
DIST emacs-24.0.96.tar.gz 51433984 RMD160 ae8f46637b5cdadf7c401f6fc7e0240937becdb4 SHA1 15f932ad8c6a77107bc19ab3e3a8c8af27259ec2 SHA256 18ed15ff63cfa1ae929ccdb3a39cdc589420bd17dacc5af144c5eb717200f21a
|
||||
|
@ -0,0 +1,148 @@
|
||||
From f895fe1ad3aca8fed492df12adcd8710bca8ca32 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= <flameeyes@flameeyes.eu>
|
||||
Date: Fri, 27 Apr 2012 17:01:33 -0700
|
||||
Subject: [PATCH] Workaround requirement to use the realname of the block
|
||||
device.
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Instead of checking always the source path, check the source path if
|
||||
mounting a directory, and the mount path if mounting a block device or
|
||||
file.
|
||||
|
||||
Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
|
||||
---
|
||||
src/lxc/conf.c | 34 +++++++++++++++++++---------------
|
||||
src/lxc/conf.h | 1 +
|
||||
2 files changed, 20 insertions(+), 15 deletions(-)
|
||||
|
||||
diff --git a/src/lxc/conf.c b/src/lxc/conf.c
|
||||
index e8088bb..593871a 100644
|
||||
--- a/src/lxc/conf.c
|
||||
+++ b/src/lxc/conf.c
|
||||
@@ -350,9 +350,9 @@ static int mount_unknow_fs(const char *rootfs, const char *target, int mntopt)
|
||||
return -1;
|
||||
}
|
||||
|
||||
-static int mount_rootfs_dir(const char *rootfs, const char *target)
|
||||
+static int mount_rootfs_dir(struct lxc_rootfs *rootfs)
|
||||
{
|
||||
- return mount(rootfs, target, "none", MS_BIND | MS_REC, NULL);
|
||||
+ return mount(rootfs->path, rootfs->mount, "none", MS_BIND | MS_REC, NULL);
|
||||
}
|
||||
|
||||
static int setup_lodev(const char *rootfs, int fd, struct loop_info64 *loinfo)
|
||||
@@ -387,7 +387,7 @@ out:
|
||||
return ret;
|
||||
}
|
||||
|
||||
-static int mount_rootfs_file(const char *rootfs, const char *target)
|
||||
+static int mount_rootfs_file(struct lxc_rootfs *rootfs)
|
||||
{
|
||||
struct dirent dirent, *direntp;
|
||||
struct loop_info64 loinfo;
|
||||
@@ -433,9 +433,9 @@ static int mount_rootfs_file(const char *rootfs, const char *target)
|
||||
|
||||
DEBUG("found '%s' free lodev", path);
|
||||
|
||||
- ret = setup_lodev(rootfs, fd, &loinfo);
|
||||
+ ret = setup_lodev(rootfs->path, fd, &loinfo);
|
||||
if (!ret)
|
||||
- ret = mount_unknow_fs(path, target, 0);
|
||||
+ ret = mount_unknow_fs(path, rootfs->mount, 0);
|
||||
close(fd);
|
||||
|
||||
break;
|
||||
@@ -444,21 +444,23 @@ static int mount_rootfs_file(const char *rootfs, const char *target)
|
||||
if (closedir(dir))
|
||||
WARN("failed to close directory");
|
||||
|
||||
+ rootfs->isblock = 1;
|
||||
return ret;
|
||||
}
|
||||
|
||||
-static int mount_rootfs_block(const char *rootfs, const char *target)
|
||||
+static int mount_rootfs_block(struct lxc_rootfs *rootfs)
|
||||
{
|
||||
- return mount_unknow_fs(rootfs, target, 0);
|
||||
+ rootfs->isblock = 1;
|
||||
+ return mount_unknow_fs(rootfs->path, rootfs->mount, 0);
|
||||
}
|
||||
|
||||
-static int mount_rootfs(const char *rootfs, const char *target)
|
||||
+static int mount_rootfs(struct lxc_rootfs *rootfs)
|
||||
{
|
||||
char absrootfs[MAXPATHLEN];
|
||||
struct stat s;
|
||||
int i;
|
||||
|
||||
- typedef int (*rootfs_cb)(const char *, const char *);
|
||||
+ typedef int (*rootfs_cb)(struct lxc_rootfs *rootfs);
|
||||
|
||||
struct rootfs_type {
|
||||
int type;
|
||||
@@ -469,8 +471,8 @@ static int mount_rootfs(const char *rootfs, const char *target)
|
||||
{ S_IFREG, mount_rootfs_file },
|
||||
};
|
||||
|
||||
- if (!realpath(rootfs, absrootfs)) {
|
||||
- SYSERROR("failed to get real path for '%s'", rootfs);
|
||||
+ if (!realpath(rootfs->path, absrootfs)) {
|
||||
+ SYSERROR("failed to get real path for '%s'", rootfs->path);
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -489,7 +491,7 @@ static int mount_rootfs(const char *rootfs, const char *target)
|
||||
if (!__S_ISTYPE(s.st_mode, rtfs_type[i].type))
|
||||
continue;
|
||||
|
||||
- return rtfs_type[i].cb(absrootfs, target);
|
||||
+ return rtfs_type[i].cb(rootfs);
|
||||
}
|
||||
|
||||
ERROR("unsupported rootfs type for '%s'", absrootfs);
|
||||
@@ -756,7 +758,7 @@ static int setup_rootfs_pivot_root(const char *rootfs, const char *pivotdir)
|
||||
return 0;
|
||||
}
|
||||
|
||||
-static int setup_rootfs(const struct lxc_rootfs *rootfs)
|
||||
+static int setup_rootfs(struct lxc_rootfs *rootfs)
|
||||
{
|
||||
if (!rootfs->path)
|
||||
return 0;
|
||||
@@ -767,7 +769,7 @@ static int setup_rootfs(const struct lxc_rootfs *rootfs)
|
||||
return -1;
|
||||
}
|
||||
|
||||
- if (mount_rootfs(rootfs->path, rootfs->mount)) {
|
||||
+ if (mount_rootfs(rootfs)) {
|
||||
ERROR("failed to mount rootfs");
|
||||
return -1;
|
||||
}
|
||||
@@ -1110,7 +1112,9 @@ static int mount_entry_on_absolute_rootfs(struct mntent *mntent,
|
||||
return -1;
|
||||
}
|
||||
|
||||
- aux = strstr(mntent->mnt_dir, rootfs->path);
|
||||
+ aux = rootfs->isblock ? rootfs->mount : rootfs->path;
|
||||
+
|
||||
+ aux = strstr(mntent->mnt_dir, aux);
|
||||
if (!aux) {
|
||||
WARN("ignoring mount point '%s'", mntent->mnt_dir);
|
||||
goto out;
|
||||
diff --git a/src/lxc/conf.h b/src/lxc/conf.h
|
||||
index 09f55cb..b70e637 100644
|
||||
--- a/src/lxc/conf.h
|
||||
+++ b/src/lxc/conf.h
|
||||
@@ -181,6 +181,7 @@ struct lxc_rootfs {
|
||||
char *path;
|
||||
char *mount;
|
||||
char *pivot;
|
||||
+ int isblock;
|
||||
};
|
||||
|
||||
/*
|
||||
--
|
||||
1.7.8.6
|
||||
|
@ -1 +1,2 @@
|
||||
DIST getxbook-0.8.tar.bz2 12333 RMD160 50eb30a55676c88e26df6f885c40ab984e707a30 SHA1 d08d082cd6481302c102fcd7c373258737b2bd3d SHA256 eae5ca315cfbc5657d27454278b7e57d7a8ba2a88ef330bdbdf4ab0ba736e2c6
|
||||
DIST getxbook-0.9.tar.bz2 20613 RMD160 5efbf539efcd6fb0a0c8df6723fe9b37a08c6404 SHA1 833b37fd121b24090ce59424886571be4bedf6c2 SHA256 58ac1debd81a76d5736ff3138a7fb9e94b7cc49ea4563183b24cd549d1ee20f1
|
||||
|
@ -0,0 +1,44 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/getxbook/getxbook-0.9.ebuild,v 1.1 2012/04/27 20:59:12 grozin Exp $
|
||||
EAPI=4
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
DESCRIPTION="Download books from google, amazon, barnes and noble."
|
||||
HOMEPAGE="http://njw.me.uk/software/getxbook/"
|
||||
SRC_URI="http://njw.me.uk/software/getxbook/${P}.tar.bz2"
|
||||
|
||||
LICENSE="ISC"
|
||||
SLOT="0"
|
||||
KEYWORDS="~x86"
|
||||
IUSE="pdf djvu ocr tk"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="djvu? ( app-text/djvu )
|
||||
pdf? ( media-gfx/imagemagick )
|
||||
ocr? ( app-text/tesseract
|
||||
pdf? ( media-gfx/exact-image app-text/pdftk ) )
|
||||
tk? ( dev-lang/tk )"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-makefile.patch
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
tc-export CXX
|
||||
emake
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
dodoc README LEGAL
|
||||
exeinto /usr/bin
|
||||
use pdf && doexe extras/mkpdf.sh
|
||||
use djvu && doexe extras/mkdjvu.sh
|
||||
if use ocr; then
|
||||
doexe extras/mkocrtxt.sh
|
||||
use pdf && doexe extras/mkocrpdf.sh
|
||||
use djvu && doexe extras/mkocrdjvu.sh
|
||||
fi
|
||||
use tk && doexe getxbookgui.tcl
|
||||
}
|
@ -0,0 +1,134 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ada/asis-gcc/asis-gcc-4.3.1-r1.ebuild,v 1.1 2012/04/27 13:53:11 george Exp $
|
||||
|
||||
inherit eutils flag-o-matic gnatbuild
|
||||
|
||||
ACT_Ver=2009
|
||||
Gnat_Name="gnat-gcc"
|
||||
|
||||
DESCRIPTION="The Ada Semantic Interface Specification (semantic analysis and tools tied to compiler)"
|
||||
SRC_URI="http://dev.gentoo.org/~george/src/asis-gpl-${ACT_Ver}-src.tgz"
|
||||
HOMEPAGE="https://libre.adacore.com/"
|
||||
LICENSE="GPL-2"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
IUSE="doc"
|
||||
RDEPEND="=dev-lang/gnat-gcc-${SLOT}*"
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( virtual/latex-base
|
||||
app-text/texi2html )"
|
||||
|
||||
S="${WORKDIR}/asis-${ACT_Ver}-src"
|
||||
|
||||
# it may be even better to force plain -O2 -pipe -ftracer here
|
||||
replace-flags -O3 -O2
|
||||
|
||||
# we need to adjust some vars defined in gnatbuild.eclass so that they use
|
||||
# gnat-gcc instead of asis
|
||||
LIBPATH=${LIBPATH/${PN}/${Gnat_Name}}
|
||||
BINPATH=${BINPATH/${PN}/${Gnat_Name}}
|
||||
DATAPATH=${DATAPATH/${PN}/${Gnat_Name}}
|
||||
|
||||
#QA_EXECSTACK="${BINPATH:1}/*
|
||||
# ${LIBPATH:1}/adalib/libasis-${ACT_Ver}.so"
|
||||
|
||||
pkg_setup() {
|
||||
currGnat=$(eselect --no-color gnat show | grep "gnat-" | awk '{ print $1 }')
|
||||
if [[ "${currGnat}" != "${CTARGET}-${Gnat_Name}-${SLOT}" ]]; then
|
||||
echo
|
||||
eerror "The active gnat profile does not correspond to the selected"
|
||||
eerror "version of asis! Please install the appropriate gnat (if you"
|
||||
eerror "did not so yet) and run:"
|
||||
eerror "eselect gnat set ${CTARGET}-${Gnat_Name}-${SLOT}"
|
||||
eerror "env-update && source /etc/profile"
|
||||
eerror "and then emerge asis-gcc:${SLOT} again.."
|
||||
echo
|
||||
die
|
||||
fi
|
||||
}
|
||||
|
||||
# we need to override the eclass defined src_unpack
|
||||
# and change gcc to gnatgcc where appropriate
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"/gnat/
|
||||
# newer versions autogen snames.ad?
|
||||
# Looks logical to keep it here, as this is a part of source prep
|
||||
gnatmake xsnamest.adb
|
||||
./xsnamest
|
||||
mv snames.ns snames.ads
|
||||
mv snames.nb snames.adb
|
||||
# need to change gcc -> gnatgcc
|
||||
cd "${S}"
|
||||
for fn in asis/a4g-gnat_int.adb \
|
||||
asis/a4g-contt.adb \
|
||||
gnat/snames.adb \
|
||||
tools/tool_utils/asis_ul-common.adb \
|
||||
tools/gnatmetric/metrics-compute.adb; do
|
||||
sed -i -e "s:\"gcc:\"gnatgcc:" ${fn}
|
||||
done
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Build the shared library first, we need -fPIC here
|
||||
gnatmake -Pasis_bld -XBLD=prod -XOPSYS=default_Unix -cargs ${CFLAGS} -fPIC \
|
||||
|| die "building libasis.a failed"
|
||||
gnatgcc -shared -Wl,-soname,libasis-${ACT_Ver}.so \
|
||||
-o obj/libasis-${ACT_Ver}.so obj/*.o -lc \
|
||||
|| die "building libasis.so failed"
|
||||
|
||||
# build tools
|
||||
for fn in tools/*; do
|
||||
pushd ${fn}
|
||||
gnatmake -P${fn:6}.gpr || die "building ${fn:6} failed"
|
||||
popd
|
||||
done
|
||||
|
||||
# common stuff is just docs in this case
|
||||
if use doc; then
|
||||
emake -C documentation all || die "Failed while compiling documentation"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install () {
|
||||
# README asks to run make install, claiming that some sources are built at
|
||||
# that point
|
||||
make all install prefix="${D}"
|
||||
# now manually move all the stuff to proper places
|
||||
mkdir -p "${D}${LIBPATH}"
|
||||
mv "${D}"lib/asis/ "${D}${LIBPATH}"/adalib
|
||||
# install the shared lib
|
||||
chmod 0755 obj/libasis-${ACT_Ver}.so
|
||||
cp obj/libasis-${ACT_Ver}.so "${D}${LIBPATH}"/adalib
|
||||
# make appropriate symlinks
|
||||
pushd "${D}${LIBPATH}"/adalib
|
||||
ln -s libasis-${ACT_Ver}.so libasis.so
|
||||
popd
|
||||
# sources
|
||||
mv "${D}"include/asis/ "${D}${LIBPATH}"/adainclude
|
||||
|
||||
# tools
|
||||
mkdir -p "${D}${BINPATH}"
|
||||
find "${S}"/tools/ -type f -executable -exec cp {} "${D}${BINPATH}" \;
|
||||
rm -f "${D}${BINPATH}"/Makefile*
|
||||
|
||||
# docs and examples
|
||||
cd "${S}"/documentation/
|
||||
dodoc *.txt
|
||||
dohtml *.html
|
||||
cd "${S}"
|
||||
insinto /usr/share/doc/${PF}
|
||||
doins -r documentation/*.pdf documentation/*.info tutorial/ templates/
|
||||
|
||||
# cleanup empty dirs
|
||||
rm -rf "${D}"/{bin,include,lib,share}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
echo
|
||||
elog "The ASIS is installed for the active gnat compiler at gnat's location."
|
||||
elog "No further configuration is necessary. Enjoy."
|
||||
echo
|
||||
}
|
@ -0,0 +1,136 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ada/asis-gcc/asis-gcc-4.4.ebuild,v 1.1 2012/04/27 14:33:30 george Exp $
|
||||
|
||||
inherit eutils flag-o-matic gnatbuild
|
||||
|
||||
ACT_Ver="2010"
|
||||
Gnat_Name="gnat-gcc"
|
||||
|
||||
DESCRIPTION="The Ada Semantic Interface Specification (semantic analysis and tools tied to compiler)"
|
||||
SRC_URI="http://dev.gentoo.org/~george/src/asis-gpl-${ACT_Ver}-src.tgz"
|
||||
HOMEPAGE="https://libre.adacore.com/"
|
||||
LICENSE="GPL-2"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
IUSE="doc"
|
||||
RDEPEND="=dev-lang/gnat-gcc-${SLOT}*"
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( virtual/latex-base
|
||||
app-text/texi2html )"
|
||||
|
||||
S="${WORKDIR}/asis-gpl-${ACT_Ver}-src"
|
||||
|
||||
# it may be even better to force plain -O2 -pipe -ftracer here
|
||||
replace-flags -O3 -O2
|
||||
|
||||
# we need to adjust some vars defined in gnatbuild.eclass so that they use
|
||||
# gnat-gcc instead of asis
|
||||
LIBPATH=${LIBPATH/${PN}/${Gnat_Name}}
|
||||
BINPATH=${BINPATH/${PN}/${Gnat_Name}}
|
||||
DATAPATH=${DATAPATH/${PN}/${Gnat_Name}}
|
||||
|
||||
#QA_EXECSTACK="${BINPATH:1}/*
|
||||
# ${LIBPATH:1}/adalib/libasis-${ACT_Ver}.so"
|
||||
|
||||
pkg_setup() {
|
||||
currGnat=$(eselect --no-color gnat show | grep "gnat-" | awk '{ print $1 }')
|
||||
if [[ "${currGnat}" != "${CTARGET}-${Gnat_Name}-${SLOT}" ]]; then
|
||||
echo
|
||||
eerror "The active gnat profile does not correspond to the selected"
|
||||
eerror "version of asis! Please install the appropriate gnat (if you"
|
||||
eerror "did not so yet) and run:"
|
||||
eerror "eselect gnat set ${CTARGET}-${Gnat_Name}-${SLOT}"
|
||||
eerror "env-update && source /etc/profile"
|
||||
eerror "and then emerge asis-gcc:${SLOT} again.."
|
||||
echo
|
||||
die
|
||||
fi
|
||||
}
|
||||
|
||||
# we need to override the eclass defined src_unpack
|
||||
# and change gcc to gnatgcc where appropriate
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"/gnat/
|
||||
# newer versions autogen snames.ad?
|
||||
# Looks logical to keep it here, as this is a part of source prep
|
||||
gnatmake xsnamest.adb
|
||||
./xsnamest
|
||||
mv snames.ns snames.ads
|
||||
mv snames.nb snames.adb
|
||||
# need to change gcc -> gnatgcc
|
||||
cd "${S}"
|
||||
for fn in asis/a4g-gnat_int.adb \
|
||||
asis/a4g-contt.adb \
|
||||
gnat/snames.adb \
|
||||
tools/tool_utils/asis_ul-common.adb \
|
||||
tools/gnatmetric/metrics-compute.adb; do
|
||||
sed -i -e "s:\"gcc:\"gnatgcc:" ${fn}
|
||||
done
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Build the shared library first, we need -fPIC here
|
||||
gnatmake -Pasis_bld -XBLD=prod -XOPSYS=default_Unix -cargs ${CFLAGS} -fPIC \
|
||||
|| die "building libasis.a failed"
|
||||
gnatgcc -shared -Wl,-soname,libasis-${ACT_Ver}.so \
|
||||
-o obj/libasis-${ACT_Ver}.so obj/*.o -lc \
|
||||
|| die "building libasis.so failed"
|
||||
|
||||
# build tools
|
||||
for fn in tools/*; do
|
||||
pushd ${fn}
|
||||
gnatmake -P${fn:6}.gpr || die "building ${fn:6} failed"
|
||||
popd
|
||||
done
|
||||
|
||||
# no point in rebuilding pregenerated docs
|
||||
#if use doc; then
|
||||
# emake -C documentation all || die "Failed while compiling documentation"
|
||||
#fi
|
||||
}
|
||||
|
||||
src_install () {
|
||||
# README asks to run make install, claiming that some sources are built at
|
||||
# that point
|
||||
make all install prefix="${D}"
|
||||
# now manually move all the stuff to proper places
|
||||
mkdir -p "${D}${LIBPATH}"
|
||||
mv "${D}"lib/asis/ "${D}${LIBPATH}"/adalib
|
||||
# install the shared lib
|
||||
chmod 0755 obj/libasis-${ACT_Ver}.so
|
||||
cp obj/libasis-${ACT_Ver}.so "${D}${LIBPATH}"/adalib
|
||||
# make appropriate symlinks
|
||||
pushd "${D}${LIBPATH}"/adalib
|
||||
ln -s libasis-${ACT_Ver}.so libasis.so
|
||||
popd
|
||||
# sources
|
||||
mv "${D}"include/asis/ "${D}${LIBPATH}"/adainclude
|
||||
|
||||
# tools
|
||||
mkdir -p "${D}${BINPATH}"
|
||||
find "${S}"/tools/ -type f -executable -exec cp {} "${D}${BINPATH}" \;
|
||||
rm -f "${D}${BINPATH}"/Makefile*
|
||||
|
||||
# docs and examples
|
||||
cd "${S}"/documentation/
|
||||
if use doc; then
|
||||
dodoc *.txt
|
||||
dohtml *.html
|
||||
cd "${S}"
|
||||
insinto /usr/share/doc/${PF}
|
||||
doins -r documentation/*.pdf documentation/*.info tutorial/ templates/
|
||||
fi
|
||||
|
||||
# cleanup empty dirs
|
||||
rm -rf "${D}"/{bin,include,lib,share}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
echo
|
||||
elog "The ASIS is installed for the active gnat compiler at gnat's location."
|
||||
elog "No further configuration is necessary. Enjoy."
|
||||
echo
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST SchemaSync-0.9.2.tar.gz 12828 RMD160 574dd4deef169306ae8ff99af69cba46fda10215 SHA1 2fc51a9107c30fc30cc93e20bc6bd4328eeb1c86 SHA256 3ee4e87e932c41e9fcbc534d662d6dc7be6ac29c2cd5ef3e6fd620fad6c2f3f5
|
@ -0,0 +1,42 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/SchemaSync/SchemaSync-0.9.2.ebuild,v 1.1 2012/04/28 00:22:41 blueness Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
PYTHON_DEPEND="2:2.5:2.6"
|
||||
|
||||
inherit distutils
|
||||
|
||||
DESCRIPTION="MySQL Schema Versioning and Migration Utility"
|
||||
HOMEPAGE="http://schemasync.org/"
|
||||
SRC_URI="http://www.schemasync.org/downloads/${P}.tar.gz"
|
||||
|
||||
pn="${PN,,}"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
dev-python/mysql-python
|
||||
dev-python/SchemaObject"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
pkg_setup() {
|
||||
python_set_active_version 2
|
||||
python_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
python_convert_shebangs -r 2 .
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
python_mod_optimize "${pn}"
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
python_mod_cleanup "${pn}"
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer>
|
||||
<email>blueness@gentoo.org</email>
|
||||
<name>Anthony G. Basile</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
@ -1,140 +0,0 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.2.22.ebuild,v 1.6 2011/10/01 20:15:34 hwoarang Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
WANT_AUTOMAKE="none"
|
||||
|
||||
inherit autotools eutils multilib prefix versionator
|
||||
|
||||
SLOT="$(get_version_component_range 1-2)"
|
||||
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ppc s390 sh sparc x86"
|
||||
|
||||
DESCRIPTION="PostgreSQL libraries and clients"
|
||||
HOMEPAGE="http://www.postgresql.org/"
|
||||
SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2
|
||||
http://dev.gentoo.org/~titanofold/postgresql-patches-${SLOT}-r1.tbz2"
|
||||
LICENSE="POSTGRESQL"
|
||||
|
||||
S="${WORKDIR}/postgresql-${PV}"
|
||||
|
||||
# No tests to be done for clients and libraries
|
||||
RESTRICT="test"
|
||||
|
||||
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 ldap nls pam pg-intdatetime readline ssl threads 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}
|
||||
}
|
||||
|
||||
RDEPEND=">=app-admin/eselect-postgresql-1.0.10
|
||||
virtual/libintl
|
||||
!!dev-db/libpq
|
||||
!!dev-db/postgresql
|
||||
!!dev-db/postgresql-client
|
||||
!!dev-db/postgresql-libs
|
||||
kerberos? ( virtual/krb5 )
|
||||
ldap? ( net-nds/openldap )
|
||||
pam? ( virtual/pam )
|
||||
readline? ( >=sys-libs/readline-4.1 )
|
||||
ssl? ( >=dev-libs/openssl-0.9.6-r1 )
|
||||
zlib? ( >=sys-libs/zlib-1.1.3 )"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
>=sys-apps/sandbox-2.0
|
||||
>=sys-devel/bison-1.875
|
||||
sys-devel/flex
|
||||
nls? ( sys-devel/gettext )"
|
||||
|
||||
PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${WORKDIR}/autoconf.patch" "${WORKDIR}/base.patch" \
|
||||
"${WORKDIR}/bool.patch" "${WORKDIR}/darwin.patch" \
|
||||
"${WORKDIR}/relax_ssl_perms.patch" "${WORKDIR}/SuperH.patch"
|
||||
|
||||
eprefixify src/include/pg_config_manual.h
|
||||
|
||||
# to avoid collision - it only should be installed by server
|
||||
rm "${S}/src/backend/nls.mk"
|
||||
|
||||
# because psql/help.c includes the file
|
||||
ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" || die
|
||||
|
||||
eautoconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
export LDFLAGS_SL="${LDFLAGS}"
|
||||
local PO="${EPREFIX%/}"
|
||||
econf --prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \
|
||||
--datadir="${PO}/usr/share/postgresql-${SLOT}" \
|
||||
--includedir="${PO}/usr/include/postgresql-${SLOT}" \
|
||||
--mandir="${PO}/usr/share/postgresql-${SLOT}/man" \
|
||||
--sysconfdir="${PO}/etc/postgresql-${SLOT}" \
|
||||
--without-docdir \
|
||||
--without-perl \
|
||||
--without-python \
|
||||
--without-tcl \
|
||||
$(use_with kerberos krb5) \
|
||||
$(use_with ldap) \
|
||||
"$(use_enable nls nls "$(wanted_languages)")" \
|
||||
$(use_with pam) \
|
||||
$(use_enable pg-intdatetime integer-datetimes ) \
|
||||
$(use_with readline) \
|
||||
$(use_with ssl openssl) \
|
||||
$(use_enable threads thread-safety) \
|
||||
$(use_with zlib)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake
|
||||
|
||||
cd "${S}/contrib"
|
||||
emake
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
insinto /usr/include/postgresql-${SLOT}/postmaster
|
||||
doins "${S}"/src/include/postmaster/*.h
|
||||
|
||||
rm "${ED}"/usr/share/postgresql-${SLOT}/man/man1/{initdb,ipcclean,pg_{controldata,ctl,resetxlog},post{gres,master}}.1
|
||||
docompress /usr/share/postgresql-${SLOT}/man/man{1,7}
|
||||
dodoc README HISTORY doc/{README.*,TODO,bug.template}
|
||||
|
||||
cd "${S}/contrib"
|
||||
emake DESTDIR="${D}" install
|
||||
cd "${S}"
|
||||
|
||||
dodir /etc/eselect/postgresql/slots/${SLOT}
|
||||
|
||||
echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" \
|
||||
> "${ED}/etc/eselect/postgresql/slots/${SLOT}/base"
|
||||
|
||||
keepdir /etc/postgresql-${SLOT}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
postgresql-config update
|
||||
|
||||
elog "If you need a global psqlrc-file, you can place it in:"
|
||||
elog " ${EROOT%/}/etc/postgresql-${SLOT}/"
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
postgresql-config update
|
||||
}
|
@ -1,150 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.2.23.ebuild,v 1.8 2012/02/19 11:02:33 klausman Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
WANT_AUTOMAKE="none"
|
||||
|
||||
inherit autotools eutils multilib prefix versionator
|
||||
|
||||
SLOT="$(get_version_component_range 1-2)"
|
||||
|
||||
KEYWORDS="alpha amd64 arm hppa ~ia64 ppc ~s390 ~sh ~sparc x86"
|
||||
|
||||
DESCRIPTION="PostgreSQL libraries and clients"
|
||||
HOMEPAGE="http://www.postgresql.org/"
|
||||
SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2
|
||||
http://dev.gentoo.org/~titanofold/postgresql-patches-8.2-r2.tbz2"
|
||||
LICENSE="POSTGRESQL"
|
||||
|
||||
S="${WORKDIR}/postgresql-${PV}"
|
||||
|
||||
# No tests to be done for clients and libraries
|
||||
RESTRICT="test"
|
||||
|
||||
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 ldap nls pam pg-intdatetime readline ssl threads 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}
|
||||
}
|
||||
|
||||
RDEPEND=">=app-admin/eselect-postgresql-1.0.10
|
||||
virtual/libintl
|
||||
!!dev-db/libpq
|
||||
!!dev-db/postgresql
|
||||
!!dev-db/postgresql-client
|
||||
!!dev-db/postgresql-libs
|
||||
kerberos? ( virtual/krb5 )
|
||||
ldap? ( net-nds/openldap )
|
||||
pam? ( virtual/pam )
|
||||
readline? ( >=sys-libs/readline-4.1 )
|
||||
ssl? ( >=dev-libs/openssl-0.9.6-r1 )
|
||||
zlib? ( >=sys-libs/zlib-1.1.3 )"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
!!<sys-apps/sandbox-2.0
|
||||
>=sys-devel/bison-1.875
|
||||
sys-devel/flex
|
||||
nls? ( sys-devel/gettext )"
|
||||
|
||||
PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )"
|
||||
|
||||
# Support /var/run or /run for the socket directory
|
||||
[[ ! -d /run ]] && RUNDIR=/var
|
||||
|
||||
src_prepare() {
|
||||
epatch "${WORKDIR}/autoconf.patch" \
|
||||
"${WORKDIR}/base.patch" \
|
||||
"${WORKDIR}/bool.patch" \
|
||||
"${WORKDIR}/darwin.patch" \
|
||||
"${WORKDIR}/relax_ssl_perms.patch" \
|
||||
"${WORKDIR}/SuperH.patch"
|
||||
|
||||
eprefixify src/include/pg_config_manual.h
|
||||
|
||||
# to avoid collision - it only should be installed by server
|
||||
rm "${S}/src/backend/nls.mk"
|
||||
|
||||
# because psql/help.c includes the file
|
||||
ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" || die
|
||||
|
||||
sed -e "s|@RUNDIR@|${RUNDIR}|g" \
|
||||
-i src/include/pg_config_manual.h || \
|
||||
die "RUNDIR sed failed"
|
||||
|
||||
eautoconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
export LDFLAGS_SL="${LDFLAGS}"
|
||||
local PO="${EPREFIX%/}"
|
||||
econf --prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \
|
||||
--datadir="${PO}/usr/share/postgresql-${SLOT}" \
|
||||
--includedir="${PO}/usr/include/postgresql-${SLOT}" \
|
||||
--mandir="${PO}/usr/share/postgresql-${SLOT}/man" \
|
||||
--sysconfdir="${PO}/etc/postgresql-${SLOT}" \
|
||||
--without-docdir \
|
||||
--without-perl \
|
||||
--without-python \
|
||||
--without-tcl \
|
||||
$(use_with kerberos krb5) \
|
||||
$(use_with ldap) \
|
||||
"$(use_enable nls nls "$(wanted_languages)")" \
|
||||
$(use_with pam) \
|
||||
$(use_enable pg-intdatetime integer-datetimes ) \
|
||||
$(use_with readline) \
|
||||
$(use_with ssl openssl) \
|
||||
$(use_enable threads thread-safety) \
|
||||
$(use_with zlib)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake
|
||||
|
||||
cd "${S}/contrib"
|
||||
emake
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
insinto /usr/include/postgresql-${SLOT}/postmaster
|
||||
doins "${S}"/src/include/postmaster/*.h
|
||||
|
||||
rm "${ED}"/usr/share/postgresql-${SLOT}/man/man1/{initdb,ipcclean,pg_{controldata,ctl,resetxlog},post{gres,master}}.1
|
||||
docompress /usr/share/postgresql-${SLOT}/man/man{1,7}
|
||||
dodoc README HISTORY doc/{README.*,TODO,bug.template}
|
||||
|
||||
cd "${S}/contrib"
|
||||
emake DESTDIR="${D}" install
|
||||
cd "${S}"
|
||||
|
||||
dodir /etc/eselect/postgresql/slots/${SLOT}
|
||||
|
||||
echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" \
|
||||
> "${ED}/etc/eselect/postgresql/slots/${SLOT}/base"
|
||||
|
||||
keepdir /etc/postgresql-${SLOT}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
postgresql-config update
|
||||
|
||||
elog "If you need a global psqlrc-file, you can place it in:"
|
||||
elog " ${EROOT%/}/etc/postgresql-${SLOT}/"
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
postgresql-config update
|
||||
}
|
@ -1,51 +0,0 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-docs/postgresql-docs-8.2.22.ebuild,v 1.6 2011/10/01 20:12:07 hwoarang Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit versionator
|
||||
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ppc s390 sh sparc x86"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
DESCRIPTION="PostgreSQL documentation"
|
||||
HOMEPAGE="http://www.postgresql.org/"
|
||||
SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2"
|
||||
LICENSE="POSTGRESQL"
|
||||
|
||||
S=${WORKDIR}/postgresql-${PV}
|
||||
SLOT="$(get_version_component_range 1-2)"
|
||||
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND=""
|
||||
|
||||
src_unpack() {
|
||||
tar xjf "${DISTDIR}/${A}" -C "${WORKDIR}" "${A%.tar.bz2}/doc"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cd "${S}/doc"
|
||||
|
||||
dodir /usr/share/doc/${PF}/html
|
||||
tar -zxf "postgres.tar.gz" -C "${ED}/usr/share/doc/${PF}/html"
|
||||
fowners root:0 -R /usr/share/doc/${PF}/html
|
||||
|
||||
docinto FAQ_html
|
||||
dodoc src/FAQ/*
|
||||
|
||||
docinto sgml
|
||||
dodoc src/sgml/*.{sgml,dsl}
|
||||
docinto sgml/ref
|
||||
dodoc src/sgml/ref/*.sgml
|
||||
|
||||
docinto TODO.detail
|
||||
dodoc TODO.detail/*
|
||||
|
||||
dodir /etc/eselect/postgresql/slots/${SLOT}
|
||||
echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" > \
|
||||
"${ED}/etc/eselect/postgresql/slots/${SLOT}/docs"
|
||||
}
|
@ -1,51 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-docs/postgresql-docs-8.2.23.ebuild,v 1.7 2012/02/19 11:02:49 klausman Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit versionator
|
||||
|
||||
KEYWORDS="alpha amd64 arm hppa ~ia64 ppc ~s390 ~sh ~sparc x86"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
DESCRIPTION="PostgreSQL documentation"
|
||||
HOMEPAGE="http://www.postgresql.org/"
|
||||
SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2"
|
||||
LICENSE="POSTGRESQL"
|
||||
|
||||
S=${WORKDIR}/postgresql-${PV}
|
||||
SLOT="$(get_version_component_range 1-2)"
|
||||
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND=""
|
||||
|
||||
src_unpack() {
|
||||
tar xjf "${DISTDIR}/${A}" -C "${WORKDIR}" "${A%.tar.bz2}/doc"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cd "${S}/doc"
|
||||
|
||||
dodir /usr/share/doc/${PF}/html
|
||||
tar -zxf "postgres.tar.gz" -C "${ED}/usr/share/doc/${PF}/html"
|
||||
fowners root:0 -R /usr/share/doc/${PF}/html
|
||||
|
||||
docinto FAQ_html
|
||||
dodoc src/FAQ/*
|
||||
|
||||
docinto sgml
|
||||
dodoc src/sgml/*.{sgml,dsl}
|
||||
docinto sgml/ref
|
||||
dodoc src/sgml/ref/*.sgml
|
||||
|
||||
docinto TODO.detail
|
||||
dodoc TODO.detail/*
|
||||
|
||||
dodir /etc/eselect/postgresql/slots/${SLOT}
|
||||
echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" > \
|
||||
"${ED}/etc/eselect/postgresql/slots/${SLOT}/docs"
|
||||
}
|
@ -1,316 +0,0 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/postgresql-server-8.2.22.ebuild,v 1.6 2011/10/01 20:19:20 hwoarang Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
WANT_AUTOMAKE="none"
|
||||
inherit autotools eutils multilib pam prefix versionator
|
||||
|
||||
SLOT="$(get_version_component_range 1-2)"
|
||||
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ppc s390 sh sparc x86"
|
||||
|
||||
DESCRIPTION="PostgreSQL server"
|
||||
HOMEPAGE="http://www.postgresql.org/"
|
||||
SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2
|
||||
http://dev.gentoo.org/~titanofold/postgresql-patches-${SLOT}-r1.tbz2
|
||||
http://dev.gentoo.org/~titanofold/postgresql-initscript-1.0.1.tbz2"
|
||||
LICENSE="POSTGRESQL"
|
||||
|
||||
S="${WORKDIR}/postgresql-${PV}"
|
||||
|
||||
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 kernel_linux nls pam perl python selinux tcl xml"
|
||||
|
||||
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}
|
||||
}
|
||||
|
||||
RDEPEND="~dev-db/postgresql-base-${PV}:${SLOT}[pam?,nls=]
|
||||
perl? ( >=dev-lang/perl-5.8 )
|
||||
selinux? ( sec-policy/selinux-postgresql )
|
||||
tcl? ( >=dev-lang/tcl-8 )
|
||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/flex
|
||||
xml? ( dev-util/pkgconfig )"
|
||||
|
||||
PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup postgres 70
|
||||
enewuser postgres 70 /bin/bash /var/lib/postgresql postgres
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${WORKDIR}/autoconf.patch" "${WORKDIR}/bool.patch" \
|
||||
"${WORKDIR}/darwin.patch" "${WORKDIR}/pg_ctl-exit-status.patch" \
|
||||
"${WORKDIR}/server.patch" "${WORKDIR}/SuperH.patch"
|
||||
|
||||
eprefixify src/include/pg_config_manual.h
|
||||
|
||||
if use test ; then
|
||||
epatch "${WORKDIR}/regress.patch"
|
||||
sed -e "s|@SOCKETDIR@|${T}|g" -i src/test/regress/pg_regress.c
|
||||
sed -e "s|/no/such/location|${S}/src/test/regress/tmp_check/no/such/location|g" \
|
||||
-i src/test/regress/{input,output}/tablespace.source
|
||||
else
|
||||
echo "all install:" > "${S}/src/test/regress/GNUmakefile"
|
||||
fi
|
||||
|
||||
eautoconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# eval is needed to get along with pg_config quotation of space-rich entities.
|
||||
eval econf "$(${EPREFIX%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --configure)" \
|
||||
--with-includes="${EPREFIX%/}/usr/include/postgresql-${SLOT}/" \
|
||||
$(use_with perl) \
|
||||
$(use_with python) \
|
||||
$(use_with tcl) \
|
||||
"$(has_version ~dev-db/postgresql-base-${PV}[nls] && use_enable nls nls "$(wanted_languages)")"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local bd
|
||||
for bd in . contrib $(use xml && echo contrib/xml2); do
|
||||
PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \
|
||||
emake -C $bd -j1 \
|
||||
PGXS=$(${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --pgxs) \
|
||||
PGXS_IN_SERVER=1 PGXS_WITH_SERVER="${S}/src/backend/postgres" \
|
||||
NO_PGXS=0 USE_PGXS=1 docdir=${EROOT%/}/usr/share/doc/${PF}
|
||||
done
|
||||
}
|
||||
|
||||
src_install() {
|
||||
if use perl ; then
|
||||
mv -f "${S}/src/pl/plperl/GNUmakefile" "${S}/src/pl/plperl/GNUmakefile_orig"
|
||||
sed -e "s:\$(DESTDIR)\$(plperl_installdir):\$(plperl_installdir):" \
|
||||
"${S}/src/pl/plperl/GNUmakefile_orig" > "${S}/src/pl/plperl/GNUmakefile"
|
||||
fi
|
||||
|
||||
local bd
|
||||
for bd in . contrib $(use xml && echo contrib/xml2) ; do
|
||||
PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \
|
||||
emake install -C $bd -j1 DESTDIR="${D}" \
|
||||
PGXS_IN_SERVER=1 PGXS_WITH_SERVER="${S}/src/backend/postgres" \
|
||||
PGXS=$(${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --pgxs) \
|
||||
NO_PGXS=0 USE_PGXS=1 docdir=${EROOT%/}/usr/share/doc/${PF}
|
||||
done
|
||||
|
||||
rm -r "${ED}/usr/share/postgresql-${SLOT}/man/man7/" "${ED}/usr/share/doc/${PF}/html"
|
||||
rm "${ED}"/usr/share/postgresql-${SLOT}/man/man1/{clusterdb,create{db,lang,user},drop{db,lang,user},ecpg,pg_{config,dump,dumpall,restore},psql,reindexdb,vacuumdb}.1
|
||||
docompress /usr/share/postgresql-${SLOT}/man/man1
|
||||
|
||||
dodoc README HISTORY doc/{README.*,TODO,bug.template}
|
||||
|
||||
dodir /etc/eselect/postgresql/slots/${SLOT}
|
||||
echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" \
|
||||
> "${ED}/etc/eselect/postgresql/slots/${SLOT}/server"
|
||||
|
||||
newconfd "${WORKDIR}/postgresql.confd" postgresql-${SLOT}
|
||||
newinitd "${WORKDIR}/postgresql.init" postgresql-${SLOT}
|
||||
|
||||
use pam && pamd_mimic system-auth postgresql auth account session
|
||||
|
||||
keepdir /var/run/postgresql
|
||||
fperms 0770 /var/run/postgresql
|
||||
use prefix || fowners postgres:postgres /var/run/postgresql
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
postgresql-config update
|
||||
|
||||
elog "The Unix-domain socket is located in:"
|
||||
elog " ${EROOT%/}/var/run/postgresql/"
|
||||
elog
|
||||
elog "If you have users and/or services that you would like to utilize the socket,"
|
||||
elog "you must add them to the 'postgres' system group:"
|
||||
elog " usermod -a -G postgres <user>"
|
||||
elog
|
||||
elog "Before initializing the database, you may want to edit PG_INITDB_OPTS so that"
|
||||
elog "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}"
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
postgresql-config update
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
[[ -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
|
||||
|
||||
[[ -z ${PG_MAX_CONNECTIONS} ]] && PG_MAX_CONNECTIONS=128
|
||||
einfo "Checking system parameters..."
|
||||
|
||||
if ! use kernel_linux ; then
|
||||
einfo "Skipped."
|
||||
einfo "Tests not supported on this OS (yet)"
|
||||
else
|
||||
if [[ -z ${SKIP_SYSTEM_TESTS} ]] ; then
|
||||
einfo "Checking whether your system supports at least ${PG_MAX_CONNECTIONS} connections..."
|
||||
|
||||
local SEMMSL=$(sysctl -n kernel.sem | cut -f1)
|
||||
local SEMMNS=$(sysctl -n kernel.sem | cut -f2)
|
||||
local SEMMNI=$(sysctl -n kernel.sem | cut -f4)
|
||||
local SHMMAX=$(sysctl -n kernel.shmmax)
|
||||
|
||||
local SEMMSL_MIN=17
|
||||
local SEMMNS_MIN=$(( ( ${PG_MAX_CONNECTIONS}/16 ) * 17 ))
|
||||
local SEMMNI_MIN=$(( ( ${PG_MAX_CONNECTIONS}+15 ) / 16 ))
|
||||
local SHMMAX_MIN=$(( 500000 + ( 30600 * ${PG_MAX_CONNECTIONS} ) ))
|
||||
|
||||
for p in SEMMSL SEMMNS SEMMNI SHMMAX ; do
|
||||
if [[ $(eval echo \$$p) -lt $(eval echo \$${p}_MIN) ]] ; then
|
||||
eerror "The value for ${p} $(eval echo \$$p) is below the recommended value $(eval echo \$${p}_MIN)"
|
||||
eerror "You have now several options:"
|
||||
eerror " - Change the mentioned system parameter"
|
||||
eerror " - Lower the number of max.connections by setting PG_MAX_CONNECTIONS to a"
|
||||
eerror " value lower than ${PG_MAX_CONNECTIONS}"
|
||||
eerror " - Set SKIP_SYSTEM_TESTS in case you want to ignore this test completely"
|
||||
eerror "More information can be found here:"
|
||||
eerror " http://www.postgresql.org/docs/${SLOT}/static/kernel-resources.html"
|
||||
die "System test failed."
|
||||
fi
|
||||
done
|
||||
einfo "Passed."
|
||||
else
|
||||
ewarn "SKIP_SYSTEM_TESTS set, so skipping."
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ ${EUID} == 0 ]] ; then
|
||||
einfo "Creating the data directory ..."
|
||||
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
|
||||
mv "${DATA_DIR%/}"/*.conf "${PGDATA}"
|
||||
|
||||
einfo "The autovacuum function, which was in contrib, has been moved to the main"
|
||||
einfo "PostgreSQL functions starting with 8.1."
|
||||
einfo "You can enable 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
|
||||
einfo "To start the server:"
|
||||
einfo " pg_ctl start -D ${DATA_DIR} -o '-D ${PGDATA} --data-directory=${DATA_DIR}'"
|
||||
einfo
|
||||
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 [[ ${UID} != 0 ]] ; then
|
||||
PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/:${PATH}" \
|
||||
emake check \
|
||||
PGXS=$("${EROOT%/}"/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --pgxs) \
|
||||
NO_PGXS=0 USE_PGXS=1 SLOT="${SLOT}"
|
||||
|
||||
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
|
||||
ewarn "Tests cannot be run as root. Skipping."
|
||||
ewarn "HINT: FEATURES=\"userpriv\""
|
||||
fi
|
||||
}
|
@ -1,338 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/postgresql-server-8.2.23-r1.ebuild,v 1.7 2012/02/19 11:03:07 klausman Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
WANT_AUTOMAKE="none"
|
||||
inherit autotools eutils multilib pam prefix versionator
|
||||
|
||||
SLOT="$(get_version_component_range 1-2)"
|
||||
|
||||
KEYWORDS="alpha amd64 arm hppa ~ia64 ppc ~s390 ~sh ~sparc x86"
|
||||
|
||||
DESCRIPTION="PostgreSQL server"
|
||||
HOMEPAGE="http://www.postgresql.org/"
|
||||
SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2
|
||||
http://dev.gentoo.org/~titanofold/postgresql-patches-8.2-r2.tbz2
|
||||
http://dev.gentoo.org/~titanofold/postgresql-initscript-2.1.tbz2"
|
||||
LICENSE="POSTGRESQL"
|
||||
|
||||
S="${WORKDIR}/postgresql-${PV}"
|
||||
|
||||
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 kernel_linux nls pam perl python selinux tcl xml"
|
||||
|
||||
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}
|
||||
}
|
||||
|
||||
RDEPEND="~dev-db/postgresql-base-${PV}:${SLOT}[pam?,nls=]
|
||||
perl? ( >=dev-lang/perl-5.8 )
|
||||
selinux? ( sec-policy/selinux-postgresql )
|
||||
tcl? ( >=dev-lang/tcl-8 )
|
||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/flex
|
||||
xml? ( dev-util/pkgconfig )"
|
||||
|
||||
PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )"
|
||||
|
||||
# Support /var/run or /run for the socket directory
|
||||
[[ ! -d /run ]] && RUNDIR=/var
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup postgres 70
|
||||
enewuser postgres 70 /bin/bash /var/lib/postgresql postgres
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${WORKDIR}/autoconf.patch" \
|
||||
"${WORKDIR}/bool.patch" \
|
||||
"${WORKDIR}/darwin.patch" \
|
||||
"${WORKDIR}/pg_ctl-exit-status.patch" \
|
||||
"${WORKDIR}/server.patch" \
|
||||
"${WORKDIR}/SuperH.patch"
|
||||
|
||||
eprefixify src/include/pg_config_manual.h
|
||||
|
||||
if use test ; then
|
||||
epatch "${WORKDIR}/regress.patch"
|
||||
sed -e "s|@SOCKETDIR@|${T}|g" -i src/test/regress/pg_regress.c
|
||||
sed -e "s|/no/such/location|${S}/src/test/regress/tmp_check/no/such/location|g" \
|
||||
-i src/test/regress/{input,output}/tablespace.source
|
||||
else
|
||||
echo "all install:" > "${S}/src/test/regress/GNUmakefile"
|
||||
fi
|
||||
|
||||
sed -e "s|@RUNDIR@|${RUNDIR}|g" \
|
||||
-i src/include/pg_config_manual.h "${WORKDIR}/postgresql.init" || \
|
||||
die "RUNDIR sed failed"
|
||||
sed -e "s|@SLOT@|${SLOT}|g" \
|
||||
-i "${WORKDIR}/postgresql.init" "${WORKDIR}/postgresql.confd" || \
|
||||
die "SLOT sed failed"
|
||||
|
||||
eautoconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# eval is needed to get along with pg_config quotation of space-rich entities.
|
||||
eval econf "$(${EPREFIX%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --configure)" \
|
||||
--with-includes="${EPREFIX%/}/usr/include/postgresql-${SLOT}/" \
|
||||
$(use_with perl) \
|
||||
$(use_with python) \
|
||||
$(use_with tcl) \
|
||||
"$(has_version ~dev-db/postgresql-base-${PV}[nls] && use_enable nls nls "$(wanted_languages)")"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local bd
|
||||
for bd in . contrib $(use xml && echo contrib/xml2); do
|
||||
PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \
|
||||
emake -C $bd -j1 \
|
||||
PGXS=$(${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --pgxs) \
|
||||
PGXS_IN_SERVER=1 PGXS_WITH_SERVER="${S}/src/backend/postgres" \
|
||||
NO_PGXS=0 USE_PGXS=1 docdir=${EROOT%/}/usr/share/doc/${PF}
|
||||
done
|
||||
}
|
||||
|
||||
src_install() {
|
||||
if use perl ; then
|
||||
mv -f "${S}/src/pl/plperl/GNUmakefile" "${S}/src/pl/plperl/GNUmakefile_orig"
|
||||
sed -e "s:\$(DESTDIR)\$(plperl_installdir):\$(plperl_installdir):" \
|
||||
"${S}/src/pl/plperl/GNUmakefile_orig" > "${S}/src/pl/plperl/GNUmakefile"
|
||||
fi
|
||||
|
||||
local bd
|
||||
for bd in . contrib $(use xml && echo contrib/xml2) ; do
|
||||
PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \
|
||||
emake install -C $bd -j1 DESTDIR="${D}" \
|
||||
PGXS_IN_SERVER=1 PGXS_WITH_SERVER="${S}/src/backend/postgres" \
|
||||
PGXS=$(${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --pgxs) \
|
||||
NO_PGXS=0 USE_PGXS=1 docdir=${EROOT%/}/usr/share/doc/${PF}
|
||||
done
|
||||
|
||||
rm -r "${ED}/usr/share/postgresql-${SLOT}/man/man7/" "${ED}/usr/share/doc/${PF}/html"
|
||||
rm "${ED}"/usr/share/postgresql-${SLOT}/man/man1/{clusterdb,create{db,lang,user},drop{db,lang,user},ecpg,pg_{config,dump,dumpall,restore},psql,reindexdb,vacuumdb}.1
|
||||
docompress /usr/share/postgresql-${SLOT}/man/man1
|
||||
|
||||
dodoc README HISTORY doc/{README.*,TODO,bug.template}
|
||||
|
||||
dodir /etc/eselect/postgresql/slots/${SLOT}
|
||||
echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" \
|
||||
> "${ED}/etc/eselect/postgresql/slots/${SLOT}/server"
|
||||
|
||||
newconfd "${WORKDIR}/postgresql.confd" postgresql-${SLOT}
|
||||
newinitd "${WORKDIR}/postgresql.init" postgresql-${SLOT}
|
||||
|
||||
use pam && pamd_mimic system-auth postgresql auth account session
|
||||
|
||||
if use prefix ; then
|
||||
keepdir ${RUNDIR}/run/postgresql
|
||||
fperms 0770 ${RUNDIR}/run/postgresql
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
postgresql-config update
|
||||
|
||||
elog "Gentoo specific documentation:"
|
||||
elog "http://www.gentoo.org/doc/en/postgres-howto.xml"
|
||||
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%/}${RUNDIR}/run/postgresql/"
|
||||
elog
|
||||
elog "If you have users and/or services that you would like to utilize the"
|
||||
elog "socket, you must add them to the 'postgres' system group:"
|
||||
elog " usermod -a -G postgres <user>"
|
||||
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}"
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
postgresql-config update
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
[[ -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
|
||||
|
||||
[[ -z ${PG_MAX_CONNECTIONS} ]] && PG_MAX_CONNECTIONS=128
|
||||
einfo "Checking system parameters..."
|
||||
|
||||
if ! use kernel_linux ; then
|
||||
einfo "Skipped."
|
||||
einfo "Tests not supported on this OS (yet)"
|
||||
else
|
||||
if [[ -z ${SKIP_SYSTEM_TESTS} ]] ; then
|
||||
ebegin "Checking whether your system supports at least ${PG_MAX_CONNECTIONS} connections"
|
||||
|
||||
local SEMMSL=$(sysctl -n kernel.sem | cut -f1)
|
||||
local SEMMNS=$(sysctl -n kernel.sem | cut -f2)
|
||||
local SEMMNI=$(sysctl -n kernel.sem | cut -f4)
|
||||
local SHMMAX=$(sysctl -n kernel.shmmax)
|
||||
|
||||
local SEMMSL_MIN=17
|
||||
local SEMMNS_MIN=$(( ( ${PG_MAX_CONNECTIONS}/16 ) * 17 ))
|
||||
local SEMMNI_MIN=$(( ( ${PG_MAX_CONNECTIONS}+15 ) / 16 ))
|
||||
local SHMMAX_MIN=$(( 500000 + ( 30600 * ${PG_MAX_CONNECTIONS} ) ))
|
||||
|
||||
for p in SEMMSL SEMMNS SEMMNI SHMMAX ; do
|
||||
if [[ $(eval echo \$$p) -lt $(eval echo \$${p}_MIN) ]] ; then
|
||||
eerror "The value for ${p} $(eval echo \$$p) is below the"
|
||||
eerror "recommended value $(eval echo \$${p}_MIN)"
|
||||
eerror "You have now several options:"
|
||||
eerror " - Change the mentioned system parameter"
|
||||
eerror " - Lower the number of max.connections by setting PG_MAX_CONNECTIONS to"
|
||||
eerror " a value lower than ${PG_MAX_CONNECTIONS}"
|
||||
eerror " - Set SKIP_SYSTEM_TESTS in case you want to ignore this test"
|
||||
eerror " completely"
|
||||
eerror "More information can be found here:"
|
||||
eerror " http://www.postgresql.org/docs/${SLOT}/static/kernel-resources.html"
|
||||
die "System test failed."
|
||||
fi
|
||||
done
|
||||
eend
|
||||
else
|
||||
ewarn "SKIP_SYSTEM_TESTS set, so skipping."
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ ${EUID} == 0 ]] ; then
|
||||
einfo "Creating the data directory ..."
|
||||
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
|
||||
mv "${DATA_DIR%/}"/*.conf "${PGDATA}"
|
||||
|
||||
einfo "The autovacuum function, which was in contrib, has been moved to the"
|
||||
einfo "main PostgreSQL functions starting with 8.1."
|
||||
einfo "You can enable 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
|
||||
einfo "To start the server:"
|
||||
einfo " pg_ctl start -D ${DATA_DIR} -o '-D ${PGDATA} --data-directory=${DATA_DIR}'"
|
||||
einfo
|
||||
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 [[ ${UID} != 0 ]] ; then
|
||||
PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/:${PATH}" \
|
||||
emake check \
|
||||
PGXS=$("${EROOT%/}"/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --pgxs) \
|
||||
NO_PGXS=0 USE_PGXS=1 SLOT="${SLOT}"
|
||||
|
||||
einfo "If you think other tests besides the regression tests are necessary,"
|
||||
einfo "please submit a bug including a patch for this ebuild to enable them."
|
||||
else
|
||||
ewarn "Tests cannot be run as root. Skipping."
|
||||
ewarn "HINT: FEATURES=\"userpriv\""
|
||||
fi
|
||||
}
|
@ -1,338 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/postgresql-server-8.2.23.ebuild,v 1.2 2012/01/30 19:51:21 ago Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
WANT_AUTOMAKE="none"
|
||||
inherit autotools eutils multilib pam prefix versionator
|
||||
|
||||
SLOT="$(get_version_component_range 1-2)"
|
||||
|
||||
KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~ppc ~s390 ~sh ~sparc ~x86"
|
||||
|
||||
DESCRIPTION="PostgreSQL server"
|
||||
HOMEPAGE="http://www.postgresql.org/"
|
||||
SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2
|
||||
http://dev.gentoo.org/~titanofold/postgresql-patches-8.2-r2.tbz2
|
||||
http://dev.gentoo.org/~titanofold/postgresql-initscript-2.0.tbz2"
|
||||
LICENSE="POSTGRESQL"
|
||||
|
||||
S="${WORKDIR}/postgresql-${PV}"
|
||||
|
||||
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 kernel_linux nls pam perl python selinux tcl xml"
|
||||
|
||||
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}
|
||||
}
|
||||
|
||||
RDEPEND="~dev-db/postgresql-base-${PV}:${SLOT}[pam?,nls=]
|
||||
perl? ( >=dev-lang/perl-5.8 )
|
||||
selinux? ( sec-policy/selinux-postgresql )
|
||||
tcl? ( >=dev-lang/tcl-8 )
|
||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/flex
|
||||
xml? ( dev-util/pkgconfig )"
|
||||
|
||||
PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )"
|
||||
|
||||
# Support /var/run or /run for the socket directory
|
||||
[[ ! -d /run ]] && RUNDIR=/var
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup postgres 70
|
||||
enewuser postgres 70 /bin/bash /var/lib/postgresql postgres
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${WORKDIR}/autoconf.patch" \
|
||||
"${WORKDIR}/bool.patch" \
|
||||
"${WORKDIR}/darwin.patch" \
|
||||
"${WORKDIR}/pg_ctl-exit-status.patch" \
|
||||
"${WORKDIR}/server.patch" \
|
||||
"${WORKDIR}/SuperH.patch"
|
||||
|
||||
eprefixify src/include/pg_config_manual.h
|
||||
|
||||
if use test ; then
|
||||
epatch "${WORKDIR}/regress.patch"
|
||||
sed -e "s|@SOCKETDIR@|${T}|g" -i src/test/regress/pg_regress.c
|
||||
sed -e "s|/no/such/location|${S}/src/test/regress/tmp_check/no/such/location|g" \
|
||||
-i src/test/regress/{input,output}/tablespace.source
|
||||
else
|
||||
echo "all install:" > "${S}/src/test/regress/GNUmakefile"
|
||||
fi
|
||||
|
||||
sed -e "s|@RUNDIR@|${RUNDIR}|g" \
|
||||
-i src/include/pg_config_manual.h "${WORKDIR}/postgresql.init" || \
|
||||
die "RUNDIR sed failed"
|
||||
sed -e "s|@SLOT@|${SLOT}|g" \
|
||||
-i "${WORKDIR}/postgresql.init" "${WORKDIR}/postgresql.confd" || \
|
||||
die "SLOT sed failed"
|
||||
|
||||
eautoconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# eval is needed to get along with pg_config quotation of space-rich entities.
|
||||
eval econf "$(${EPREFIX%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --configure)" \
|
||||
--with-includes="${EPREFIX%/}/usr/include/postgresql-${SLOT}/" \
|
||||
$(use_with perl) \
|
||||
$(use_with python) \
|
||||
$(use_with tcl) \
|
||||
"$(has_version ~dev-db/postgresql-base-${PV}[nls] && use_enable nls nls "$(wanted_languages)")"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local bd
|
||||
for bd in . contrib $(use xml && echo contrib/xml2); do
|
||||
PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \
|
||||
emake -C $bd -j1 \
|
||||
PGXS=$(${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --pgxs) \
|
||||
PGXS_IN_SERVER=1 PGXS_WITH_SERVER="${S}/src/backend/postgres" \
|
||||
NO_PGXS=0 USE_PGXS=1 docdir=${EROOT%/}/usr/share/doc/${PF}
|
||||
done
|
||||
}
|
||||
|
||||
src_install() {
|
||||
if use perl ; then
|
||||
mv -f "${S}/src/pl/plperl/GNUmakefile" "${S}/src/pl/plperl/GNUmakefile_orig"
|
||||
sed -e "s:\$(DESTDIR)\$(plperl_installdir):\$(plperl_installdir):" \
|
||||
"${S}/src/pl/plperl/GNUmakefile_orig" > "${S}/src/pl/plperl/GNUmakefile"
|
||||
fi
|
||||
|
||||
local bd
|
||||
for bd in . contrib $(use xml && echo contrib/xml2) ; do
|
||||
PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin:${PATH}" \
|
||||
emake install -C $bd -j1 DESTDIR="${D}" \
|
||||
PGXS_IN_SERVER=1 PGXS_WITH_SERVER="${S}/src/backend/postgres" \
|
||||
PGXS=$(${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --pgxs) \
|
||||
NO_PGXS=0 USE_PGXS=1 docdir=${EROOT%/}/usr/share/doc/${PF}
|
||||
done
|
||||
|
||||
rm -r "${ED}/usr/share/postgresql-${SLOT}/man/man7/" "${ED}/usr/share/doc/${PF}/html"
|
||||
rm "${ED}"/usr/share/postgresql-${SLOT}/man/man1/{clusterdb,create{db,lang,user},drop{db,lang,user},ecpg,pg_{config,dump,dumpall,restore},psql,reindexdb,vacuumdb}.1
|
||||
docompress /usr/share/postgresql-${SLOT}/man/man1
|
||||
|
||||
dodoc README HISTORY doc/{README.*,TODO,bug.template}
|
||||
|
||||
dodir /etc/eselect/postgresql/slots/${SLOT}
|
||||
echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" \
|
||||
> "${ED}/etc/eselect/postgresql/slots/${SLOT}/server"
|
||||
|
||||
newconfd "${WORKDIR}/postgresql.confd" postgresql-${SLOT}
|
||||
newinitd "${WORKDIR}/postgresql.init" postgresql-${SLOT}
|
||||
|
||||
use pam && pamd_mimic system-auth postgresql auth account session
|
||||
|
||||
if use prefix ; then
|
||||
keepdir ${RUNDIR}/run/postgresql
|
||||
fperms 0770 ${RUNDIR}/run/postgresql
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
postgresql-config update
|
||||
|
||||
elog "Gentoo specific documentation:"
|
||||
elog "http://www.gentoo.org/doc/en/postgres-howto.xml"
|
||||
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%/}${RUNDIR}/run/postgresql/"
|
||||
elog
|
||||
elog "If you have users and/or services that you would like to utilize the"
|
||||
elog "socket, you must add them to the 'postgres' system group:"
|
||||
elog " usermod -a -G postgres <user>"
|
||||
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}"
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
postgresql-config update
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
[[ -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
|
||||
|
||||
[[ -z ${PG_MAX_CONNECTIONS} ]] && PG_MAX_CONNECTIONS=128
|
||||
einfo "Checking system parameters..."
|
||||
|
||||
if ! use kernel_linux ; then
|
||||
einfo "Skipped."
|
||||
einfo "Tests not supported on this OS (yet)"
|
||||
else
|
||||
if [[ -z ${SKIP_SYSTEM_TESTS} ]] ; then
|
||||
ebegin "Checking whether your system supports at least ${PG_MAX_CONNECTIONS} connections"
|
||||
|
||||
local SEMMSL=$(sysctl -n kernel.sem | cut -f1)
|
||||
local SEMMNS=$(sysctl -n kernel.sem | cut -f2)
|
||||
local SEMMNI=$(sysctl -n kernel.sem | cut -f4)
|
||||
local SHMMAX=$(sysctl -n kernel.shmmax)
|
||||
|
||||
local SEMMSL_MIN=17
|
||||
local SEMMNS_MIN=$(( ( ${PG_MAX_CONNECTIONS}/16 ) * 17 ))
|
||||
local SEMMNI_MIN=$(( ( ${PG_MAX_CONNECTIONS}+15 ) / 16 ))
|
||||
local SHMMAX_MIN=$(( 500000 + ( 30600 * ${PG_MAX_CONNECTIONS} ) ))
|
||||
|
||||
for p in SEMMSL SEMMNS SEMMNI SHMMAX ; do
|
||||
if [[ $(eval echo \$$p) -lt $(eval echo \$${p}_MIN) ]] ; then
|
||||
eerror "The value for ${p} $(eval echo \$$p) is below the"
|
||||
eerror "recommended value $(eval echo \$${p}_MIN)"
|
||||
eerror "You have now several options:"
|
||||
eerror " - Change the mentioned system parameter"
|
||||
eerror " - Lower the number of max.connections by setting PG_MAX_CONNECTIONS to"
|
||||
eerror " a value lower than ${PG_MAX_CONNECTIONS}"
|
||||
eerror " - Set SKIP_SYSTEM_TESTS in case you want to ignore this test"
|
||||
eerror " completely"
|
||||
eerror "More information can be found here:"
|
||||
eerror " http://www.postgresql.org/docs/${SLOT}/static/kernel-resources.html"
|
||||
die "System test failed."
|
||||
fi
|
||||
done
|
||||
eend
|
||||
else
|
||||
ewarn "SKIP_SYSTEM_TESTS set, so skipping."
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ ${EUID} == 0 ]] ; then
|
||||
einfo "Creating the data directory ..."
|
||||
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
|
||||
mv "${DATA_DIR%/}"/*.conf "${PGDATA}"
|
||||
|
||||
einfo "The autovacuum function, which was in contrib, has been moved to the"
|
||||
einfo "main PostgreSQL functions starting with 8.1."
|
||||
einfo "You can enable 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
|
||||
einfo "To start the server:"
|
||||
einfo " pg_ctl start -D ${DATA_DIR} -o '-D ${PGDATA} --data-directory=${DATA_DIR}'"
|
||||
einfo
|
||||
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 [[ ${UID} != 0 ]] ; then
|
||||
PATH="${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/:${PATH}" \
|
||||
emake check \
|
||||
PGXS=$("${EROOT%/}"/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --pgxs) \
|
||||
NO_PGXS=0 USE_PGXS=1 SLOT="${SLOT}"
|
||||
|
||||
einfo "If you think other tests besides the regression tests are necessary,"
|
||||
einfo "please submit a bug including a patch for this ebuild to enable them."
|
||||
else
|
||||
ewarn "Tests cannot be run as root. Skipping."
|
||||
ewarn "HINT: FEATURES=\"userpriv\""
|
||||
fi
|
||||
}
|
@ -0,0 +1,119 @@
|
||||
Make ghc use the libffi installed on the system instead of the bundled one.
|
||||
|
||||
This patch is based on the one used by Debian and Fedora, but was
|
||||
augmented by additional lines to identify the libffi include directory
|
||||
using pkg-config, as libffi on Gentoo installs into a subdirectory of
|
||||
the system include directory.
|
||||
|
||||
2012-04-24 Martin von Gagern
|
||||
|
||||
References:
|
||||
https://bugs.gentoo.org/411925
|
||||
http://hackage.haskell.org/trac/ghc/ticket/5743
|
||||
|
||||
Index: ghc-7.4.1/ghc.mk
|
||||
===================================================================
|
||||
--- ghc-7.4.1.orig/ghc.mk
|
||||
+++ ghc-7.4.1/ghc.mk
|
||||
@@ -579,7 +579,6 @@ BUILD_DIRS += \
|
||||
driver/ghci \
|
||||
driver/ghc \
|
||||
driver/haddock \
|
||||
- libffi \
|
||||
includes \
|
||||
rts
|
||||
|
||||
Index: ghc-7.4.1/rts/ghc.mk
|
||||
===================================================================
|
||||
--- ghc-7.4.1.orig/rts/ghc.mk
|
||||
+++ ghc-7.4.1/rts/ghc.mk
|
||||
@@ -86,8 +86,7 @@
|
||||
ALL_RTS_DEF_LIBNAMES = base ghc-prim
|
||||
ALL_RTS_DEF_LIBS = \
|
||||
rts/dist/build/win32/libHSbase.dll.a \
|
||||
- rts/dist/build/win32/libHSghc-prim.dll.a \
|
||||
- libffi/build/inst/lib/libffi.dll.a
|
||||
+ rts/dist/build/win32/libHSghc-prim.dll.a
|
||||
|
||||
# -- import libs for the regular Haskell libraries
|
||||
define make-importlib-def # args $1 = lib name
|
||||
@@ -172,12 +171,12 @@
|
||||
# Making a shared library for the RTS.
|
||||
ifneq "$$(findstring dyn, $1)" ""
|
||||
ifeq "$$(HOSTPLATFORM)" "i386-unknown-mingw32"
|
||||
-$$(rts_$1_LIB) : $$(rts_$1_OBJS) $$(ALL_RTS_DEF_LIBS) rts/libs.depend rts/dist/build/libffi-5.dll
|
||||
+$$(rts_$1_LIB) : $$(rts_$1_OBJS) $$(ALL_RTS_DEF_LIBS) rts/libs.depend
|
||||
"$$(RM)" $$(RM_OPTS) $$@
|
||||
"$$(rts_dist_HC)" -package-name rts -shared -dynamic -dynload deploy \
|
||||
-no-auto-link-packages -Lrts/dist/build -lffi-5 `cat rts/libs.depend` $$(rts_$1_OBJS) $$(ALL_RTS_DEF_LIBS) -o $$@
|
||||
else
|
||||
-$$(rts_$1_LIB) : $$(rts_$1_OBJS) $$(rts_$1_DTRACE_OBJS) rts/libs.depend rts/dist/build/libffi$$(soext)
|
||||
+$$(rts_$1_LIB) : $$(rts_$1_OBJS) $$(rts_$1_DTRACE_OBJS) rts/libs.depend
|
||||
"$$(RM)" $$(RM_OPTS) $$@
|
||||
"$$(rts_dist_HC)" -package-name rts -shared -dynamic -dynload deploy \
|
||||
-no-auto-link-packages -Lrts/dist/build -lffi `cat rts/libs.depend` $$(rts_$1_OBJS) \
|
||||
@@ -188,9 +187,9 @@
|
||||
endif
|
||||
endif
|
||||
else
|
||||
-$$(rts_$1_LIB) : $$(rts_$1_OBJS) $$(rts_$1_DTRACE_OBJS) $$(rts_ffi_objs_stamp)
|
||||
+$$(rts_$1_LIB) : $$(rts_$1_OBJS) $$(rts_$1_DTRACE_OBJS)
|
||||
"$$(RM)" $$(RM_OPTS) $$@
|
||||
- echo $$(rts_ffi_objs) $$(rts_$1_OBJS) $$(rts_$1_DTRACE_OBJS) | "$$(XARGS)" $$(XARGS_OPTS) "$$(AR_STAGE1)" \
|
||||
+ echo $$(rts_$1_OBJS) $$(rts_$1_DTRACE_OBJS) | "$$(XARGS)" $$(XARGS_OPTS) "$$(AR_STAGE1)" \
|
||||
$$(AR_OPTS_STAGE1) $$(EXTRA_AR_ARGS_STAGE1) $$@
|
||||
endif
|
||||
|
||||
@@ -403,6 +402,12 @@
|
||||
rts/dist/build/sm/Evac_thr_CC_OPTS += -DPARALLEL_GC -Irts/sm
|
||||
rts/dist/build/sm/Scav_thr_CC_OPTS += -DPARALLEL_GC -Irts/sm
|
||||
|
||||
+# Use system libffi
|
||||
+libffi_include_flags:=$(shell pkg-config --cflags-only-I libffi)
|
||||
+rts/Adjustor_CC_OPTS += $(libffi_include_flags)
|
||||
+rts/Interpreter_CC_OPTS += $(libffi_include_flags)
|
||||
+rts/sm/Storage_CC_OPTS += $(libffi_include_flags)
|
||||
+
|
||||
#-----------------------------------------------------------------------------
|
||||
# Add PAPI library if needed
|
||||
|
||||
@@ -504,10 +509,8 @@
|
||||
# installing
|
||||
|
||||
INSTALL_LIBS += $(ALL_RTS_LIBS)
|
||||
-INSTALL_LIBS += $(wildcard rts/dist/build/libffi$(soext)*)
|
||||
-INSTALL_LIBS += $(wildcard rts/dist/build/libffi-5.dll)
|
||||
|
||||
-install: install_libffi_headers
|
||||
+install:
|
||||
|
||||
.PHONY: install_libffi_headers
|
||||
install_libffi_headers :
|
||||
Index: ghc-7.4.1/rts/package.conf.in
|
||||
===================================================================
|
||||
--- ghc-7.4.1.orig/rts/package.conf.in
|
||||
+++ ghc-7.4.1/rts/package.conf.in
|
||||
@@ -24,8 +24,9 @@
|
||||
hs-libraries: "HSrts"
|
||||
|
||||
extra-libraries:
|
||||
+ "ffi"
|
||||
#ifdef HAVE_LIBM
|
||||
- "m" /* for ldexp() */
|
||||
+ , "m" /* for ldexp() */
|
||||
#endif
|
||||
#ifdef HAVE_LIBRT
|
||||
, "rt"
|
||||
Index: ghc-7.4.1/compiler/ghc.mk
|
||||
===================================================================
|
||||
--- ghc-7.4.1.orig/compiler/ghc.mk
|
||||
+++ ghc-7.4.1/compiler/ghc.mk
|
||||
@@ -260,6 +260,8 @@
|
||||
|
||||
compiler_CPP_OPTS += -I$(GHC_INCLUDE_DIR)
|
||||
compiler_CPP_OPTS += ${GhcCppOpts}
|
||||
+libffi_include_flags := $(shell pkg-config --cflags-only-I libffi)
|
||||
+compiler/ghci/LibFFI_HSC2HS_OPTS += $(addprefix --cflag=,$(libffi_include_flags))
|
||||
|
||||
$(PRIMOPS_TXT) compiler/parser/Parser.y: %: %.pp compiler/stage1/$(PLATFORM_H)
|
||||
$(CPP) $(RAWCPP_FLAGS) -P $(compiler_CPP_OPTS) -x c $< | grep -v '^#pragma GCC' > $@
|
@ -0,0 +1,598 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/ghc/ghc-7.4.1-r1.ebuild,v 1.1 2012/04/27 18:14:42 slyfox Exp $
|
||||
|
||||
# Brief explanation of the bootstrap logic:
|
||||
#
|
||||
# Previous ghc ebuilds have been split into two: ghc and ghc-bin,
|
||||
# where ghc-bin was primarily used for bootstrapping purposes.
|
||||
# From now on, these two ebuilds have been combined, with the
|
||||
# binary USE flag used to determine whether or not the pre-built
|
||||
# binary package should be emerged or whether ghc should be compiled
|
||||
# from source. If the latter, then the relevant ghc-bin for the
|
||||
# arch in question will be used in the working directory to compile
|
||||
# ghc from source.
|
||||
#
|
||||
# This solution has the advantage of allowing us to retain the one
|
||||
# ebuild for both packages, and thus phase out virtual/ghc.
|
||||
|
||||
# Note to users of hardened gcc-3.x:
|
||||
#
|
||||
# If you emerge ghc with hardened gcc it should work fine (because we
|
||||
# turn off the hardened features that would otherwise break ghc).
|
||||
# However, emerging ghc while using a vanilla gcc and then switching to
|
||||
# hardened gcc (using gcc-config) will leave you with a broken ghc. To
|
||||
# fix it you would need to either switch back to vanilla gcc or re-emerge
|
||||
# ghc (or ghc-bin). Note that also if you are using hardened gcc-3.x and
|
||||
# you switch to gcc-4.x that this will also break ghc and you'll need to
|
||||
# re-emerge ghc (or ghc-bin). People using vanilla gcc can switch between
|
||||
# gcc-3.x and 4.x with no problems.
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit base autotools bash-completion-r1 eutils flag-o-matic multilib toolchain-funcs ghc-package versionator pax-utils
|
||||
|
||||
DESCRIPTION="The Glasgow Haskell Compiler"
|
||||
HOMEPAGE="http://www.haskell.org/ghc/"
|
||||
|
||||
# we don't have any binaries yet
|
||||
arch_binaries=""
|
||||
|
||||
# sorted!
|
||||
arch_binaries="$arch_binaries alpha? ( http://code.haskell.org/~slyfox/ghc-alpha/ghc-bin-${PV}-alpha.tbz2 )"
|
||||
#arch_binaries="$arch_binaries arm? ( http://code.haskell.org/~slyfox/ghc-arm/ghc-bin-${PV}-arm.tbz2 )"
|
||||
arch_binaries="$arch_binaries amd64? ( http://code.haskell.org/~slyfox/ghc-amd64/ghc-bin-${PV}-amd64.tbz2 )"
|
||||
#arch_binaries="$arch_binaries ia64? ( http://code.haskell.org/~slyfox/ghc-ia64/ghc-bin-${PV}-ia64-fixed-fiw.tbz2 )"
|
||||
arch_binaries="$arch_binaries ppc? ( http://code.haskell.org/~slyfox/ghc-ppc/ghc-bin-${PV}-ppc.tbz2 )"
|
||||
arch_binaries="$arch_binaries ppc64? ( http://code.haskell.org/~slyfox/ghc-ppc64/ghc-bin-${PV}-ppc64.tbz2 )"
|
||||
arch_binaries="$arch_binaries sparc? ( http://code.haskell.org/~slyfox/ghc-sparc/ghc-bin-${PV}-sparc.tbz2 )"
|
||||
arch_binaries="$arch_binaries x86? ( http://code.haskell.org/~slyfox/ghc-x86/ghc-bin-${PV}-x86.tbz2 )"
|
||||
|
||||
# various ports:
|
||||
#arch_binaries="$arch_binaries x86-fbsd? ( http://code.haskell.org/~slyfox/ghc-x86-fbsd/ghc-bin-${PV}-x86-fbsd.tbz2 )"
|
||||
|
||||
# 0 - yet
|
||||
yet_binary() {
|
||||
case "${ARCH}" in
|
||||
alpha) return 0 ;;
|
||||
#arm)
|
||||
# ewarn "ARM binary is built on armv5tel-eabi toolchain. Use with caution."
|
||||
# return 0
|
||||
#;;
|
||||
amd64) return 0 ;;
|
||||
ppc) return 0 ;;
|
||||
ppc64) return 0 ;;
|
||||
sparc) return 0 ;;
|
||||
x86) return 0 ;;
|
||||
*) return 1 ;;
|
||||
esac
|
||||
}
|
||||
|
||||
SRC_URI="!binary? ( http://www.haskell.org/ghc/dist/${PV}/${P}-src.tar.bz2 )"
|
||||
[[ -n $arch_binaries ]] && SRC_URI+=" !ghcbootstrap? ( $arch_binaries )"
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
# ghc on ia64 needs gcc to support -mcmodel=medium (or some dark hackery) to avoid TOC overflow
|
||||
KEYWORDS="~alpha ~amd64 -ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
|
||||
IUSE="doc ghcbootstrap llvm"
|
||||
IUSE+=" binary" # don't forget about me later!
|
||||
|
||||
RDEPEND="
|
||||
!kernel_Darwin? ( >=sys-devel/gcc-2.95.3 )
|
||||
kernel_linux? ( >=sys-devel/binutils-2.17 )
|
||||
kernel_SunOS? ( >=sys-devel/binutils-2.17 )
|
||||
>=dev-lang/perl-5.6.1
|
||||
>=dev-libs/gmp-5
|
||||
virtual/libffi
|
||||
!<dev-haskell/haddock-2.4.2
|
||||
sys-libs/ncurses[unicode]"
|
||||
# earlier versions than 2.4.2 of haddock only works with older ghc releases
|
||||
|
||||
# force dependency on >=gmp-5, even if >=gmp-4.1 would be enough. this is due to
|
||||
# that we want the binaries to use the latest versioun available, and not to be
|
||||
# built against gmp-4
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
ghcbootstrap? ( >=dev-haskell/alex-2.3
|
||||
>=dev-haskell/happy-1.18
|
||||
doc? ( app-text/docbook-xml-dtd:4.2
|
||||
app-text/docbook-xml-dtd:4.5
|
||||
app-text/docbook-xsl-stylesheets
|
||||
>=dev-libs/libxslt-1.1.2 ) )"
|
||||
# In the ghcbootstrap case we rely on the developer having
|
||||
# >=ghc-5.04.3 on their $PATH already
|
||||
|
||||
PDEPEND="!ghcbootstrap? ( =app-admin/haskell-updater-1.2* )"
|
||||
PDEPEND="
|
||||
${PDEPEND}
|
||||
llvm? ( sys-devel/llvm )"
|
||||
|
||||
append-ghc-cflags() {
|
||||
local flag compile assemble link
|
||||
for flag in $*; do
|
||||
case ${flag} in
|
||||
compile) compile="yes";;
|
||||
assemble) assemble="yes";;
|
||||
link) link="yes";;
|
||||
*)
|
||||
[[ ${compile} ]] && GHC_FLAGS="${GHC_FLAGS} -optc${flag}" CFLAGS="${CFLAGS} ${flag}"
|
||||
[[ ${assemble} ]] && GHC_FLAGS="${GHC_FLAGS} -opta${flag}" CFLAGS="${CFLAGS} ${flag}"
|
||||
[[ ${link} ]] && GHC_FLAGS="${GHC_FLAGS} -optl${flag}" FILTERED_LDFLAGS="${FILTERED_LDFLAGS} ${flag}";;
|
||||
esac
|
||||
done
|
||||
}
|
||||
|
||||
ghc_setup_cflags() {
|
||||
# We need to be very careful with the CFLAGS we ask ghc to pass through to
|
||||
# gcc. There are plenty of flags which will make gcc produce output that
|
||||
# breaks ghc in various ways. The main ones we want to pass through are
|
||||
# -mcpu / -march flags. These are important for arches like alpha & sparc.
|
||||
# We also use these CFLAGS for building the C parts of ghc, ie the rts.
|
||||
strip-flags
|
||||
strip-unsupported-flags
|
||||
|
||||
GHC_FLAGS=""
|
||||
for flag in ${CFLAGS}; do
|
||||
case ${flag} in
|
||||
|
||||
# Ignore extra optimisation (ghc passes -O to gcc anyway)
|
||||
# -O2 and above break on too many systems
|
||||
-O*) ;;
|
||||
|
||||
# Arch and ABI flags are what we're really after
|
||||
-m*) append-ghc-cflags compile assemble ${flag};;
|
||||
|
||||
# Debugging flags don't help either. You can't debug Haskell code
|
||||
# at the C source level and the mangler discards the debug info.
|
||||
-g*) ;;
|
||||
|
||||
# Ignore all other flags, including all -f* flags
|
||||
esac
|
||||
done
|
||||
|
||||
FILTERED_LDFLAGS=""
|
||||
for flag in ${LDFLAGS}; do
|
||||
case ${flag} in
|
||||
# Pass the canary. we don't quite respect LDFLAGS, but we have an excuse!
|
||||
"-Wl,--hash-style="*) append-ghc-cflags link ${flag};;
|
||||
|
||||
# Ignore all other flags
|
||||
esac
|
||||
done
|
||||
|
||||
# hardened-gcc needs to be disabled, because the mangler doesn't accept
|
||||
# its output.
|
||||
gcc-specs-pie && append-ghc-cflags compile link -nopie
|
||||
gcc-specs-ssp && append-ghc-cflags compile -fno-stack-protector
|
||||
|
||||
# prevent from failind building unregisterised ghc:
|
||||
# http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg171602.html
|
||||
use ppc64 && append-ghc-cflags compile -mminimal-toc
|
||||
# fix the similar issue as ppc64 TOC on ia64. ia64 has limited size of small data
|
||||
# currently ghc fails to build haddock
|
||||
# http://osdir.com/ml/gnu.binutils.bugs/2004-10/msg00050.html
|
||||
use ia64 && append-ghc-cflags compile -G0
|
||||
|
||||
# Unfortunately driver/split/ghc-split.lprl is dumb
|
||||
# enough to preserve stack marking for each split object
|
||||
# and it flags stack marking violation:
|
||||
# * !WX --- --- usr/lib64/ghc-7.4.1/base-4.5.0.0/libHSbase-4.5.0.0.a:Fingerprint__1.o
|
||||
# * !WX --- --- usr/lib64/ghc-7.4.1/base-4.5.0.0/libHSbase-4.5.0.0.a:Fingerprint__2.o
|
||||
# * !WX --- --- usr/lib64/ghc-7.4.1/base-4.5.0.0/libHSbase-4.5.0.0.a:Fingerprint__3.o
|
||||
case $($(tc-getAS) -v 2>&1 </dev/null) in
|
||||
*"GNU Binutils"*) # GNU ld
|
||||
append-ghc-cflags compile assemble -Wa,--noexecstack
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
# substitutes string $1 to $2 in files $3 $4 ...
|
||||
relocate_path() {
|
||||
local from=$1
|
||||
local to=$2
|
||||
shift 2
|
||||
local file=
|
||||
for file in "$@"
|
||||
do
|
||||
sed -i -e "s|$from|$to|g" \
|
||||
"$file" || die "path relocation failed for '$file'"
|
||||
done
|
||||
}
|
||||
|
||||
# changes hardcoded ghc paths and updates package index
|
||||
# $1 - new absolute root path
|
||||
relocate_ghc() {
|
||||
local to=$1
|
||||
|
||||
# backup original script to use it later after relocation
|
||||
local gp_back="${T}/ghc-pkg-${PV}-orig"
|
||||
cp "${WORKDIR}/usr/bin/ghc-pkg-${PV}" "$gp_back" || die "unable to backup ghc-pkg wrapper"
|
||||
|
||||
# Relocate from /usr to ${EPREFIX}/usr
|
||||
relocate_path "/usr" "${to}/usr" \
|
||||
"${WORKDIR}/usr/bin/ghc-${PV}" \
|
||||
"${WORKDIR}/usr/bin/ghci-${PV}" \
|
||||
"${WORKDIR}/usr/bin/ghc-pkg-${PV}" \
|
||||
"${WORKDIR}/usr/bin/hsc2hs" \
|
||||
"${WORKDIR}/usr/$(get_libdir)/${P}/package.conf.d/"*
|
||||
|
||||
# this one we will use to regenerate cache
|
||||
# so it shoult point to current tree location
|
||||
relocate_path "/usr" "${WORKDIR}/usr" "$gp_back"
|
||||
|
||||
if use prefix; then
|
||||
# and insert LD_LIBRARY_PATH entry to EPREFIX dir tree
|
||||
# TODO: add the same for darwin's CHOST and it's DYLD_
|
||||
local new_ldpath='LD_LIBRARY_PATH="'${EPREFIX}/$(get_libdir):${EPREFIX}/usr/$(get_libdir)'${LD_LIBRARY_PATH:+:}${LD_LIBRARY_PATH}"\nexport LD_LIBRARY_PATH'
|
||||
sed -i -e '2i'"$new_ldpath" \
|
||||
"${WORKDIR}/usr/bin/ghc-${PV}" \
|
||||
"${WORKDIR}/usr/bin/ghci-${PV}" \
|
||||
"${WORKDIR}/usr/bin/ghc-pkg-${PV}" \
|
||||
"$gp_back" \
|
||||
"${WORKDIR}/usr/bin/hsc2hs" \
|
||||
|| die "Adding LD_LIBRARY_PATH for wrappers failed"
|
||||
fi
|
||||
|
||||
# regenerate the binary package cache
|
||||
"$gp_back" recache || die "failed to update cache after relocation"
|
||||
rm "$gp_back"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
if use ghcbootstrap; then
|
||||
ewarn "You requested ghc bootstrapping, this is usually only used"
|
||||
ewarn "by Gentoo developers to make binary .tbz2 packages for"
|
||||
ewarn "use with the ghc ebuild's USE=\"binary\" feature."
|
||||
use binary && \
|
||||
die "USE=\"ghcbootstrap binary\" is not a valid combination."
|
||||
[[ -z $(type -P ghc) ]] && \
|
||||
die "Could not find a ghc to bootstrap with."
|
||||
else
|
||||
if ! yet_binary; then
|
||||
eerror "Please try emerging with USE=ghcbootstrap and report build"
|
||||
eerror "sucess or failure to the haskell team (haskell@gentoo.org)"
|
||||
die "No binary available for '${ARCH}' arch yet, USE=ghcbootstrap"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
# Create the ${S} dir if we're using the binary version
|
||||
use binary && mkdir "${S}"
|
||||
|
||||
# the Solaris and Darwin binaries from ghc (maeder) need to be
|
||||
# unpacked separately, so prevent them from being unpacked
|
||||
local ONLYA=${A}
|
||||
case ${CHOST} in
|
||||
*-darwin* | *-solaris*) ONLYA=${P}-src.tar.bz2 ;;
|
||||
esac
|
||||
unpack ${ONLYA}
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
ghc_setup_cflags
|
||||
|
||||
if ! use ghcbootstrap; then
|
||||
# Modify the wrapper script from the binary tarball to use GHC_FLAGS.
|
||||
# See bug #313635.
|
||||
sed -i -e "s|\"\$topdir\"|\"\$topdir\" ${GHC_FLAGS}|" \
|
||||
"${WORKDIR}/usr/bin/ghc-${PV}"
|
||||
|
||||
# allow hardened users use vanilla binary to bootstrap ghc
|
||||
# ghci uses mmap with rwx protection at it implements dynamic
|
||||
# linking on it's own (bug #299709)
|
||||
pax-mark -m "${WORKDIR}/usr/$(get_libdir)/${P}/ghc"
|
||||
fi
|
||||
|
||||
if use binary; then
|
||||
if use prefix; then
|
||||
relocate_ghc "${EPREFIX}"
|
||||
fi
|
||||
|
||||
# Move unpacked files to the expected place
|
||||
mv "${WORKDIR}/usr" "${S}"
|
||||
else
|
||||
if ! use ghcbootstrap; then
|
||||
case ${CHOST} in
|
||||
*-darwin* | *-solaris*)
|
||||
# UPDATE ME for ghc-7
|
||||
mkdir "${WORKDIR}"/ghc-bin-installer || die
|
||||
pushd "${WORKDIR}"/ghc-bin-installer > /dev/null || die
|
||||
use sparc-solaris && unpack ghc-6.10.4-sparc-sun-solaris2.tar.bz2
|
||||
use x86-solaris && unpack ghc-6.10.4-i386-unknown-solaris2.tar.bz2
|
||||
use ppc-macos && unpack ghc-6.10.1-powerpc-apple-darwin.tar.bz2
|
||||
use x86-macos && unpack ghc-6.10.1-i386-apple-darwin.tar.bz2
|
||||
popd > /dev/null
|
||||
|
||||
pushd "${WORKDIR}"/ghc-bin-installer/ghc-6.10.? > /dev/null || die
|
||||
# fix the binaries so they run, on Solaris we need an
|
||||
# LD_LIBRARY_PATH which has our prefix libdirs, on
|
||||
# Darwin we need to replace the frameworks with our libs
|
||||
# from the prefix fix before installation, because some
|
||||
# of the tools are actually used during configure/make
|
||||
if [[ ${CHOST} == *-solaris* ]] ; then
|
||||
export LD_LIBRARY_PATH="${EPREFIX}/$(get_libdir):${EPREFIX}/usr/$(get_libdir):${LD_LIBRARY_PATH}"
|
||||
elif [[ ${CHOST} == *-darwin* ]] ; then
|
||||
# http://hackage.haskell.org/trac/ghc/ticket/2942
|
||||
pushd utils/haddock/dist-install/build > /dev/null
|
||||
ln -s Haddock haddock >& /dev/null # fails on IN-sensitive
|
||||
popd > /dev/null
|
||||
|
||||
local readline_framework=GNUreadline.framework/GNUreadline
|
||||
local gmp_framework=/opt/local/lib/libgmp.3.dylib
|
||||
local ncurses_file=/opt/local/lib/libncurses.5.dylib
|
||||
for binary in $(scanmacho -BRE MH_EXECUTE -F '%F' .) ; do
|
||||
install_name_tool -change \
|
||||
${readline_framework} \
|
||||
"${EPREFIX}"/lib/libreadline.dylib \
|
||||
${binary} || die
|
||||
install_name_tool -change \
|
||||
${gmp_framework} \
|
||||
"${EPREFIX}"/usr/lib/libgmp.dylib \
|
||||
${binary} || die
|
||||
install_name_tool -change \
|
||||
${ncurses_file} \
|
||||
"${EPREFIX}"/usr/lib/libncurses.dylib \
|
||||
${binary} || die
|
||||
done
|
||||
# we don't do frameworks!
|
||||
sed -i \
|
||||
-e 's/\(frameworks = \)\["GMP"\]/\1[]/g' \
|
||||
-e 's/\(extraLibraries = \)\["m"\]/\1["m","gmp"]/g' \
|
||||
rts/package.conf.in || die
|
||||
fi
|
||||
|
||||
# it is autoconf, but we really don't want to give it too
|
||||
# much arguments, in fact we do the make in-place anyway
|
||||
./configure --prefix="${WORKDIR}"/usr || die
|
||||
make install || die
|
||||
popd > /dev/null
|
||||
;;
|
||||
*)
|
||||
relocate_ghc "${WORKDIR}"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
sed -i -e "s|\"\$topdir\"|\"\$topdir\" ${GHC_FLAGS}|" \
|
||||
"${S}/ghc/ghc.wrapper"
|
||||
|
||||
cd "${S}" # otherwise epatch will break
|
||||
|
||||
epatch "${FILESDIR}/ghc-7.0.4-CHOST-prefix.patch"
|
||||
|
||||
epatch "${FILESDIR}"/${PN}-7.0.4-darwin8.patch
|
||||
# failed to apply. FIXME
|
||||
#epatch "${FILESDIR}"/${PN}-6.12.3-mach-o-relocation-limit.patch
|
||||
|
||||
epatch "${FILESDIR}"/${PN}-7.4-rc2-macos-prefix-respect-gcc.patch
|
||||
epatch "${FILESDIR}"/${PN}-7.2.1-freebsd-CHOST.patch
|
||||
|
||||
# one mode external depend with unstable ABI be careful to stash it
|
||||
epatch "${FILESDIR}"/${PN}-7.4.2-system-libffi.patch
|
||||
|
||||
if use prefix; then
|
||||
# Make configure find docbook-xsl-stylesheets from Prefix
|
||||
sed -i -e '/^FP_DIR_DOCBOOK_XSL/s:\[.*\]:['"${EPREFIX}"'/usr/share/sgml/docbook/xsl-stylesheets/]:' utils/haddock/doc/configure.ac || die
|
||||
fi
|
||||
|
||||
# as we have changed the build system
|
||||
eautoreconf
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
if ! use binary; then
|
||||
|
||||
# initialize build.mk
|
||||
echo '# Gentoo changes' > mk/build.mk
|
||||
|
||||
# Put docs into the right place, ie /usr/share/doc/ghc-${PV}
|
||||
echo "docdir = ${EPREFIX}/usr/share/doc/${P}" >> mk/build.mk
|
||||
echo "htmldir = ${EPREFIX}/usr/share/doc/${P}" >> mk/build.mk
|
||||
|
||||
# We also need to use the GHC_FLAGS flags when building ghc itself
|
||||
echo "SRC_HC_OPTS+=${GHC_FLAGS}" >> mk/build.mk
|
||||
echo "SRC_CC_OPTS+=${CFLAGS}" >> mk/build.mk
|
||||
echo "SRC_LD_OPTS+=${FILTERED_LDFLAGS}" >> mk/build.mk
|
||||
|
||||
# We can't depend on haddock except when bootstrapping when we
|
||||
# must build docs and include them into the binary .tbz2 package
|
||||
if use ghcbootstrap && use doc; then
|
||||
echo "BUILD_DOCBOOK_PDF = NO" >> mk/build.mk
|
||||
echo "BUILD_DOCBOOK_PS = NO" >> mk/build.mk
|
||||
echo "BUILD_DOCBOOK_HTML = YES" >> mk/build.mk
|
||||
echo "HADDOCK_DOCS = YES" >> mk/build.mk
|
||||
else
|
||||
echo "BUILD_DOCBOOK_PDF = NO" >> mk/build.mk
|
||||
echo "BUILD_DOCBOOK_PS = NO" >> mk/build.mk
|
||||
echo "BUILD_DOCBOOK_HTML = NO" >> mk/build.mk
|
||||
echo "HADDOCK_DOCS = NO" >> mk/build.mk
|
||||
fi
|
||||
|
||||
# circumvent a very strange bug that seems related with ghc producing
|
||||
# too much output while being filtered through tee (e.g. due to
|
||||
# portage logging) reported as bug #111183
|
||||
echo "SRC_HC_OPTS+=-w" >> mk/build.mk
|
||||
|
||||
# some arches do not support ELF parsing for ghci module loading
|
||||
# PPC64: never worked (should be easy to implement)
|
||||
# alpha: never worked
|
||||
# arm: unimplemented or never worked
|
||||
if use alpha || use ppc64 || use arm; then
|
||||
echo "GhcWithInterpreter=NO" >> mk/build.mk
|
||||
fi
|
||||
|
||||
# we have to tell it to build unregisterised on some arches
|
||||
# ppc64: EvilMangler currently does not understand some TOCs
|
||||
# ia64: EvilMangler bitrot
|
||||
if use alpha || use ia64 || use ppc64; then
|
||||
echo "GhcUnregisterised=YES" >> mk/build.mk
|
||||
echo "GhcWithNativeCodeGen=NO" >> mk/build.mk
|
||||
echo "SplitObjs=NO" >> mk/build.mk
|
||||
echo "GhcRTSWays := debug" >> mk/build.mk
|
||||
echo "GhcNotThreaded=YES" >> mk/build.mk
|
||||
fi
|
||||
|
||||
# arm: no EvilMangler support, no NCG support
|
||||
if use arm; then
|
||||
echo "GhcUnregisterised=YES" >> mk/build.mk
|
||||
echo "GhcWithNativeCodeGen=NO" >> mk/build.mk
|
||||
fi
|
||||
|
||||
# Have "ld -r --relax" problem with split-objs on sparc:
|
||||
if use sparc; then
|
||||
echo "SplitObjs=NO" >> mk/build.mk
|
||||
fi
|
||||
|
||||
if ! use llvm; then
|
||||
echo "GhcWithLlvmCodeGen=NO" >> mk/build.mk
|
||||
fi
|
||||
|
||||
# Get ghc from the unpacked binary .tbz2
|
||||
# except when bootstrapping we just pick ghc up off the path
|
||||
if ! use ghcbootstrap; then
|
||||
export PATH="${WORKDIR}/usr/bin:${PATH}"
|
||||
fi
|
||||
|
||||
# Since GHC 6.12.2 the GHC wrappers store which GCC version GHC was
|
||||
# compiled with, by saving the path to it. The purpose is to make sure
|
||||
# that GHC will use the very same gcc version when it compiles haskell
|
||||
# sources, as the extra-gcc-opts files contains extra gcc options which
|
||||
# match only this GCC version.
|
||||
# However, this is not required in Gentoo, as only modern GCCs are used
|
||||
# (>4).
|
||||
# Instead, this causes trouble when for example ccache is used during
|
||||
# compilation, but we don't want the wrappers to point to ccache.
|
||||
# Due to the above, we simply set GCC to be "gcc". When compiling ghc it
|
||||
# might point to ccache, once installed it will point to the users
|
||||
# regular gcc.
|
||||
|
||||
econf --with-gcc=gcc || die "econf failed"
|
||||
fi # ! use binary
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if ! use binary; then
|
||||
limit_jobs() {
|
||||
if [[ -n ${I_DEMAND_MY_CORES_LOADED} ]]; then
|
||||
ewarn "You have requested parallel build which is known to break."
|
||||
ewarn "Please report all breakages upstream."
|
||||
return
|
||||
fi
|
||||
echo $@
|
||||
}
|
||||
# ghc massively parallel make: #409631, #409873
|
||||
# but let users screw it by setting 'I_DEMAND_MY_CORES_LOADED'
|
||||
emake $(limit_jobs -j1) all
|
||||
fi # ! use binary
|
||||
}
|
||||
|
||||
src_install() {
|
||||
if use binary; then
|
||||
use prefix && mkdir -p "${ED}"
|
||||
mv "${S}/usr" "${ED}"
|
||||
|
||||
# Remove the docs if not requested
|
||||
if ! use doc; then
|
||||
rm -rf "${ED}/usr/share/doc/${P}/*/" \
|
||||
"${ED}/usr/share/doc/${P}/*.html" \
|
||||
|| die "could not remove docs (P vs PF revision mismatch?)"
|
||||
fi
|
||||
else
|
||||
local insttarget="install"
|
||||
|
||||
# We only built docs if we were bootstrapping, otherwise
|
||||
# we copy them out of the unpacked binary .tbz2
|
||||
if use doc; then
|
||||
if ! use ghcbootstrap; then
|
||||
mkdir -p "${ED}/usr/share/doc"
|
||||
mv "${WORKDIR}/usr/share/doc/${P}" "${ED}/usr/share/doc" \
|
||||
|| die "failed to copy docs"
|
||||
fi
|
||||
fi
|
||||
|
||||
emake -j1 ${insttarget} \
|
||||
DESTDIR="${D}" \
|
||||
|| die "make ${insttarget} failed"
|
||||
|
||||
# remove wrapper and linker
|
||||
rm -f "${ED}"/usr/bin/haddock*
|
||||
|
||||
# ghci uses mmap with rwx protection at it implements dynamic
|
||||
# linking on it's own (bug #299709)
|
||||
# so mark resulting binary
|
||||
pax-mark -m "${ED}/usr/$(get_libdir)/${P}/ghc"
|
||||
|
||||
dodoc "${S}/README" "${S}/ANNOUNCE" "${S}/LICENSE" "${S}/VERSION"
|
||||
|
||||
dobashcomp "${FILESDIR}/ghc-bash-completion"
|
||||
|
||||
fi
|
||||
|
||||
# path to the package.cache
|
||||
PKGCACHE="${ED}/usr/$(get_libdir)/${P}/package.conf.d/package.cache"
|
||||
|
||||
# copy the package.conf, including timestamp, save it so we later can put it
|
||||
# back before uninstalling, or when upgrading.
|
||||
cp -p "${PKGCACHE}"{,.shipped} \
|
||||
|| die "failed to copy package.conf.d/package.cache"
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# have we got an earlier version of ghc installed?
|
||||
if has_version "<${CATEGORY}/${PF}"; then
|
||||
haskell_updater_warn="1"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ghc-reregister
|
||||
|
||||
# path to the package.cache
|
||||
PKGCACHE="${EROOT}/usr/$(get_libdir)/${P}/package.conf.d/package.cache"
|
||||
|
||||
# give the cache a new timestamp, it must be as recent as
|
||||
# the package.conf.d directory.
|
||||
touch "${PKGCACHE}"
|
||||
|
||||
if [[ "${haskell_updater_warn}" == "1" ]]; then
|
||||
ewarn
|
||||
ewarn "\e[1;31m************************************************************************\e[0m"
|
||||
ewarn
|
||||
ewarn "You have just upgraded from an older version of GHC."
|
||||
ewarn "You may have to run"
|
||||
ewarn " 'haskell-updater --upgrade'"
|
||||
ewarn "to rebuild all ghc-based Haskell libraries."
|
||||
ewarn
|
||||
ewarn "\e[1;31m************************************************************************\e[0m"
|
||||
ewarn
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
# Be very careful here... Call order when upgrading is (according to PMS):
|
||||
# * src_install for new package
|
||||
# * pkg_preinst for new package
|
||||
# * pkg_postinst for new package
|
||||
# * pkg_prerm for the package being replaced
|
||||
# * pkg_postrm for the package being replaced
|
||||
# so you'll actually be touching the new packages files, not the one you
|
||||
# uninstall, due to that or installation directory ${P} will be the same for
|
||||
# both packages.
|
||||
|
||||
# Call order for reinstalling is (according to PMS):
|
||||
# * src_install
|
||||
# * pkg_preinst
|
||||
# * pkg_prerm for the package being replaced
|
||||
# * pkg_postrm for the package being replaced
|
||||
# * pkg_postinst
|
||||
|
||||
# Overwrite the modified package.cache with a copy of the
|
||||
# original one, so that it will be removed during uninstall.
|
||||
|
||||
PKGCACHE="${EROOT}/usr/$(get_libdir)/${P}/package.conf.d/package.cache"
|
||||
rm -rf "${PKGCACHE}"
|
||||
|
||||
cp -p "${PKGCACHE}"{.shipped,}
|
||||
}
|
@ -0,0 +1,65 @@
|
||||
--- a/configure.in
|
||||
+++ b/configure.in
|
||||
@@ -18,6 +18,7 @@
|
||||
|
||||
AC_PROG_CXX
|
||||
AC_PROG_LIBTOOL
|
||||
+PKG_PROG_PKG_CONFIG
|
||||
|
||||
AC_LANG(C++)
|
||||
ACX_PTHREAD
|
||||
@@ -25,6 +26,12 @@
|
||||
AC_CHECK_HEADER([zlib.h], , AC_MSG_ERROR([zlib not found]))
|
||||
AC_CHECK_HEADER([cxxtools/net/tcpsocket.h], , AC_MSG_ERROR([cxxtools headers not found]))
|
||||
|
||||
+PKG_CHECK_MODULES([MINIZIP], [minizip],
|
||||
+ [HAVE_MINIZIP=true], [HAVE_MINIZIP=false])
|
||||
+AC_SUBST([MINIZIP_CFLAGS])
|
||||
+AC_SUBST([MINIZIP_LIBS])
|
||||
+AM_CONDITIONAL([HAVE_MINIZIP], [test $HAVE_MINIZIP = true])
|
||||
+
|
||||
AC_ARG_WITH([epoll],
|
||||
AS_HELP_STRING([--with-epoll=yes|no|probe], [use epoll]),
|
||||
[epoll_option=$withval],
|
||||
--- a/framework/common/Makefile.am
|
||||
+++ b/framework/common/Makefile.am
|
||||
@@ -23,7 +23,6 @@ libtntnet_la_SOURCES = \
|
||||
httpparser.cpp \
|
||||
httprequest.cpp \
|
||||
httpreply.cpp \
|
||||
- ioapi.c \
|
||||
job.cpp \
|
||||
langlib.cpp \
|
||||
listener.cpp \
|
||||
@@ -41,16 +40,13 @@ libtntnet_la_SOURCES = \
|
||||
stringlessignorecase.cpp \
|
||||
tntconfig.cpp \
|
||||
tntnet.cpp \
|
||||
- unzip.c \
|
||||
unzipfile.cpp \
|
||||
urlescostream.cpp \
|
||||
urlmapper.cpp \
|
||||
util.cpp \
|
||||
worker.cpp \
|
||||
zdata.cpp \
|
||||
- crypt.h \
|
||||
- ioapi.h \
|
||||
- unzip.h
|
||||
+ crypt.h
|
||||
|
||||
nobase_include_HEADERS = \
|
||||
tnt/applicationunlocker.h \
|
||||
@@ -145,3 +141,13 @@ noinst_HEADERS += \
|
||||
tnt/stressjob.h
|
||||
endif
|
||||
|
||||
+if HAVE_MINIZIP
|
||||
+libtntnet_la_CXXFLAGS += $(MINIZIP_CFLAGS)
|
||||
+libtntnet_la_LDFLAGS += $(MINIZIP_LIBS)
|
||||
+else
|
||||
+libtntnet_la_SOURCES += \
|
||||
+ ioapi.c \
|
||||
+ ioapi.h \
|
||||
+ unzip.c \
|
||||
+ unzip.h
|
||||
+endif
|
@ -0,0 +1 @@
|
||||
DIST SchemaObject-0.5.3.tar.gz 19921 RMD160 58bc0109c43cafc3c7f1ac8423850c89d87d4dc3 SHA1 b86ab6314de362763a63643ee0f3821d601e846a SHA256 8d63dde2ed6a6773b7a10cdb3aa9c43e05c6e16a7b3cc59b42ad71b80511d4e0
|
@ -0,0 +1,41 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/SchemaObject/SchemaObject-0.5.3.ebuild,v 1.1 2012/04/28 00:03:17 blueness Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
PYTHON_DEPEND="2:2.5:2.6"
|
||||
|
||||
inherit distutils
|
||||
|
||||
DESCRIPTION="A simple Python object interface to a MySQL database schema"
|
||||
HOMEPAGE="http://matuson.com/code/schemaobject/"
|
||||
SRC_URI="http://www.matuson.com/code/schemaobject/downloads/${P}.tar.gz"
|
||||
|
||||
pn="${PN,,}"
|
||||
S="${WORKDIR}/${pn}"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
pkg_setup() {
|
||||
python_set_active_version 2
|
||||
python_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
python_convert_shebangs -r 2 .
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
python_mod_optimize "${pn}"
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
python_mod_cleanup "${pn}"
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer>
|
||||
<email>blueness@gentoo.org</email>
|
||||
<name>Anthony G. Basile</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
@ -0,0 +1,2 @@
|
||||
DIST django-xslt-0.4.5.tar.gz 15717 RMD160 fe16d9d90ef48a639b4867a30a801f86fbfa5456 SHA1 e0c4b88c113b0ee47dc6adfe2c2cbb03a6625452 SHA256 db3bad334310e13a37391cbd52fc1b0432165d9a97494c9413008c0fc8023ccb
|
||||
DIST django-xslt-demoapp-0.4.5_p20120427.tar.bz2 5506 RMD160 81df2aba4987bac6fd5aa042121e52e398cc13df SHA1 73ab63fcb49d925cd3c58a8098cd46b833bb80e5 SHA256 a448e2cb6db716199915a1bc3a49ab28388cdb41d4ad3e7c6a0127e82143766f
|
@ -0,0 +1,37 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/django-xslt/django-xslt-0.4.5.ebuild,v 1.1 2012/04/27 13:48:21 tampakrap Exp $
|
||||
|
||||
EAPI=4
|
||||
PYTHON_DEPEND="2"
|
||||
SUPPORT_PYTHON_ABIS=1
|
||||
RESTRICT_PYTHON_ABIS="3.*"
|
||||
inherit distutils
|
||||
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz
|
||||
test? ( http://dev.gentoo.org/~tampakrap/tarballs/${PN}-demoapp-0.4.5_p20120427.tar.bz2 )"
|
||||
|
||||
DESCRIPTION="A configurable set of panels that display debug information"
|
||||
HOMEPAGE="http://pypi.python.org/pypi/django-xslt/"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
PYTHON_MODNAME="djangoxslt"
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/django
|
||||
dev-python/setuptools
|
||||
test? ( dev-python/lxml )"
|
||||
|
||||
src_test() {
|
||||
testing() {
|
||||
pushd "${WORKDIR}/demoapp" > /dev/null
|
||||
PYTHONPATH="${S}/build-${PYTHON_ABI}/lib/" \
|
||||
"$(PYTHON)" manage.py test
|
||||
popd "${WORKDIR}/demoapp" > /dev/null
|
||||
}
|
||||
python_execute_function testing
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer>
|
||||
<email>johneed@hotmail.com</email>
|
||||
<name>Ian Delaney</name>
|
||||
</maintainer>
|
||||
<maintainer>
|
||||
<email>tampakrap@gentoo.org</email>
|
||||
<name>Theo Chatzimichos</name>
|
||||
</maintainer>
|
||||
<herd>python</herd>
|
||||
</pkgmetadata>
|
||||
|
@ -0,0 +1 @@
|
||||
DIST errorhandler-1.1.1.tar.gz 8321 RMD160 3a60f826eb1bae0e249fdefd3d6c4eb3c598832f SHA1 da35daadd394e9c827e51e190de9a442d8de3d38 SHA256 2baa97a8a256fe72960d196bbdee4404162186f539c4d73b3f1c072db18463e9
|
@ -0,0 +1,55 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/errorhandler/errorhandler-1.1.1.ebuild,v 1.1 2012/04/27 12:52:42 tampakrap Exp $
|
||||
|
||||
EAPI=4
|
||||
PYTHON_DEPEND="2"
|
||||
SUPPORT_PYTHON_ABIS=1
|
||||
RESTRICT_PYTHON_ABIS="3.*"
|
||||
|
||||
inherit distutils eutils
|
||||
|
||||
DESCRIPTION="A logging framework handler that tracks when messages above a certain level have been logged"
|
||||
HOMEPAGE="http://pypi.python.org/pypi/errorhandler"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="${RDEPEND} dev-python/pkginfo
|
||||
dev-python/setuptools
|
||||
doc? ( dev-python/sphinx )"
|
||||
|
||||
src_prepare() {
|
||||
sed -e 's:../bin/sphinx-build:/usr/bin/sphinx-build:' -i docs/Makefile || die
|
||||
epatch "${FILESDIR}"/${P}-test.patch
|
||||
distutils_src_prepare
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
distutils_src_compile
|
||||
|
||||
if use doc; then
|
||||
emake -C docs html
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
testing() {
|
||||
PYTHONPATH="build-${PYTHON_ABI}/lib/" "$(PYTHON)" -c \
|
||||
"import errorhandler.tests as et, unittest; \
|
||||
unittest.TextTestRunner().run(et.test_suite())"
|
||||
}
|
||||
python_execute_function testing
|
||||
}
|
||||
|
||||
src_install() {
|
||||
if use doc; then
|
||||
dohtml -r docs/_build/html/
|
||||
fi
|
||||
distutils_src_install
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
diff -ur errorhandler-1.1.1.orig/errorhandler/tests.py errorhandler-1.1.1/errorhandler/tests.py
|
||||
--- errorhandler/tests.py 2010-03-01 16:41:46.000000000 +0800
|
||||
+++ errorhandler/tests.py 2012-04-26 02:28:11.991954681 +0800
|
||||
@@ -134,3 +134,5 @@
|
||||
tearDown=tearDown,
|
||||
optionflags=options),
|
||||
))
|
||||
+if __name__ == "__main__":
|
||||
+ unittest.main()
|
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer>
|
||||
<email>johneed@hotmail.com</email>
|
||||
<name>Ian Delaney</name>
|
||||
</maintainer>
|
||||
<maintainer>
|
||||
<email>tampakrap@gentoo.org</email>
|
||||
<name>Theo Chatzimichos</name>
|
||||
</maintainer>
|
||||
<herd>python</herd>
|
||||
</pkgmetadata>
|
||||
|
@ -0,0 +1 @@
|
||||
DIST pkginfo-0.8.tar.gz 22374 RMD160 ba986fa440be81477c446442d6c6b2ce480cfabe SHA1 05e7b8a266c26c2744695a33c6164243e2f7ec92 SHA256 5d37007c0ca72e41367bd2c1a9af6d5927996f516b6df7584110ef7cafd0efbb
|
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer>
|
||||
<email>johneed@hotmail.com</email>
|
||||
<name>Ian Delaney</name>
|
||||
</maintainer>
|
||||
<maintainer>
|
||||
<email>tampakrap@gentoo.org</email>
|
||||
<name>Theo Chatzimichos</name>
|
||||
</maintainer>
|
||||
<herd>python</herd>
|
||||
</pkgmetadata>
|
||||
|
@ -0,0 +1,61 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/pkginfo/pkginfo-0.8.ebuild,v 1.1 2012/04/27 12:49:29 tampakrap Exp $
|
||||
|
||||
EAPI=4
|
||||
PYTHON_DEPEND="2"
|
||||
SUPPORT_PYTHON_ABIS=1
|
||||
RESTRICT_PYTHON_ABIS="3.*"
|
||||
inherit distutils eutils
|
||||
|
||||
DESCRIPTION="Provides an API for querying the distutils metadata written in a PKG-INFO file"
|
||||
HOMEPAGE="http://pypi.python.org/pypi/pkginfo"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc examples"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
DEPEND="doc? ( dev-python/sphinx )
|
||||
dev-python/setuptools"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
sed -e 's:SPHINXBUILD = sphinx-build:SPHINXBUILD = /usr/bin/sphinx-build:' \
|
||||
-i docs/Makefile || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
distutils_src_compile
|
||||
if use doc; then
|
||||
emake -C docs html
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
testing() {
|
||||
pushd pkginfo/tests/ > /dev/null
|
||||
for test in test_*.py; do
|
||||
PYTHONPATH="../../build-${PYTHON_ABI}/lib/" \
|
||||
"$(PYTHON)" "${test}" || die "${test} failed with Python ${PYTHON_ABI}"
|
||||
if [[ $? ]]; then
|
||||
einfo "Test "${test}" successful"
|
||||
fi
|
||||
done
|
||||
popd > /dev/null
|
||||
}
|
||||
python_execute_function testing
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils_src_install
|
||||
|
||||
if use doc; then
|
||||
dohtml -r docs/.build/html/*
|
||||
fi
|
||||
|
||||
if use examples; then
|
||||
insinto usr/share/doc/${PF}/
|
||||
doins -r docs/examples/
|
||||
fi
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST pry-0.9.6.2.gem 84480 RMD160 cb6a437cd6900819f97fcf714b5870c6f092a60c SHA1 06c2033c120bc6df4d52e16bf76da4dbcd193d4c SHA256 3241e68f5696bfecc2c0c2ff1f3cadb687397d547df861120a865684e2e47e25
|
||||
DIST pry-0.9.7.4.gem 99328 RMD160 932120f7a5e3790314901e125807dc623695bf9e SHA1 27efd97aec9fbc879053decc533832671d8a12c4 SHA256 dd19dc0153d6569745227987deb8a504e3cd39e80779162d91b7c7805cfdb312
|
||||
|
@ -1,41 +0,0 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/pry/pry-0.9.6.2.ebuild,v 1.1 2011/10/24 18:43:59 graaff Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
USE_RUBY="ruby18 ree18"
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_EXTRADOC="README.markdown"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="Pry is a powerful alternative to the standard IRB shell for Ruby."
|
||||
HOMEPAGE="https://github.com/pry/pry/wiki"
|
||||
IUSE=""
|
||||
SLOT="0"
|
||||
|
||||
LICENSE="MIT"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
ruby_add_rdepend ">=dev-ruby/ruby_parser-2.0.5
|
||||
>=dev-ruby/coderay-0.9.8
|
||||
>=dev-ruby/slop-2.1.0
|
||||
>=dev-ruby/method_source-0.6.5"
|
||||
|
||||
ruby_add_bdepend "test? ( >=dev-ruby/bacon-1.1.0 )"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Make version dependencies more lenient to avoid problems with
|
||||
# compatible upgrades.
|
||||
sed -i -e 's/~> 2.0.5/>= 2.0.5/' \
|
||||
-e 's/~> 0.9.8/>= 0.9.8/' \
|
||||
-e 's/~> 2.1.0/>= 2.1.0/' \
|
||||
-e 's/~> 0.6.5/>= 0.6.5/' \
|
||||
pry.gemspec || die
|
||||
}
|
||||
|
||||
each_ruby_test() {
|
||||
${RUBY} -S bacon -Itest -a -q || die
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST akonadi-google-0.3.1.tar.gz 87677 RMD160 4e95da4a88ef402c747cfa0916e4d1cff4057254 SHA1 031a1f6edb56d9cd2bf9f32b38621ac827e685cc SHA256 bba88dbddb6fd14e75bea3cc08a1a66615a3a079299cac4c243d8ab86ef7aec0
|
||||
DIST akonadi-google-0.3.tar.gz 139920 RMD160 44670a4581adad3c35c6c0a7f6bfd8ff9f24da46 SHA1 959da6470c0cd3da3d6acf3bbd37f5bedee5c39d SHA256 85275628d09308f6b5e8f0c198749678cea472d0bb841d69be4ac19599970174
|
||||
|
@ -0,0 +1,34 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/kde-misc/akonadi-google/akonadi-google-0.3.1.ebuild,v 1.1 2012/04/27 22:00:24 johu Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
KDE_SCM="git"
|
||||
EGIT_REPONAME="akonadi-google"
|
||||
inherit kde4-base
|
||||
|
||||
DESCRIPTION="Google services integration in Akonadi"
|
||||
HOMEPAGE="https://projects.kde.org/projects/playground/pim/akonadi-google"
|
||||
SRC_URI="http://www.progdan.cz/wp-content/uploads/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="4"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="oldpim"
|
||||
|
||||
DEPEND="
|
||||
$(add_kdebase_dep kdepimlibs semantic-desktop)
|
||||
dev-libs/libxslt
|
||||
dev-libs/qjson
|
||||
oldpim? ( dev-libs/boost )
|
||||
!oldpim? ( $(add_kdebase_dep kdepimlibs semantic-desktop 4.6.0) )
|
||||
"
|
||||
RDEPEND=${DEPEND}
|
||||
|
||||
src_configure() {
|
||||
mycmakeargs=(
|
||||
$(cmake-utils_use oldpim KCAL)
|
||||
)
|
||||
kde4-base_src_configure
|
||||
}
|
@ -0,0 +1,66 @@
|
||||
yEd Software License Agreement
|
||||
Version 1.1
|
||||
|
||||
This is a legal agreement ("this Agreement") between yWorks GmbH ("yWorks") and the licensee ("the Licensee"). yWorks licenses the yEd Software ("the Software") only if all the following terms are accepted by the Licensee. The Software includes the yEd byte code executable and any files and documents associated with it.
|
||||
|
||||
By installing the Software, the Licensee is indicating that he/she has read and understands this Agreement and agrees to be bound by its terms and conditions. If this Agreement is unacceptable to the Licensee, the Licensee must destroy any copies of the Software in the Licensee's possession immediately.
|
||||
|
||||
1. LICENSE CONDITIONS
|
||||
|
||||
The Licensee is granted a non-exclusive and non-transferable right to install one copy of the Software and use it as an application. The Software may not be used as part of an automated process. The Licensee may not reverse engineer, disassemble, decompile, or unjar the Software, or otherwise attempt to derive the source code of the Software.
|
||||
|
||||
The Licensee acknowledges that Software furnished hereunder is under test and may be defective. No claims whatsoever can be made on yWorks based on any expectation about the Software.
|
||||
|
||||
2. TERM, TERMINATION AND SURVIVAL
|
||||
|
||||
The Licensee may terminate this Agreement at any time by destroying all copies of the Software in possession.
|
||||
|
||||
If the Licensee fails to comply with any term of this Agreement, this Agreement is terminated and the Licensee has no further right to use the Software.
|
||||
|
||||
On termination, the Licensee shall have no claim on or arising from the Software. The Software and any copies shall be destroyed.
|
||||
|
||||
3. NO WARRANTY
|
||||
|
||||
The Software is licensed to the Licensee on an "AS IS" basis. The Licensee is solely responsible for determining the suitability of the Software and accepts full responsibility and risks associated with the use of the Software.
|
||||
|
||||
4. MAINTENANCE AND SUPPORT
|
||||
|
||||
yWorks is not required to provide maintenance or support to the Licensee.
|
||||
|
||||
5. LIMITATION OF LIABILITY
|
||||
|
||||
In no event will yWorks be liable for any damages, including but not limited to any loss of revenue, profit, or data, however caused, directly or indirectly, by the Software or by this Agreement.
|
||||
|
||||
6. DISTRIBUTION
|
||||
|
||||
No distribution is to be made of the Software by the Licensee. The Licensee may make one copy of the Software for backup purpose only.
|
||||
|
||||
7. AVAILABILITY
|
||||
|
||||
The Software is not available to those not permitted by law to have access to the Software.
|
||||
|
||||
8. INSERTION OF MARKER
|
||||
|
||||
The Software may insert some markers into any output files to identify that the files are generated by the Software. yWorks bears no responsibility for any damages arising.
|
||||
|
||||
9. MISCELLANEOUS
|
||||
|
||||
This agreement is made and shall be construed in accordance with the laws of Germany.
|
||||
|
||||
THIRD-PARTY SOFTWARE AND LICENSES
|
||||
|
||||
This Software makes use of the Batik SVG Toolkit, Apache XMLBeans, and Apache POI. The Apache Software License (http://xml.apache.org/batik) applies to them.
|
||||
|
||||
This Software makes use of the JIDE Docking Framework and JIDE Action Framework licensed from JIDE Software (http://www.jidesoft.com).
|
||||
|
||||
This Software uses icons licensed from Incors GmbH (http://www.incors.com).
|
||||
|
||||
This Software includes a Swing LnF created by JGoodies and the dom4j library. The BSD License (http://www.opensource.org/licenses/bsd-license.html) applies to them.
|
||||
|
||||
This Software makes use of the FreeHEP VectorGraphics library (http://java.freehep.org). The GNU LESSER GENERAL PUBLIC LICENSE, Version 2.1 (http://java.freehep.org/vectorgraphics/license.html) applies to it.
|
||||
|
||||
This Software makes use of the JavaHelp System (https://javahelp.dev.java.net/). The GNU General Public License - Version 2 (https://javahelp.dev.java.net/license.txt) with the class path exception applies to it.
|
||||
|
||||
This Software makes use of the svg-viewer rendering engine (http://code.google.com/p/svg-viewer/). The MIT License (http://www.opensource.org/licenses/mit-license.php) applies to it.
|
||||
|
||||
The installer for this Software may contain a Java Runtime Environment (JRE) (http://java.com). The SUN MICROSYSTEMS, INC. BINARY CODE LICENSE AGREEMENT with SUPPLEMENTAL LICENSE TERMS (http://java.com/en/download/license.jsp) applies to it.
|
@ -1 +1 @@
|
||||
DIST pianobar-2012.01.10.tar.bz2 68839 RMD160 60573b71376d3494b4b46421c5ba24369136f025 SHA1 00ac42883157c5e3468ceb57161f1bf04b8fb020 SHA256 6d19e5abde542bcdf8b9cfa50448fbe95c1e113f59e54065c9f4e0fbf78690f9
|
||||
DIST pianobar-2012.04.24.tar.bz2 69538 RMD160 118a7a7b2f91df85a8b8d0ef46fa57fba39152a5 SHA1 a14d4fa3f86b933a663b4b58e003d8c96157ec79 SHA256 1286005b14ef58ea5b7baece054e772761e6351fdeceadd3a69e0a7c8b9bf28e
|
||||
|
@ -1,6 +1,6 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/media-sound/pianobar/pianobar-2012.01.10.ebuild,v 1.1 2012/01/11 07:08:42 radhermit Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/media-sound/pianobar/pianobar-2012.04.24.ebuild,v 1.1 2012/04/27 11:13:06 radhermit Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
@ -1,7 +1,7 @@
|
||||
sys-libs/ncurses >=app-admin/eselect-emacs-1.2 net-libs/liblockfile hesiod? ( net-dns/hesiod ) kerberos? ( virtual/krb5 ) alsa? ( media-libs/alsa-lib ) gpm? ( sys-libs/gpm ) dbus? ( sys-apps/dbus ) gnutls? ( net-libs/gnutls ) libxml2? ( >=dev-libs/libxml2-2.2.0 ) selinux? ( sys-libs/libselinux ) X? ( x11-libs/libXmu x11-libs/libXt x11-misc/xbitmaps gconf? ( >=gnome-base/gconf-2.26.2 ) gsettings? ( >=dev-libs/glib-2.28.6 ) gif? ( media-libs/giflib ) jpeg? ( virtual/jpeg ) png? ( >=media-libs/libpng-1.4:0 ) svg? ( >=gnome-base/librsvg-2.0 ) tiff? ( media-libs/tiff ) xpm? ( x11-libs/libXpm ) imagemagick? ( >=media-gfx/imagemagick-6.6.2 ) xft? ( media-libs/fontconfig media-libs/freetype x11-libs/libXft m17n-lib? ( >=dev-libs/libotf-0.9.4 >=dev-libs/m17n-lib-1.5.1 ) ) gtk? ( gtk3? ( x11-libs/gtk+:3 ) !gtk3? ( x11-libs/gtk+:2 ) ) !gtk? ( Xaw3d? ( x11-libs/libXaw3d ) !Xaw3d? ( athena? ( x11-libs/libXaw ) !athena? ( motif? ( >=x11-libs/openmotif-2.3:0 ) ) ) ) ) alsa? ( dev-util/pkgconfig ) dbus? ( dev-util/pkgconfig ) gnutls? ( dev-util/pkgconfig ) libxml2? ( dev-util/pkgconfig ) X? ( dev-util/pkgconfig ) gzip-el? ( app-arch/gzip ) || ( >=sys-devel/automake-1.11.1:1.11 ) >=sys-devel/autoconf-2.68 sys-devel/libtool
|
||||
sys-libs/ncurses >=app-admin/eselect-emacs-1.2 net-libs/liblockfile hesiod? ( net-dns/hesiod ) kerberos? ( virtual/krb5 ) alsa? ( media-libs/alsa-lib ) gpm? ( sys-libs/gpm ) dbus? ( sys-apps/dbus ) gnutls? ( net-libs/gnutls ) libxml2? ( >=dev-libs/libxml2-2.2.0 ) selinux? ( sys-libs/libselinux ) X? ( x11-libs/libXmu x11-libs/libXt x11-misc/xbitmaps gconf? ( >=gnome-base/gconf-2.26.2 ) gsettings? ( >=dev-libs/glib-2.28.6 ) gif? ( media-libs/giflib ) jpeg? ( virtual/jpeg ) png? ( >=media-libs/libpng-1.4:0 ) svg? ( >=gnome-base/librsvg-2.0 ) tiff? ( media-libs/tiff ) xpm? ( x11-libs/libXpm ) imagemagick? ( >=media-gfx/imagemagick-6.6.2 ) xft? ( media-libs/fontconfig media-libs/freetype x11-libs/libXft m17n-lib? ( >=dev-libs/libotf-0.9.4 >=dev-libs/m17n-lib-1.5.1 ) ) gtk? ( gtk3? ( x11-libs/gtk+:3 ) !gtk3? ( x11-libs/gtk+:2 ) ) !gtk? ( Xaw3d? ( x11-libs/libXaw3d ) !Xaw3d? ( athena? ( x11-libs/libXaw ) !athena? ( motif? ( >=x11-libs/openmotif-2.3:0 ) ) ) ) ) >=app-emacs/emacs-common-gentoo-1.3[X?]
|
||||
24
|
||||
mirror://gentoo/emacs-24.0.93.tar.gz mirror://gnu-alpha/emacs/pretest/emacs-24.0.93.tar.gz
|
||||
mirror://gentoo/emacs-24.0.96.tar.gz mirror://gnu-alpha/emacs/pretest/emacs-24.0.96.tar.gz
|
||||
|
||||
http://www.gnu.org/software/emacs/
|
||||
GPL-3 FDL-1.3 BSD as-is MIT W3C unicode PSF-2
|
@ -1,4 +1,4 @@
|
||||
sys-libs/libcap app-text/docbook-sgml-utils >=sys-kernel/linux-headers-2.6.29 || ( >=sys-devel/automake-1.11.1:1.11 ) >=sys-devel/autoconf-2.68 sys-devel/libtool
|
||||
sys-libs/libcap app-text/docbook-sgml-utils >=sys-kernel/linux-headers-2.6.29 virtual/linux-sources || ( >=sys-devel/automake-1.11.1:1.11 ) >=sys-devel/autoconf-2.68 sys-devel/libtool
|
||||
sys-libs/libcap !vanilla? ( sys-apps/util-linux app-misc/pax-utils >=sys-apps/openrc-0.9.9.1 )
|
||||
0
|
||||
http://lxc.sourceforge.net/download/lxc/lxc-0.8.0-rc1.tar.gz
|
@ -0,0 +1,22 @@
|
||||
|
||||
djvu? ( app-text/djvu ) pdf? ( media-gfx/imagemagick ) ocr? ( app-text/tesseract pdf? ( media-gfx/exact-image app-text/pdftk ) ) tk? ( dev-lang/tk )
|
||||
0
|
||||
http://njw.me.uk/software/getxbook/getxbook-0.9.tar.bz2
|
||||
|
||||
http://njw.me.uk/software/getxbook/
|
||||
ISC
|
||||
Download books from google, amazon, barnes and noble.
|
||||
~x86
|
||||
eutils multilib toolchain-funcs user
|
||||
pdf djvu ocr tk
|
||||
|
||||
|
||||
|
||||
4
|
||||
|
||||
compile install prepare
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,22 @@
|
||||
=dev-lang/gnat-gcc-4.3* doc? ( virtual/latex-base app-text/texi2html ) || ( >=sys-devel/automake-1.11.1 ) >=sys-devel/autoconf-2.68 sys-devel/libtool >=sys-apps/sed-4 sys-devel/gnuconfig >=app-admin/eselect-gnat-1.3
|
||||
=dev-lang/gnat-gcc-4.3* app-admin/eselect-gnat
|
||||
4.3
|
||||
http://dev.gentoo.org/~george/src/asis-gpl-2009-src.tgz
|
||||
|
||||
https://libre.adacore.com/
|
||||
GPL-2
|
||||
The Ada Semantic Interface Specification (semantic analysis and tools tied to compiler)
|
||||
~amd64 ~x86
|
||||
autotools eutils fixheadtails flag-o-matic gnatbuild gnuconfig libtool multilib pax-utils toolchain-funcs user versionator
|
||||
doc nls
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
compile install postinst postrm setup unpack
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,22 @@
|
||||
=dev-lang/gnat-gcc-4.4* doc? ( virtual/latex-base app-text/texi2html ) || ( >=sys-devel/automake-1.11.1 ) >=sys-devel/autoconf-2.68 sys-devel/libtool >=sys-apps/sed-4 sys-devel/gnuconfig >=app-admin/eselect-gnat-1.3
|
||||
=dev-lang/gnat-gcc-4.4* app-admin/eselect-gnat
|
||||
4.4
|
||||
http://dev.gentoo.org/~george/src/asis-gpl-2010-src.tgz
|
||||
|
||||
https://libre.adacore.com/
|
||||
GPL-2
|
||||
The Ada Semantic Interface Specification (semantic analysis and tools tied to compiler)
|
||||
~amd64 ~x86
|
||||
autotools eutils fixheadtails flag-o-matic gnatbuild gnuconfig libtool multilib pax-utils toolchain-funcs user versionator
|
||||
doc nls
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
compile install postinst postrm setup unpack
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,22 @@
|
||||
dev-python/mysql-python dev-python/SchemaObject || ( =dev-lang/python-2.6* =dev-lang/python-2.5* )
|
||||
dev-python/mysql-python dev-python/SchemaObject || ( =dev-lang/python-2.6* =dev-lang/python-2.5* )
|
||||
0
|
||||
http://www.schemasync.org/downloads/SchemaSync-0.9.2.tar.gz
|
||||
|
||||
http://schemasync.org/
|
||||
Apache-2.0
|
||||
MySQL Schema Versioning and Migration Utility
|
||||
~amd64 ~x86
|
||||
distutils multilib python toolchain-funcs
|
||||
|
||||
|
||||
|
||||
|
||||
4
|
||||
|
||||
compile install postinst postrm prepare setup
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,22 +0,0 @@
|
||||
>=app-admin/eselect-postgresql-1.0.10 virtual/libintl !!dev-db/libpq !!dev-db/postgresql !!dev-db/postgresql-client !!dev-db/postgresql-libs kerberos? ( virtual/krb5 ) ldap? ( net-nds/openldap ) pam? ( virtual/pam ) readline? ( >=sys-libs/readline-4.1 ) ssl? ( >=dev-libs/openssl-0.9.6-r1 ) zlib? ( >=sys-libs/zlib-1.1.3 ) >=sys-apps/sandbox-2.0 >=sys-devel/bison-1.875 sys-devel/flex nls? ( sys-devel/gettext ) >=sys-devel/autoconf-2.68 sys-devel/libtool
|
||||
>=app-admin/eselect-postgresql-1.0.10 virtual/libintl !!dev-db/libpq !!dev-db/postgresql !!dev-db/postgresql-client !!dev-db/postgresql-libs kerberos? ( virtual/krb5 ) ldap? ( net-nds/openldap ) pam? ( virtual/pam ) readline? ( >=sys-libs/readline-4.1 ) ssl? ( >=dev-libs/openssl-0.9.6-r1 ) zlib? ( >=sys-libs/zlib-1.1.3 )
|
||||
8.2
|
||||
mirror://postgresql/source/v8.2.22/postgresql-8.2.22.tar.bz2 http://dev.gentoo.org/~titanofold/postgresql-patches-8.2-r1.tbz2
|
||||
test
|
||||
http://www.postgresql.org/
|
||||
POSTGRESQL
|
||||
PostgreSQL libraries and clients
|
||||
alpha amd64 arm hppa ia64 ppc s390 sh sparc x86
|
||||
autotools eutils libtool multilib prefix toolchain-funcs user versionator
|
||||
doc kerberos ldap nls pam pg-intdatetime readline ssl threads zlib linguas_af linguas_cs linguas_de linguas_en linguas_es linguas_fa linguas_fr linguas_hr linguas_hu linguas_it linguas_ko linguas_nb linguas_pl linguas_pt_BR linguas_ro linguas_ru linguas_sk linguas_sl linguas_sv linguas_tr linguas_zh_CN linguas_zh_TW
|
||||
|
||||
doc? ( ~dev-db/postgresql-docs-8.2.22 )
|
||||
|
||||
4
|
||||
|
||||
compile configure install postinst postrm prepare
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,22 +0,0 @@
|
||||
>=app-admin/eselect-postgresql-1.0.10 virtual/libintl !!dev-db/libpq !!dev-db/postgresql !!dev-db/postgresql-client !!dev-db/postgresql-libs kerberos? ( virtual/krb5 ) ldap? ( net-nds/openldap ) pam? ( virtual/pam ) readline? ( >=sys-libs/readline-4.1 ) ssl? ( >=dev-libs/openssl-0.9.6-r1 ) zlib? ( >=sys-libs/zlib-1.1.3 ) !!<sys-apps/sandbox-2.0 >=sys-devel/bison-1.875 sys-devel/flex nls? ( sys-devel/gettext ) >=sys-devel/autoconf-2.68 sys-devel/libtool
|
||||
>=app-admin/eselect-postgresql-1.0.10 virtual/libintl !!dev-db/libpq !!dev-db/postgresql !!dev-db/postgresql-client !!dev-db/postgresql-libs kerberos? ( virtual/krb5 ) ldap? ( net-nds/openldap ) pam? ( virtual/pam ) readline? ( >=sys-libs/readline-4.1 ) ssl? ( >=dev-libs/openssl-0.9.6-r1 ) zlib? ( >=sys-libs/zlib-1.1.3 )
|
||||
8.2
|
||||
mirror://postgresql/source/v8.2.23/postgresql-8.2.23.tar.bz2 http://dev.gentoo.org/~titanofold/postgresql-patches-8.2-r2.tbz2
|
||||
test
|
||||
http://www.postgresql.org/
|
||||
POSTGRESQL
|
||||
PostgreSQL libraries and clients
|
||||
alpha amd64 arm hppa ~ia64 ppc ~s390 ~sh ~sparc x86
|
||||
autotools eutils libtool multilib prefix toolchain-funcs user versionator
|
||||
doc kerberos ldap nls pam pg-intdatetime readline ssl threads zlib linguas_af linguas_cs linguas_de linguas_en linguas_es linguas_fa linguas_fr linguas_hr linguas_hu linguas_it linguas_ko linguas_nb linguas_pl linguas_pt_BR linguas_ro linguas_ru linguas_sk linguas_sl linguas_sv linguas_tr linguas_zh_CN linguas_zh_TW
|
||||
|
||||
doc? ( ~dev-db/postgresql-docs-8.2.23 )
|
||||
|
||||
4
|
||||
|
||||
compile configure install postinst postrm prepare
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,22 +0,0 @@
|
||||
|
||||
|
||||
8.2
|
||||
mirror://postgresql/source/v8.2.22/postgresql-8.2.22.tar.bz2
|
||||
test
|
||||
http://www.postgresql.org/
|
||||
POSTGRESQL
|
||||
PostgreSQL documentation
|
||||
alpha amd64 arm hppa ia64 ppc s390 sh sparc x86
|
||||
eutils multilib toolchain-funcs user versionator
|
||||
|
||||
|
||||
|
||||
|
||||
4
|
||||
|
||||
install unpack
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,22 +0,0 @@
|
||||
|
||||
|
||||
8.2
|
||||
mirror://postgresql/source/v8.2.23/postgresql-8.2.23.tar.bz2
|
||||
test
|
||||
http://www.postgresql.org/
|
||||
POSTGRESQL
|
||||
PostgreSQL documentation
|
||||
alpha amd64 arm hppa ~ia64 ppc ~s390 ~sh ~sparc x86
|
||||
eutils multilib toolchain-funcs user versionator
|
||||
|
||||
|
||||
|
||||
|
||||
4
|
||||
|
||||
install unpack
|
||||
|
||||
|
||||
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue