123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261 |
- # Description: XML veri dosyalarının DocBook kural setine göre doğrulanması için bir doküman tipi tanımları
- # URL: http://www.docbook.org/
- # Packager: milisarge
- # Depends on: libxml2 unzip
- name=docbook-xml
- version=4.5
- release=1
- source=(http://www.docbook.org/xml/4.5/docbook-xml-4.5.zip
- http://www.docbook.org/xml/4.4/docbook-xml-4.4.zip
- http://www.docbook.org/xml/4.3/docbook-xml-4.3.zip
- http://www.docbook.org/xml/4.2/docbook-xml-4.2.zip
- http://www.docbook.org/xml/4.1.2/docbkx412.zip)
- unpack_source() {
- # similarly-named versions first
- local DTDVERSION
- for DTDVERSION in 4.5 4.4 4.3 4.2; do
- install -d $SRC/$name-$DTDVERSION
- unzip -q -d $SRC/$name-$DTDVERSION $DERLEME_KAYNAKDIZIN/$name-$DTDVERSION.zip
- done
- # now 4.1.2, named differently
- install -d $SRC/$name-4.1.2
- unzip -q -d $SRC/$name-4.1.2 $DERLEME_KAYNAKDIZIN/docbkx412.zip
- }
- build() {
- # copy to proper locations
- for DTDVERSION in 4.5 4.4 4.3 4.2 4.1.2
- do
- install -d $PKG/usr/share/xml/docbook/xml-dtd-$DTDVERSION
- cp -a $SRC/$name-$DTDVERSION/{ent,docbook.cat,*.dtd,*.mod} \
- $PKG/usr/share/xml/docbook/xml-dtd-$DTDVERSION/
- done
- find $PKG -type f \( -perm -g=r -o -perm -g=w \) -exec chmod -g=rw {} \+
- # create initial docbook-xml catalog
- install -d $PKG/etc/xml
- xmlcatalog --noout --create $PKG/etc/xml/$name
- # add each version to the initial catalog
- #
- # 4.5
- xmlcatalog --noout --add "public" \
- "-//OASIS//DTD DocBook XML V4.5//EN" \
- "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" \
- $PKG/etc/xml/$name
- xmlcatalog --noout --add "public" \
- "-//OASIS//DTD DocBook XML CALS Table Model V4.5//EN" \
- "http://www.oasis-open.org/docbook/xml/4.5/calstblx.dtd" \
- $PKG/etc/xml/$name
- xmlcatalog --noout --add "public" \
- "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
- "http://www.oasis-open.org/docbook/xml/4.5/soextblx.dtd" \
- $PKG/etc/xml/$name
- xmlcatalog --noout --add "public" \
- "-//OASIS//ELEMENTS DocBook XML Information Pool V4.5//EN" \
- "http://www.oasis-open.org/docbook/xml/4.5/dbpoolx.mod" \
- $PKG/etc/xml/$name
- xmlcatalog --noout --add "public" \
- "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.5//EN" \
- "http://www.oasis-open.org/docbook/xml/4.5/dbhierx.mod" \
- $PKG/etc/xml/$name
- xmlcatalog --noout --add "public" \
- "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.5//EN" \
- "http://www.oasis-open.org/docbook/xml/4.5/htmltblx.mod" \
- $PKG/etc/xml/$name
- xmlcatalog --noout --add "public" \
- "-//OASIS//ENTITIES DocBook XML Notations V4.5//EN" \
- "http://www.oasis-open.org/docbook/xml/4.5/dbnotx.mod" \
- $PKG/etc/xml/$name
- xmlcatalog --noout --add "public" \
- "-//OASIS//ENTITIES DocBook XML Character Entities V4.5//EN" \
- "http://www.oasis-open.org/docbook/xml/4.5/dbcentx.mod" \
- $PKG/etc/xml/$name
- xmlcatalog --noout --add "public" \
- "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.5//EN" \
- "http://www.oasis-open.org/docbook/xml/4.5/dbgenent.mod" \
- $PKG/etc/xml/$name
- xmlcatalog --noout --add "rewriteSystem" \
- "http://www.oasis-open.org/docbook/xml/4.5" \
- "file:///usr/share/xml/docbook/xml-dtd-4.5" \
- $PKG/etc/xml/$name
- xmlcatalog --noout --add "rewriteURI" \
- "http://www.oasis-open.org/docbook/xml/4.5" \
- "file:///usr/share/xml/docbook/xml-dtd-4.5" \
- $PKG/etc/xml/$name
- # 4.4
- xmlcatalog --noout --add "public" \
- "-//OASIS//DTD DocBook XML V4.4//EN" \
- "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" \
- $PKG/etc/xml/$name
- xmlcatalog --noout --add "public" \
- "-//OASIS//DTD DocBook CALS Table Model V4.4//EN" \
- "http://www.oasis-open.org/docbook/xml/4.4/calstblx.dtd" \
- $PKG/etc/xml/$name
- xmlcatalog --noout --add "public" \
- "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.4//EN" \
- "http://www.oasis-open.org/docbook/xml/4.4/htmltblx.mod" \
- $PKG/etc/xml/$name
- xmlcatalog --noout --add "public" \
- "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
- "http://www.oasis-open.org/docbook/xml/4.4/soextblx.dtd" \
- $PKG/etc/xml/$name
- xmlcatalog --noout --add "public" \
- "-//OASIS//ELEMENTS DocBook Information Pool V4.4//EN" \
- "http://www.oasis-open.org/docbook/xml/4.4/dbpoolx.mod" \
- $PKG/etc/xml/$name
- xmlcatalog --noout --add "public" \
- "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.4//EN" \
- "http://www.oasis-open.org/docbook/xml/4.4/dbhierx.mod" \
- $PKG/etc/xml/$name
- xmlcatalog --noout --add "public" \
- "-//OASIS//ENTITIES DocBook Additional General Entities V4.4//EN" \
- "http://www.oasis-open.org/docbook/xml/4.4/dbgenent.mod" \
- $PKG/etc/xml/$name
- xmlcatalog --noout --add "public" \
- "-//OASIS//ENTITIES DocBook Notations V4.4//EN" \
- "http://www.oasis-open.org/docbook/xml/4.4/dbnotx.mod" \
- $PKG/etc/xml/$name
- xmlcatalog --noout --add "public" \
- "-//OASIS//ENTITIES DocBook Character Entities V4.4//EN" \
- "http://www.oasis-open.org/docbook/xml/4.4/dbcentx.mod" \
- $PKG/etc/xml/$name
- xmlcatalog --noout --add "rewriteSystem" \
- "http://www.oasis-open.org/docbook/xml/4.4" \
- "file:///usr/share/xml/docbook/xml-dtd-4.4" \
- $PKG/etc/xml/$name
- xmlcatalog --noout --add "rewriteURI" \
- "http://www.oasis-open.org/docbook/xml/4.4" \
- "file:///usr/share/xml/docbook/xml-dtd-4.4" \
- $PKG/etc/xml/$name
- # 4.3
- xmlcatalog --noout --add "public" \
- "-//OASIS//DTD DocBook XML V4.3//EN" \
- "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" \
- $PKG/etc/xml/$name
- xmlcatalog --noout --add "public" \
- "-//OASIS//DTD DocBook CALS Table Model V4.3//EN" \
- "http://www.oasis-open.org/docbook/xml/4.3/calstblx.dtd" \
- $PKG/etc/xml/$name
- xmlcatalog --noout --add "public" \
- "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
- "http://www.oasis-open.org/docbook/xml/4.3/soextblx.dtd" \
- $PKG/etc/xml/$name
- xmlcatalog --noout --add "public" \
- "-//OASIS//ELEMENTS DocBook Information Pool V4.3//EN" \
- "http://www.oasis-open.org/docbook/xml/4.3/dbpoolx.mod" \
- $PKG/etc/xml/$name
- xmlcatalog --noout --add "public" \
- "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.3//EN" \
- "http://www.oasis-open.org/docbook/xml/4.3/dbhierx.mod" \
- $PKG/etc/xml/$name
- xmlcatalog --noout --add "public" \
- "-//OASIS//ENTITIES DocBook Additional General Entities V4.3//EN" \
- "http://www.oasis-open.org/docbook/xml/4.3/dbgenent.mod" \
- $PKG/etc/xml/$name
- xmlcatalog --noout --add "public" \
- "-//OASIS//ENTITIES DocBook Notations V4.3//EN" \
- "http://www.oasis-open.org/docbook/xml/4.3/dbnotx.mod" \
- $PKG/etc/xml/$name
- xmlcatalog --noout --add "public" \
- "-//OASIS//ENTITIES DocBook Character Entities V4.3//EN" \
- "http://www.oasis-open.org/docbook/xml/4.3/dbcentx.mod" \
- $PKG/etc/xml/$name
- xmlcatalog --noout --add "rewriteSystem" \
- "http://www.oasis-open.org/docbook/xml/4.3" \
- "file:///usr/share/xml/docbook/xml-dtd-4.3" \
- $PKG/etc/xml/$name
- xmlcatalog --noout --add "rewriteURI" \
- "http://www.oasis-open.org/docbook/xml/4.3" \
- "file:///usr/share/xml/docbook/xml-dtd-4.3" \
- $PKG/etc/xml/$name
- # 4.2
- xmlcatalog --noout --add "public" \
- "-//OASIS/DTD DocBook XML V4.2//EN" \
- "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" \
- $PKG/etc/xml/$name
- xmlcatalog --noout --add "public" \
- "-//OASIS/DTD DocBook CALS Table Model V4.2//EN" \
- "http://www.oasis-open.org/docbook/xml/4.2/calstblx.dtd" \
- $PKG/etc/xml/$name
- xmlcatalog --noout --add "public" \
- "-//OASIS/DTD XML Exchange Table Model 19990315//EN" \
- "http://www.oasis-open.org/docbook/xml/4.2/soextblx.dtd" \
- $PKG/etc/xml/$name
- xmlcatalog --noout --add "public" \
- "-//OASIS/ELEMENTS DocBook Information Pool V4.2//EN" \
- "http://www.oasis-open.org/docbook/xml/4.2/dbpoolx.mod" \
- $PKG/etc/xml/$name
- xmlcatalog --noout --add "public" \
- "-//OASIS/ELEMENTS DocBook Document Hierarchy V4.2//EN" \
- "http://www.oasis-open.org/docbook/xml/4.2/dbhierx.mod" \
- $PKG/etc/xml/$name
- xmlcatalog --noout --add "public" \
- "-//OASIS/ENTITIES DocBook Additional General Entities V4.2//EN" \
- "http://www.oasis-open.org/docbook/xml/4.2/dbgenent.mod" \
- $PKG/etc/xml/$name
- xmlcatalog --noout --add "public" \
- "-//OASIS/ENTITIES DocBook Notations V4.2//EN" \
- "http://www.oasis-open.org/docbook/xml/4.2/dbnotx.mod" \
- $PKG/etc/xml/$name
- xmlcatalog --noout --add "public" \
- "-//OASIS/ENTITIES DocBook Character Entities V4.2//EN" \
- "http://www.oasis-open.org/docbook/xml/4.2/dbcentx.mod" \
- $PKG/etc/xml/$name
- xmlcatalog --noout --add "rewriteSystem" \
- "http://www.oasis-open.org/docbook/xml/4.2" \
- "file:///usr/share/xml/docbook/xml-dtd-4.2" \
- $PKG/etc/xml/$name
- xmlcatalog --noout --add "rewriteURI" \
- "http://www.oasis-open.org/docbook/xml/4.2" \
- "file:///usr/share/xml/docbook/xml-dtd-4.2" \
- $PKG/etc/xml/$name
- # 4.1.2
- xmlcatalog --noout --add "public" \
- "-//OASIS//DTD DocBook XML V4.1.2//EN" \
- "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" \
- $PKG/etc/xml/$name
- xmlcatalog --noout --add "public" \
- "-//OASIS//DTD DocBook XML CALS Table Model V4.1.2//EN" \
- "http://www.oasis-open.org/docbook/xml/4.1.2/calstblx.dtd" \
- $PKG/etc/xml/$name
- xmlcatalog --noout --add "public" \
- "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
- "http://www.oasis-open.org/docbook/xml/4.1.2/soextblx.dtd" \
- $PKG/etc/xml/$name
- xmlcatalog --noout --add "public" \
- "-//OASIS//ELEMENTS DocBook XML Information Pool V4.1.2//EN" \
- "http://www.oasis-open.org/docbook/xml/4.1.2/dbpoolx.mod" \
- $PKG/etc/xml/$name
- xmlcatalog --noout --add "public" \
- "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.1.2//EN" \
- "http://www.oasis-open.org/docbook/xml/4.1.2/dbhierx.mod" \
- $PKG/etc/xml/$name
- xmlcatalog --noout --add "public" \
- "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.1.2//EN" \
- "http://www.oasis-open.org/docbook/xml/4.1.2/dbgenent.mod" \
- $PKG/etc/xml/$name
- xmlcatalog --noout --add "public" \
- "-//OASIS//ENTITIES DocBook XML Notations V4.1.2//EN" \
- "http://www.oasis-open.org/docbook/xml/4.1.2/dbnotx.mod" \
- $PKG/etc/xml/$name
- xmlcatalog --noout --add "public" \
- "-//OASIS//ENTITIES DocBook XML Character Entities V4.1.2//EN" \
- "http://www.oasis-open.org/docbook/xml/4.1.2/dbcentx.mod" \
- $PKG/etc/xml/$name
- xmlcatalog --noout --add "rewriteSystem" \
- "http://www.oasis-open.org/docbook/xml/4.1.2" \
- "file:///usr/share/xml/docbook/xml-dtd-4.1.2" \
- $PKG/etc/xml/$name
- xmlcatalog --noout --add "rewriteURI" \
- "http://www.oasis-open.org/docbook/xml/4.1.2" \
- "file:///usr/share/xml/docbook/xml-dtd-4.1.2" \
- $PKG/etc/xml/$name
- rm $PKG/usr/share/xml/docbook/xml-dtd-4.{4,5}/ent/README
- }
|