Upgrade to vte-0.38.2
[hvlinux.git] / stage3 / pkg / openjade
index da5b36d..4c46bf2 100644 (file)
@@ -1,41 +1,31 @@
-#!/bin/sh
-set -o errexit
+#!/bin/bash
 
-# First argument of this script is the package name
+hvconfig_pre()
+{
+    CONFIGURE_OPTS+=" \
+        --enable-http \
+        --disable-static \
+        --enable-default-catalog=/etc/sgml/catalog \
+        --enable-default-search-path=/usr/share/sgml \
+        --datadir=/usr/share/sgml/${PACKAGE}"
+}
 
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
+hvbuild_post()
+{
+    ln -sf openjade /usr/bin/jade
+    ln -sf libogrove.so /usr/lib/libgrove.so
+    ln -sf libospgrove.so /usr/lib/libspgrove.so
+    ln -sf libostyle.so /usr/lib/libstyle.so
+    install -v -m644 dsssl/catalog /usr/share/sgml/${PACKAGE}/
+    install -v -m644 dsssl/*.{dtd,dsl,sgm} /usr/share/sgml/${PACKAGE}
+    install-catalog --add /etc/sgml/${PACKAGE}.cat \
+        /usr/share/sgml/${PACKAGE}/catalog
+    install-catalog --add /etc/sgml/sgml-docbook.cat \
+        /etc/sgml/${PACKAGE}.cat
 
-# Applying patches (if any)
-apply_patches ${1}
+    var_add_path "SGML_BASE_DIR" /etc/profile "/usr/share/sgml"
+    var_export   "SGML_BASE_DIR" /etc/profile
 
-cd ${LFS_TMP}/${1}
-./configure \
-    --prefix=/usr \
-    --enable-http \
-    --disable-static \
-    --enable-default-catalog=/etc/sgml/catalog \
-    --enable-default-search-path=/usr/share/sgml \
-    --datadir=/usr/share/sgml/${1}
-make
-make install
-ln -sf openjade /usr/bin/jade
-ln -sf libogrove.so /usr/lib/libgrove.so
-ln -sf libospgrove.so /usr/lib/libspgrove.so
-ln -sf libostyle.so /usr/lib/libstyle.so
-install -m644 dsssl/catalog /usr/share/sgml/${1}/
-install -m644 dsssl/*.{dtd,dsl,sgm} /usr/share/sgml/${1}
-install-catalog --add /etc/sgml/${1}.cat \
-    /usr/share/sgml/${1}/catalog
-install-catalog --add /etc/sgml/sgml-docbook.cat \
-    /etc/sgml/${1}.cat
-
-var_add_path "SGML_BASE_DIR" /etc/profile "/usr/share/sgml"
-var_export   "SGML_BASE_DIR" /etc/profile
-
-var_add_path "SGML_CATALOGS_DIR" /etc/profile "/etc/sgml"
-var_export   "SGML_CATALOGS_DIR" /etc/profile
-
-exit $?
+    var_add_path "SGML_CATALOGS_DIR" /etc/profile "/etc/sgml"
+    var_export   "SGML_CATALOGS_DIR" /etc/profile
+}