From f7ed9d5f2dbb07245aa609fd6a641768fdf7e4c5 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Fri, 14 Jun 2013 11:12:14 +0200 Subject: [PATCH] Added dev-python/pb-blockdev/pb-blockdev-0.3.4.1.ebuild and dev-python/pb-blockdev/pb-blockdev-0.3.5.1.ebuild --- dev-python/pb-blockdev/Manifest | 2 + .../pb-blockdev/pb-blockdev-0.3.4.1.ebuild | 87 +++++++++++++++++++ .../pb-blockdev/pb-blockdev-0.3.5.1.ebuild | 87 +++++++++++++++++++ 3 files changed, 176 insertions(+) create mode 100644 dev-python/pb-blockdev/Manifest create mode 100644 dev-python/pb-blockdev/pb-blockdev-0.3.4.1.ebuild create mode 100644 dev-python/pb-blockdev/pb-blockdev-0.3.5.1.ebuild diff --git a/dev-python/pb-blockdev/Manifest b/dev-python/pb-blockdev/Manifest new file mode 100644 index 0000000..6e40424 --- /dev/null +++ b/dev-python/pb-blockdev/Manifest @@ -0,0 +1,2 @@ +EBUILD pb-blockdev-0.3.4.1.ebuild 1848 SHA256 1af9178eb9f9eefbfdef2c464b1c6af7b9169d38aa213966945c70517353f87f SHA512 edd01608fc53488245d4148359ddeb8c9e42aaafa3d111a28a031589e20ed133b0860d6ee6f1a6ee1e108edfbfca314549d5e9d25ab334bcb16e900237040ae3 WHIRLPOOL f1cd34fe82de0c4e765e3b8c7e38a3dfb6a0409a4408368d6e9d6565f921ee661742c4834261b060ebca457108eb57868f06e99dd307a75f1b963589efeee2dc +EBUILD pb-blockdev-0.3.5.1.ebuild 1851 SHA256 18498c822739d6d119c76f9383dcb3deff826988e49992f2c0e5580d696d01f3 SHA512 cfd1b921a235854bbe6496faab0f669331836fb569961fa1902d5bd824d5e456ed5a38f7bc270892adbd64b2ba992f2e0870539cc0c3a76cbf711074ae5a42cd WHIRLPOOL f91c50379de26ba87c9eda76b2d804664263ad0e72cd1ea0ed74d8d401e797215d0f1373df5a1edc87c61884e59f65e1ff1a55210a04e0afc6a66271e917b2b2 diff --git a/dev-python/pb-blockdev/pb-blockdev-0.3.4.1.ebuild b/dev-python/pb-blockdev/pb-blockdev-0.3.4.1.ebuild new file mode 100644 index 0000000..21530e8 --- /dev/null +++ b/dev-python/pb-blockdev/pb-blockdev-0.3.4.1.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +DESCRIPTION="Python modules for common used wrapper classes for different block devices." +HOMEPAGE="https://github.com/fbrehm/py-pb-blockdev" +SRC_URI="" +EGIT_REPO_URI="https://github.com/fbrehm/py-pb-blockdev.git" + +inherit git-2 distutils user python versionator + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="doc nls" +PYTHON_DEPEND="2::2.7" + +EGIT_BRANCH="master" +EGIT_COMMIT=$(replace_version_separator 3 '-') + +DOCS="debian/changelog README.txt" + +RDEPEND=" + >=dev-python/pb-logging-0.2.7 + >=dev-python/pb-base-0.4.10 + >=dev-python/pyparted-3.8 + nls? ( virtual/libintl ) +" +DEPEND=" + ${RDEPEND} + doc? ( dev-python/epydoc + dev-python/docutils + dev-texlive/texlive-latexextra + ) + nls? ( sys-devel/gettext ) +" + +pkg_setup() { + + elog "Used GIT tag: '${EGIT_COMMIT}'." + + elog "Start setup package ..." + python_set_active_version 2 + python_pkg_setup +} + +src_compile() { + elog "Start compiling package ..." + distutils_src_compile + if use nls; then + make -C ${S}/po + fi +} + +src_install() { + distutils_src_install + #python_clean_installation_image + + 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_blockdev" || ewarn "Could not create epydoc html documentation" + einfo "Creating epydoc pdf documentation" + epydoc --pdf -o "${ED}/usr/share/doc/${PF}/pdf" "${S}/pb_blockdev" || ewarn "Could not create epydoc pdf documentation" + + fi + +# if use nls; then +# make -C ${S}/po DESTDIR="${ED}" install +# fi + +} + +pkg_postinst() { + python_mod_optimize pb_blockdev +} + +pkg_postrm () { + python_mod_cleanup pb_blockdev +} + + diff --git a/dev-python/pb-blockdev/pb-blockdev-0.3.5.1.ebuild b/dev-python/pb-blockdev/pb-blockdev-0.3.5.1.ebuild new file mode 100644 index 0000000..13122b7 --- /dev/null +++ b/dev-python/pb-blockdev/pb-blockdev-0.3.5.1.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +DESCRIPTION="Python modules for common used wrapper classes for different block devices." +HOMEPAGE="https://github.com/fbrehm/py-pb-blockdev" +SRC_URI="" +EGIT_REPO_URI="https://github.com/fbrehm/py-pb-blockdev.git" + +inherit git-2 distutils user python versionator + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc nls" +PYTHON_DEPEND="2::2.7" + +EGIT_BRANCH="develop" +EGIT_COMMIT=$(replace_version_separator 3 '-') + +DOCS="debian/changelog README.txt" + +RDEPEND=" + >=dev-python/pb-logging-0.2.7 + >=dev-python/pb-base-0.4.10 + >=dev-python/pyparted-3.8 + nls? ( virtual/libintl ) +" +DEPEND=" + ${RDEPEND} + doc? ( dev-python/epydoc + dev-python/docutils + dev-texlive/texlive-latexextra + ) + nls? ( sys-devel/gettext ) +" + +pkg_setup() { + + elog "Used GIT tag: '${EGIT_COMMIT}'." + + elog "Start setup package ..." + python_set_active_version 2 + python_pkg_setup +} + +src_compile() { + elog "Start compiling package ..." + distutils_src_compile + if use nls; then + make -C ${S}/po + fi +} + +src_install() { + distutils_src_install + #python_clean_installation_image + + 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_blockdev" || ewarn "Could not create epydoc html documentation" + einfo "Creating epydoc pdf documentation" + epydoc --pdf -o "${ED}/usr/share/doc/${PF}/pdf" "${S}/pb_blockdev" || ewarn "Could not create epydoc pdf documentation" + + fi + +# if use nls; then +# make -C ${S}/po DESTDIR="${ED}" install +# fi + +} + +pkg_postinst() { + python_mod_optimize pb_blockdev +} + +pkg_postrm () { + python_mod_cleanup pb_blockdev +} + + -- 2.39.5