aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--academic/aris/aris.SlackBuild10
-rw-r--r--academic/aris/html_doc.patch19
2 files changed, 27 insertions, 2 deletions
diff --git a/academic/aris/aris.SlackBuild b/academic/aris/aris.SlackBuild
index ce7cf5c0107a1..f0e60295ea529 100644
--- a/academic/aris/aris.SlackBuild
+++ b/academic/aris/aris.SlackBuild
@@ -6,7 +6,7 @@
PRGNAM=aris
VERSION=${VERSION:-2.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -59,9 +59,14 @@ CXXFLAGS="$SLKCFLAGS" \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
- --docdir=/usr/doc/$PRGNAM \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --htmldir=/usr/doc/$PRGNAM-$VERSION/html \
--build=$ARCH-slackware-linux
+# this will allow aris to find its documentation
+# in a better place.
+patch -p1 < $CWD/html_doc.patch
+
make
make install DESTDIR=$PKG
@@ -76,6 +81,7 @@ gzip -9 $PKG/usr/info/$PRGNAM.info
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a README $PKG/usr/doc/$PRGNAM-$VERSION
+cp -ar doc/$PRGNAM/ $PKG/usr/doc/$PRGNAM-$VERSION/html
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/academic/aris/html_doc.patch b/academic/aris/html_doc.patch
new file mode 100644
index 0000000000000..1b359b73d6529
--- /dev/null
+++ b/academic/aris/html_doc.patch
@@ -0,0 +1,19 @@
+--- aris-2.0/configure 2012-09-25 05:06:22.000000000 -0300
++++ aris-2.0b/configure 2013-03-23 18:34:59.483719378 -0300
+@@ -4610,3 +4610,1 @@
+-cat >>confdefs.h <<_ACEOF
+-#define HELP_FILE "file://`pwd`/doc/aris/index.html"
+-_ACEOF
++echo "#define HELP_FILE \"file://"$htmldir"/index.html\"" >>confdefs.h
+--- aris-2.0/src/aris.c 2012-09-25 05:06:22.000000000 -0300
++++ aris-2.0b/src/aris.c 2013-03-23 18:45:25.290749474 -0300
+@@ -1064,0 +1065,6 @@
++#ifdef HELP_FILE /* Which should be defined in config.h */
++
++ strcpy (the_app->help_file, HELP_FILE);
++
++#else
++
+@@ -1076,0 +1083,2 @@
++
++#endif /* HELP FILE */