summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLance Albertson <ramereth@gentoo.org>2010-03-25 21:32:43 +0000
committerLance Albertson <ramereth@gentoo.org>2010-03-25 21:32:43 +0000
commit107bb7ca8662639a821909ebd9e5a3246b037476 (patch)
tree8c6faa944375c08c60ec8ec51dd5a4fae66dbcb9 /dev-db/mongodb/mongodb-1.4.0.ebuild
parentfix for bug #305553 and removed ancient 0.5 (diff)
downloadhistorical-107bb7ca8662639a821909ebd9e5a3246b037476.tar.gz
historical-107bb7ca8662639a821909ebd9e5a3246b037476.tar.bz2
historical-107bb7ca8662639a821909ebd9e5a3246b037476.zip
Version bump to latest upsteam stable version 1.4.0
Package-Manager: portage-2.1.7.17/cvs/Linux x86_64
Diffstat (limited to 'dev-db/mongodb/mongodb-1.4.0.ebuild')
-rw-r--r--dev-db/mongodb/mongodb-1.4.0.ebuild61
1 files changed, 61 insertions, 0 deletions
diff --git a/dev-db/mongodb/mongodb-1.4.0.ebuild b/dev-db/mongodb/mongodb-1.4.0.ebuild
new file mode 100644
index 000000000000..8dc16b792bfd
--- /dev/null
+++ b/dev-db/mongodb/mongodb-1.4.0.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/mongodb/mongodb-1.4.0.ebuild,v 1.1 2010/03/25 21:32:43 ramereth Exp $
+
+EAPI="2"
+
+inherit eutils versionator
+
+MY_PATCHVER=$(get_version_component_range 1-2)
+MY_P="${PN}-src-r${PV}"
+
+DESCRIPTION="A high-performance, open source, schema-free document-oriented database"
+HOMEPAGE="http://www.mongodb.org"
+SRC_URI="http://downloads.mongodb.org/src/${MY_P}.tar.gz"
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="dev-lang/spidermonkey[unicode]
+ dev-libs/boost
+ dev-libs/libpcre"
+
+DEPEND="${RDEPEND}
+ >=dev-util/scons-1.2.0-r1"
+
+# Must change this on every upgrade
+S="${WORKDIR}/${MY_P}"
+
+pkg_setup() {
+ enewgroup mongodb
+ enewuser mongodb -1 -1 /var/lib/${PN} mongodb
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/"${PN}"-"${MY_PATCHVER}"-modify-*.patch
+}
+
+src_compile() {
+ scons ${MAKEOPTS} all || die "Compile failed"
+}
+
+src_install() {
+ scons ${MAKEOPTS} install --prefix="${D}"/usr || die "Install failed"
+
+ for x in /var/{lib,log,run}/${PN}; do
+ dodir "${x}" || die "Install failed"
+ fowners mongodb:mongodb "${x}"
+ done
+
+ doman debian/mongo*.1 || die "Install failed"
+ dodoc README docs/building.md
+
+ newinitd "${FILESDIR}/${PN}.initd" ${PN} || die "Install failed"
+ newconfd "${FILESDIR}/${PN}.confd" ${PN} || die "Install failed"
+}
+
+src_test() {
+ scons ${MAKEOPTS} smoke test || die "Tests failed"
+}