diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2003-12-06 23:13:31 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2003-12-06 23:13:31 +0000 |
commit | 9fb35023ed45dc08b766459b4675edb7b6e0471f (patch) | |
tree | 5755ca333d9ad521b74ae55a19f4bbe51b8ed26e /textproc/scrollkeeper | |
parent | a07612bc5f15354b64b08eefc3243ce3d0c14de8 (diff) | |
download | ports-9fb35023ed45dc08b766459b4675edb7b6e0471f.tar.gz ports-9fb35023ed45dc08b766459b4675edb7b6e0471f.zip |
Notes
Diffstat (limited to 'textproc/scrollkeeper')
-rw-r--r-- | textproc/scrollkeeper/Makefile | 14 | ||||
-rw-r--r-- | textproc/scrollkeeper/distinfo | 2 | ||||
-rw-r--r-- | textproc/scrollkeeper/files/patch-Makefile.in | 33 | ||||
-rw-r--r-- | textproc/scrollkeeper/files/patch-cl_src_get-cl.c | 11 | ||||
-rw-r--r-- | textproc/scrollkeeper/files/patch-configure | 33 | ||||
-rw-r--r-- | textproc/scrollkeeper/files/patch-extract_dtds_Makefile.in | 15 | ||||
-rw-r--r-- | textproc/scrollkeeper/files/patch-libs_install.c | 178 | ||||
-rw-r--r-- | textproc/scrollkeeper/files/patch-libs_scrollkeeper.h.in | 2 | ||||
-rw-r--r-- | textproc/scrollkeeper/pkg-install | 226 | ||||
-rw-r--r-- | textproc/scrollkeeper/pkg-plist | 17 |
10 files changed, 65 insertions, 466 deletions
diff --git a/textproc/scrollkeeper/Makefile b/textproc/scrollkeeper/Makefile index 1edc7cacfcf3..bad5e78e4fc4 100644 --- a/textproc/scrollkeeper/Makefile +++ b/textproc/scrollkeeper/Makefile @@ -6,8 +6,7 @@ # PORTNAME= scrollkeeper -PORTVERSION= 0.3.12 -PORTREVISION= 4 +PORTVERSION= 0.3.14 PORTEPOCH= 1 CATEGORIES= textproc gnome MASTER_SITES= ${MASTER_SITE_GNOME} @@ -41,7 +40,8 @@ USE_REINPLACE= yes USE_GNOME= gnomehack gnomehier gnometarget libxslt INSTALLS_SHLIB= yes CONFIGURE_ARGS= --localstatedir=/var --datadir=${PREFIX}/share/gnome \ - --with-omfdirs=${PREFIX}/share/gnome/omf + --with-omfdirs=${PREFIX}/share/gnome/omf \ + --with-xml-catalog=${LOCALBASE}/share/xml/catalog CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LIBS="-L${LOCALBASE}/lib -lintl" \ LOCALBASE="${LOCALBASE}" @@ -66,13 +66,7 @@ post-patch: 's|[(]LN_S[)] -f -n|(LN_S) -f|g' @${REINPLACE_CMD} -e 's|/usr/share/locale|${PREFIX}/share/locale|g' \ ${WRKSRC}/libs/scrollkeeper.h.in - @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \ - ${WRKSRC}/cl/src/update.c @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ - ${WRKSRC}/extract/dtds/Makefile.in \ - ${WRKSRC}/libs/Makefile.in - -pre-install: - @${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL + ${WRKSRC}/extract/dtds/Makefile.in .include <bsd.port.post.mk> diff --git a/textproc/scrollkeeper/distinfo b/textproc/scrollkeeper/distinfo index 5b9502f74128..79ea86f69af0 100644 --- a/textproc/scrollkeeper/distinfo +++ b/textproc/scrollkeeper/distinfo @@ -1 +1 @@ -MD5 (gnome2/scrollkeeper-0.3.12.tar.bz2) = c6ce2b4cf005e31b7b1c2d46b82a831c +MD5 (gnome2/scrollkeeper-0.3.14.tar.bz2) = b175e582a6cec3e50a9de73a5bb7455a diff --git a/textproc/scrollkeeper/files/patch-Makefile.in b/textproc/scrollkeeper/files/patch-Makefile.in index ae0c814d4b82..26e75d4376dc 100644 --- a/textproc/scrollkeeper/files/patch-Makefile.in +++ b/textproc/scrollkeeper/files/patch-Makefile.in @@ -1,16 +1,25 @@ ---- Makefile.in.orig Wed Apr 23 00:35:36 2003 -+++ Makefile.in Wed Apr 23 00:36:38 2003 -@@ -145,16 +145,14 @@ +--- Makefile.in.orig Sat Dec 6 17:36:32 2003 ++++ Makefile.in Sat Dec 6 17:37:57 2003 +@@ -193,18 +193,6 @@ + scrollkeeper-spec.txt - EXTRA_DIST = scrollkeeper.spec.in COPYING-DOCS TODO intltool-extract.in intltool-merge.in intltool-update.in scrollkeeper-spec.txt -scrollkeeperdocdir = $(datadir)/doc/scrollkeeper-$(VERSION) --scrollkeeperdoc_DATA = COPYING-DOCS --scrollkeeper_localstate_dir = $(localstatedir)/lib/scrollkeeper -+scrollkeeper_localstate_dir = $(localstatedir)/db/scrollkeeper - subdir = . - ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 - mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs +-scrollkeeperdoc_DATA = \ +- AUTHORS \ +- ChangeLog \ +- COPYING.DOC \ +- COPYING \ +- NEWS \ +- README \ +- scrollkeeper-spec.txt \ +- TODO +- +- + scrollkeeper_localstate_dir = $(localstatedir)/@SCROLLKEEPER_PARTIAL_DB_DIR@ + + ACLOCAL_AMFLAGS = -I m4 +@@ -222,7 +210,7 @@ CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = intl/Makefile scrollkeeper.spec DIST_SOURCES = @@ -18,8 +27,8 @@ +DATA = - RECURSIVE_TARGETS = info-recursive dvi-recursive install-info-recursive \ -@@ -443,7 +441,6 @@ + RECURSIVE_TARGETS = info-recursive dvi-recursive pdf-recursive \ +@@ -564,7 +552,6 @@ all-am: Makefile $(DATA) config.h installdirs: installdirs-recursive installdirs-am: diff --git a/textproc/scrollkeeper/files/patch-cl_src_get-cl.c b/textproc/scrollkeeper/files/patch-cl_src_get-cl.c deleted file mode 100644 index c19108275e2c..000000000000 --- a/textproc/scrollkeeper/files/patch-cl_src_get-cl.c +++ /dev/null @@ -1,11 +0,0 @@ ---- cl/src/get-cl.c.orig Thu Sep 12 23:54:01 2002 -+++ cl/src/get-cl.c Thu Sep 12 23:54:44 2002 -@@ -44,7 +44,7 @@ - - for(i = 0; i < 5; i++) { - snprintf(path, PATHLEN, "/tmp/scrollkeeper-tempfile.%d", i); -- if (stat(path, &buf) == -1) { -+ if (lstat(path, &buf) == -1) { - if (errno == ENOENT) { - /* this is an empty slot so use it */ - diff --git a/textproc/scrollkeeper/files/patch-configure b/textproc/scrollkeeper/files/patch-configure index 72eece1037bc..054d07f1fdf9 100644 --- a/textproc/scrollkeeper/files/patch-configure +++ b/textproc/scrollkeeper/files/patch-configure @@ -1,6 +1,6 @@ ---- configure.orig Thu Jan 23 01:12:13 2003 -+++ configure Wed Apr 23 00:40:24 2003 -@@ -7407,6 +7407,7 @@ +--- configure.orig Sat Dec 6 03:18:20 2003 ++++ configure Sat Dec 6 17:46:38 2003 +@@ -7864,6 +7864,7 @@ # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" @@ -8,21 +8,12 @@ # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' -@@ -8795,13 +8796,13 @@ - *) - echo "$as_me:$LINENO: checking for docbook-dtd412-xml" >&5 - echo $ECHO_N "checking for docbook-dtd412-xml... $ECHO_C" >&6 -- if xmlcatalog /etc/xml/catalog "-//OASIS//DTD DocBook XML V4.1.2//EN" | grep "No entry" >/dev/null ; then -+ if test ! -f $LOCALBASE/share/xml/docbook/4.1.2/docbook.cat ; then - echo "* ERROR * " - echo " " -- echo "Couldn't find the DocBook XML V4.1.2 DTD. Please make sure that you have the docbook-dtd412-xml package installed. If it is installed, the package probably did not register the DTD in the catalog properly. Consult http://scrollkeeper.sourceforge.net/docbook.shtml for more information." -+ echo "Couldn't find the DocBook XML V4.1.2 DTD. Please make sure that you have the docbook-dtd412-xml package installed." - echo " " -- { { echo "$as_me:$LINENO: error: DocBook XML V4.1.2 DTD not present in /etc/xml/catalog. Make sure docbook-dtd412-xml is installed and registers DTD in catalog." >&5 --echo "$as_me: error: DocBook XML V4.1.2 DTD not present in /etc/xml/catalog. Make sure docbook-dtd412-xml is installed and registers DTD in catalog." >&2;} -+ { { echo "$as_me:$LINENO: error: DocBook XML V4.1.2 DTD not present in $LOCALBASE/share/xml. Make sure docbook-dtd412-xml is installed and registers DTD in catalog." >&5 -+echo "$as_me: error: DocBook XML V4.1.2 DTD not present in $LOCALBASE/share/xml. Make sure docbook-dtd412-xml is installed and registers DTD in catalog." >&2;} - { (exit 1); exit 1; }; } - fi - echo "$as_me:$LINENO: result: found" >&5 +@@ -8360,7 +8361,7 @@ + echo "$as_me:$LINENO: checking for DocBook XML DTD" >&5 + echo $ECHO_N "checking for DocBook XML DTD... $ECHO_C" >&6 + db_found= +- for vers in 4.2 4.1.2; do ++ for vers in 4.1.2 4.2; do + if xmlcatalog $XML_CATALOG "-//OASIS//DTD DocBook XML V$vers//EN" >/dev/null ; then + db_found=$vers + break diff --git a/textproc/scrollkeeper/files/patch-extract_dtds_Makefile.in b/textproc/scrollkeeper/files/patch-extract_dtds_Makefile.in index d5a44cddaf16..1fb855079121 100644 --- a/textproc/scrollkeeper/files/patch-extract_dtds_Makefile.in +++ b/textproc/scrollkeeper/files/patch-extract_dtds_Makefile.in @@ -1,15 +1,6 @@ ---- extract/dtds/Makefile.in.orig Wed Apr 23 00:40:45 2003 -+++ extract/dtds/Makefile.in Wed Apr 23 00:41:44 2003 -@@ -138,7 +138,7 @@ - am__include = @am__include@ - am__quote = @am__quote@ - install_sh = @install_sh@ --CATALOG = $(sysconfdir)/xml/catalog -+CATALOG = %%LOCALBASE%%/share/xml/catalog - dtdsdir = $(datadir)/xml/scrollkeeper/dtds - dtds_HEADERS = scrollkeeper-omf.dtd scrollkeeper-cl.dtd - subdir = extract/dtds -@@ -335,7 +335,7 @@ +--- extract/dtds/Makefile.in.orig Sat Dec 6 17:43:49 2003 ++++ extract/dtds/Makefile.in Sat Dec 6 17:43:49 2003 +@@ -408,7 +408,7 @@ # ScrollKeeper OMF Variation DTD V1.0 install-data-hook: diff --git a/textproc/scrollkeeper/files/patch-libs_install.c b/textproc/scrollkeeper/files/patch-libs_install.c index 45c17709f0c5..e1162f1fd536 100644 --- a/textproc/scrollkeeper/files/patch-libs_install.c +++ b/textproc/scrollkeeper/files/patch-libs_install.c @@ -1,178 +1,14 @@ ---- libs/install.c.orig Thu Jan 23 01:10:57 2003 -+++ libs/install.c Tue Nov 4 07:46:26 2003 -@@ -41,7 +41,7 @@ - static int get_unique_doc_id(char *); - static void add_doc_to_scrollkeeper_docs(char *, char *, char *, int, char *); - static void add_doc_to_content_list(xmlNodePtr, char *, char **, char *, char *, -- char *, char *, char *, int, int, char); -+ char *, char *, char *, int, int, char, char **); - static char *get_doc_property(xmlNodePtr, char *, char *); - static char *get_doc_parameter_value(xmlNodePtr, char *); - static char* remove_leading_and_trailing_white_spaces(char *); -@@ -113,6 +113,10 @@ - - snprintf(command, 1024, "scrollkeeper-get-toc-from-docpath %s", docpath); - config_fid = popen(command, "r"); -+ -+ if (config_fid == NULL) -+ return NULL; -+ - fscanf(config_fid, "%s", tocpath); - if (pclose(config_fid)) - return NULL; -@@ -219,8 +223,13 @@ - { - /* create full content list path names and read trees */ - locale = get_doc_property(node, "language", "code"); -- if (!get_best_locale_dir(locale_dir, locale_name, scrollkeeper_dir, locale)) -+ if (locale == NULL) -+ continue; -+ if (!get_best_locale_dir(locale_dir, locale_name, scrollkeeper_dir, locale)) { -+ xmlFree(locale); - continue; -+ } -+ xmlFree(locale); - snprintf(cl_filename, PATHLEN, "%s/scrollkeeper_cl.xml", locale_dir); - snprintf(cl_ext_filename, PATHLEN, "%s/scrollkeeper_extended_cl.xml", locale_dir); - -@@ -245,6 +254,8 @@ - } - - docpath = get_doc_property(node, "identifier", "url"); -+ if (docpath == NULL) -+ continue; - - /* add to scrollkeeper_docs */ - unique_id = get_unique_doc_id(scrollkeeper_docs); -@@ -252,7 +263,7 @@ - locale_name); - - format = get_doc_property(node, "format", "mime"); -- if (!strcmp(format, "text/xml")) -+ if (format && !strcmp(format, "text/xml")) - { - /* create TOC file and index file */ - -@@ -304,6 +315,8 @@ - } - - uid = get_doc_property(node, "relation", "seriesid"); -+ if (uid == NULL) -+ continue; - - title = get_doc_parameter_value(node, "title"); - strncpy(str, title, 1024); -@@ -315,18 +328,25 @@ - /* look for subject nodes */ - if (!xmlStrcmp(s_node->name, (xmlChar *)"subject")) - { -- char *category, *token, *rest; -+ char *category, *token, *rest, *complete_cat_token = NULL; - - category = (char *)xmlGetProp(s_node, (xmlChar *)"category"); -+ if (category == NULL) -+ continue; - token = strtok_r(category, SEP, &rest); - add_doc_to_content_list(cl_doc->children->children, token, &rest, -- docpath, omf_name, title, format, uid, unique_id, 0, outputprefs); -- free((void *)category); -+ docpath, omf_name, title, format, uid, unique_id, 0, outputprefs, -+ &complete_cat_token); -+ xmlFree(category); -+ free((void *)complete_cat_token); - category = (char *)xmlGetProp(s_node, (xmlChar *)"category"); - token = strtok_r(category, SEP, &rest); -+ complete_cat_token = NULL; - add_doc_to_content_list(cl_ext_doc->children->children, token, &rest, -- docpath, omf_name, title, format, uid, unique_id, 1, outputprefs); -- free((void *)category); -+ docpath, omf_name, title, format, uid, unique_id, 1, outputprefs, -+ &complete_cat_token); -+ xmlFree(category); -+ free((void *)complete_cat_token); - } - } - -@@ -334,6 +354,9 @@ - xmlFreeDoc(cl_doc); - xmlSaveFile(cl_ext_filename, cl_ext_doc); - xmlFreeDoc(cl_ext_doc); -+ xmlFree(docpath); -+ xmlFree(format); -+ xmlFree(uid); - } - } - -@@ -409,6 +432,7 @@ - unique_id = id; - } - -+ fclose (fid); - return unique_id + 1; - } - -@@ -472,32 +496,38 @@ - static void add_doc_to_content_list(xmlNodePtr sect_node, char *cat_token, char **rest, - char *docpath, char *omf_name, - char *title, char *format, char *uid, -- int id, int add_toc, char outputprefs) -+ int id, int add_toc, char outputprefs, char **complete_cat_token) - { -- xmlNodePtr node, new_node, t_node, s_node; -+ xmlNodePtr node, new_node, s_node; - - if (sect_node == NULL || - cat_token == NULL) - return; - -+ if (*complete_cat_token == NULL) -+ *complete_cat_token = strdup(cat_token); -+ else { -+ char *ptr; -+ ptr = malloc(strlen(*complete_cat_token) + strlen(cat_token) + 2); -+ sprintf(ptr, "%s%s", *complete_cat_token, cat_token); -+ free(*complete_cat_token); -+ *complete_cat_token = ptr; -+ } -+ +--- libs/install.c.orig Sat Dec 6 17:47:34 2003 ++++ libs/install.c Sat Dec 6 17:47:47 2003 +@@ -517,10 +517,9 @@ /* these should all be <sect> nodes */ for(node = sect_node; node != NULL; node = node->next) { + xmlChar *categorycode; -+ if (xmlStrcmp(node->name, (xmlChar *)"sect")) continue; -- -- for(t_node = node->children; t_node != NULL; t_node = t_node->next) -- { -- /* these should be <title>, <sect> or <doc> nodes */ -- if (t_node->type == XML_ELEMENT_NODE && -- !xmlStrcmp(t_node->name, (xmlChar *)"title")) -- break; -- } -+ -+ categorycode = xmlGetProp(node, (xmlChar *)"categorycode"); -+ if (categorycode == NULL) -+ continue; +- +- xmlChar *categorycode; - /* these should be the actual titles */ -- if (t_node != NULL && t_node->children != NULL && -- t_node->children->type == XML_TEXT_NODE && -- !xmlStrcmp((xmlChar *)cat_token, t_node->children->content)) -+ if (!xmlStrcmp((xmlChar *)(*complete_cat_token), categorycode)) - { - cat_token = strtok_r(NULL, SEP, rest); - if (cat_token == NULL) -@@ -536,9 +566,11 @@ - if (s_node != NULL) - add_doc_to_content_list(s_node, cat_token, rest, - docpath, omf_name, title, format, -- uid, id, add_toc, outputprefs); -+ uid, id, add_toc, outputprefs, complete_cat_token); - return; - } - } -+ -+ xmlFree(categorycode); - } - } + categorycode = xmlGetProp(node, (xmlChar *)"categorycode"); + if (categorycode == NULL) diff --git a/textproc/scrollkeeper/files/patch-libs_scrollkeeper.h.in b/textproc/scrollkeeper/files/patch-libs_scrollkeeper.h.in index 70de8ee538f5..c8a8d3400623 100644 --- a/textproc/scrollkeeper/files/patch-libs_scrollkeeper.h.in +++ b/textproc/scrollkeeper/files/patch-libs_scrollkeeper.h.in @@ -5,7 +5,7 @@ #define SCROLLKEEPERLOGFILE "@localstatedir@/log/scrollkeeper.log" #define SCROLLKEEPERLOGFILE_ROT "@localstatedir@/log/scrollkeeper.log.1" -#define SCROLLKEEPER_OMF_DTD "@prefix@/share/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd" -+#define SCROLLKEEPER_OMF_DTD "@datadir@/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd" ++#define SCROLLKEEPER_OMF_DTD "@prefix@/share/gnome/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd" #define PATHLEN 256 /* diff --git a/textproc/scrollkeeper/pkg-install b/textproc/scrollkeeper/pkg-install index 5f288365002a..4de77355c458 100644 --- a/textproc/scrollkeeper/pkg-install +++ b/textproc/scrollkeeper/pkg-install @@ -7,232 +7,6 @@ PREFIX=`xml2-config --prefix` ROOTCATALOG=${PREFIX}/share/xml/catalog CATALOG=${PREFIX}/share/xml/docbook/catalog -if [ "$2" = "PRE-INSTALL" ]; then - -# -# create the catalogs root and docbook specific -# -if [ ! -r $ROOTCATALOG ] ; then - echo creating XML Catalog root $ROOTCATALOG - xmlcatalog --noout --create $ROOTCATALOG -fi -if [ ! -r $ROOTCATALOG ] ; then - echo Failed creating XML Catalog root $ROOTCATALOG - exit 1 -fi -if [ ! -r $CATALOG ] ; then - echo creating DocBook XML Catalog $CATALOG - xmlcatalog --noout --create $CATALOG -fi -if [ ! -r $CATALOG ] ; then - echo Failed creating DocBook XML Catalog $CATALOG - exit 1 -fi - -# -# find the prefix for DocBook DTD -# -found=`find ${PREFIX}/share/ -follow -name docbookx.dtd 2> /dev/null` -if [ "$found" = "" ] ; then - echo could not locate docbookx.dtd for DocBook XML - exit 1 -fi - -dtd412="" -for dtd in $found; do - check=`grep '//OASIS//DTD DocBook XML V4.1.2//EN' $dtd` - if [ "$check" != "" ] ; then - dtd412=$dtd - break - fi -done - -if [ "$dtd412" = "" ] ; then - echo could not locate version 4.1.2 of DocBook XML - exit 1 -fi - -docbookdir=`dirname $dtd412` -echo Found DocBook XML 4.1.2 DTD in $docbookdir - -xmlcatalog --noout --add "public" \ - "-//OASIS//ELEMENTS DocBook XML Information Pool V4.1.2//EN" \ - "file://$docbookdir/dbpoolx.mod" $CATALOG -xmlcatalog --noout --add "public" \ - "-//OASIS//DTD DocBook XML V4.1.2//EN" \ - "file://$docbookdir/docbookx.dtd" $CATALOG -xmlcatalog --noout --add "public" \ - "-//OASIS//ENTITIES DocBook XML Character Entities V4.1.2//EN" \ - "file://$docbookdir/dbcentx.mod" $CATALOG -xmlcatalog --noout --add "public" \ - "-//OASIS//ENTITIES DocBook XML Notations V4.1.2//EN" \ - "file://$docbookdir/dbnotnx.mod" $CATALOG -xmlcatalog --noout --add "public" \ - "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.1.2//EN" \ - "file://$docbookdir/dbgenent.mod" $CATALOG -xmlcatalog --noout --add "public" \ - "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.1.2//EN" \ - "file://$docbookdir/dbhierx.mod" $CATALOG -xmlcatalog --noout --add "public" \ - "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \ - "file://$docbookdir/soextblx.dtd" $CATALOG -xmlcatalog --noout --add "public" \ - "-//OASIS//DTD DocBook XML CALS Table Model V4.1.2//EN" \ - "file://$docbookdir/calstblx.dtd" $CATALOG -xmlcatalog --noout --add "rewriteSystem" \ - "http://www.oasis-open.org/docbook/xml/4.1.2" \ - "file://$docbookdir" $CATALOG -xmlcatalog --noout --add "rewriteURI" \ - "http://www.oasis-open.org/docbook/xml/4.1.2" \ - "file://$docbookdir" $CATALOG - -xmlcatalog --noout --add "delegatePublic" \ - "-//OASIS//ENTITIES DocBook XML" \ - "file://$CATALOG" $ROOTCATALOG -xmlcatalog --noout --add "delegatePublic" \ - "-//OASIS//DTD DocBook XML" \ - "file://$CATALOG" $ROOTCATALOG -xmlcatalog --noout --add "delegateSystem" \ - "http://www.oasis-open.org/docbook/" \ - "file://$CATALOG" $ROOTCATALOG -xmlcatalog --noout --add "delegateURI" \ - "http://www.oasis-open.org/docbook/" \ - "file://$CATALOG" $ROOTCATALOG - -# -# find the prefix for ISO DocBook entities -# -top=`dirname $docbookdir` -found=`find ${PREFIX}/share/ -follow -iname "iso*amsb.ent" 2> /dev/null` -if [ "$found" = "" ] ; then - echo could not locate iso-amsb.ent of ISO DocBook entities - exit 1 -fi - -entxml="" -for tst in $found; do - check=`grep '<!ENTITY ominus."\⊖">' $tst` - if [ "$check" != "" ] ; then - entxml=$tst - break - fi -done - -if [ "$entxml" = "" ] ; then - echo could not locate ISO DocBook entities - exit 1 -fi -isodir=`dirname $entxml` -echo Found ISO DocBook entities in $isodir - -xmlcatalog --noout --add "public" \ - "ISO 8879:1986//ENTITIES Publishing//EN" \ - "file://$isodir/iso-pub.ent" $CATALOG -xmlcatalog --noout --add "public" \ - "ISO 8879:1986//ENTITIES Greek Letters//EN" \ - "file://$isodir/iso-grk1.ent" $CATALOG -xmlcatalog --noout --add "public" \ - "ISO 8879:1986//ENTITIES Box and Line Drawing//EN" \ - "file://$isodir/iso-box.ent" $CATALOG -xmlcatalog --noout --add "public" \ - "ISO 8879:1986//ENTITIES Greek Symbols//EN" \ - "file://$isodir/iso-grk3.ent" $CATALOG -xmlcatalog --noout --add "public" \ - "ISO 8879:1986//ENTITIES Added Math Symbols: Negated Relations//EN" \ - "file://$isodir/iso-amsn.ent" $CATALOG -xmlcatalog --noout --add "public" \ - "ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN" \ - "file://$isodir/iso-num.ent" $CATALOG -xmlcatalog --noout --add "public" \ - "ISO 8879:1986//ENTITIES Alternative Greek Symbols//EN" \ - "file://$isodir/iso-grk4.ent" $CATALOG -xmlcatalog --noout --add "public" \ - "ISO 8879:1986//ENTITIES Diacritical Marks//EN" \ - "file://$isodir/iso-dia.ent" $CATALOG -xmlcatalog --noout --add "public" \ - "ISO 8879:1986//ENTITIES Monotoniko Greek//EN" \ - "file://$isodir/iso-grk2.ent" $CATALOG -xmlcatalog --noout --add "public" \ - "ISO 8879:1986//ENTITIES Added Math Symbols: Arrow Relations//EN" \ - "file://$isodir/iso-amsa.ent" $CATALOG -xmlcatalog --noout --add "public" \ - "ISO 8879:1986//ENTITIES Added Math Symbols: Ordinary//EN" \ - "file://$isodir/iso-amso.ent" $CATALOG -xmlcatalog --noout --add "public" \ - "ISO 8879:1986//ENTITIES Russian Cyrillic//EN" \ - "file://$isodir/iso-cyr1.ent" $CATALOG -xmlcatalog --noout --add "public" \ - "ISO 8879:1986//ENTITIES General Technical//EN" \ - "file://$isodir/iso-tech.ent" $CATALOG -xmlcatalog --noout --add "public" \ - "ISO 8879:1986//ENTITIES Added Math Symbols: Delimiters//EN" \ - "file://$isodir/iso-amsc.ent" $CATALOG -xmlcatalog --noout --add "public" \ - "ISO 8879:1986//ENTITIES Added Latin 1//EN" \ - "file://$isodir/iso-lat1.ent" $CATALOG -xmlcatalog --noout --add "public" \ - "ISO 8879:1986//ENTITIES Added Math Symbols: Binary Operators//EN" \ - "file://$isodir/iso-amsb.ent" $CATALOG -xmlcatalog --noout --add "public" \ - "ISO 8879:1986//ENTITIES Added Latin 2//EN" \ - "file://$isodir/iso-lat2.ent" $CATALOG -xmlcatalog --noout --add "public" \ - "ISO 8879:1986//ENTITIES Added Math Symbols: Relations//EN" \ - "file://$isodir/iso-amsr.ent" $CATALOG -xmlcatalog --noout --add "public" \ - "ISO 8879:1986//ENTITIES Non-Russian Cyrillic//EN" \ - "file://$isodir/iso-cyr2.ent" $CATALOG - -xmlcatalog --noout --add "delegatePublic" \ - "ISO 8879:1986" \ - "file://$CATALOG" $ROOTCATALOG - -# -# find the prefix for XSLT stylesheets -# -top=`dirname $docbookdir` -found=`find ${PREFIX}/share/ -follow -name chunk.xsl 2> /dev/null` -if [ "$found" = "" ] ; then - echo could not locate chunk-common.xsl of DocBook XSLT stylesheets - exit 1 -fi - -xsldir="" -for tst in $found; do - dir=`dirname $tst` - dir=`dirname $dir` - if [ -r $dir/html/docbook.xsl -a -r $dir/common/l10n.xml ]; then - xsldir=$dir - break - fi -done - -if [ "$xsldir" = "" ] ; then - echo could not locate DocBook XSLT stylesheets - exit 1 -fi -echo Found DocBook XSLT stylesheets in $xsldir -for version in current 1.39 1.40 1.41 1.42 1.43 1.44 1.45 1.46 1.47 \ - 1.48 1.49 1.50.0 1.51.0 1.52.0 1.52.1 1.52.2 1.53.0 1.54.0 \ - 1.54.1 1.55.0 1.56.0 1.56.1 1.57.0 1.58.0 1.58.1 1.59.0 \ - 1.59.1 1.60.0 1.62.3 -do - xmlcatalog --noout --add "rewriteSystem" \ - "http://docbook.sourceforge.net/release/xsl/$version" \ - "file://$xsldir" $CATALOG - xmlcatalog --noout --add "rewriteURI" \ - "http://docbook.sourceforge.net/release/xsl/$version" \ - "file://$xsldir" $CATALOG -done - -xmlcatalog --noout --add "delegateSystem" \ - "http://docbook.sourceforge.net/release/xsl/" \ - "file://$CATALOG" $ROOTCATALOG -xmlcatalog --noout --add "delegateURI" \ - "http://docbook.sourceforge.net/release/xsl/" \ - "file://$CATALOG" $ROOTCATALOG -fi - if [ "$2" = "POST-INSTALL" ]; then SKPREFIX=`scrollkeeper-config --prefix` echo "`date +"%b %d %X"` Installing ScrollKeeper `scrollkeeper-config --version`..." >> /var/log/scrollkeeper.log diff --git a/textproc/scrollkeeper/pkg-plist b/textproc/scrollkeeper/pkg-plist index 7e1410434d4b..b4c1d23899b8 100644 --- a/textproc/scrollkeeper/pkg-plist +++ b/textproc/scrollkeeper/pkg-plist @@ -18,6 +18,8 @@ lib/libscrollkeeper.so lib/libscrollkeeper.so.0 share/gnome/omf/scrollkeeper/writing_scrollkeeper_omf_files-C.omf share/gnome/scrollkeeper/Templates/C/scrollkeeper_cl.xml +share/gnome/scrollkeeper/Templates/am/scrollkeeper_cl.xml +share/gnome/scrollkeeper/Templates/az/scrollkeeper_cl.xml share/gnome/scrollkeeper/Templates/be/scrollkeeper_cl.xml share/gnome/scrollkeeper/Templates/ca/scrollkeeper_cl.xml share/gnome/scrollkeeper/Templates/cs/scrollkeeper_cl.xml @@ -29,6 +31,7 @@ share/gnome/scrollkeeper/Templates/fr/scrollkeeper_cl.xml share/gnome/scrollkeeper/Templates/hu/scrollkeeper_cl.xml share/gnome/scrollkeeper/Templates/it/scrollkeeper_cl.xml share/gnome/scrollkeeper/Templates/ja/scrollkeeper_cl.xml +share/gnome/scrollkeeper/Templates/kn/scrollkeeper_cl.xml share/gnome/scrollkeeper/Templates/ko/scrollkeeper_cl.xml share/gnome/scrollkeeper/Templates/nl/scrollkeeper_cl.xml share/gnome/scrollkeeper/Templates/no/scrollkeeper_cl.xml @@ -38,8 +41,11 @@ share/gnome/scrollkeeper/Templates/ro/scrollkeeper_cl.xml share/gnome/scrollkeeper/Templates/ru/scrollkeeper_cl.xml share/gnome/scrollkeeper/Templates/sl/scrollkeeper_cl.xml share/gnome/scrollkeeper/Templates/sk/scrollkeeper_cl.xml +share/gnome/scrollkeeper/Templates/sr/scrollkeeper_cl.xml +share/gnome/scrollkeeper/Templates/sr@Latn/scrollkeeper_cl.xml share/gnome/scrollkeeper/Templates/sv/scrollkeeper_cl.xml share/gnome/scrollkeeper/Templates/tr/scrollkeeper_cl.xml +share/gnome/scrollkeeper/Templates/uk/scrollkeeper_cl.xml share/gnome/scrollkeeper/Templates/vi/scrollkeeper_cl.xml share/gnome/scrollkeeper/Templates/zh_CN/scrollkeeper_cl.xml share/gnome/scrollkeeper/Templates/zh_TW/scrollkeeper_cl.xml @@ -50,6 +56,7 @@ share/gnome/scrollkeeper/stylesheets/index.xsl share/gnome/scrollkeeper/stylesheets/toc.xsl share/gnome/xml/scrollkeeper/dtds/scrollkeeper-cl.dtd share/gnome/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd +share/locale/am/LC_MESSAGES/scrollkeeper.mo share/locale/az/LC_MESSAGES/scrollkeeper.mo share/locale/be/LC_MESSAGES/scrollkeeper.mo share/locale/ca/LC_MESSAGES/scrollkeeper.mo @@ -62,6 +69,7 @@ share/locale/fr/LC_MESSAGES/scrollkeeper.mo share/locale/hu/LC_MESSAGES/scrollkeeper.mo share/locale/it/LC_MESSAGES/scrollkeeper.mo share/locale/ja/LC_MESSAGES/scrollkeeper.mo +share/locale/kn/LC_MESSAGES/scrollkeeper.mo share/locale/ko/LC_MESSAGES/scrollkeeper.mo share/locale/nl/LC_MESSAGES/scrollkeeper.mo share/locale/no/LC_MESSAGES/scrollkeeper.mo @@ -71,6 +79,8 @@ share/locale/ro/LC_MESSAGES/scrollkeeper.mo share/locale/ru/LC_MESSAGES/scrollkeeper.mo share/locale/sk/LC_MESSAGES/scrollkeeper.mo share/locale/sl/LC_MESSAGES/scrollkeeper.mo +share/locale/sr/LC_MESSAGES/scrollkeeper.mo +share/locale/sr@Latn/LC_MESSAGES/scrollkeeper.mo share/locale/sv/LC_MESSAGES/scrollkeeper.mo share/locale/tr/LC_MESSAGES/scrollkeeper.mo share/locale/uk/LC_MESSAGES/scrollkeeper.mo @@ -90,6 +100,8 @@ share/locale/zh_TW/LC_MESSAGES/scrollkeeper.mo @dirrm share/gnome/scrollkeeper/Templates/uk @dirrm share/gnome/scrollkeeper/Templates/tr @dirrm share/gnome/scrollkeeper/Templates/sv +@dirrm share/gnome/scrollkeeper/Templates/sr@Latn +@dirrm share/gnome/scrollkeeper/Templates/sr @dirrm share/gnome/scrollkeeper/Templates/sl @dirrm share/gnome/scrollkeeper/Templates/sk @dirrm share/gnome/scrollkeeper/Templates/ru @@ -98,8 +110,8 @@ share/locale/zh_TW/LC_MESSAGES/scrollkeeper.mo @dirrm share/gnome/scrollkeeper/Templates/pl @dirrm share/gnome/scrollkeeper/Templates/no @dirrm share/gnome/scrollkeeper/Templates/nl -@dirrm share/gnome/scrollkeeper/Templates/nb @dirrm share/gnome/scrollkeeper/Templates/ko +@dirrm share/gnome/scrollkeeper/Templates/kn @dirrm share/gnome/scrollkeeper/Templates/ja @dirrm share/gnome/scrollkeeper/Templates/it @dirrm share/gnome/scrollkeeper/Templates/hu @@ -111,11 +123,14 @@ share/locale/zh_TW/LC_MESSAGES/scrollkeeper.mo @dirrm share/gnome/scrollkeeper/Templates/cs @dirrm share/gnome/scrollkeeper/Templates/ca @dirrm share/gnome/scrollkeeper/Templates/be +@dirrm share/gnome/scrollkeeper/Templates/az +@dirrm share/gnome/scrollkeeper/Templates/am @dirrm share/gnome/scrollkeeper/Templates/C @dirrm share/gnome/scrollkeeper/Templates @dirrm share/gnome/scrollkeeper @dirrm share/gnome/omf/scrollkeeper @unexec rm -f /var/log/scrollkeeper.log 2>/dev/null || true @unexec rm -rf /var/db/scrollkeeper 2>/dev/null || true +@unexec %%LOCALBASE%%/bin/xmlcatalog --noout --del %D/share/gnome/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd %%LOCALBASE%%/share/xml/catalog || true @exec touch -f /var/log/scrollkeeper.log @exec mkdir -p /var/db/scrollkeeper |