pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/misc/openoffice2 - Support multiple lang-* options.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/27686f36cc07
branches:  trunk
changeset: 528103:27686f36cc07
user:      hira <hira%pkgsrc.org@localhost>
date:      Sat Apr 21 05:40:27 2007 +0000

description:
- Support multiple lang-* options.
 - Set X11_LDFLAGS via configure.
 - Add missing MESSAGE file (from misc/openoffice).
 - Remove extra $NetBSD$ and trailing white space from patch-ch.

NOTE: Currently, you need 400MB free disk space per one lang-* option.

diffstat:

 misc/openoffice2/MESSAGE          |  10 +++++++
 misc/openoffice2/Makefile         |  51 ++++++++++++++++++--------------------
 misc/openoffice2/distinfo         |   8 +++---
 misc/openoffice2/options.mk       |  11 +++++---
 misc/openoffice2/patches/patch-aj |  10 +++----
 misc/openoffice2/patches/patch-ak |  13 ++++++++-
 misc/openoffice2/patches/patch-ch |  12 +++------
 7 files changed, 64 insertions(+), 51 deletions(-)

diffs (257 lines):

diff -r bab941406909 -r 27686f36cc07 misc/openoffice2/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/openoffice2/MESSAGE  Sat Apr 21 05:40:27 2007 +0000
@@ -0,0 +1,10 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2007/04/21 05:40:27 hira Exp $
+
+  OpenOffice has now been installed in ${PREFIX}/${OO_RELEASE}.
+
+  Before using this package for the first time, each user has to run
+  a setup program, which is automatically invoked at the first start.
+  Thereafter, OpenOffice can be started using the
+  ${PREFIX}/bin/soffice command.
+===========================================================================
diff -r bab941406909 -r 27686f36cc07 misc/openoffice2/Makefile
--- a/misc/openoffice2/Makefile Sat Apr 21 05:36:27 2007 +0000
+++ b/misc/openoffice2/Makefile Sat Apr 21 05:40:27 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2007/04/05 23:24:01 hira Exp $
+# $NetBSD: Makefile,v 1.15 2007/04/21 05:40:27 hira Exp $
 #
 
 OO_VER=                        2.2.0
@@ -48,6 +48,7 @@
 ONLY_FOR_PLATFORM=     NetBSD-1.6Z[G-Z]*-i386 NetBSD-[2-9]*-i386
 
 GNU_CONFIGURE=         yes
+CONFIGURE_ENV+=                X_LIBS=${X11_LDFLAGS:M*:Q}
 CONFIGURE_ARGS+=       --with-use-shell=bash
 CONFIGURE_ARGS+=       --enable-binfilter
 CONFIGURE_ARGS+=       --enable-cairo
@@ -66,24 +67,18 @@
 
 # NOTE: In this version, this value should be separated by space (comma
 #       causes build error).
-CONFIGURE_ARGS+=       --with-lang=${OPENOFFICE_LANGUAGE}
+CONFIGURE_ARGS+=       --with-lang=${OO_LANGS:Q}
 
 .include "options.mk"
 
 UNLIMIT_RESOURCES+=    datasize
 
-OPENOFFICE_VERSION=    OpenOffice.org${OO_VER}
+OO_RELEASE=            OpenOffice.org${OO_VER}
 PLIST_SRC+=            ${WRKDIR}/.PLIST_SRC
-MESSAGE_SUBST+=                OPENOFFICE_VERSION=${OPENOFFICE_VERSION}
+MESSAGE_SUBST+=                OO_RELEASE=${OO_RELEASE}
 INSTALLATION_DIRS=     bin
 
-SUBST_CLASSES+=                        X11_LDFLAGS
-SUBST_MESSAGE.X11_LDFLAGS=     Adding X11_LDFLAGS.
-SUBST_STAGE.X11_LDFLAGS=       post-patch
-SUBST_FILES.X11_LDFLAGS=       solenv/inc/${OPENOFFICE_OUTPATH:Q}.mk
-SUBST_SED.X11_LDFLAGS=         -e 's|@X11_LDFLAGS@|${X11_LDFLAGS}|g'
-
-OO_PKGPATH=    ${WRKSRC}/instsetoo_native/${OPENOFFICE_OUTPATH}.pro/OpenOffice/portable/install/${OPENOFFICE_LANGUAGE}
+OO_PKGPATH=    ${WRKSRC}/instsetoo_native/${OPENOFFICE_OUTPATH}.pro/OpenOffice/portable/install
 OO_PKGROOT=    /opt/openoffice.org2.2
 OO_PROGRAMS=   scalc sdraw simpress soffice swriter
 
@@ -95,29 +90,31 @@
        ${_ULIMIT_CMD} ${SETENV} ${MAKE_ENV} bash -c "export PTHREAD_DIAGASSERT=Ael && cd ${WRKSRC} && ./bootstrap && source ${OPENOFFICE_SETFILE}Env.Set.sh && dmake build_all"
 
 post-build:
-       cd ${WRKDIR} &&                         \
-       ${RM} -fr opt &&                        \
-       for f in ${OO_PKGPATH:Q}/*/*.sw; do     \
-               ${TAR} xpf $$f;                 \
+       cd ${WRKDIR} &&                                         \
+       ${RM} -fr opt &&                                        \
+       for l in ${OO_LANGS}; do                                \
+               for f in ${OO_PKGPATH:Q}/$${l}/*/*.sw; do       \
+                       ${TAR} xpfk $$f;                        \
+               done;                                           \
        done
 
 do-install:
-       ${INSTALL_DATA_DIR} ${PREFIX}/${OPENOFFICE_VERSION}
-       cd ${WRKDIR}${OO_PKGROOT} &&                                    \
-       ${TAR} cf - . | ${TAR} Cxpf ${PREFIX}/${OPENOFFICE_VERSION} -
-       for f in ${OO_PROGRAMS}; do                                     \
-               ${LN} -sf ${PREFIX}/${OPENOFFICE_VERSION}/program/$$f   \
-                       ${PREFIX}/bin/$$f;                              \
+       ${INSTALL_DATA_DIR} ${PREFIX}/${OO_RELEASE}
+       cd ${WRKDIR}${OO_PKGROOT} &&                            \
+       ${TAR} cf - . | ${TAR} Cxpf ${PREFIX}/${OO_RELEASE} -
+       for f in ${OO_PROGRAMS}; do                             \
+               ${LN} -sf ${PREFIX}/${OO_RELEASE}/program/$$f   \
+                       ${PREFIX}/bin/$$f;                      \
        done
 
 post-install:
-       cd ${PREFIX} &&                                                 \
-       ${FIND} ${OPENOFFICE_VERSION} \! -type d -print |               \
-       ${SORT} > ${PLIST_SRC} &&                                       \
-       ${FIND} ${OPENOFFICE_VERSION} -type d -print | ${SORT} -r |     \
+       cd ${PREFIX} &&                                         \
+       ${FIND} ${OO_RELEASE} \! -type d -print |               \
+       ${SORT} > ${PLIST_SRC} &&                               \
+       ${FIND} ${OO_RELEASE} -type d -print | ${SORT} -r |     \
        ${AWK} '{print("@dirrm "$$1)}' >> ${PLIST_SRC}
-       for f in ${OO_PROGRAMS}; do                                     \
-               ${ECHO} bin/$$f >> ${PLIST_SRC};                        \
+       for f in ${OO_PROGRAMS}; do                             \
+               ${ECHO} bin/$$f >> ${PLIST_SRC};                \
        done
 
 # everything specific to your OS/Arch goes into its own Makefile
diff -r bab941406909 -r 27686f36cc07 misc/openoffice2/distinfo
--- a/misc/openoffice2/distinfo Sat Apr 21 05:36:27 2007 +0000
+++ b/misc/openoffice2/distinfo Sat Apr 21 05:40:27 2007 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.14 2007/04/20 14:44:11 hira Exp $
+$NetBSD: distinfo,v 1.15 2007/04/21 05:40:27 hira Exp $
 
 SHA1 (openoffice-2.2.0/OOo_2.2.0_src_binfilter.tar.bz2) = d1fa827e2c08d7e3d67b2588b1136ed9e774ef42
 RMD160 (openoffice-2.2.0/OOo_2.2.0_src_binfilter.tar.bz2) = 1bb07f01e872ed003dbac3e11bc5732904076ae1
@@ -22,8 +22,8 @@
 SHA1 (patch-ag) = 6c2f17424cfc85b5bc923a650167f14b7acabfd4
 SHA1 (patch-ah) = 1d54fe3fd237ff053d14626f9a45ef393c90323f
 SHA1 (patch-ai) = eb985085a36647675e3f436e192847f67b5dec8c
-SHA1 (patch-aj) = 740b8829c4f480db0989302231b5c031e2c141e7
-SHA1 (patch-ak) = 2e356501dac8ace8932f4648ca4073cc41188dea
+SHA1 (patch-aj) = f18266821545da2d37e589a0a7137d14cd19d87e
+SHA1 (patch-ak) = 7775257ed056f608da3b43b0d9bb146f61e2a438
 SHA1 (patch-am) = 8e497298dd5534bd0ef438c22595c1c0f63912a5
 SHA1 (patch-an) = cdf677a8e135fd4b447eef006558c7fea4df0be6
 SHA1 (patch-ao) = a83178adec44571ebcf7a4dd66bda52d004d465c
@@ -57,6 +57,6 @@
 SHA1 (patch-bw) = e0d438f886e97c0342f56ba155ebb6a7e9414093
 SHA1 (patch-bx) = 9d01592c69f0ba734ff488980c475a1b768bc229
 SHA1 (patch-by) = 1612b765467e51ca7498497d38a0bb6ac694f9a6
-SHA1 (patch-ch) = 4a305872dc6f0e88ebd421232b566fc4c1fa0e3d
+SHA1 (patch-ch) = bcfeb99318a16e83f2e54fb94d275224c67182fb
 SHA1 (patch-ci) = 2861e8a4b21977cbc8abeabe4581093e966cdfa7
 SHA1 (patch-cj) = c54fd98e5302a86ec849b90c617ebfcf339c936d
diff -r bab941406909 -r 27686f36cc07 misc/openoffice2/options.mk
--- a/misc/openoffice2/options.mk       Sat Apr 21 05:36:27 2007 +0000
+++ b/misc/openoffice2/options.mk       Sat Apr 21 05:40:27 2007 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: options.mk,v 1.8 2007/04/20 14:44:11 hira Exp $
+# $NetBSD: options.mk,v 1.9 2007/04/21 05:40:27 hira Exp $
 
 PKG_OPTIONS_VAR=               PKG_OPTIONS.openoffice2
 PKG_SUPPORTED_OPTIONS=         cups gnome gtk2 kde
-PKG_OPTIONS_REQUIRED_GROUPS=   browser lang
+PKG_OPTIONS_REQUIRED_GROUPS=   browser
 PKG_OPTIONS_GROUP.browser=     firefox # seamonkey firefox-gtk1 seamonkey-gtk1
 OO_SUPPORTED_LANGUAGES=                en-US af as-IN be-BY bg br bs ca cs cy da de \
                                el en-GB en-ZA eo es et fa fi fr ga gu-IN he \
@@ -12,7 +12,7 @@
                                ta-IN te-IN tg th ti-ER tn tr ts uk ur-IN ve \
                                vi xh zh-CN zh-TW zu
 .for l in ${OO_SUPPORTED_LANGUAGES}
-PKG_OPTIONS_GROUP.lang+=       lang-${l}
+PKG_SUPPORTED_OPTIONS+=                lang-${l}
 .endfor
 PKG_SUGGESTED_OPTIONS=         gtk2 lang-en-US firefox
 PKG_OPTIONS_LEGACY_OPTS+=      gnome-vfs:gnome
@@ -20,7 +20,10 @@
 .include "../../mk/bsd.options.mk"
 .include "../../mk/bsd.prefs.mk"
 
-OPENOFFICE_LANGUAGE=           ${PKG_OPTIONS:Mlang-*:S/^lang-//1}
+.for l in ${PKG_OPTIONS:Mlang-*}
+OO_LANGS+=     ${l:S/^lang-//1}
+.endfor
+OO_LANGS?=     en-US
 
 .if !empty(PKG_OPTIONS:Mfirefox)
 CONFIGURE_ARGS+=       --with-system-mozilla --with-firefox
diff -r bab941406909 -r 27686f36cc07 misc/openoffice2/patches/patch-aj
--- a/misc/openoffice2/patches/patch-aj Sat Apr 21 05:36:27 2007 +0000
+++ b/misc/openoffice2/patches/patch-aj Sat Apr 21 05:40:27 2007 +0000
@@ -1,7 +1,7 @@
-$NetBSD: patch-aj,v 1.2 2007/03/04 13:11:19 hira Exp $
+$NetBSD: patch-aj,v 1.3 2007/04/21 05:40:27 hira Exp $
 
---- solenv/inc/unxbsdi2.mk.orig        2006-12-02 02:57:07.000000000 +0900
-+++ solenv/inc/unxbsdi2.mk     2007-02-23 20:49:52.000000000 +0900
+--- solenv/inc/unxbsdi2.mk.orig        2006-07-06 07:00:41.000000000 +0900
++++ solenv/inc/unxbsdi2.mk     2007-04-21 03:20:50.000000000 +0900
 @@ -37,7 +37,7 @@
  ASM=
  AFLAGS=
@@ -39,13 +39,11 @@
  
  # linker flags for optimization (symbol hashtable)
  # for now, applied to symbol scoped libraries, only
-@@ -159,17 +160,20 @@
+@@ -159,17 +160,18 @@
  STDSLOGUI=
  STDOBJCUI=
  STDSLOCUI=
 +STDOBJVCL=$(L)$/salmain.o
-+
-+X11_LDFLAGS=@X11_LDFLAGS@
  
  # libraries for linking applications
 -STDLIBCUIST=-lm
diff -r bab941406909 -r 27686f36cc07 misc/openoffice2/patches/patch-ak
--- a/misc/openoffice2/patches/patch-ak Sat Apr 21 05:36:27 2007 +0000
+++ b/misc/openoffice2/patches/patch-ak Sat Apr 21 05:40:27 2007 +0000
@@ -1,7 +1,7 @@
-$NetBSD: patch-ak,v 1.3 2007/04/05 23:24:01 hira Exp $
+$NetBSD: patch-ak,v 1.4 2007/04/21 05:40:27 hira Exp $
 
 --- config_office/set_soenv.in.orig    2007-01-19 21:55:33.000000000 +0900
-+++ config_office/set_soenv.in 2007-04-06 08:14:02.000000000 +0900
++++ config_office/set_soenv.in 2007-04-21 03:17:35.000000000 +0900
 @@ -39,7 +39,7 @@
  #--------------------------------------------------------
  #
@@ -46,3 +46,12 @@
  }
  elsif ($platform =~ m/linux-gnu|netbasd|osf1|irix|aix|freebsd/)
  {  $SOLARLIB          = $L.$par_dir.$LIB.
+@@ -1531,6 +1539,8 @@
+ ToFile( "JITC_PROCESSOR_TYPE","6",                 "e" );
+ }
+ ToFile( "DEFAULT_TO_ENGLISH_FOR_PACKING",  "yes", "e" );
++# Should be renamed?
++ToFile( "X11_LDFLAGS",       "@X_LIBS@",           "e" );
+ ToFile( "ENABLE_GTK",        "@ENABLE_GTK@",       "e" );
+ ToFile( "GTK_CFLAGS",        "@GTK_CFLAGS@",       "e" );
+ ToFile( "GTK_LIBS",          "@GTK_LIBS@",         "e" );
diff -r bab941406909 -r 27686f36cc07 misc/openoffice2/patches/patch-ch
--- a/misc/openoffice2/patches/patch-ch Sat Apr 21 05:36:27 2007 +0000
+++ b/misc/openoffice2/patches/patch-ch Sat Apr 21 05:40:27 2007 +0000
@@ -1,9 +1,8 @@
-$NetBSD: patch-ch,v 1.1 2007/04/05 23:26:13 hira Exp $
+$NetBSD: patch-ch,v 1.2 2007/04/21 05:40:27 hira Exp $
 
---- solenv/inc/unxbsdi3.mk.orig        2007-04-05 10:28:46.000000000 +0900
-+++ solenv/inc/unxbsdi3.mk     2007-04-05 10:28:43.000000000 +0900
-@@ -0,0 +1,183 @@
-+# $NetBSD: patch-ch,v 1.1 2007/04/05 23:26:13 hira Exp $
+--- solenv/inc/unxbsdi3.mk.orig        2007-04-21 03:03:25.000000000 +0900
++++ solenv/inc/unxbsdi3.mk     2007-04-21 03:21:29.000000000 +0900
+@@ -0,0 +1,179 @@
 +#
 +# mk file for NetBSD/i386 with gcc 3.4.x and higher.
 +#
@@ -144,8 +143,6 @@
 +STDSLOCUI=
 +STDOBJVCL=$(L)$/salmain.o
 +
-+X11_LDFLAGS=@X11_LDFLAGS@
-+
 +# libraries for linking applications
 +STDLIBCUIST=-lm -lc -lgcc_s -lstdc++
 +STDLIBGUIMT=${X11_LDFLAGS} -lX11 -lpthread -lm -lc -lgcc_s -lstdc++
@@ -185,4 +182,3 @@
 +DLLPOSTFIX=bi
 +DLLPRE=lib
 +DLLPOST=.so
-+



Home | Main Index | Thread Index | Old Index