Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 540918 - dev-util/mpatch conversion request
Summary: dev-util/mpatch conversion request
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Deadline: 2015-03-07
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2015-02-21 15:03 UTC by Ian Delaney (RETIRED)
Modified: 2015-03-08 08:26 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Delaney (RETIRED) gentoo-dev 2015-02-21 15:03:31 UTC
mpatch-0.8.ebuild inherits distutils and requires a conversion to the new eclass and EAPI upgrade. Patches to be commited if there is no response in 2 weeks."

--- mpatch-0.8.ebuild	2014-09-24 15:41:18.766918112 +0800
+++ mpatch-0.8-r1.ebuild	2015-02-21 22:52:47.017557939 +0800
@@ -1,11 +1,13 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Header: /var/cvsroot/gentoo-x86/dev-util/mpatch/mpatch-0.8.ebuild,v 1.4 2014/08/10 21:28:38 slyfox Exp $
 
-EAPI="3"
-PYTHON_DEPEND="2"
+EAPI=5
 
-inherit distutils
+PYTHON_COMPAT=( python2_7 )
+DISTUTILS_SINGLE_IMPL=1
+
+inherit distutils-r1
 
 DESCRIPTION="Patch-like tool for applying diffs which can resolve common causes of patch rejects"
 HOMEPAGE="http://oss.oracle.com/~mason/mpatch/"
@@ -20,11 +22,10 @@
 RDEPEND=""
 
 pkg_setup() {
-	python_set_active_version 2
-	python_pkg_setup
+	python-single-r1_pkg_setup
 }
 
 src_install() {
-	distutils_src_install
-	dobin cmd/qp cmd/mp || die "dobin failed"
+	distutils-r1_src_install
+	dobin cmd/qp cmd/mp
 }

A standard conversion
Comment 1 Ian Delaney (RETIRED) gentoo-dev 2015-03-08 08:26:31 UTC
timeout.

*mpatch-0.8-r1 (08 Mar 2015)

  08 Mar 2015; Ian Delaney <idella4@gentoo.org> +mpatch-0.8-r1.ebuild,
  -mpatch-0.8.ebuild:
  revbump; conversion -> distutils-r1, rm old, timeout on bug #540918, closes
  said bug