]> Frank Brehm's Git Trees - portage.git/commitdiff
Adding dev-python/pb-base/pb-base-0.7.4.ebuild
authorFrank Brehm <frank.brehm@profitbricks.com>
Fri, 17 Jun 2016 06:53:40 +0000 (08:53 +0200)
committerFrank Brehm <frank.brehm@profitbricks.com>
Fri, 17 Jun 2016 06:53:40 +0000 (08:53 +0200)
dev-python/pb-base/Manifest
dev-python/pb-base/pb-base-0.7.4.ebuild [new file with mode: 0644]

index a486d639ff5d2e64e3b124e6b7350745277c5a2f..ecf2835d582dc914a4f17d771de20d92825a8b18 100644 (file)
@@ -2,3 +2,4 @@ EBUILD pb-base-0.4.11.1.ebuild 1805 SHA256 a32d02da651ce7b254d53519ab17c80735d4d
 EBUILD pb-base-0.5.6.1-r3.ebuild 1689 SHA256 df4f1fb53f21983712a796e43916c5b4f039e44fca6b3f4e1b34db85df2916b2 SHA512 d96a112da5924a83263dfb68bc55867aa057f32fa838536e78d3d0fd766576cbf2f9e6f75fc04c66212795dc31135faa2a50ce8537c71539ab406ee438c87306 WHIRLPOOL 87be94cd63f53af7c9cf0087625aada543a95c715406fc939477fd3c1922c770a8e3dca5e3bbec9ca24de888a7bccd0bad48457936ccfd9f9db4cda91b682f55
 EBUILD pb-base-0.6.8.ebuild 1733 SHA256 bb3636c869b55c8b882dc8de078a12b6f20f702dc748115ea90b0f648fa3c81d SHA512 7f30c95c044ea3decb8ee36710dc3a292c9fa2c12aa9177a67d1c27055fb4b1650710d1445569d0ab7a440aecd4d004df9faf2a9f9706d95d269e54af29fa9b8 WHIRLPOOL 98c19742ea7fd745f7ca9de7a40ce375aa3c4143f1e710eab31f3d3b13965918fd7ba315823cd2599a8f2163ef43353dfe2c52f13fd14a1fbee6bd6e20c066aa
 EBUILD pb-base-0.7.3.ebuild 1749 SHA256 0afe2e4d3575f6c9190bf0c2c6ff2aad0ba0c7457da336cc018c9fb6601191da SHA512 6fc03880a05c30e8dddcd15a2b761db80be9a624e6b2f7c91c59b6644d1a2e78c8c127d618a77c5b60897c8dc8a8e0dcc8630902fef43e1d6b5795e2de85f6f0 WHIRLPOOL 40acaf019046519146e7759eba80f7d7d966b5055c57db2a935eead543764b7b471d2c54aad34b94860d018dba05df5c89343196aa69a0a16a91618eb1b3aa6c
+EBUILD pb-base-0.7.4.ebuild 1772 SHA256 4ed9e5505c156fb424286928e0ef5eb5f3392e4f46fecb37f9f574d0ba729f42 SHA512 4cf0f07654bcf433d124768c73382f257f97649f2eb15f63b1cd45990bfbb39465136633cd6f7d374a6cdedb86ac1b2fc3c29a43b3ececedc6a6b404c3633303 WHIRLPOOL dd4b548aaf5c1e779bc0137286486db94926d0346e69956cf7852aaaf60c0b7f6e98120051c954a5231f70e1565929e98e7204ff5772bee1c6066c451fba6714
diff --git a/dev-python/pb-base/pb-base-0.7.4.ebuild b/dev-python/pb-base/pb-base-0.7.4.ebuild
new file mode 100644 (file)
index 0000000..00c2d37
--- /dev/null
@@ -0,0 +1,79 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_2,3_3,3_4,3_5} pypy2_0 )
+
+DESCRIPTION="Python modules for common used objects, error classes and functions."
+HOMEPAGE="https://github.com/fbrehm/py_pb_base"
+SRC_URI=""
+EGIT_REPO_URI="https://github.com/fbrehm/py_pb_base.git"
+
+inherit git-2 distutils-r1 user versionator
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="doc nls"
+
+EGIT_BRANCH="master"
+EGIT_COMMIT="$(replace_version_separator 3 '-')"
+
+DOCS="debian/changelog README.txt"
+
+RDEPEND="
+       dev-python/configobj
+       >=dev-python/pb-logging-0.4.5
+       dev-python/six
+       nls? ( virtual/libintl )
+"
+DEPEND="
+       ${RDEPEND}
+       dev-python/setuptools
+       doc? (  dev-python/epydoc 
+                       dev-python/docutils
+                       dev-texlive/texlive-latexextra
+       )
+       nls? ( sys-devel/gettext )
+"
+
+pkg_setup() {
+
+       elog "Used GIT tag: '${EGIT_COMMIT}'."
+
+       einfo "Start setup package ..."
+       distutils-r1_src_prepare
+}
+
+src_compile() {
+       einfo "Start compiling package ..."
+       distutils-r1_src_compile
+       if use nls; then
+               make -C ${S}/po
+       fi
+}
+
+src_install() {
+       einfo "Start installing package ..."
+       distutils-r1_src_install
+
+       if use doc; then
+               einfo "Installing documentation ..."
+               dodir "/usr/share/doc/${PF}"
+               dodir "/usr/share/doc/${PF}/html"
+               dodir "/usr/share/doc/${PF}/pdf"
+
+               einfo "Creating epydoc html documentation"
+               epydoc --html -v -o "${ED}/usr/share/doc/${PF}/html" "${S}/pb_base" || ewarn "Could not create epydoc html documentation"
+               einfo "Creating epydoc pdf documentation"
+               epydoc --pdf -o "${ED}/usr/share/doc/${PF}/pdf" "${S}/pb_base" || ewarn "Could not create epydoc pdf documentation"
+
+       fi
+
+       if use nls; then
+               make -C ${S}/po DESTDIR="${ED}" install
+       fi
+
+}
+
+# vim: filetype=ebuild ts=4 sw=4