This commit is contained in:
corey 2024-01-13 15:46:40 -06:00
parent 3a371e5d69
commit df40e6eee9
2 changed files with 43 additions and 0 deletions

11
dev-lang/par/metadata.xml Normal file
View File

@ -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>corey@mail.ylink.one</email>
<name>coreydunn</name>
</maintainer>
<upstream>
<!--<remote-id type="github">coreydunn/par</remote-id>-->
</upstream>
</pkgmetadata>

View File

@ -0,0 +1,32 @@
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Lexer, parser, and code generator for i386 and x86_64"
HOMEPAGE="https://git.ylink.one/corey/par"
SRC_URI="https://git.ylink.one/corey/par/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
S="${WORKDIR}"
RDEPEND="${DEPEND}"
src_compile() {
emake all
}
src_prepare() {
default
unpack ${P}.tar.gz
mv par ${P}
mv ${P}/* ./
printf "#pragma once\n#define VERSION \"${PV}\"" > version.h
cd "${S}/${P}"
}
src_install() {
emake DESTDIR="${D}" PREFIX=/usr install
}