summaryrefslogtreecommitdiff
path: root/app-misc/race64
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-11-04 21:16:38 +0000
committerV3n3RiX <venerix@koprulu.sector>2022-11-04 21:16:38 +0000
commitf932718a139f93e19a6883c061f81b365a408592 (patch)
tree216b44e4ea101b2d02ea32782355ed127f7b1df4 /app-misc/race64
parentf5f1e7d30401ef31b8776c96a80cf5caae0a4e81 (diff)
gentoo auto-resync : 04:11:2022 - 21:16:37
Diffstat (limited to 'app-misc/race64')
-rw-r--r--app-misc/race64/Manifest3
-rw-r--r--app-misc/race64/metadata.xml11
-rw-r--r--app-misc/race64/race64-1.0.0.ebuild37
3 files changed, 51 insertions, 0 deletions
diff --git a/app-misc/race64/Manifest b/app-misc/race64/Manifest
new file mode 100644
index 000000000000..43e0ef4cf30d
--- /dev/null
+++ b/app-misc/race64/Manifest
@@ -0,0 +1,3 @@
+DIST race64-1.0.0.tar.xz 5828 BLAKE2B 4f7cd1267d95055bb239a53c2c6cb9087f67c8b1b10afaffe976f1067cfbb7e221336ba846607f39f1610feb1d40f819921fd6155dd9277d9a2a94065ce4b41d SHA512 fac875c86eace435dfd7e2e82988eaae77c642566346aa65f65398cc7ad2b4e776767a711d7fbc543cc8ce3605c4a0216e6e1d928d587904e65083b5826d608d
+EBUILD race64-1.0.0.ebuild 774 BLAKE2B 2885ecc9d858ae5e09af16986ca41cd09828d3d80e31d02590f2b388d9d10e6d0b7328c75b8fbd6857fe0d902da1ea2b4161b56809c90f28a49a4226c844b315 SHA512 be8f161b7cb623b06dd10d418fcc79983fd0d13dcbccf6c64a3bf01a822d60550d9bd8a5a2b76ab4afea007e34468edeab9a2525be6a8a4fcc59494eecf80057
+MISC metadata.xml 326 BLAKE2B af9175b947ceb25d1cd9170ec511338de4650cd6d4cffad81f9187f5d8eabc6f09660ec8c6dcb3a24ca16c44766007a374855f921af7061356c94a808c289da3 SHA512 6851e0cc99ebefc9806262d832a02ebba861d778740074f3265d81e772ed52b8ba6e3cd602195f835a1c40f2997a00a4bf2303666aa35a180a1622307682dd86
diff --git a/app-misc/race64/metadata.xml b/app-misc/race64/metadata.xml
new file mode 100644
index 000000000000..43f17aa41415
--- /dev/null
+++ b/app-misc/race64/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>matthew@gentoo.org</email>
+ <name>Matthew Smith</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">skeeto/race64</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/race64/race64-1.0.0.ebuild b/app-misc/race64/race64-1.0.0.ebuild
new file mode 100644
index 000000000000..e81448929c7f
--- /dev/null
+++ b/app-misc/race64/race64-1.0.0.ebuild
@@ -0,0 +1,37 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit flag-o-matic toolchain-funcs
+
+DESCRIPTION="High performance base64 encoder and decoder"
+HOMEPAGE="https://github.com/skeeto/race64"
+SRC_URI="https://github.com/skeeto/${PN}/releases/download/v${PV}/${P}.tar.xz"
+
+LICENSE="Unlicense"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="openmp"
+
+pkg_pretend() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+pkg_setup() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+src_compile() {
+ use openmp && append-flags -fopenmp
+ $(tc-getCC) ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -o ${PN} ${PN}.c || die
+}
+
+src_test() {
+ ./test.sh || die 'test failed'
+}
+
+src_install() {
+ dobin ${PN}
+ doman ${PN}.1
+}