Skip to content

Instantly share code, notes, and snippets.

@stsydow
Created September 18, 2011 19:51
Show Gist options
  • Save stsydow/1225478 to your computer and use it in GitHub Desktop.
Save stsydow/1225478 to your computer and use it in GitHub Desktop.
geocouch 1.1 ebuild
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: http://svn.ignition-project.com/hamsterrific-overlay/trunk/dev-db/geocouch/geocouch-1.1.0.ebuild
EAPI="2"
inherit eutils git-2
DESCRIPTION="GeoCouch is a plugin for CouchDB that provides spatial support"
HOMEPAGE="https://github.com/couchbase/geocouch"
EGIT_BRANCH="couchdb1.1.x"
EGIT_REPO_URI="git://github.com/couchbase/geocouch.git"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE=""
RDEPEND="~dev-db/couchdb-${PV}"
DEPEND="${RDEPEND}"
S="${WORKDIR}/geocouch"
src_unpack() {
unpack "${A}" || die "unpack failed"
git-2_src_unpack || die "git unpack failed"
}
src_compile() {
emake COUCH_SRC="${WORKDIR}/apache-couchdb-${PV}/src/couchdb" || die "emake failed"
}
src_install() {
insinto /usr/lib/couchdb/erlang/lib/couch-${PV}/ebin
insopts -m0644 -ocouchdb -gcouchdb
doins build/*
insinto /etc/couchdb/local.d
doins "etc/couchdb/local.d/geocouch.ini"
fowners root:couchdb /etc/couchdb/local.d/geocouch.ini
fperms 660 /etc/couchdb/local.d/geocouch.ini
}
@stsydow
Copy link
Author

stsydow commented Sep 18, 2011

The ebuild is based ziggythehamster#s geocouch ebuild (see $Header tag).
I just had some hints for the update to 1.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment