X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage3%2Fpkg%2Fopenjade;h=4c46bf2c30ee59145b8fe5178268e7a832dfc772;hb=1b6490195147ee6d1098cf255240d60f60c40108;hp=da5b36d2f0fee6f7143c26180cdddfd1326446ef;hpb=3dae4c554ec18f465eb6ee5e6efdbdbe8557e13c;p=hvlinux.git diff --git a/stage3/pkg/openjade b/stage3/pkg/openjade index da5b36d..4c46bf2 100644 --- a/stage3/pkg/openjade +++ b/stage3/pkg/openjade @@ -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 +}