public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-embedded/avrdude/
Date: Fri, 12 Nov 2021 02:02:01 +0000 (UTC)	[thread overview]
Message-ID: <1636682510.44e4ac7e0e5a66e434b70396fe5d36be78a96bdd.sam@gentoo> (raw)

commit:     44e4ac7e0e5a66e434b70396fe5d36be78a96bdd
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 12 01:52:30 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Nov 12 02:01:50 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44e4ac7e

dev-embedded/avrdude: Revert "drop 9999", modernise 9999

Apparently this is still useful for some folks
as upstream haven't made a release in a good
while and some new functionality exists only
in VCS.

This reverts commit ccb6e0fa1513ad869ff7935ab80bf6e477464705.

Reported-by: zgu
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-embedded/avrdude/avrdude-6.3-r1.ebuild         | 33 ++++++++++++++++------
 .../{avrdude-6.3-r1.ebuild => avrdude-9999.ebuild} | 33 ++++++++++++++++------
 2 files changed, 50 insertions(+), 16 deletions(-)

diff --git a/dev-embedded/avrdude/avrdude-6.3-r1.ebuild b/dev-embedded/avrdude/avrdude-6.3-r1.ebuild
index eedc4b7b506..701d5da2a71 100644
--- a/dev-embedded/avrdude/avrdude-6.3-r1.ebuild
+++ b/dev-embedded/avrdude/avrdude-6.3-r1.ebuild
@@ -1,21 +1,30 @@
 # Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=8
+EAPI=7
 
 inherit toolchain-funcs
 
+MY_DOC_PV=6.3
 DESCRIPTION="AVR Downloader/UploaDEr"
 HOMEPAGE="https://savannah.nongnu.org/projects/avrdude"
-SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz
-	doc? (
-		mirror://nongnu/${PN}/${PN}-doc-${PV}.tar.gz
-		mirror://nongnu/${PN}/${PN}-doc-${PV}.pdf
-	)"
+
+if [[ ${PV} == *9999* ]] ; then
+	ESVN_REPO_URI="svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude"
+	inherit autotools subversion
+else
+	SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz"
+
+	KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
+fi
+
+SRC_URI+=" doc? (
+	mirror://nongnu/${PN}/${PN}-doc-${MY_DOC_PV}.tar.gz
+	mirror://nongnu/${PN}/${PN}-doc-${MY_DOC_PV}.pdf
+)"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
 IUSE="doc ftdi ncurses readline"
 
 RDEPEND="
@@ -28,12 +37,20 @@ RDEPEND="
 "
 DEPEND="${RDEPEND}"
 
+src_prepare() {
+	default
+
+	[[ ${PV} == *9999* ]] && eautoreconf
+}
+
 src_configure() {
 	# somehow this doesnt get set when cross-compiling and breaks build
 	tc-export AR
+
 	export ac_cv_lib_ftdi_ftdi_usb_get_strings=$(usex ftdi)
 	export ac_cv_lib_ncurses_tputs=$(usex ncurses)
 	export ac_cv_lib_readline_readline=$(usex readline)
+
 	econf --disable-static
 }
 
@@ -48,7 +65,7 @@ src_install() {
 	default
 
 	if use doc ; then
-		newdoc "${DISTDIR}/${PN}-doc-${PV}.pdf" avrdude.pdf
+		newdoc "${DISTDIR}/${PN}-doc-${MY_DOC_PV}.pdf" avrdude.pdf
 		dodoc -r "${WORKDIR}/avrdude-html/"
 	fi
 

diff --git a/dev-embedded/avrdude/avrdude-6.3-r1.ebuild b/dev-embedded/avrdude/avrdude-9999.ebuild
similarity index 68%
copy from dev-embedded/avrdude/avrdude-6.3-r1.ebuild
copy to dev-embedded/avrdude/avrdude-9999.ebuild
index eedc4b7b506..701d5da2a71 100644
--- a/dev-embedded/avrdude/avrdude-6.3-r1.ebuild
+++ b/dev-embedded/avrdude/avrdude-9999.ebuild
@@ -1,21 +1,30 @@
 # Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=8
+EAPI=7
 
 inherit toolchain-funcs
 
+MY_DOC_PV=6.3
 DESCRIPTION="AVR Downloader/UploaDEr"
 HOMEPAGE="https://savannah.nongnu.org/projects/avrdude"
-SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz
-	doc? (
-		mirror://nongnu/${PN}/${PN}-doc-${PV}.tar.gz
-		mirror://nongnu/${PN}/${PN}-doc-${PV}.pdf
-	)"
+
+if [[ ${PV} == *9999* ]] ; then
+	ESVN_REPO_URI="svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude"
+	inherit autotools subversion
+else
+	SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz"
+
+	KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
+fi
+
+SRC_URI+=" doc? (
+	mirror://nongnu/${PN}/${PN}-doc-${MY_DOC_PV}.tar.gz
+	mirror://nongnu/${PN}/${PN}-doc-${MY_DOC_PV}.pdf
+)"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
 IUSE="doc ftdi ncurses readline"
 
 RDEPEND="
@@ -28,12 +37,20 @@ RDEPEND="
 "
 DEPEND="${RDEPEND}"
 
+src_prepare() {
+	default
+
+	[[ ${PV} == *9999* ]] && eautoreconf
+}
+
 src_configure() {
 	# somehow this doesnt get set when cross-compiling and breaks build
 	tc-export AR
+
 	export ac_cv_lib_ftdi_ftdi_usb_get_strings=$(usex ftdi)
 	export ac_cv_lib_ncurses_tputs=$(usex ncurses)
 	export ac_cv_lib_readline_readline=$(usex readline)
+
 	econf --disable-static
 }
 
@@ -48,7 +65,7 @@ src_install() {
 	default
 
 	if use doc ; then
-		newdoc "${DISTDIR}/${PN}-doc-${PV}.pdf" avrdude.pdf
+		newdoc "${DISTDIR}/${PN}-doc-${MY_DOC_PV}.pdf" avrdude.pdf
 		dodoc -r "${WORKDIR}/avrdude-html/"
 	fi
 


             reply	other threads:[~2021-11-12  2:02 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-12  2:02 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-07-14  8:06 [gentoo-commits] repo/gentoo:master commit in: dev-embedded/avrdude/ Viorel Munteanu
2024-07-13 19:05 Sam James
2024-07-13 15:31 Arthur Zamarin
2024-07-13 15:18 Arthur Zamarin
2024-07-13 10:27 Arthur Zamarin
2024-07-13  9:58 Arthur Zamarin
2024-01-04  8:21 Matthew Smith
2024-01-02 18:59 Matthew Smith
2022-09-09  9:48 Matthew Smith
2022-08-25 18:25 Agostino Sarubbo
2022-08-25 18:15 Agostino Sarubbo
2022-08-25  4:02 Arthur Zamarin
2022-08-25  4:02 Arthur Zamarin
2022-08-25  3:33 Sam James
2022-08-24 21:03 Matthew Smith
2022-08-24 19:08 Matthew Smith
2022-08-20 11:40 Andreas Sturmlechner
2022-07-11 16:32 Arthur Zamarin
2022-07-10 18:22 Arthur Zamarin
2022-07-10 18:04 Arthur Zamarin
2022-07-10  7:46 Matthew Smith
2022-07-10  7:46 Matthew Smith
2022-02-07 13:31 Jakov Smolić
2022-02-06  8:05 Agostino Sarubbo
2022-02-06  8:04 Agostino Sarubbo
2022-02-06  7:35 Sam James
2022-02-05 21:09 Jakov Smolić
2021-10-07 18:54 Jakov Smolić
2021-10-07 18:54 Jakov Smolić
2017-08-02 10:08 Michael Weber
2017-08-02  9:52 Michael Weber
2016-12-24 10:26 Agostino Sarubbo
2016-12-22  9:34 Agostino Sarubbo
2016-12-20  9:44 Agostino Sarubbo
2016-12-18 15:57 Agostino Sarubbo
2016-12-18 15:44 Agostino Sarubbo
2016-12-09  8:44 Tim Harder
2016-12-09  8:41 Tim Harder
2016-09-04 22:43 Manuel Rüger
2016-01-10  9:47 Sven Wegener
2016-01-10  9:47 Sven Wegener

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1636682510.44e4ac7e0e5a66e434b70396fe5d36be78a96bdd.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox