Gentoo Archives: gentoo-commits

From: "Maciej Barć" <xgqt@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-lang/clipsjni/files/, dev-lang/clipsjni/
Date: Fri, 26 Nov 2021 11:19:45
Message-Id: 1637925578.0c79f3904f5d1be99d4a8bc811f523eeca3189d4.xgqt@gentoo
1 commit: 0c79f3904f5d1be99d4a8bc811f523eeca3189d4
2 Author: Maciej Barć <xgqt <AT> gentoo <DOT> org>
3 AuthorDate: Fri Nov 26 11:13:53 2021 +0000
4 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 26 11:19:38 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0c79f390
7
8 dev-lang: move clipsjni to ::gentoo
9
10 Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>
11
12 dev-lang/clipsjni/Manifest | 1 -
13 dev-lang/clipsjni/clipsjni-6.40.ebuild | 81 ----------------------
14 .../clipsjni/files/library-src_makefile.lnx.patch | 34 ---------
15 dev-lang/clipsjni/files/makefile.lnx.patch | 11 ---
16 dev-lang/clipsjni/metadata.xml | 19 -----
17 5 files changed, 146 deletions(-)
18
19 diff --git a/dev-lang/clipsjni/Manifest b/dev-lang/clipsjni/Manifest
20 deleted file mode 100644
21 index e2d53a3cc..000000000
22 --- a/dev-lang/clipsjni/Manifest
23 +++ /dev/null
24 @@ -1 +0,0 @@
25 -DIST clipsjni-6.40.tar.gz 3924580 BLAKE2B 6fce0ba8d2483291e1328ad8cba08bf663959e49414ae29e43bb226b8c82391ccde2d26732c6687ab52ee5cd88101df19c17258907d2fda84bde759d0d3687c6 SHA512 aacfe56ee64ade0be834654246e57a087cfc41d030a7138892158145a3485b0c9af60e188929123e3212ae0cf3cac0d4eac1e13ea0662d72ad714d67d4772d44
26
27 diff --git a/dev-lang/clipsjni/clipsjni-6.40.ebuild b/dev-lang/clipsjni/clipsjni-6.40.ebuild
28 deleted file mode 100644
29 index 23000a073..000000000
30 --- a/dev-lang/clipsjni/clipsjni-6.40.ebuild
31 +++ /dev/null
32 @@ -1,81 +0,0 @@
33 -# Copyright 1999-2021 Gentoo Authors
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI=7
37 -
38 -JAVA_PKG_IUSE="source"
39 -
40 -inherit desktop toolchain-funcs xdg java-pkg-2
41 -
42 -DESCRIPTION="Tool for building Expert Systems (Java version)"
43 -HOMEPAGE="http://www.clipsrules.net/"
44 -
45 -CLPN="clips_jni_$(ver_cut 1)$(ver_cut 2)"
46 -SRC_URI="https://sourceforge.net/projects/clipsrules/files/CLIPS/${PV}/${CLPN}.tar.gz -> ${P}.tar.gz"
47 -S="${WORKDIR}/${PN^^}"
48 -
49 -LICENSE="public-domain"
50 -KEYWORDS="~amd64"
51 -SLOT="0"
52 -IUSE="examples"
53 -
54 -RDEPEND=">=virtual/jre-1.8:*"
55 -DEPEND=">=virtual/jdk-1.8:*"
56 -
57 -PATCHES=(
58 - "${FILESDIR}/library-src_makefile.lnx.patch"
59 - "${FILESDIR}/makefile.lnx.patch"
60 -)
61 -
62 -src_prepare() {
63 - xdg_environment_reset
64 - tc-export AR CC
65 - # sorry... Java
66 - unset MAKEOPTS
67 -
68 - rm ./*.dll ./*.jar ./*jnilib || die
69 - java-pkg-2_src_prepare
70 -
71 - default
72 -}
73 -
74 -src_compile() {
75 - pushd library-src || die
76 - emake -f makefile.lnx
77 - popd || die
78 -
79 - if use examples ; then
80 - emake -f makefile.lnx
81 - else
82 - emake -f makefile.lnx clipsjni ide
83 - fi
84 -}
85 -
86 -src_install() {
87 - java-pkg_doso ./library-src/libCLIPSJNI.so
88 - java-pkg_dojar CLIPSIDE.jar CLIPSJNI.jar
89 -
90 - local e
91 - for e in clipside clipsjni ; do
92 - java-pkg_dolauncher ${e} --jar ${e^^}.jar
93 - done
94 -
95 - doicon ./java-src/net/sf/clipsrules/jni/examples/ide/resources/CLIPS.png
96 -
97 - make_desktop_entry \
98 - clipside CLIPSIDE CLIPS "Development;IDE"
99 - make_desktop_entry \
100 - clipsjni CLIPSJNI CLIPS "Development;ConsoleOnly;" "Terminal=true"
101 -
102 - if use examples ; then
103 - insinto /usr/share/clipsjni/examples
104 - doins ./*Demo.jar
105 - fi
106 -
107 - use source && java-pkg_dosrc ./java-src
108 -}
109 -
110 -pkg_preinst() {
111 - java-pkg-2_pkg_preinst
112 - xdg_pkg_preinst
113 -}
114
115 diff --git a/dev-lang/clipsjni/files/library-src_makefile.lnx.patch b/dev-lang/clipsjni/files/library-src_makefile.lnx.patch
116 deleted file mode 100644
117 index d984bfdaf..000000000
118 --- a/dev-lang/clipsjni/files/library-src_makefile.lnx.patch
119 +++ /dev/null
120 @@ -1,34 +0,0 @@
121 ---- a/library-src/makefile.lnx
122 -+++ b/library-src/makefile.lnx
123 -@@ -9,7 +9,12 @@
124 - # Notes:
125 - # -fPIC option needed for 64-bit systems
126 -
127 --all: ubuntu
128 -+all: libCLIPSJNI.so
129 -+
130 -+CC ?=
131 -+CFLAGS ?=
132 -+JAVA_HOME ?=
133 -+LDFLAGS ?=
134 -
135 - ubuntu : JAVA_HOME = /usr/lib/jvm/default-java
136 - ubuntu : libCLIPSJNI.so
137 -@@ -63,7 +68,7 @@ OBJS = agenda.o analysis.o argacces.o bload.o bmathfun.o bsave.o \
138 - clipsjni_utilities.o clipsjni_glue.o
139 -
140 - .c.o :
141 -- gcc -c -std=c99 -O3 -fPIC -DLINUX \
142 -+ $(CC) -c -std=c99 -fPIC $(CFLAGS) $(LDFLAGS) -DLINUX \
143 - -I$(JAVA_INCLUDE) -I$(JAVA_INCLUDE_OS) \
144 - -fno-strict-aliasing -Wstrict-aliasing \
145 - -Wall -Wundef -Wpointer-arith -Wshadow \
146 -@@ -72,7 +77,7 @@ OBJS = agenda.o analysis.o argacces.o bload.o bmathfun.o bsave.o \
147 - -Wstrict-prototypes -Waggregate-return -Wno-implicit $<
148 -
149 - libCLIPSJNI.so : $(OBJS)
150 -- gcc -o libCLIPSJNI.so -fPIC -shared \
151 -+ $(CC) -o libCLIPSJNI.so -fPIC $(CFLAGS) $(LDFLAGS) -shared \
152 - -lm $(OBJS)
153 -
154 - clean :
155
156 diff --git a/dev-lang/clipsjni/files/makefile.lnx.patch b/dev-lang/clipsjni/files/makefile.lnx.patch
157 deleted file mode 100644
158 index 4164376c2..000000000
159 --- a/dev-lang/clipsjni/files/makefile.lnx.patch
160 +++ /dev/null
161 @@ -1,11 +0,0 @@
162 ---- a/makefile.lnx
163 -+++ b/makefile.lnx
164 -@@ -129,7 +129,7 @@ all: clipsjni animal auto sudoku wine router ide
165 -
166 - clipsjni :
167 - mkdir -p $(JNI_BIN)
168 -- javac -d $(JNI_BIN) $(JNI_FILES)
169 -+ javac -Xlint:deprecation -d $(JNI_BIN) $(JNI_FILES)
170 - jar -cfe CLIPSJNI.jar $(JNI_CLASS) $(JNI_BIN)/$(JNI_CP)/Environment.class -C $(JNI_BIN) net
171 -
172 - animal :
173
174 diff --git a/dev-lang/clipsjni/metadata.xml b/dev-lang/clipsjni/metadata.xml
175 deleted file mode 100644
176 index 66056c3ff..000000000
177 --- a/dev-lang/clipsjni/metadata.xml
178 +++ /dev/null
179 @@ -1,19 +0,0 @@
180 -<?xml version="1.0" encoding="UTF-8"?>
181 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
182 -
183 -<pkgmetadata>
184 - <maintainer type="person">
185 - <email>xgqt@××××××.net</email>
186 - <name>Maciej Barć</name>
187 - </maintainer>
188 - <longdescription lang="en">
189 - This package is a Java implementation of CLIPS with
190 - a native shared library and a IDE.
191 - CLIPS is a forward-chaining rule-based programming language written in C
192 - that also provides procedural and object-oriented programming facilities.
193 - </longdescription>
194 - <upstream>
195 - <bugs-to>https://sourceforge.net/p/clipsrules/bugs/milestone/CLIPSJNI/</bugs-to>
196 - <remote-id type="sourceforge">clipsrules</remote-id>
197 - </upstream>
198 -</pkgmetadata>