diff options
author | Maciej Barć <xgqt@gentoo.org> | 2021-11-26 11:59:24 +0100 |
---|---|---|
committer | Maciej Barć <xgqt@gentoo.org> | 2021-11-26 11:59:24 +0100 |
commit | eeaef857fab48756a4ada4b70f9c02da1f5b9661 (patch) | |
tree | 3c030016a493262e5dfa2dade86c2cb61f535546 /dev-lang/clips | |
parent | www-apps/selfoss: new package; add version 2.18 (diff) | |
download | gentoo-eeaef857fab48756a4ada4b70f9c02da1f5b9661.tar.gz gentoo-eeaef857fab48756a4ada4b70f9c02da1f5b9661.tar.bz2 gentoo-eeaef857fab48756a4ada4b70f9c02da1f5b9661.zip |
dev-lang/clips: new package; add version 6.40
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'dev-lang/clips')
-rw-r--r-- | dev-lang/clips/Manifest | 1 | ||||
-rw-r--r-- | dev-lang/clips/clips-6.40.ebuild | 33 | ||||
-rw-r--r-- | dev-lang/clips/files/makefile.patch | 33 | ||||
-rw-r--r-- | dev-lang/clips/metadata.xml | 18 |
4 files changed, 85 insertions, 0 deletions
diff --git a/dev-lang/clips/Manifest b/dev-lang/clips/Manifest new file mode 100644 index 000000000000..bcca28cfc812 --- /dev/null +++ b/dev-lang/clips/Manifest @@ -0,0 +1 @@ +DIST clips-6.40.tar.gz 1082012 BLAKE2B f168a14178ca0d5d39039d9e661e2214f9787099944e11413d7056b0c2a047596e913893a4cb3c4425c311af6bc39ff7710ce649045111e4947f5fcf320527c4 SHA512 92383895c60f1fa02a4c1f426d734ae7140e798dd19c7b1ee668bb4781a20e7d1f2554222ebc2c1f47c03d3262a7a058c3a7840d5dd48c2d2fe761e9a0602399 diff --git a/dev-lang/clips/clips-6.40.ebuild b/dev-lang/clips/clips-6.40.ebuild new file mode 100644 index 000000000000..7d7a427de499 --- /dev/null +++ b/dev-lang/clips/clips-6.40.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="Tool for building Expert Systems (native version)" +HOMEPAGE="http://www.clipsrules.net/" + +CLPN="clips_core_source_$(ver_cut 1)$(ver_cut 2)" +SRC_URI="https://sourceforge.net/projects/clipsrules/files/CLIPS/${PV}/${CLPN}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${CLPN}/core" + +LICENSE="public-domain" +KEYWORDS="~amd64 ~x86" +SLOT="0" + +PATCHES=( "${FILESDIR}/makefile.patch" ) + +src_prepare() { + tc-export AR CC + default +} + +src_compile() { + emake -f makefile +} + +src_install() { + dobin clips + dolib.a libclips.a +} diff --git a/dev-lang/clips/files/makefile.patch b/dev-lang/clips/files/makefile.patch new file mode 100644 index 000000000000..56d30660aaed --- /dev/null +++ b/dev-lang/clips/files/makefile.patch @@ -0,0 +1,33 @@ +--- a/makefile ++++ b/makefile +@@ -66,8 +66,10 @@ debug : CFLAGS = -std=c99 -O0 -g + debug : LDLIBS = -lm + debug : clips + +-release : CC = gcc +-release : CFLAGS = -std=c99 -O3 -fno-strict-aliasing ++release : AR ?= ++release : CC ?= ++release : CFLAGS ?= ++release : LDFLAGS ?= + release : LDLIBS = -lm + release : clips + +@@ -88,14 +90,14 @@ release_cpp : LDLIBS = -lstdc++ + release_cpp : clips + + .c.o : +- $(CC) -c -D$(CLIPS_OS) $(CFLAGS) $(WARNINGS) $< ++ $(CC) -c -D$(CLIPS_OS) $(CFLAGS) $(LDFLAGS) $< + + clips : main.o libclips.a +- $(CC) -o clips main.o -L. -lclips $(LDLIBS) ++ $(CC) -o clips main.o -L. -lclips $(CFLAGS) $(LDFLAGS) $(LDLIBS) + + libclips.a : $(OBJS) + rm -f $@ +- ar cq $@ $(OBJS) ++ $(AR) cq $@ $(OBJS) + + clean : + -rm -f main.o $(OBJS) diff --git a/dev-lang/clips/metadata.xml b/dev-lang/clips/metadata.xml new file mode 100644 index 000000000000..6c162346dc7e --- /dev/null +++ b/dev-lang/clips/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> + +<pkgmetadata> + <maintainer type="person"> + <email>xgqt@gentoo.org</email> + <name>Maciej Barć</name> + </maintainer> + <longdescription lang="en"> + This package is a pure C implementation of CLIPS. + CLIPS is a forward-chaining rule-based programming language written in C + that also provides procedural and object-oriented programming facilities. + </longdescription> + <upstream> + <bugs-to>https://sourceforge.net/p/clipsrules/bugs/milestone/CLIPS/</bugs-to> + <remote-id type="sourceforge">clipsrules</remote-id> + </upstream> +</pkgmetadata> |