summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2018-03-01 18:32:54 +0100
committerFabian Groffen <grobian@gentoo.org>2018-03-01 18:33:12 +0100
commitf3fea9c6819a97c84a942351735d539f0b392929 (patch)
treee38c698202d93f99d2e20f13bf47c6ae33d40d56 /app-portage/hashgen
parentx11-misc/lightdm-gtk-greeter: Removed superfluous entry. (diff)
downloadgentoo-f3fea9c6819a97c84a942351735d539f0b392929.tar.gz
gentoo-f3fea9c6819a97c84a942351735d539f0b392929.tar.bz2
gentoo-f3fea9c6819a97c84a942351735d539f0b392929.zip
app-portage/hashgen: initial ebuild by me
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'app-portage/hashgen')
-rw-r--r--app-portage/hashgen/Manifest1
-rw-r--r--app-portage/hashgen/hashgen-1.0.ebuild53
-rw-r--r--app-portage/hashgen/metadata.xml8
3 files changed, 62 insertions, 0 deletions
diff --git a/app-portage/hashgen/Manifest b/app-portage/hashgen/Manifest
new file mode 100644
index 000000000000..3a19fea618d3
--- /dev/null
+++ b/app-portage/hashgen/Manifest
@@ -0,0 +1 @@
+DIST hashgen-1.0.c 36299 BLAKE2B 4419ffd2b4c8435b05b0cf2d9e54e2df5c539f945166da8305c910ec267e5d93cd26822ef189777cf952bb8644193fbfeaafefa4e98c5b7561845fb9a1f40c0a SHA512 4f8df94e91b02ebc611553d2dd9776de4ba77989869ed1ce411b91cc7fed224c3d8715d15cce6234caa25f2143962949dfd59da79d8f1ab211c287c604c22fff
diff --git a/app-portage/hashgen/hashgen-1.0.ebuild b/app-portage/hashgen/hashgen-1.0.ebuild
new file mode 100644
index 000000000000..a27739de9e50
--- /dev/null
+++ b/app-portage/hashgen/hashgen-1.0.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="Manifest generation and verification tool written in C"
+HOMEPAGE="https://prefix.gentoo.org/"
+GITHASH="7fc3cf2b4baddc8b98c994b8ee024330d8f29956"
+SRC_URI="https://gitweb.gentoo.org/repo/proj/prefix.git/plain/scripts/rsync-generation/hashgen.c?id=${GITHASH} -> ${P}.c"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x64-macos ~sparc-solaris ~x64-solaris"
+IUSE="+openmp"
+
+DEPEND="
+ openmp? (
+ || ( >=sys-devel/gcc-4.2:*[openmp] sys-devel/clang-runtime:*[openmp] )
+ )
+ app-crypt/libb2
+ dev-libs/openssl:*
+ sys-libs/zlib
+ app-crypt/gpgme
+"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+ mkdir "${S}" || die
+ cp "${DISTDIR}"/${P}.c "${S}"/${PN}.c || die
+}
+
+src_compile() {
+ v() {
+ echo "$@"
+ "$@"
+ }
+
+ local openmp=
+ use openmp && tc-has-openmp && openmp=-fopenmp
+
+ v $(tc-getCC) -o hashgen ${openmp} ${CFLAGS} \
+ $(pkg-config openssl --libs) \
+ $(gpgme-config --libs) \
+ -lb2 -lz ${LDFLAGS} ${PN}.c || die
+}
+
+src_install() {
+ dobin hashgen
+ cd "${ED}"/usr/bin || die
+ ln -s hashgen hashverify || die
+}
diff --git a/app-portage/hashgen/metadata.xml b/app-portage/hashgen/metadata.xml
new file mode 100644
index 000000000000..a53ffbea77d3
--- /dev/null
+++ b/app-portage/hashgen/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>grobian@gentoo.org</email>
+ <name>Fabian Groffen</name>
+ </maintainer>
+</pkgmetadata>