pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/misc/openoffice Allow installation of localized versio...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6fb99bd9623c
branches:  trunk
changeset: 476108:6fb99bd9623c
user:      mrauch <mrauch%pkgsrc.org@localhost>
date:      Thu Jun 03 18:48:17 2004 +0000

description:
Allow installation of localized versions via the variable PKG_LANG.

diffstat:

 misc/openoffice/Makefile             |    60 +-
 misc/openoffice/Makefile.NetBSD.i386 |     3 +
 misc/openoffice/Makefile.i18n        |   145 +
 misc/openoffice/PLIST                |  4277 ----------------------------------
 misc/openoffice/PLIST.common         |  3893 ++++++++++++++++++++++++++++++
 misc/openoffice/PLIST.common_end     |   213 +
 misc/openoffice/PLIST.i18n.01        |   171 +
 misc/openoffice/PLIST.i18n.03        |   170 +
 misc/openoffice/PLIST.i18n.07        |   170 +
 misc/openoffice/PLIST.i18n.30        |   171 +
 misc/openoffice/PLIST.i18n.31        |   170 +
 misc/openoffice/PLIST.i18n.33        |   170 +
 misc/openoffice/PLIST.i18n.34        |   170 +
 misc/openoffice/PLIST.i18n.35        |   171 +
 misc/openoffice/PLIST.i18n.36        |   170 +
 misc/openoffice/PLIST.i18n.39        |   170 +
 misc/openoffice/PLIST.i18n.42        |   168 +
 misc/openoffice/PLIST.i18n.43        |   171 +
 misc/openoffice/PLIST.i18n.45        |   170 +
 misc/openoffice/PLIST.i18n.46        |   170 +
 misc/openoffice/PLIST.i18n.48        |   170 +
 misc/openoffice/PLIST.i18n.49        |   170 +
 misc/openoffice/PLIST.i18n.50        |   170 +
 misc/openoffice/PLIST.i18n.55        |   170 +
 misc/openoffice/PLIST.i18n.77        |   171 +
 misc/openoffice/PLIST.i18n.81        |   168 +
 misc/openoffice/PLIST.i18n.82        |   170 +
 misc/openoffice/PLIST.i18n.86        |   170 +
 misc/openoffice/PLIST.i18n.88        |   170 +
 misc/openoffice/PLIST.i18n.90        |   168 +
 misc/openoffice/PLIST.i18n.96        |   171 +
 misc/openoffice/distinfo             |    30 +-
 misc/openoffice/patches/patch-av     |    12 +
 misc/openoffice/patches/patch-aw     |    26 +
 34 files changed, 8603 insertions(+), 4306 deletions(-)

diffs (truncated from 13099 to 300 lines):

diff -r a46e1816f270 -r 6fb99bd9623c misc/openoffice/Makefile
--- a/misc/openoffice/Makefile  Thu Jun 03 17:44:15 2004 +0000
+++ b/misc/openoffice/Makefile  Thu Jun 03 18:48:17 2004 +0000
@@ -1,28 +1,13 @@
-# $NetBSD: Makefile,v 1.48 2004/05/09 08:25:00 mrauch Exp $
+# $NetBSD: Makefile,v 1.49 2004/06/03 18:48:17 mrauch Exp $
 
 DISTNAME=              openoffice-1.1.1
 CATEGORIES=            misc
-MASTER_SITES=          http://mirrors.isc.org/pub/openoffice/stable/1.1.1/\
-                       http://ftp.stardiv.de/pub/OpenOffice.org/stable/1.1.1/\
-                       ftp://ftp.ring.gr.jp/pub/misc/openoffice/stable/1.1.1/\
-                       http://openoffice.mirrors.ilisys.com.au/\
-                       http://www.ibiblio.org/pub/mirrors/openoffice/stable/1.1.1/\
-                       http://gd.tuwien.ac.at/office/openoffice/stable/1.1.1/\
-                       http://mirrors.sunsite.dk/openoffice/stable/1.1.1/\
-                       ftp://ftp.funet.fi/pub/mirrors/openoffice.org/stable/1.1.1/\
-                       http://ftp.leo.org/download/pub/comp/general/office/openoffice/stable/1.1.1/\
-                       ftp://ftp.saix.net/pub/OpenOffice.org/stable/1.1.1/\
-                       ftp://ftp.cyberfenix.net/pub/openoffice/stable/1.1.1/\
-                       ftp://ftp.mirror.ac.uk/sites/ny1.mirror.openoffice.org/stable/1.1.1/\
-                       http://mirror.pacific.net.au/openoffice/\
-                       ftp://ftp.ring.gr.jp/pub/misc/openoffice/stable/1.1.1/\
-                       ftp://ftp.kr.freebsd.org/pub/openoffice/stable/1.1.1/\
-                       http://www.fs.tum.de/~mrauch/OpenOffice/download/
+MASTER_SITES=          ${MASTER_SITE_OPENOFFICE:=stable/1.1.1/}
 DISTFILES=             OOo_1.1.1p1_source.tar.bz2
 DISTFILES+=            gpc231.tar.Z
-DISTFILES+=            ooo_addons_111.tar.bz2
+DISTFILES+=            ooo_addons_111p1.tar.bz2
 SITES_gpc231.tar.Z=    ftp://ftp.cs.man.ac.uk/pub/toby/gpc/
-SITES_ooo_addons_111.tar.bz2=http://www.fs.tum.de/~mrauch/OpenOffice/download/\
+SITES_ooo_addons_111p1.tar.bz2=http://www.fs.tum.de/~mrauch/OpenOffice/download/\
                        ftp://ftp.NetBSD.org/pub/NetBSD/misc/mrauch/
 
 MAINTAINER=            mrauch%NetBSD.org@localhost
@@ -58,32 +43,41 @@
 TEMP?=                 ${WRKSRC}
 UNLIMIT_RESOURCES+=    datasize
 
+PLIST_SRC+=            PLIST.common
+PLIST_SUBST+=          OPENOFFICE_DLLSUFFIX=${OPENOFFICE_DLLSUFFIX}
+.if exists(${PKGDIR}/PLIST.${OPSYS})
+PLIST_SRC+=             ${PKGDIR}/PLIST.${OPSYS}
+. endif
+
 post-extract:
 # bring the two files from GPC into place
        ${CP} ${WRKDIR}/gpc231/gpc.c ${WRKSRC}/../external/gpc/
        ${CP} ${WRKDIR}/gpc231/gpc.h ${WRKSRC}/../external/gpc/
 # bring the NetBSD mozilla zip files into place
-       ${CP} ${WRKDIR}/*.zip ${WRKSRC}/../moz/zipped/
+       ${CP} ${WRKDIR}/moz/*.zip ${WRKSRC}/../moz/zipped/
        ${CP} ${WRKDIR}/openintro_pkgsrc.bmp                            \
                ${WRKSRC}/../offmgr/res/openintro.bmp
+# bring the localized helpcontent into place
+       ${MKDIR} ${WRKSRC}/../helpcontent/${OPENOFFICE_OUTPATH}.pro/bin
+       ${CP} ${WRKDIR}/*.zip ${WRKSRC}/../helpcontent/${OPENOFFICE_OUTPATH}.pro/bin/
 
 do-build:
-       ${_ULIMIT_CMD} tcsh -c "setenv PTHREAD_DIAGASSERT Ael && cd ${WRKSRC}/.. && ./bootstrap && source *.Set && dmake"
+       ${_ULIMIT_CMD} tcsh -c "setenv PTHREAD_DIAGASSERT Ael && cd ${WRKSRC}/.. && ./bootstrap && source ${OPENOFFICE_SETFILE}Env.Set && dmake"
 
 post-build:
        @${ECHO_MSG} "Please ignore the warning above that the project gtk"
        @${ECHO_MSG} "could not be found. Your build completed successfully."
 
 pre-install:
-       ${CP} ${WRKSRC}/../instsetoo/unxbsdi2.pro/01/normal/setup.ins   \
-               ${WRKSRC}/../instsetoo/unxbsdi2.pro/01/normal/setup.ins.orig
+       ${CP} ${WRKSRC}/../instsetoo/${OPENOFFICE_OUTPATH}.pro/${OPENOFFICE_LANGCODE}/normal/setup.ins  \
+               ${WRKSRC}/../instsetoo/${OPENOFFICE_OUTPATH}.pro/${OPENOFFICE_LANGCODE}/normal/setup.ins.orig
        ${SED}  -e "s|/usr/bin/soffice|${PREFIX}/bin/soffice.orig|g"    \
                -e "s|/usr/lib||g"                                      \
-               <${WRKSRC}/../instsetoo/unxbsdi2.pro/01/normal/setup.ins.orig\
-               >${WRKSRC}/../instsetoo/unxbsdi2.pro/01/normal/setup.ins
+               <${WRKSRC}/../instsetoo/${OPENOFFICE_OUTPATH}.pro/${OPENOFFICE_LANGCODE}/normal/setup.ins.orig\
+               >${WRKSRC}/../instsetoo/${OPENOFFICE_OUTPATH}.pro/${OPENOFFICE_LANGCODE}/normal/setup.ins
 
 do-install:
-       ${SH} -c "cd ${WRKSRC}/../instsetoo/unxbsdi2.pro/01/normal; ./install --prefix=${PREFIX}"
+       ${SH} -c "cd ${WRKSRC}/../instsetoo/${OPENOFFICE_OUTPATH}.pro/${OPENOFFICE_LANGCODE}/normal; ./install --prefix=${PREFIX}"
        ${RM} -f ${PREFIX}/bin/soffice.orig
        ${SED}  -e "s|@@PREFIX@@|${PREFIX}|g"                           \
                < ${FILESDIR}/soffice > ${PREFIX}/bin/soffice
@@ -92,6 +86,20 @@
        ${LN} -sf ${PREFIX}/OpenOffice.org1.1.1/program/$i ${PREFIX}/bin/$i
 .endfor
 
+# everything specific to your OS/Arch goes into its own Makefile
+# group together i386, i486, i586 and i686 (for Linux)
+#
+ARCH=  ${MACHINE_ARCH:C/i[3-6]86/i386/g}
+
+.if exists(Makefile.${OPSYS}.${ARCH})
+.  include "Makefile.${OPSYS}.${ARCH}"
+.endif
+
+# everything related to i18n is in a separate file
+.include "Makefile.i18n"
+
+PLIST_SRC+=            PLIST.common_end
+
 .include "../../mk/compiler.mk"
 .include "../../mk/pthread.buildlink3.mk"
 .include "../../lang/perl5/buildlink3.mk"
diff -r a46e1816f270 -r 6fb99bd9623c misc/openoffice/Makefile.NetBSD.i386
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/openoffice/Makefile.NetBSD.i386      Thu Jun 03 18:48:17 2004 +0000
@@ -0,0 +1,3 @@
+OPENOFFICE_DLLSUFFIX=  bi
+OPENOFFICE_OUTPATH=    unxbsdi2
+OPENOFFICE_SETFILE=    NetBSDIntel
diff -r a46e1816f270 -r 6fb99bd9623c misc/openoffice/Makefile.i18n
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/openoffice/Makefile.i18n     Thu Jun 03 18:48:17 2004 +0000
@@ -0,0 +1,145 @@
+.if ${PKG_LANG:C/_.*//} == "arabic"
+OPENOFFICE_ISOCODE=    ar
+OPENOFFICE_LANG=       arabic
+OPENOFFICE_LANGCODE=   96
+#.elif ${PKG_LANG:C/_.*//} == "catalan"
+#OPENOFFICE_ISOCODE=   ca
+#OPENOFFICE_LANG=      catalan
+#OPENOFFICE_LANGCODE=  37
+.elif ${PKG_LANG} == "chinese_cn"
+OPENOFFICE_ISOCODE=    zh-CN
+OPENOFFICE_LANG=       chinese_simplified
+OPENOFFICE_LANGCODE=   86
+OPENOFFICE_HAS_HELP=   #defined
+.elif ${PKG_LANG} == "chinese_tw"
+OPENOFFICE_ISOCODE=    zh-TW
+OPENOFFICE_LANG=       chinese_traditional
+OPENOFFICE_LANGCODE=   88
+OPENOFFICE_HAS_HELP=   #defined
+.elif ${PKG_LANG:C/_.*//} == "czech"
+OPENOFFICE_ISOCODE=    cs
+OPENOFFICE_LANG=       czech
+OPENOFFICE_LANGCODE=   42
+.elif ${PKG_LANG:C/_.*//} == "danish"
+OPENOFFICE_ISOCODE=    da
+OPENOFFICE_LANG=       danish
+OPENOFFICE_LANGCODE=   45
+.elif ${PKG_LANG:C/_.*//} == "dutch"
+OPENOFFICE_ISOCODE=    nl
+OPENOFFICE_LANG=       dutch
+OPENOFFICE_LANGCODE=   31
+OPENOFFICE_HAS_HELP=   #defined
+.elif ${PKG_LANG:C/_.*//} == "estonian"
+OPENOFFICE_ISOCODE=    et
+OPENOFFICE_LANG=       estonian
+OPENOFFICE_LANGCODE=   77
+.elif ${PKG_LANG:C/_.*//} == "finnish"
+OPENOFFICE_ISOCODE=    fi
+OPENOFFICE_LANG=       finnish
+OPENOFFICE_LANGCODE=   35
+.elif ${PKG_LANG:C/_.*//} == "french"
+OPENOFFICE_ISOCODE=    fr
+OPENOFFICE_LANG=       french
+OPENOFFICE_LANGCODE=   33
+OPENOFFICE_HAS_HELP=   #defined
+.elif ${PKG_LANG:C/_.*//} == "german"
+OPENOFFICE_ISOCODE=    de
+OPENOFFICE_LANG=       german
+OPENOFFICE_LANGCODE=   49
+OPENOFFICE_HAS_HELP=   #defined
+.elif ${PKG_LANG:C/_.*//} == "greek"
+OPENOFFICE_ISOCODE=    el
+OPENOFFICE_LANG=       greek
+OPENOFFICE_LANGCODE=   30
+#.elif ${PKG_LANG:C/_.*//} == "hebrew"
+#OPENOFFICE_ISOCODE=   he
+#OPENOFFICE_LANG=      hebrew
+#OPENOFFICE_LANGCODE=  97
+#.elif ${PKG_LANG:C/_.*//} == "hindi"
+#OPENOFFICE_ISOCODE=   hi-IN
+#OPENOFFICE_LANG=      hindi
+#OPENOFFICE_LANGCODE=  91
+.elif ${PKG_LANG:C/_.*//} == "hungarian"
+OPENOFFICE_ISOCODE=    hu
+OPENOFFICE_LANG=       hungarian
+OPENOFFICE_LANGCODE=   36
+.elif ${PKG_LANG:C/_.*//} == "italian"
+OPENOFFICE_ISOCODE=    it
+OPENOFFICE_LANG=       italian
+OPENOFFICE_LANGCODE=   39
+OPENOFFICE_HAS_HELP=   #defined
+.elif ${PKG_LANG:C/_.*//} == "japanese"
+OPENOFFICE_ISOCODE=    ja
+OPENOFFICE_LANG=       japanese
+OPENOFFICE_LANGCODE=   81
+OPENOFFICE_HAS_HELP=   #defined
+.elif ${PKG_LANG:C/_.*//} == "korean"
+OPENOFFICE_ISOCODE=    ko
+OPENOFFICE_LANG=       korean
+OPENOFFICE_LANGCODE=   82
+OPENOFFICE_HAS_HELP=   #defined
+.elif ${PKG_LANG:C/_.*//} == "polish"
+OPENOFFICE_ISOCODE=    pl
+OPENOFFICE_LANG=       polish
+OPENOFFICE_LANGCODE=   48
+.elif ${PKG_LANG} == "portuguese_br"
+OPENOFFICE_ISOCODE=    pt-BR
+OPENOFFICE_LANG=       portuguese_brazilian
+OPENOFFICE_LANGCODE=   55
+.elif ${PKG_LANG:C/_.*//} == "portuguese"
+OPENOFFICE_ISOCODE=    pt
+OPENOFFICE_LANG=       portuguese
+OPENOFFICE_LANGCODE=   03
+.elif ${PKG_LANG:C/_.*//} == "russian"
+OPENOFFICE_ISOCODE=    ru
+OPENOFFICE_LANG=       russian
+OPENOFFICE_LANGCODE=   07
+.elif ${PKG_LANG:C/_.*//} == "slovak"
+OPENOFFICE_ISOCODE=    sk
+OPENOFFICE_LANG=       slovak
+OPENOFFICE_LANGCODE=   43
+.elif ${PKG_LANG:C/_.*//} == "slovenian"
+OPENOFFICE_ISOCODE=    sl
+OPENOFFICE_LANG=       slovenian
+OPENOFFICE_LANGCODE=   50
+.elif ${PKG_LANG:C/_.*//} == "spanish"
+OPENOFFICE_ISOCODE=    es
+OPENOFFICE_LANG=       spanish
+OPENOFFICE_LANGCODE=   34
+OPENOFFICE_HAS_HELP=   #defined
+.elif ${PKG_LANG:C/_.*//} == "swedish"
+OPENOFFICE_ISOCODE=    sv
+OPENOFFICE_LANG=       swedish
+OPENOFFICE_LANGCODE=   46
+OPENOFFICE_HAS_HELP=   #defined
+#.elif ${PKG_LANG:C/_.*//} == "thai"
+#OPENOFFICE_ISOCODE=   th
+#OPENOFFICE_LANG=      thai
+#OPENOFFICE_LANGCODE=  66
+.elif ${PKG_LANG:C/_.*//} == "turkish"
+OPENOFFICE_ISOCODE=    tr
+OPENOFFICE_LANG=       turkish
+OPENOFFICE_LANGCODE=   90
+.else # .elif ${PKG_LANG:C/_.*//} == "english"
+OPENOFFICE_ISOCODE=    en-US
+OPENOFFICE_HELPCODE=   en
+OPENOFFICE_LANG=       english
+OPENOFFICE_LANGCODE=   01
+OPENOFFICE_HAS_HELP=   #defined
+.endif
+
+OPENOFFICE_HELPCODE?=  ${OPENOFFICE_ISOCODE}
+
+.if defined(OPENOFFICE_HAS_HELP)
+DISTFILES+=    helpcontent_${OPENOFFICE_LANGCODE}_unix.tgz
+SITES_helpcontent_${OPENOFFICE_LANGCODE}_unix.tgz=${MASTER_SITE_OPENOFFICE:=contrib/helpcontent/}
+.else
+DISTFILES+=    helpcontent_01_unix.tgz
+SITES_helpcontent_01_unix.tgz=${MASTER_SITE_OPENOFFICE:=contrib/helpcontent/}
+.endif
+
+PLIST_SRC+=    PLIST.i18n.${OPENOFFICE_LANGCODE}
+PLIST_SUBST+=  OPENOFFICE_ISOCODE=${OPENOFFICE_ISOCODE}
+PLIST_SUBST+=  OPENOFFICE_LANG=${OPENOFFICE_LANG}
+PLIST_SUBST+=  OPENOFFICE_LANGCODE=${OPENOFFICE_LANGCODE}
+PLIST_SUBST+=  OPENOFFICE_HELPCODE=${OPENOFFICE_HELPCODE}
diff -r a46e1816f270 -r 6fb99bd9623c misc/openoffice/PLIST
--- a/misc/openoffice/PLIST     Thu Jun 03 17:44:15 2004 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,4277 +0,0 @@
-@comment $NetBSD: PLIST,v 1.3 2004/05/03 20:56:35 mrauch Exp $
-OpenOffice.org1.1.1/LICENSE
-OpenOffice.org1.1.1/LICENSE.html
-OpenOffice.org1.1.1/README
-OpenOffice.org1.1.1/README.html
-OpenOffice.org1.1.1/THIRDPARTYLICENSEREADME.html
-OpenOffice.org1.1.1/help/en/common.jar
-OpenOffice.org1.1.1/help/en/common.tree
-OpenOffice.org1.1.1/help/en/custom.css
-OpenOffice.org1.1.1/help/en/default.css
-OpenOffice.org1.1.1/help/en/err.html
-OpenOffice.org1.1.1/help/en/highcontrast1.css
-OpenOffice.org1.1.1/help/en/highcontrast2.css
-OpenOffice.org1.1.1/help/en/highcontrastblack.css
-OpenOffice.org1.1.1/help/en/highcontrastwhite.css
-OpenOffice.org1.1.1/help/en/picture.db
-OpenOffice.org1.1.1/help/en/picture.jar
-OpenOffice.org1.1.1/help/en/sbasic.cfg
-OpenOffice.org1.1.1/help/en/sbasic.db
-OpenOffice.org1.1.1/help/en/sbasic.ht
-OpenOffice.org1.1.1/help/en/sbasic.idx/CONTEXTS
-OpenOffice.org1.1.1/help/en/sbasic.idx/DICTIONARY
-OpenOffice.org1.1.1/help/en/sbasic.idx/DOCS
-OpenOffice.org1.1.1/help/en/sbasic.idx/DOCS.TAB
-OpenOffice.org1.1.1/help/en/sbasic.idx/EDGE
-OpenOffice.org1.1.1/help/en/sbasic.idx/LINKNAMES
-OpenOffice.org1.1.1/help/en/sbasic.idx/OFFSETS
-OpenOffice.org1.1.1/help/en/sbasic.idx/POSITIONS
-OpenOffice.org1.1.1/help/en/sbasic.idx/SCHEMA
-OpenOffice.org1.1.1/help/en/sbasic.jar
-OpenOffice.org1.1.1/help/en/sbasic.key
-OpenOffice.org1.1.1/help/en/sbasic.tree
-OpenOffice.org1.1.1/help/en/scalc.cfg
-OpenOffice.org1.1.1/help/en/scalc.db



Home | Main Index | Thread Index | Old Index