From: W. Trevor King Date: Thu, 16 Feb 2012 13:57:26 +0000 (-0500) Subject: Add dev-util/update-copyright package. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=28d0789a9e4264b4d2cc4b29e79c9b14a27aeabc;p=wtk-overlay.git Add dev-util/update-copyright package. --- diff --git a/dev-util/update-copyright/ChangeLog b/dev-util/update-copyright/ChangeLog new file mode 100644 index 0000000..cf468be --- /dev/null +++ b/dev-util/update-copyright/ChangeLog @@ -0,0 +1,14 @@ +# ChangeLog for dev-util/update-copyright +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*update-copyright-9999 (16 Feb 2012) + 16 Feb 2012; W. Trevor King ChangeLog, metadata.xml, + update-copyright-9999.ebuild: + - Created ebuild suite for update-copyright. + - Added initial ChangeLog which should be updated whenever the + package is updated in any way. This changelog is targetted to + users. This means that the comments should well explained and + written in clean English. The details about writing correct + changelogs are explained in the skel.ChangeLog file which you can + find in the root directory of the portage repository. diff --git a/dev-util/update-copyright/Manifest b/dev-util/update-copyright/Manifest new file mode 100644 index 0000000..3eb4c86 --- /dev/null +++ b/dev-util/update-copyright/Manifest @@ -0,0 +1,3 @@ +EBUILD update-copyright-9999.ebuild 862 RMD160 a8d678e4c86710883c0fb53b2c088e80c5980710 SHA1 a12d391186ab8e012ca830e891989bff8acb116d SHA256 4d6cc992b2794cc92c1327de71d6842d99a0c009d1c01210a1d4ba942f98ecf6 +MISC ChangeLog 699 RMD160 b300aee160cfab451d63b5b6dcfe19424945d20e SHA1 b6b098b8b6bcac7fe95f365692b2b762c9cb8666 SHA256 25f7bb5eccb876818c6b0ac5e7e7e7f2720fb726abae17e6abc0442c50a15bd7 +MISC metadata.xml 338 RMD160 23d5f69311ff2460366d8f88dfa44a7ff56d4b2f SHA1 5843f15415d051ecbf8ecc2fdfe831947456f020 SHA256 b057942c8dcdf66d18237b7fb93950c1d36148d3ea50af2fdaf5e6db93342024 diff --git a/dev-util/update-copyright/metadata.xml b/dev-util/update-copyright/metadata.xml new file mode 100644 index 0000000..4e4e42c --- /dev/null +++ b/dev-util/update-copyright/metadata.xml @@ -0,0 +1,11 @@ + + + + + + wking@drexel.edu + W. Trevor King + Automatically update copyright blurbs in versioned source. + + + diff --git a/dev-util/update-copyright/update-copyright-9999.ebuild b/dev-util/update-copyright/update-copyright-9999.ebuild new file mode 100644 index 0000000..3b5166d --- /dev/null +++ b/dev-util/update-copyright/update-copyright-9999.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="4" +PYTHON_DEPEND="2:2.6" +PYTHON_MODNAME="update_copyright" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="2.4 2.5 3.*" + +inherit eutils distutils + +if [[ "${PV}" == "9999" ]] ; then + inherit git-2 + EGIT_BRANCH="master" + EGIT_REPO_URI="git://tremily.us/${PN}.git" + SRC_URI="" +else + SRC_URI="http://physics.drexel.edu/~wking/code/git/gitweb.cgi?p=${PN}.git;a=snapshot;h=v${PV};sf=tgz -> ${P}.tar.gz" +fi + +DESCRIPTION="Automatically update copyright blurbs in versioned source." +HOMEPAGE="http://blog.tremily.us/posts/update-copyright/" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="dev-lang/python" +DEPEND="${RDEPEND}" + +src_unpack() { + if [[ "${PV}" == "9999" ]] ; then + git-2_src_unpack + else + unpack "${A}" + fi + cd "${S}" +}