commit: 914f6921ff3551389c45f681c43c18c45431b579 Author: Matthew Smith <matthew <AT> gentoo <DOT> org> AuthorDate: Fri Nov 4 19:53:28 2022 +0000 Commit: Matthew Smith <matthew <AT> gentoo <DOT> org> CommitDate: Fri Nov 4 19:58:37 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=914f6921
app-misc/race64: new package, add 1.0.0 Signed-off-by: Matthew Smith <matthew <AT> gentoo.org> app-misc/race64/Manifest | 1 + app-misc/race64/metadata.xml | 11 +++++++++++ app-misc/race64/race64-1.0.0.ebuild | 37 +++++++++++++++++++++++++++++++++++++ 3 files changed, 49 insertions(+) diff --git a/app-misc/race64/Manifest b/app-misc/race64/Manifest new file mode 100644 index 000000000000..19d5568adf71 --- /dev/null +++ b/app-misc/race64/Manifest @@ -0,0 +1 @@ +DIST race64-1.0.0.tar.xz 5828 BLAKE2B 4f7cd1267d95055bb239a53c2c6cb9087f67c8b1b10afaffe976f1067cfbb7e221336ba846607f39f1610feb1d40f819921fd6155dd9277d9a2a94065ce4b41d SHA512 fac875c86eace435dfd7e2e82988eaae77c642566346aa65f65398cc7ad2b4e776767a711d7fbc543cc8ce3605c4a0216e6e1d928d587904e65083b5826d608d diff --git a/app-misc/race64/metadata.xml b/app-misc/race64/metadata.xml new file mode 100644 index 000000000000..0e6b145389f8 --- /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>[email protected]</email> + <name>Matthew Smith</name> + </maintainer> + <upstream> + <remote-id type="github">skeeto/hastyhex</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 +}
