Ebuild
23. Februar 2012, 01:36
Mercurial authentication and authorization tools
| alpha | amd64 | arm | hppa | ia64 | m68k | mips | ppc | ppc64 | s390 | sh | sparc | x86 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1.2 | – | ~ | – | – | – | – | – | – | – | – | – | – | ~ |
Paketbeschreibung:
Mercurial authentication and authorization tools
Kategorie:
ÄNDERUNGSPROTOKOLL
# ChangeLog for dev-vcs/mercurial-server # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 # $Header: /var/cvsroot/gentoo-x86/dev-vcs/mercurial-server/ChangeLog,v 1.3 2012/02/16 01:36:12 floppym Exp $ 16 Feb 2012; Mike Gilbert (floppym) mercurial-server-1.2.ebuild: Fix $S. *mercurial-server-1.2 (16 Feb 2012) 16 Feb 2012; Mike Gilbert (floppym) +mercurial-server-1.2.ebuild: Version bump by request of maintainer. Bug 391973. *mercurial-server-9999 (13 Jan 2011) *mercurial-server-1.1 (13 Jan 2011) 13 Jan 2011; Rafael G. Martins (rafaelmartins) +mercurial-server-1.1.ebuild, +files/mercurial-server-1.1_documentation.patch, +mercurial-server-9999.ebuild, +metadata.xml: Initial commit.
FEHLER
No bugs found
USE-FLAGS
| doc | Adds extra documentation (API, Javadoc, etc). It is recommended to enable per package instead of globally |
KOMPILIER-ABHÄNGIGKEITEN
| app-admin/eselect-python | Eselect module for management of multiple Python versions |
| app-text/docbook-xsl-stylesheets | XSL Stylesheets for Docbook |
| dev-lang/python | Python is an interpreted, interactive, object-oriented programming language. |
| dev-libs/libxslt | XSLT libraries and tools |
| dev-vcs/mercurial | Scalable distributed SCM |
LAUFZEITABHÄNGIGKEITEN
| app-admin/eselect-python | Eselect module for management of multiple Python versions |
| dev-lang/python | Python is an interpreted, interactive, object-oriented programming language. |
| dev-vcs/mercurial | Scalable distributed SCM |
SOURCE CODE
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header:
/var/cvsroot/gentoo-x86/dev-vcs/mercurial-server/mercurial-server-1.2.ebuild,v
1.2 2012/02/16 01:36:12 floppym Exp $
EAPI="3"
PYTHON_DEPEND="2"
if [[ "${PV}" = "9999" ]]; then
EHG_REVISION="default"
inherit distutils eutils mercurial
EHG_REPO_URI="http://hg.opensource.lshift.net/mercurial-server"
KEYWORDS=""
S="${WORKDIR}/${PN}"
else
inherit distutils eutils
MY_P="${PN}_${PV}"
SRC_URI="http://dev.lshift.net/paul/mercurial-server/${MY_P}.tar.gz"
KEYWORDS="~amd64 ~x86"
S="${WORKDIR}/${MY_P}.orig"
fi
DESCRIPTION="Mercurial authentication and authorization tools"
HOMEPAGE="http://www.lshift.net/mercurial-server.html"
LICENSE="GPL-2"
SLOT="0"
IUSE="doc"
RDEPEND="dev-vcs/mercurial"
DEPEND="${RDEPEND}
doc? (
app-text/docbook-xsl-stylesheets
dev-libs/libxslt
)"
pkg_setup() {
enewgroup hg
enewuser hg -1 /bin/bash "/var/lib/${PN}" hg
}
src_prepare() {
# remove useless makefile
rm Makefile
# fix installation paths
sed -i -e "s|'init'|'share/${PN}/init'|" setup.py \
|| die 'sed setup.py failed.'
# fix documentation
if [[ "${PV}" = "1.1" ]]; then
epatch "${FILESDIR}/${P}_documentation.patch"
fi
}
src_compile() {
distutils_src_compile
# build documentation
if use doc; then
xsltproc --nonet -o manual.html \
/usr/share/sgml/docbook/xsl-stylesheets/html/docbook.xsl \
doc/manual.docbook || die "xsltproc failed"
fi
}
src_install() {
distutils_src_install --install-scripts="/usr/share/${PN}"
# install configuration files
insinto "/etc/${PN}"
doins -r src/init/conf/*
keepdir /etc/mercurial-server/keys/{root,users}
# install documentation
if use doc; then
dohtml manual.html
fi
# install hg home directory
keepdir "/var/lib/${PN}"
fowners hg:hg "/var/lib/${PN}"
fperms 750 "/var/lib/${PN}"
}