Skip to content

Instantly share code, notes, and snippets.

@stargieg
Created February 16, 2013 11:14
Show Gist options
  • Save stargieg/4966467 to your computer and use it in GitHub Desktop.
Save stargieg/4966467 to your computer and use it in GitHub Desktop.
geocouch 1.2.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.2.1.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.2.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_compile() {
emake COUCH_SRC="/var/tmp/portage/dev-db/couchdb-${PV}/work/apache-couchdb-${PV}/src/couchdb/" || die "emake failed"
}
src_install() {
insinto /usr/lib/couchdb/erlang/lib/couch-${PV}/ebin
insopts -m0644 -ocouchdb -gcouchdb
doins ebin/*
insinto /etc/couchdb/default.d
doins "etc/couchdb/default.d/geocouch.ini"
fowners root:couchdb /etc/couchdb/default.d/geocouch.ini
fperms 660 /etc/couchdb/default.d/geocouch.ini
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment