net-misc/hashcash: update to EAPI=7
authorGergely Nagy <ngg@ngg.hu>
Thu, 10 Oct 2019 18:51:31 +0000 (20:51 +0200)
committerJoonas Niilola <juippis@gentoo.org>
Fri, 11 Oct 2019 13:48:04 +0000 (16:48 +0300)
Also add myself as proxy-maintainer and remove the mask
entry from the EAPI=0 list.

Bug: https://bugs.gentoo.org/696252
Signed-off-by: Gergely Nagy <ngg@ngg.hu>
Closes: https://github.com/gentoo/gentoo/pull/13187
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
net-misc/hashcash/hashcash-1.22-r2.ebuild [new file with mode: 0644]
net-misc/hashcash/metadata.xml
profiles/package.mask

diff --git a/net-misc/hashcash/hashcash-1.22-r2.ebuild b/net-misc/hashcash/hashcash-1.22-r2.ebuild
new file mode 100644 (file)
index 0000000..4c5088b
--- /dev/null
@@ -0,0 +1,37 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+DESCRIPTION="Utility to generate hashcash tokens"
+HOMEPAGE="http://www.hashcash.org"
+SRC_URI="http://www.hashcash.org/source/${P}.tgz"
+
+LICENSE="CPL-1.0"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+BDEPEND=""
+
+src_prepare() {
+       default
+       sed -i -e "/COPT_GENERIC = -O3/d" Makefile || die
+}
+
+src_compile() {
+       emake CC="$(tc-getCC)" generic || die
+}
+
+src_install() {
+       dobin hashcash
+       doman hashcash.1
+       dodoc CHANGELOG
+       insinto /usr/share/doc/${PF}/examples
+       doins contrib/hashcash-{request,sendmail{,.txt}} \
+               contrib/hashfork.{c,py,txt}
+}
index 6f49eba8f49693023f393161560b3a2d9e2717c5..d49539b4f6617ac3609b6a257915182b8f9a4bd1 100644 (file)
@@ -1,5 +1,12 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
-<!-- maintainer-needed -->
+  <maintainer type="person">
+    <email>ngg@ngg.hu</email>
+    <name>Gergely Nagy</name>
+  </maintainer>
+  <maintainer type="project">
+    <email>proxy-maint@gentoo.org</email>
+    <name>Proxy Maintainers</name>
+  </maintainer>
 </pkgmetadata>
index 10637a73425e98c03affb9055b47dcf3aa444256..f7db2d7f22e342dc0b7db79b3d2b9bca3f8eb781 100644 (file)
@@ -115,7 +115,6 @@ net-mail/yosucker
 net-misc/cgterm
 net-misc/clockspeed-conf
 net-misc/fmirror
-net-misc/hashcash
 net-misc/ng-utils
 net-misc/sendfile
 net-news/yencode