mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-20 20:43:09 -04:00
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@riseup.net>
This commit is contained in:
1
dev-lang/clips/Manifest
Normal file
1
dev-lang/clips/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST clips-6.40.tar.gz 1082012 BLAKE2B f168a14178ca0d5d39039d9e661e2214f9787099944e11413d7056b0c2a047596e913893a4cb3c4425c311af6bc39ff7710ce649045111e4947f5fcf320527c4 SHA512 92383895c60f1fa02a4c1f426d734ae7140e798dd19c7b1ee668bb4781a20e7d1f2554222ebc2c1f47c03d3262a7a058c3a7840d5dd48c2d2fe761e9a0602399
|
||||
33
dev-lang/clips/clips-6.40.ebuild
Normal file
33
dev-lang/clips/clips-6.40.ebuild
Normal file
@@ -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
|
||||
}
|
||||
33
dev-lang/clips/files/makefile.patch
Normal file
33
dev-lang/clips/files/makefile.patch
Normal file
@@ -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)
|
||||
18
dev-lang/clips/metadata.xml
Normal file
18
dev-lang/clips/metadata.xml
Normal file
@@ -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@riseup.net</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>
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user