* [gentoo-commits] repo/proj/guru:dev commit in: dev-lang/clipsjni/, dev-lang/clips/files/, dev-lang/clips/
@ 2021-11-13 0:04 Maciej Barć
0 siblings, 0 replies; only message in thread
From: Maciej Barć @ 2021-11-13 0:04 UTC (permalink / raw
To: gentoo-commits
commit: e0ab18e285f490edb436467a551503c7e91f7020
Author: Maciej Barć <xgqt <AT> riseup <DOT> net>
AuthorDate: Fri Nov 12 23:56:59 2021 +0000
Commit: Maciej Barć <xgqt <AT> riseup <DOT> net>
CommitDate: Sat Nov 13 00:04:29 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e0ab18e2
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 <AT> riseup.net>
dev-lang/clips/Manifest | 1 +
dev-lang/clips/clips-6.40.ebuild | 33 +++++++++++++++++++++++++++++++
dev-lang/clips/files/makefile.patch | 33 +++++++++++++++++++++++++++++++
dev-lang/{clipsjni => clips}/metadata.xml | 3 +--
dev-lang/clipsjni/metadata.xml | 2 +-
5 files changed, 69 insertions(+), 3 deletions(-)
diff --git a/dev-lang/clips/Manifest b/dev-lang/clips/Manifest
new file mode 100644
index 000000000..bcca28cfc
--- /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 000000000..f4f5b91aa
--- /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"
+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 000000000..56d30660a
--- /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/clipsjni/metadata.xml b/dev-lang/clips/metadata.xml
similarity index 86%
copy from dev-lang/clipsjni/metadata.xml
copy to dev-lang/clips/metadata.xml
index c55ed55be..64eee9b6a 100644
--- a/dev-lang/clipsjni/metadata.xml
+++ b/dev-lang/clips/metadata.xml
@@ -7,8 +7,7 @@
<name>Maciej Barć</name>
</maintainer>
<longdescription lang="en">
- This package is a Java implementation of CLIPS with
- a native shared library and a IDE.
+ 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>
diff --git a/dev-lang/clipsjni/metadata.xml b/dev-lang/clipsjni/metadata.xml
index c55ed55be..66056c3ff 100644
--- a/dev-lang/clipsjni/metadata.xml
+++ b/dev-lang/clipsjni/metadata.xml
@@ -13,7 +13,7 @@
that also provides procedural and object-oriented programming facilities.
</longdescription>
<upstream>
- <bugs-to>https://sourceforge.net/p/clipsrules/bugs/milestone/CLIPS/</bugs-to>
+ <bugs-to>https://sourceforge.net/p/clipsrules/bugs/milestone/CLIPSJNI/</bugs-to>
<remote-id type="sourceforge">clipsrules</remote-id>
</upstream>
</pkgmetadata>
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-11-13 0:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-13 0:04 [gentoo-commits] repo/proj/guru:dev commit in: dev-lang/clipsjni/, dev-lang/clips/files/, dev-lang/clips/ Maciej Barć
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox