From b61819ef56101386c9ed4f840e7fbadfc389f180 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 26 Aug 2010 09:43:15 -0400 Subject: [PATCH] Added my initial Bugs Everywhere ebuild for the Bazaar source. See http://bugs.gentoo.org/show_bug.cgi?id=303867 --- ChangeLog | 15 ++++++++ Manifest | 6 ++++ be-9999.ebuild | 63 +++++++++++++++++++++++++++++++++ files/be-9999-docbook2man.patch | 10 ++++++ files/be-9999-install-dir.patch | 13 +++++++ files/be-9999-version.patch | 10 ++++++ 6 files changed, 117 insertions(+) create mode 100644 ChangeLog create mode 100644 Manifest create mode 100644 be-9999.ebuild create mode 100644 files/be-9999-docbook2man.patch create mode 100644 files/be-9999-install-dir.patch create mode 100644 files/be-9999-version.patch diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 0000000..c77137c --- /dev/null +++ b/ChangeLog @@ -0,0 +1,15 @@ +# ChangeLog for media-gfx/metacam +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +*be-9999 (07 Feb 2010) + 07 Feb 2009; W. Trevor King ChangeLog, metadata.xml, be-9999.ebuild, be-9999-docbook2man.patch, be-9999-install-dir.patch : + - Created ebuild suite for bugs-everywhere (BE) revision + cjb@laptop.org-20091006145647-kqkmoh481tl5hvt4 + - Added initial ChangeLog which should be updated whenever the + package is updated in any way. This changelog is targetted to + users. This means that the comments should well explained and + written in clean English. The details about writing correct + changelogs are explained in the skel.ChangeLog file which you can + find in the root directory of the portage repository. diff --git a/Manifest b/Manifest new file mode 100644 index 0000000..f79fcd8 --- /dev/null +++ b/Manifest @@ -0,0 +1,6 @@ +AUX be-9999-docbook2man.patch 291 RMD160 044883ad3d77a4ee68d67b0c89818eab990e5f88 SHA1 ce53e9cfc7ae926276e2f01e603e077174f734de SHA256 7f4691a80a9cc57c3f0453ed43ab59969c44cb011dc79900143273bfc3897b73 +AUX be-9999-install-dir.patch 296 RMD160 f49a07bcbbf96201d3fd021c2d919b5eb61328f4 SHA1 5db1037ca1aaf884f8b2858d897ca72e1afee0d2 SHA256 ff27a7c5b9371571baa43f6a9b0b3ad68504c3cea5b49cf947ee27fb3aa12022 +AUX be-9999-version.patch 306 RMD160 4a83f99118439478527e4a0f0a38db5ffa5b8420 SHA1 621ea01d6c46ba25981a7c687c2d69cafb11b5b0 SHA256 00fb7a2476937393cf976c507d3ff0e7636c31d5bbbef1995f04186a60715a31 +EBUILD be-9999.ebuild 1259 RMD160 45329f91393b9870d889cf22d8c64f42fad1f0e4 SHA1 d3c971deee72605e261bc023ecc235df7e883c99 SHA256 2719a4e1f1ad5e7a72b7610a11f7dec4f91c879106644b6bb4f5006bdecfe299 +MISC ChangeLog 813 RMD160 ca00542d7f60caee7aecb3ad802ad5ba1b01223d SHA1 6154a1d462b694b79a55ad5e0ebaa617c04aef22 SHA256 cde00d8429da7df900e64de038aed61e3ecc91b1c1f6ca4b619da3abdb185d53 +MISC metadata.xml 321 RMD160 f1c228ca9454d018e84c7fa458cd8a1ddb4a22a0 SHA1 a21e5950c45f5bb268ab86c06f2d52c7a95d15fa SHA256 217043d3419af1b60adbd5e4028a57f1b1de1eebbe44afa9befe33faac60db37 diff --git a/be-9999.ebuild b/be-9999.ebuild new file mode 100644 index 0000000..24dd8bb --- /dev/null +++ b/be-9999.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" + +inherit eutils + +if [[ ${PV} == "9999" ]] ; then + EBZR_REPO_URI="http://bzr.bugseverywhere.org/${PN}" + inherit bzr + SRC_URI="" +else + SRC_URI="http://bugseverywhere.org/${PN}/${P}.tar.gz" +fi + +DESCRIPTION="Bugs Everywere distributed bug tracker" +HOMEPAGE="http://bugseverywhere.org/" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86" +IUSE="" + +RDEPEND="dev-lang/python + dev-python/pyyaml" +DEPEND="${RDEPEND} + dev-util/bzr + app-text/docbook-sgml-utils" + +src_unpack() { + if [[ ${PV} == "9999" ]] ; then + bzr_src_unpack + else + unpack ${A} + fi + cd "${S}" + epatch ${FILESDIR}/${P}-install-dir.patch + epatch ${FILESDIR}/${P}-version.patch + epatch ${FILESDIR}/${P}-docbook2man.patch +} + +if [[ ${PV} == "9999" ]] ; then + src_prepare() { + bzr_src_prepare || die + EBZR_BRANCH_DIR="${EBZR_STORE_DIR}/${EBZR_CACHE_DIR}" + bzr version-info --format python "${EBZR_BRANCH_DIR}" > \ + "${S}/libbe/_version.py" \ + || die "Unable to make _verison.py from ${EBZR_BRANCH_DIR}" + } +fi + +src_compile() { + emake || die +} + +src_install() { + emake DESTDIR="${D}" install || die + dodoc AUTHORS NEWS README + if [[ ${PV} != "9999" ]] ; then + dodoc ChangeLog + fi +} diff --git a/files/be-9999-docbook2man.patch b/files/be-9999-docbook2man.patch new file mode 100644 index 0000000..0dff6d2 --- /dev/null +++ b/files/be-9999-docbook2man.patch @@ -0,0 +1,10 @@ +diff -u be/doc/module.mk be-patched/doc/module.mk +--- be/doc/module.mk 2009-11-30 23:11:33.000000000 -0500 ++++ be-patched/doc/module.mk 2009-11-30 21:53:41.000000000 -0500 +@@ -40,4 +40,5 @@ + man: ${manpage_files} + + %.1: %.1.sgml +- docbook-to-man $< > $@ ++ docbook2man $< ++ mv BE.1 $@ diff --git a/files/be-9999-install-dir.patch b/files/be-9999-install-dir.patch new file mode 100644 index 0000000..e42a358 --- /dev/null +++ b/files/be-9999-install-dir.patch @@ -0,0 +1,13 @@ +diff -u be/Makefile be-patched/Makefile +--- be/Makefile 2009-11-24 13:11:42.000000000 -0500 ++++ be-patched/Makefile 2009-11-30 20:32:38.000000000 -0500 +@@ -38,8 +38,7 @@ + + RM = rm + +-#PREFIX = /usr/local +-PREFIX = ${HOME} ++PREFIX = ${DESTDIR}/usr + INSTALL_OPTIONS = "--prefix=${PREFIX}" + + diff --git a/files/be-9999-version.patch b/files/be-9999-version.patch new file mode 100644 index 0000000..0df3769 --- /dev/null +++ b/files/be-9999-version.patch @@ -0,0 +1,10 @@ +diff -u be/Makefile be-patched/Makefile +--- be/Makefile 2009-11-30 20:32:38.000000000 -0500 ++++ be-patched/Makefile 2010-02-07 09:09:17.000000000 -0500 +@@ -64,6 +64,5 @@ + clean: + $(RM) -rf ${GENERATED_FILES} + +-.PHONY: libbe/_version.py + libbe/_version.py: + bzr version-info --format python > $@ -- 2.26.2