1 |
commit: eeaef857fab48756a4ada4b70f9c02da1f5b9661 |
2 |
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Nov 26 10:59:24 2021 +0000 |
4 |
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Nov 26 10:59:24 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eeaef857 |
7 |
|
8 |
dev-lang/clips: new package; add version 6.40 |
9 |
|
10 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
11 |
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> |
12 |
|
13 |
dev-lang/clips/Manifest | 1 + |
14 |
dev-lang/clips/clips-6.40.ebuild | 33 +++++++++++++++++++++++++++++++++ |
15 |
dev-lang/clips/files/makefile.patch | 33 +++++++++++++++++++++++++++++++++ |
16 |
dev-lang/clips/metadata.xml | 18 ++++++++++++++++++ |
17 |
4 files changed, 85 insertions(+) |
18 |
|
19 |
diff --git a/dev-lang/clips/Manifest b/dev-lang/clips/Manifest |
20 |
new file mode 100644 |
21 |
index 000000000000..bcca28cfc812 |
22 |
--- /dev/null |
23 |
+++ b/dev-lang/clips/Manifest |
24 |
@@ -0,0 +1 @@ |
25 |
+DIST clips-6.40.tar.gz 1082012 BLAKE2B f168a14178ca0d5d39039d9e661e2214f9787099944e11413d7056b0c2a047596e913893a4cb3c4425c311af6bc39ff7710ce649045111e4947f5fcf320527c4 SHA512 92383895c60f1fa02a4c1f426d734ae7140e798dd19c7b1ee668bb4781a20e7d1f2554222ebc2c1f47c03d3262a7a058c3a7840d5dd48c2d2fe761e9a0602399 |
26 |
|
27 |
diff --git a/dev-lang/clips/clips-6.40.ebuild b/dev-lang/clips/clips-6.40.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..7d7a427de499 |
30 |
--- /dev/null |
31 |
+++ b/dev-lang/clips/clips-6.40.ebuild |
32 |
@@ -0,0 +1,33 @@ |
33 |
+# Copyright 1999-2021 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=8 |
37 |
+ |
38 |
+inherit toolchain-funcs |
39 |
+ |
40 |
+DESCRIPTION="Tool for building Expert Systems (native version)" |
41 |
+HOMEPAGE="http://www.clipsrules.net/" |
42 |
+ |
43 |
+CLPN="clips_core_source_$(ver_cut 1)$(ver_cut 2)" |
44 |
+SRC_URI="https://sourceforge.net/projects/clipsrules/files/CLIPS/${PV}/${CLPN}.tar.gz -> ${P}.tar.gz" |
45 |
+S="${WORKDIR}/${CLPN}/core" |
46 |
+ |
47 |
+LICENSE="public-domain" |
48 |
+KEYWORDS="~amd64 ~x86" |
49 |
+SLOT="0" |
50 |
+ |
51 |
+PATCHES=( "${FILESDIR}/makefile.patch" ) |
52 |
+ |
53 |
+src_prepare() { |
54 |
+ tc-export AR CC |
55 |
+ default |
56 |
+} |
57 |
+ |
58 |
+src_compile() { |
59 |
+ emake -f makefile |
60 |
+} |
61 |
+ |
62 |
+src_install() { |
63 |
+ dobin clips |
64 |
+ dolib.a libclips.a |
65 |
+} |
66 |
|
67 |
diff --git a/dev-lang/clips/files/makefile.patch b/dev-lang/clips/files/makefile.patch |
68 |
new file mode 100644 |
69 |
index 000000000000..56d30660aaed |
70 |
--- /dev/null |
71 |
+++ b/dev-lang/clips/files/makefile.patch |
72 |
@@ -0,0 +1,33 @@ |
73 |
+--- a/makefile |
74 |
++++ b/makefile |
75 |
+@@ -66,8 +66,10 @@ debug : CFLAGS = -std=c99 -O0 -g |
76 |
+ debug : LDLIBS = -lm |
77 |
+ debug : clips |
78 |
+ |
79 |
+-release : CC = gcc |
80 |
+-release : CFLAGS = -std=c99 -O3 -fno-strict-aliasing |
81 |
++release : AR ?= |
82 |
++release : CC ?= |
83 |
++release : CFLAGS ?= |
84 |
++release : LDFLAGS ?= |
85 |
+ release : LDLIBS = -lm |
86 |
+ release : clips |
87 |
+ |
88 |
+@@ -88,14 +90,14 @@ release_cpp : LDLIBS = -lstdc++ |
89 |
+ release_cpp : clips |
90 |
+ |
91 |
+ .c.o : |
92 |
+- $(CC) -c -D$(CLIPS_OS) $(CFLAGS) $(WARNINGS) $< |
93 |
++ $(CC) -c -D$(CLIPS_OS) $(CFLAGS) $(LDFLAGS) $< |
94 |
+ |
95 |
+ clips : main.o libclips.a |
96 |
+- $(CC) -o clips main.o -L. -lclips $(LDLIBS) |
97 |
++ $(CC) -o clips main.o -L. -lclips $(CFLAGS) $(LDFLAGS) $(LDLIBS) |
98 |
+ |
99 |
+ libclips.a : $(OBJS) |
100 |
+ rm -f $@ |
101 |
+- ar cq $@ $(OBJS) |
102 |
++ $(AR) cq $@ $(OBJS) |
103 |
+ |
104 |
+ clean : |
105 |
+ -rm -f main.o $(OBJS) |
106 |
|
107 |
diff --git a/dev-lang/clips/metadata.xml b/dev-lang/clips/metadata.xml |
108 |
new file mode 100644 |
109 |
index 000000000000..6c162346dc7e |
110 |
--- /dev/null |
111 |
+++ b/dev-lang/clips/metadata.xml |
112 |
@@ -0,0 +1,18 @@ |
113 |
+<?xml version="1.0" encoding="UTF-8"?> |
114 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
115 |
+ |
116 |
+<pkgmetadata> |
117 |
+ <maintainer type="person"> |
118 |
+ <email>xgqt@g.o</email> |
119 |
+ <name>Maciej Barć</name> |
120 |
+ </maintainer> |
121 |
+ <longdescription lang="en"> |
122 |
+ This package is a pure C implementation of CLIPS. |
123 |
+ CLIPS is a forward-chaining rule-based programming language written in C |
124 |
+ that also provides procedural and object-oriented programming facilities. |
125 |
+ </longdescription> |
126 |
+ <upstream> |
127 |
+ <bugs-to>https://sourceforge.net/p/clipsrules/bugs/milestone/CLIPS/</bugs-to> |
128 |
+ <remote-id type="sourceforge">clipsrules</remote-id> |
129 |
+ </upstream> |
130 |
+</pkgmetadata> |