mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-05 12:38:09 -07:00
dev-lang/eisl: new package; add version 2.50
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
1
dev-lang/eisl/Manifest
Normal file
1
dev-lang/eisl/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST eisl-2.50.tar.gz 1757697 BLAKE2B 83c68213522320c815d9c7930c58181adba6f7fd3387421b7c7de55aca0fb6cabd78f65543c71adb89408531ea59855aafcf5bafd466bf517626a49cd252641f SHA512 4865c09dbbc0db885af69ec5ef0a731e2f55455f296b343b1cb05d3233e1e18c397b3b0a21eb0a6a86f85f20bf4e62f5e968fdf3cab45f6b5e3e3f9ee27d5e80
|
||||
33
dev-lang/eisl/eisl-2.50.ebuild
Normal file
33
dev-lang/eisl/eisl-2.50.ebuild
Normal file
@@ -0,0 +1,33 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="Interpreter and compiler compatible for the ISLisp standard"
|
||||
HOMEPAGE="https://github.com/sasagawa888/eisl/"
|
||||
SRC_URI="https://github.com/sasagawa888/eisl/archive/v${PV}.tar.gz
|
||||
-> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
RESTRICT="test" # Tests run cppcheck (and fail)
|
||||
|
||||
DOCS=( README-ja.md README.md documents )
|
||||
|
||||
RDEPEND="sys-libs/ncurses:="
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${P}-Makefile.patch )
|
||||
|
||||
src_compile() {
|
||||
emake CC="$(tc-getCC)" clean all
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin edlis eisl
|
||||
|
||||
einstalldocs
|
||||
}
|
||||
33
dev-lang/eisl/files/eisl-2.50-Makefile.patch
Normal file
33
dev-lang/eisl/files/eisl-2.50-Makefile.patch
Normal file
@@ -0,0 +1,33 @@
|
||||
--- a/makefile
|
||||
+++ b/makefile
|
||||
@@ -29,7 +29,7 @@ else
|
||||
CURSES_LIBS := $(shell ncurses6-config --libs)
|
||||
endif
|
||||
endif
|
||||
-CFLAGS := $(INCS) -Wall -Wextra -D_FORTIFY_SOURCE=2 $(CURSES_CFLAGS) -U_XOPEN_SOURCE -D_XOPEN_SOURCE=700 -Inana/src
|
||||
+CFLAGS += $(INCS) -Wall -Wextra $(CURSES_CFLAGS) -U_XOPEN_SOURCE -D_XOPEN_SOURCE=700 -Inana/src
|
||||
DFLAGS := --O3 --release --betterC
|
||||
SRC_CII := cii/src/except.c cii/src/fmt.c cii/src/str.c cii/src/text.c
|
||||
SRC_D := dextension.d disl.d
|
||||
@@ -42,7 +42,7 @@ ifeq ($(DEBUG),1)
|
||||
LDFLAGS := -fsanitize=undefined
|
||||
endif
|
||||
else
|
||||
- CFLAGS += -O3 -flto -DNDEBUG=1 -DWITHOUT_NANA=1
|
||||
+ CFLAGS += -DNDEBUG=1 -DWITHOUT_NANA=1
|
||||
SRC_CII += cii/src/mem.c
|
||||
endif
|
||||
OBJ_CII := $(SRC_CII:.c=.o)
|
||||
@@ -56,11 +56,10 @@ else
|
||||
CFLAGS += -std=c17
|
||||
endif
|
||||
ifneq ($(DEBUG),1)
|
||||
- LDFLAGS += -flto
|
||||
ifeq ($(OPSYS),macos)
|
||||
LDFLAGS += -Wl,-S,-x
|
||||
else
|
||||
- LDFLAGS += -s
|
||||
+ LDFLAGS +=
|
||||
endif
|
||||
endif
|
||||
PREFIX := /usr/local
|
||||
18
dev-lang/eisl/metadata.xml
Normal file
18
dev-lang/eisl/metadata.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>xgqt@gentoo.org</email>
|
||||
<name>Maciej Barć</name>
|
||||
</maintainer>
|
||||
<longdescription>
|
||||
Easy-ISLisp(EISL) is an interpreter and compiler compatible with the ISLisp
|
||||
standard. EISL was written by Kenichi Sasagawa
|
||||
https://qiita.com/sym_num/items/793adfe118514668e5b0
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<bugs-to>https://github.com/sasagawa888/eisl/issues</bugs-to>
|
||||
<remote-id type="github">sasagawa888/eisl</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user