commit: e0714bd408807df32ac291f8035f5b3bcfe68729
parent 0429c2d31d677c7255551bff6ff0d6670809fbe9
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Fri, 17 May 2024 03:47:58 +0200
dev-util/oyacc: new package, add 6.6
Diffstat:
3 files changed, 37 insertions(+), 0 deletions(-)
diff --git a/dev-util/oyacc/Manifest b/dev-util/oyacc/Manifest
@@ -0,0 +1 @@
+DIST oyacc-6.6.tar.gz 38053 BLAKE2B 9967821abe04207ff519726b0549dbb80b3e01656fdd7439fb420996e85eed66ef48be62d373f39dfe5bcd55ae0ec71df0b77e846e00a5ee75def82c1254d8ef SHA512 e186a8fc01871414574fd5e90e8ce87a45bcf40aa0d7276bd90a301ee8c312be3a0adb580fc2c8b6653fbeeda1ce4dfdd078095a5fc77e70263e5e940414dc54
diff --git a/dev-util/oyacc/metadata.xml b/dev-util/oyacc/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person" proxied="yes">
+ <email>contact@hacktivis.me</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">ibara/yacc</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/oyacc/oyacc-6.6.ebuild b/dev-util/oyacc/oyacc-6.6.ebuild
@@ -0,0 +1,26 @@
+# Copyright 2024 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Portable OpenBSD Yacc"
+HOMEPAGE="https://github.com/ibara/yacc"
+SRC_URI="https://github.com/ibara/yacc/archive/refs/tags/oyacc-${PV}.tar.gz"
+S="${WORKDIR}/yacc-oyacc-${PV}/"
+LICENSE="BSD ISC public-domain"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="static"
+
+src_configure() {
+ # Somehow BINDIR isn't set in the generated Makefile
+ export BINDIR="${EPREFIX}/usr/bin"
+
+ # --disable-yacc: Installs as oyacc+oyyfix rather than yacc+yyfix
+ ./configure \
+ --prefix="${EPREFIX}/usr" \
+ --mandir="${EPREFIX}/usr/share/man" \
+ --disable-yacc \
+ $(use_enable static) \
+ || die
+}