Date: Thu, 22 Jul 2010 21:58:56 +0200 From: Bernhard Froehlich <decke@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: mono@FreeBSD.org Subject: ports/148851: [PATCH] www/moonshine: update to 0.7 Message-ID: <20100722215856.69c6e759@FreeBSD.org> Resent-Message-ID: <201007222010.o6MKA7tc065545@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 148851 >Category: ports >Synopsis: [PATCH] www/moonshine: update to 0.7 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Thu Jul 22 20:10:07 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Bernhard Froehlich >Release: FreeBSD 8.1-PRERELEASE amd64 >Organization: >Environment: System: FreeBSD chii.bluelife.at 8.1-PRERELEASE FreeBSD 8.1-PRERELEASE #2: Fri May 28 19:07:40 CEST 2010 >Description: This port update is in preparation for the upcoming www/libxul 1.9.2 update because moonshine 0.2 is incompatible with the newer libxul. - Update to 0.7 - Fixed "cp -a" usage for FreeBSD 6.x - Patched non working bashisms in buildsystem (patches already submitted upstream) Added file(s): - files/patch-autogen.sh - files/patch-configure.ac - files/patch-plugin-generate-resource - files/patch-plugin-xpi-Makefile.am - files/patch-xulrunner-Makefile.am - files/patch-xulrunner-moonshine.in Removed file(s): - files/patch-configure Port maintainer (mono@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.99 >How-To-Repeat: >Fix: --- moonshine-0.7.patch begins here --- diff -ruN --exclude=CVS --exclude=.svn /usr/ports/www/moonshine.orig/Makefile /usr/ports/www/moonshine/Makefile --- /usr/ports/www/moonshine.orig/Makefile 2010-03-06 15:58:02.000000000 +0100 +++ /usr/ports/www/moonshine/Makefile 2010-07-22 21:52:02.000000000 +0200 @@ -6,20 +6,25 @@ # PORTNAME= moonshine -PORTVERSION= 0.2 -PORTREVISION= 2 +PORTVERSION= 0.7 CATEGORIES= www multimedia -MASTER_SITES= http://abock.org/${PORTNAME}/releases/ +MASTER_SITES= http://github.com/abock/moonshine/tarball/${PORTVERSION}/ +DISTNAME= abock-${PORTNAME}-${GITCOMMIT} MAINTAINER= mono@FreeBSD.org COMMENT= Windows Media playback through Moonlight and Firefox BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash +FETCH_BEFORE_ARGS= -o ${DISTNAME}${EXTRACT_SUFX} +FETCH_ARGS= -apRr +GITCOMMIT= 35085a4 -USE_BZIP2= yes USE_GMAKE= yes USE_GECKO= libxul -GNU_CONFIGURE= yes +USE_AUTOTOOLS= libtool:22 libtoolize aclocal:110 autoconf:262 autoheader:262 automake:110 +LIBTOOLIZE_ARGS= --force --copy --automake +AUTOMAKE_ARGS= --gnu --add-missing --force --copy -Wno-portability +ACLOCAL_ARGS= CONFIGURE_ARGS= --with-browser-plugin-dir=${PREFIX}/lib/browser_plugins/${PORTNAME}/ USE_WEBPLUGINS= gecko19 @@ -32,10 +37,6 @@ ONLY_FOR_ARCHS= i386 amd64 ONLY_FOR_ARCHS_REASON= "not yet ported to anything other than i386 and amd64" -.if ${ARCH} == "amd64" -CONFIGURE_TARGET= x86_64-portbld-freebsd${OSREL} -.endif - .if defined(WITH_XPI_PLUGIN_ONLY) CONFIGURE_ARGS+=--enable-xpi-build PLIST= ${NONEXISTENT} @@ -43,10 +44,11 @@ .endif post-patch: - ${REINPLACE_CMD} -e 's|^SHELL=.*|SHELL=${LOCALBASE}/bin/bash|' \ - ${WRKSRC}/configure + ${REINPLACE_CMD} -e 's|#!/bin/bash|#!${LOCALBASE}/bin/bash|' \ + ${WRKSRC}/plugin/xpi/dist-build/build-all-arch \ + ${WRKSRC}/xulrunner/icon-theme-hicolor/icon-theme-installer ${REINPLACE_CMD} -e 's|sed -r|sed -E|' \ - ${WRKSRC}/plugin/Makefile.in \ + ${WRKSRC}/plugin/Makefile.am \ ${WRKSRC}/plugin/generate-resource .if defined(WITH_XPI_PLUGIN_ONLY) diff -ruN --exclude=CVS --exclude=.svn /usr/ports/www/moonshine.orig/distinfo /usr/ports/www/moonshine/distinfo --- /usr/ports/www/moonshine.orig/distinfo 2009-05-14 17:45:34.000000000 +0200 +++ /usr/ports/www/moonshine/distinfo 2010-07-01 14:06:54.000000000 +0200 @@ -1,3 +1,3 @@ -MD5 (moonshine-0.2.tar.bz2) = 471ddae37a45395bf996645a52911456 -SHA256 (moonshine-0.2.tar.bz2) = aac0c4f8dcd2ae26f4a597c7584ed072ca6186856f4280bc048df6dd371d6984 -SIZE (moonshine-0.2.tar.bz2) = 321716 +MD5 (abock-moonshine-35085a4.tar.gz) = 05f358d80f5c248b3ea721506b870048 +SHA256 (abock-moonshine-35085a4.tar.gz) = db99dadefb81b607d191c3c7baf01efae6baca8c80586b72fb4042fa4cd93a7a +SIZE (abock-moonshine-35085a4.tar.gz) = 1424041 diff -ruN --exclude=CVS --exclude=.svn /usr/ports/www/moonshine.orig/files/patch-autogen.sh /usr/ports/www/moonshine/files/patch-autogen.sh --- /usr/ports/www/moonshine.orig/files/patch-autogen.sh 1970-01-01 01:00:00.000000000 +0100 +++ /usr/ports/www/moonshine/files/patch-autogen.sh 2010-07-01 12:58:30.000000000 +0200 @@ -0,0 +1,38 @@ +--- autogen.sh.orig 2010-06-22 21:46:11.000000000 +0200 ++++ autogen.sh 2010-07-01 12:58:23.000000000 +0200 +@@ -1,11 +1,11 @@ +-#!/bin/bash ++#!/bin/sh + +-function error () { ++error () { + echo "Error: $1" 1>&2 + exit 1 + } + +-function check_autotool_version () { ++check_autotool_version () { + which $1 &>/dev/null || { + error "$1 is not installed, and is required to configure $PACKAGE" + } +@@ -20,9 +20,9 @@ + + if [ $major -lt $major_check ]; then + do_bail=yes +- elif [[ $minor -lt $minor_check && $major = $major_check ]]; then ++ elif [ $minor -lt $minor_check ] && [ $major = $major_check ]; then + do_bail=yes +- elif [[ $rev -lt $rev_check && $minor = $minor_check && $major = $major_check ]]; then ++ elif [ $rev -lt $rev_check ] && [ $minor = $minor_check ] && [ $major = $major_check ]; then + do_bail=yes + fi + +@@ -31,7 +31,7 @@ + fi + } + +-function run () { ++run () { + echo "$@ ..." + $@ 2>.autogen.log || { + cat .autogen.log 1>&2 diff -ruN --exclude=CVS --exclude=.svn /usr/ports/www/moonshine.orig/files/patch-configure /usr/ports/www/moonshine/files/patch-configure --- /usr/ports/www/moonshine.orig/files/patch-configure 2009-05-14 17:45:34.000000000 +0200 +++ /usr/ports/www/moonshine/files/patch-configure 1970-01-01 01:00:00.000000000 +0100 @@ -1,10 +0,0 @@ ---- configure.orig 2009-04-15 21:26:53.000000000 +0100 -+++ configure 2009-04-15 21:28:20.000000000 +0100 -@@ -11543,6 +11543,7 @@ - - case "$target_os" in - *linux*) TARGET_PLATFORM="Linux" ;; -+ *freebsd*) TARGET_PLATFORM="FreeBSD" ;; - *) { { $as_echo "$as_me:$LINENO: error: Target os $target_os is not supported" >&5 - $as_echo "$as_me: error: Target os $target_os is not supported" >&2;} - { (exit 1); exit 1; }; } ;; diff -ruN --exclude=CVS --exclude=.svn /usr/ports/www/moonshine.orig/files/patch-configure.ac /usr/ports/www/moonshine/files/patch-configure.ac --- /usr/ports/www/moonshine.orig/files/patch-configure.ac 1970-01-01 01:00:00.000000000 +0100 +++ /usr/ports/www/moonshine/files/patch-configure.ac 2010-07-01 13:00:41.000000000 +0200 @@ -0,0 +1,30 @@ +--- configure.ac.orig 2010-06-22 21:46:11.000000000 +0200 ++++ configure.ac 2010-07-01 13:00:22.000000000 +0200 +@@ -18,7 +18,7 @@ + + dnl Plugin build configuration + PKG_CHECK_MODULES(MOZILLA, libxul mozilla-plugin) +-PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.14 gmodule-2.0 >= 2.14 uuid) ++PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.14 gmodule-2.0 >= 2.14) + PKG_CHECK_MODULES(XULRUNNER_192, libxul >= 1.9.2, + HAVE_XULRUNNER_192=yes, HAVE_XULRUNNER_192=no) + if test "$HAVE_XULRUNNER_192" = "yes"; then +@@ -45,6 +45,7 @@ + + case "$target_os" in + *linux*) TARGET_PLATFORM="Linux" ;; ++ *freebsd*) TARGET_PLATFORM="FreeBSD" ;; + *) AC_MSG_ERROR([Target os $target_os is not supported]) ;; + esac + +@@ -57,6 +58,10 @@ + TARGET_PLATFORM="$TARGET_PLATFORM"_x86_64-gcc3 + INSTALL_ARCH=x86_64 + ;; ++ amd64) ++ TARGET_PLATFORM="$TARGET_PLATFORM"_amd64 ++ INSTALL_ARCH=x86_64 ++ ;; + *) AC_MSG_ERROR([Target cpu $target_cpu is unsupported or unknown]) ;; + esac + AC_SUBST([TARGET_PLATFORM]) diff -ruN --exclude=CVS --exclude=.svn /usr/ports/www/moonshine.orig/files/patch-plugin-generate-resource /usr/ports/www/moonshine/files/patch-plugin-generate-resource --- /usr/ports/www/moonshine.orig/files/patch-plugin-generate-resource 1970-01-01 01:00:00.000000000 +0100 +++ /usr/ports/www/moonshine/files/patch-plugin-generate-resource 2010-07-01 12:39:34.000000000 +0200 @@ -0,0 +1,76 @@ +--- plugin/generate-resource.orig 2010-06-22 21:46:11.000000000 +0200 ++++ plugin/generate-resource 2010-07-01 12:39:33.000000000 +0200 +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/bin/sh + + # generate-resource by Aaron Bockover + # Copyright (C) 2008 Novell +@@ -6,7 +6,7 @@ + # + # Turns a set of files into a C header file + +-function bail () { ++bail () { + echo "ERROR: $1" 1>&2 + exit 1 + } +@@ -23,17 +23,19 @@ + all_name=$1; shift + all_array="" + +-[[ -z $out ]] && ++if [ -z "$out" ]; then + bail "You must specify an output file first" ++fi + +-while (($# > 0)); do ++while [ $# -gt 0 ]; do + var=$1 + input=$2 + +- [[ -z $var || ! -f $input ]] && ++ if [ -z $var ] || [ ! -f $input ]; then + bail "Invalid variable/input file argument pair ($var, $input)" ++ fi + +- [[ $inputs -eq 0 ]] && { ++ if [ $inputs -eq 0 ]; then + (echo "/* " + echo " * $out: auto-generated embedded resources " + echo " */ " +@@ -41,24 +43,29 @@ + echo "#ifndef $out_define" + echo "#define $out_define" + echo) > $out +- } ++ fi + +- ((inputs++)) ++ inputs=$((inputs+1)) + all_array="$all_array $var" + + (echo "/* Embedded Resource $inputs ($input) */" +- table=$(hexdump -e '" " 16/1 "0x%02x, " "\n"' $input | sed -r 's/, 0x[ ,]+.*/, 0x00/') ++ table=$(hexdump -e '" " 16/1 "0x%02x, " "\n"' $input | sed -E 's/, 0x[ ,]+.*/, 0x00/') + echo "static const char $var [] = {" + echo "$table" +- [[ ${table:$((${#table}-1))} = "," ]] && echo " 0x00" ++ tablelen=${#table} ++ tablestr=$(echo $table | awk -v var=$tablelen '{ string=substr($1, 0, var); print string; }' ) ++ if [ $tablestr = "," ]; then ++ echo " 0x00" ++ fi + echo "};" + echo) >> $out + + shift; shift + done + +-[[ $inputs -eq 0 ]] && ++if [ $inputs -eq 0 ]; then + bail "You must specify at least one variable/input file pair" ++fi + + echo "static const char const * $all_name [] = {" >> $out + for var in $all_array; do diff -ruN --exclude=CVS --exclude=.svn /usr/ports/www/moonshine.orig/files/patch-plugin-xpi-Makefile.am /usr/ports/www/moonshine/files/patch-plugin-xpi-Makefile.am --- /usr/ports/www/moonshine.orig/files/patch-plugin-xpi-Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ /usr/ports/www/moonshine/files/patch-plugin-xpi-Makefile.am 2010-07-20 21:27:08.000000000 +0200 @@ -0,0 +1,15 @@ +--- plugin/xpi/Makefile.am.orig 2010-06-22 21:46:11.000000000 +0200 ++++ plugin/xpi/Makefile.am 2010-07-19 10:14:26.000000000 +0200 +@@ -11,9 +11,9 @@ + -rm -rf $(XPI_BUILD_ROOT) + mkdir -p $(XPI_BUILD_ROOT)/plugins + mkdir -p $(XPI_BUILD_ROOT)/skin +- cp -aL $(srcdir)/install.rdf $(XPI_BUILD_ROOT) +- cp -aL $(top_srcdir)/xulrunner/icon-theme-hicolor/moonshine-32.png $(XPI_BUILD_ROOT)/skin/icon.png +- cp -aL $(PLUGIN_FILE) $(XPI_BUILD_ROOT)/plugins ++ cp -RpPL $(srcdir)/install.rdf $(XPI_BUILD_ROOT) ++ cp -RpPL $(top_srcdir)/xulrunner/icon-theme-hicolor/moonshine-32.png $(XPI_BUILD_ROOT)/skin/icon.png ++ cp -RpPL $(PLUGIN_FILE) $(XPI_BUILD_ROOT)/plugins + echo "$(CHROME_MANIFEST)" > $(XPI_BUILD_ROOT)/chrome.manifest + find $(XPI_BUILD_ROOT) -name \*.so -exec strip '{}' ';' + cd $(XPI_BUILD_ROOT) && zip -r9 ../$@ * diff -ruN --exclude=CVS --exclude=.svn /usr/ports/www/moonshine.orig/files/patch-xulrunner-Makefile.am /usr/ports/www/moonshine/files/patch-xulrunner-Makefile.am --- /usr/ports/www/moonshine.orig/files/patch-xulrunner-Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ /usr/ports/www/moonshine/files/patch-xulrunner-Makefile.am 2010-07-20 21:27:08.000000000 +0200 @@ -0,0 +1,11 @@ +--- xulrunner/Makefile.am.orig 2010-06-22 21:46:11.000000000 +0200 ++++ xulrunner/Makefile.am 2010-07-19 10:25:41.000000000 +0200 +@@ -55,7 +55,7 @@ + + chrome/content/player/%: $(top_srcdir)/player/% + mkdir -p $(dir $@) +- cp -a $< $@ ++ cp -RpP $< $@ + + XULAPP_FILES = `find $(srcdir)/chrome $(srcdir)/defaults application.ini -type f | grep -v debug.js` + diff -ruN --exclude=CVS --exclude=.svn /usr/ports/www/moonshine.orig/files/patch-xulrunner-moonshine.in /usr/ports/www/moonshine/files/patch-xulrunner-moonshine.in --- /usr/ports/www/moonshine.orig/files/patch-xulrunner-moonshine.in 1970-01-01 01:00:00.000000000 +0100 +++ /usr/ports/www/moonshine/files/patch-xulrunner-moonshine.in 2010-07-22 21:51:55.000000000 +0200 @@ -0,0 +1,14 @@ +--- xulrunner/moonshine.in.orig 2010-06-22 21:46:11.000000000 +0200 ++++ xulrunner/moonshine.in 2010-07-22 21:49:39.000000000 +0200 +@@ -1,7 +1,8 @@ +-#!/bin/bash ++#!/bin/sh + +-XULRUNNER=$(readlink -e $(which xulrunner)) +-BROWSER_PLUGIN_DIR=@BROWSER_PLUGIN_DIR@ ++XULRUNNERBINARY=$(which xulrunner) ++XULRUNNER=$(echo $(cd $(dirname $XULRUNNERBINARY); pwd -P)/$(basename $XULRUNNERBINARY)) ++BROWSER_PLUGIN_DIR=@BROWSER_PLUGIN_DIR@../symlinks/gecko19 + LIBDIR=${XULRUNNER%%/xulrunner*} + + FF_PROFILES_PATH="$HOME/.mozilla/firefox" diff -ruN --exclude=CVS --exclude=.svn /usr/ports/www/moonshine.orig/pkg-plist /usr/ports/www/moonshine/pkg-plist --- /usr/ports/www/moonshine.orig/pkg-plist 2009-05-14 17:45:34.000000000 +0200 +++ /usr/ports/www/moonshine/pkg-plist 2010-07-22 21:52:10.000000000 +0200 @@ -1,4 +1,5 @@ bin/moonshine +lib/browser_plugins/moonshine/libmoonshine-plugin.a lib/browser_plugins/moonshine/libmoonshine-plugin.la lib/browser_plugins/moonshine/libmoonshine-plugin.so share/applications/moonshine.desktop @@ -36,6 +37,7 @@ %%DATADIR%%/chrome/skin/dialog-error.png %%DATADIR%%/chrome/skin/player-shell.css %%DATADIR%%/defaults/preferences/prefs.js +@dirrmtry %%DATADIR%%/extensions @dirrm %%DATADIR%%/defaults/preferences @dirrm %%DATADIR%%/defaults @dirrm %%DATADIR%%/chrome/skin @@ -47,6 +49,6 @@ @dirrm %%DATADIR%%/chrome/content/player @dirrm %%DATADIR%%/chrome/content @dirrm %%DATADIR%%/chrome -@dirrm %%DATADIR%% +@dirrmtry %%DATADIR%% @dirrm lib/browser_plugins/moonshine -@dirrm lib/browser_plugins +@dirrmtry lib/browser_plugins --- moonshine-0.7.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100722215856.69c6e759>