dev-lang/neko: new pkg; add 2.3.0 and live
Package-Manager: Portage-3.0.17, Repoman-3.0.2 Signed-off-by: Maciej Barć <xgqt@riseup.net>
This commit is contained in:
parent
741ee52366
commit
99e60bf51c
1
dev-lang/neko/Manifest
Normal file
1
dev-lang/neko/Manifest
Normal file
@ -0,0 +1 @@
|
|||||||
|
DIST neko-2.3.0.tar.gz 514044 BLAKE2B 1214fd15e0bff9df3f0bb3f4c856134772f42da5740adc260051bea6e0203e2e37db852b97114ddeef58d8320313dd01875918dee1a001833a3b9ca7d7c3c512 SHA512 fec51bed0c5500561635656c7456f3da0599aa6a47a25efe739b3c51f9cdded4a8824ed14ab67bab0905d9082cf6f06b3a76c868cb1b61d440957bcd9fd3f3d2
|
27
dev-lang/neko/metadata.xml
Normal file
27
dev-lang/neko/metadata.xml
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer type="person">
|
||||||
|
<email>xgqt@riseup.net</email>
|
||||||
|
<name>Maciej Barć</name>
|
||||||
|
</maintainer>
|
||||||
|
<use>
|
||||||
|
<flag name="apache">
|
||||||
|
Build Apache modules
|
||||||
|
</flag>
|
||||||
|
<flag name="gtk2">
|
||||||
|
Build GTK-2 UI support
|
||||||
|
</flag>
|
||||||
|
</use>
|
||||||
|
<longdescription lang="en">
|
||||||
|
Neko is a high-level dynamically typed programming language. It can be
|
||||||
|
used as an embedded scripting language. It has been designed to provide
|
||||||
|
a common runtime for several different languages. Learning and using
|
||||||
|
Neko is very easy. You can easily extend the language with C libraries.
|
||||||
|
You can also write generators from your own language to Neko and then
|
||||||
|
use the Neko Runtime to compile, run, and access existing libraries.
|
||||||
|
</longdescription>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="github">HaxeFoundation/neko</remote-id>
|
||||||
|
</upstream>
|
||||||
|
</pkgmetadata>
|
50
dev-lang/neko/neko-2.3.0.ebuild
Normal file
50
dev-lang/neko/neko-2.3.0.ebuild
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit cmake
|
||||||
|
|
||||||
|
DESCRIPTION="Neko is a high-level dynamically typed programming language"
|
||||||
|
HOMEPAGE="https://nekovm.org/"
|
||||||
|
|
||||||
|
if [[ "${PV}" == *9999* ]]; then
|
||||||
|
inherit git-r3
|
||||||
|
EGIT_REPO_URI="https://github.com/HaxeFoundation/${PN}.git"
|
||||||
|
else
|
||||||
|
MY_PV=${PV//./-}
|
||||||
|
SRC_URI="https://github.com/HaxeFoundation/${PN}/archive/refs/tags/v${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
S="${WORKDIR}/${PN}-${MY_PV}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
RESTRICT="mirror test"
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE="apache gtk2 mysql sqlite ssl"
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
apache? ( www-servers/apache:2 )
|
||||||
|
gtk2? ( x11-libs/gtk+:2 )
|
||||||
|
mysql? ( dev-db/mysql:* )
|
||||||
|
sqlite? ( dev-db/sqlite )
|
||||||
|
ssl? ( dev-libs/openssl )
|
||||||
|
|
||||||
|
dev-libs/boehm-gc
|
||||||
|
dev-libs/libpcre
|
||||||
|
sys-libs/zlib
|
||||||
|
"
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local mycmakeargs=(
|
||||||
|
-DWITH_APACHE=$(usex apache)
|
||||||
|
-DWITH_MYSQL=$(usex mysql)
|
||||||
|
-DWITH_NEKOML=ON
|
||||||
|
-DWITH_REGEXP=ON
|
||||||
|
-DWITH_SQLITE=$(usex sqlite)
|
||||||
|
-DWITH_SSL=$(usex ssl)
|
||||||
|
-DWITH_UI=$(usex gtk2)
|
||||||
|
)
|
||||||
|
cmake_src_configure
|
||||||
|
}
|
50
dev-lang/neko/neko-9999.ebuild
Normal file
50
dev-lang/neko/neko-9999.ebuild
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit cmake
|
||||||
|
|
||||||
|
DESCRIPTION="Neko is a high-level dynamically typed programming language"
|
||||||
|
HOMEPAGE="https://nekovm.org/"
|
||||||
|
|
||||||
|
if [[ "${PV}" == *9999* ]]; then
|
||||||
|
inherit git-r3
|
||||||
|
EGIT_REPO_URI="https://github.com/HaxeFoundation/${PN}.git"
|
||||||
|
else
|
||||||
|
MY_PV=${PV//./-}
|
||||||
|
SRC_URI="https://github.com/HaxeFoundation/${PN}/archive/refs/tags/v${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
S="${WORKDIR}/${PN}-${MY_PV}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
RESTRICT="mirror test"
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE="apache gtk2 mysql sqlite ssl"
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
apache? ( www-servers/apache:2 )
|
||||||
|
gtk2? ( x11-libs/gtk+:2 )
|
||||||
|
mysql? ( dev-db/mysql:* )
|
||||||
|
sqlite? ( dev-db/sqlite )
|
||||||
|
ssl? ( dev-libs/openssl )
|
||||||
|
|
||||||
|
dev-libs/boehm-gc
|
||||||
|
dev-libs/libpcre
|
||||||
|
sys-libs/zlib
|
||||||
|
"
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local mycmakeargs=(
|
||||||
|
-DWITH_APACHE=$(usex apache)
|
||||||
|
-DWITH_MYSQL=$(usex mysql)
|
||||||
|
-DWITH_NEKOML=ON
|
||||||
|
-DWITH_REGEXP=ON
|
||||||
|
-DWITH_SQLITE=$(usex sqlite)
|
||||||
|
-DWITH_SSL=$(usex ssl)
|
||||||
|
-DWITH_UI=$(usex gtk2)
|
||||||
|
)
|
||||||
|
cmake_src_configure
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user