parlay

yet another gentoo overlay
git clone https://git.parazyd.org/parlay
Log | Files | Refs | README

commit b66bc8ff6f16385485a426bb2ca393ffb9f53800
parent 0bf01889f0a18826517b286fbf08842907cb96ab
Author: parazyd <parazyd@dyne.org>
Date:   Mon,  9 Nov 2020 16:09:43 +0100

dev-util/devscripts: Add 2.20.4.

Diffstat:
Adev-util/devscripts/Manifest | 1+
Adev-util/devscripts/devscripts-2.20.4.ebuild | 113+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adev-util/devscripts/metadata.xml | 8++++++++
3 files changed, 122 insertions(+), 0 deletions(-)

diff --git a/dev-util/devscripts/Manifest b/dev-util/devscripts/Manifest @@ -0,0 +1 @@ +DIST devscripts_2.20.4.tar.xz 860604 BLAKE2B 05c486ed024964ec03f9e5396e739389010a2c51a4d01be14b4959aa86bd09ca426bbfbfa7657c87e54aec8497fbfc90064073310fb1af916b32142ff63d3137 SHA512 49e9ae38ca3682f399a17f2108a7ee15198dc955d8c7c4c1b043456c19cb35b47b6116de9a2cfaccbdd7560e79426ca0953674e5a89ac226d21af2c1cf847e5c diff --git a/dev-util/devscripts/devscripts-2.20.4.ebuild b/dev-util/devscripts/devscripts-2.20.4.ebuild @@ -0,0 +1,113 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +PYTHON_COMPAT=( python3_{4,5,6,7} ) +DISTUTILS_OPTIONAL=true + +inherit distutils-r1 + +DESCRIPTION="Scripts to make the life of a Debian Package maintainer easier" +HOMEPAGE="https://salsa.debian.org/debian/devscripts" +SRC_URI="mirror://debian/pool/main/d/${PN}/${PN}_${PV}.tar.xz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="python test" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +CDEPEND=" + dev-lang/perl:= + dev-perl/File-DesktopEntry + dev-perl/libwww-perl + dev-util/distro-info + python? ( ${PYTHON_DEPS} ) +" +DEPEND="${CDEPEND} + app-shells/bash-completion + virtual/pkgconfig + test? ( + dev-perl/Software-License + dev-perl/UNIVERSAL-require + dev-python/flake8[${PYTHON_USEDEP}] + dev-util/shunit2 + )" +RDEPEND="${CDEPEND} + app-arch/dpkg + app-text/wdiff + dev-util/debhelper + sys-apps/fakeroot +" + +DISTUTILS_S="${S}"/scripts + +src_prepare() { + default + + # Replace Debian xsl stylesheets paths with Gentoo's + sed -i \ + -e 's#stylesheet/xsl/nwalsh#xsl-stylesheets#g' \ + "${S}"/po4a/Makefile \ + "${DISTUTILS_S}"/Makefile \ + "${DISTUTILS_S}"/deb-reversion.dbk || die + + # distutils-r1 eclass will be used instead + sed -i -e "/python3 setup.py/d" \ + -e "/python3 -m flake8/d" \ + -e "/py3versions/d" \ + "${DISTUTILS_S}"/Makefile || die + + # Avoid file collision with app-shells/bash-completion + rm "${DISTUTILS_S}"/bts.bash_completion || die + + # It's not possible to use all Debian stuff in Gentoo. + # Remove known failing tests for now. + sed -i -e "s/dd-list//g" \ + -e "s/package_lifecycle//g" \ + "${S}"/test/Makefile || die +} + +src_configure() { + default + + if use python; then + pushd "${DISTUTILS_S}" > /dev/null || die + distutils-r1_src_configure + popd > /dev/null || die + fi +} + +src_compile() { + default + + if use python; then + pushd "${DISTUTILS_S}" > /dev/null || die + distutils-r1_src_compile + popd > /dev/null || die + fi +} + +src_install() { + dodir /usr/bin + default + + if use python ;then + pushd "${DISTUTILS_S}" > /dev/null || die + distutils-r1_src_install + popd > /dev/null || die + fi +} + +src_test() { + default + + if use python; then + pushd "${DISTUTILS_S}" > /dev/null || die + distutils-r1_src_test + popd > /dev/null || die + fi +} diff --git a/dev-util/devscripts/metadata.xml b/dev-util/devscripts/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> +<email>parazyd@dyne.org</email> +<name>parazyd</name> +</maintainer> +</pkgmetadata>