wok rev 14212

Up: firefox-dev (17.0.4esr)
author Dominique Corbex <domcox@slitaz.org>
date Sat Mar 16 21:31:11 2013 +0100 (2013-03-16)
parents ae7d609d0002
children 1921d455d1f6
files firefox-dev/receipt firefox-dev/stuff/firefox-gtkmozembed.pc firefox-dev/stuff/firefox-js.pc firefox-dev/stuff/firefox-plugin.pc firefox-dev/stuff/firefox-xpcom.pc firefox-dev/stuff/libxul.pc
line diff
     1.1 --- a/firefox-dev/receipt	Sat Mar 16 21:29:51 2013 +0100
     1.2 +++ b/firefox-dev/receipt	Sat Mar 16 21:31:11 2013 +0100
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="firefox-dev"
     1.7 -VERSION="10.0.2"
     1.8 +VERSION="17.0.4esr"
     1.9  CATEGORY="development"
    1.10  SHORT_DESC="firefox devel files"
    1.11  MAINTAINER="jozee@slitaz.org"
    1.12 @@ -15,24 +15,40 @@
    1.13  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.14  genpkg_rules()
    1.15  {
    1.16 -	mkdir -p $fs/usr/lib/pkgconfig
    1.17 -	cp -a $_pkg/usr/lib/firefox-devel $fs/usr/lib
    1.18 -	cp -a $_pkg/usr/include $fs/usr
    1.19 +	printf "Installing include files.."
    1.20 +	mkdir -p $fs/usr/include/$WANTED-$VERSION &&
    1.21 +	cp -rL $src/obj-firefox/dist/include/* $fs/usr/include/$WANTED-$VERSION
    1.22 +	status
    1.23  
    1.24 -	# Gecko 1.9.0 compatibility...
    1.25 -	#ln -s npfunctions.h $fs/usr/include/firefox-$VERSION/stable/npupp.h
    1.26 +	printf "Installing libs files.."
    1.27 +	mkdir -p $fs/usr/lib/$WANTED-devel/sdk/bin/ply &&
    1.28 +	cp -rL $src/obj-firefox/dist/sdk/bin/*.py \
    1.29 +		$fs/usr/lib/$WANTED-devel/sdk/bin &&
    1.30 +	cp -rL $src/obj-firefox/dist/sdk/bin/ply/*.py \
    1.31 +		$fs/usr/lib/$WANTED-devel/sdk/bin/ply &&
    1.32 +	mkdir -p $fs/usr/lib/$WANTED-devel/sdk/lib &&
    1.33 +	cp -rL $src/obj-firefox/dist/sdk/lib/* \
    1.34 +		$fs/usr/lib/$WANTED-devel/sdk/lib
    1.35 +	status
    1.36 +
    1.37 +#	printf "Installing npapi files.."
    1.38 +#	mkdir -v $fs/usr/include/$WANTED-$VERSION/npapi &&
    1.39 +#	cp -a $src/dom/plugins/base/*.h $fs/usr/include/$WANTED-$VERSION/npapi
    1.40 +#	status
    1.41  
    1.42  	# /usr/share/idl folder should also be in firefox-dev
    1.43 -	cp -a $_pkg/usr/share $fs/usr
    1.44 +	printf "Installing idl files.."
    1.45 +	mkdir -p $fs/usr/share/$WANTED-$VERSION/idl &&
    1.46 +	cp -rL $src/obj-firefox/dist/idl/* $fs/usr/share/$WANTED-$VERSION/idl
    1.47 +	status
    1.48  
    1.49  	# copy missing *.pc files
    1.50 -	cp -a $stuff/*.pc $fs/usr/lib/pkgconfig
    1.51 -
    1.52 -	# copy missing xpidl files
    1.53 -	cp -a $_pkg/typelib/xpidl/xpidl $fs/usr/lib/firefox-devel/sdk/lib
    1.54 -
    1.55 +	printf "Installing pkgconfig files.."
    1.56 +	mkdir -p $fs/usr/lib/pkgconfig &&
    1.57 +	cp -a $stuff/*.pc $fs/usr/lib/pkgconfig &&
    1.58  	# fix version
    1.59 -	sed -i "s/3\.5\../$VERSION/" $fs/usr/lib/pkgconfig/*
    1.60 +	sed -i "s/VERSION/$VERSION/" $fs/usr/lib/pkgconfig/*
    1.61 +	status
    1.62  }
    1.63  
    1.64  # Pre and post install commands for Tazpkg.
     2.1 --- a/firefox-dev/stuff/firefox-gtkmozembed.pc	Sat Mar 16 21:29:51 2013 +0100
     2.2 +++ b/firefox-dev/stuff/firefox-gtkmozembed.pc	Sat Mar 16 21:31:11 2013 +0100
     2.3 @@ -1,8 +1,8 @@
     2.4  prefix=/usr
     2.5  libdir=/usr/lib/firefox-devel
     2.6  sdkdir=/usr/lib/firefox-devel/sdk
     2.7 -includedir=/usr/include/firefox-3.5.5
     2.8 +includedir=/usr/include/firefox-VERSION
     2.9  
    2.10  Name: mozilla-gtkembedmoz
    2.11  Description: Mozilla Embedding Widget for Gtk+
    2.12 -Version: 3.5.5
    2.13 +Version: VERSION
     3.1 --- a/firefox-dev/stuff/firefox-js.pc	Sat Mar 16 21:29:51 2013 +0100
     3.2 +++ b/firefox-dev/stuff/firefox-js.pc	Sat Mar 16 21:31:11 2013 +0100
     3.3 @@ -1,10 +1,10 @@
     3.4  prefix=/usr
     3.5  libdir=/usr/lib/firefox-devel/sdk/lib
     3.6  sdkdir=/usr/lib/firefox-devel/sdk
     3.7 -includedir=/usr/include/firefox-3.5.5
     3.8 +includedir=/usr/include/firefox-VERSION
     3.9  
    3.10  Name: JavaScript
    3.11  Description: The Mozilla JavaScript Library
    3.12 -Version: 3.5.5
    3.13 +Version: VERSION
    3.14  Libs: -L${sdkdir}/sdk/lib -lmozjs
    3.15  Cflags: -I${includedir} -DXP_UNIX -DJS_THREADSAFE
     4.1 --- a/firefox-dev/stuff/firefox-plugin.pc	Sat Mar 16 21:29:51 2013 +0100
     4.2 +++ b/firefox-dev/stuff/firefox-plugin.pc	Sat Mar 16 21:31:11 2013 +0100
     4.3 @@ -1,10 +1,10 @@
     4.4  prefix=/usr
     4.5  libdir=/usr/lib/firefox-devel/sdk/lib
     4.6  sdkdir=/usr/lib/firefox-devel/sdk
     4.7 -includedir=/usr/include/firefox-3.5.5
     4.8 +includedir=/usr/include/firefox-VERSION
     4.9  
    4.10  Name: Mozilla Plug-In API
    4.11  Description: Mozilla Plug-In API
    4.12 -Version: 3.5.5
    4.13 +Version: VERSION
    4.14  Libs: -L${libdir}
    4.15  Cflags: -I${includedir}
     5.1 --- a/firefox-dev/stuff/firefox-xpcom.pc	Sat Mar 16 21:29:51 2013 +0100
     5.2 +++ b/firefox-dev/stuff/firefox-xpcom.pc	Sat Mar 16 21:31:11 2013 +0100
     5.3 @@ -1,11 +1,11 @@
     5.4  prefix=/usr
     5.5  exec_prefix=/usr
     5.6  libdir=/usr/lib/firefox-devel/sdk/lib
     5.7 -includedir=/usr/include/firefox-3.5.5
     5.8 -idldir=/usr/share/idl/firefox-3.5.5/stable
     5.9 +includedir=/usr/include/firefox-VERSION
    5.10 +idldir=/usr/share/firefox-VERSION/idl
    5.11  
    5.12  Name: XPCOM
    5.13  Description: The Mozilla Cross Platform Component Library
    5.14 -Version: 3.5.5
    5.15 +Version: VERSION
    5.16  Libs: -L${libdir} -lxpcom
    5.17 -Cflags: -I/usr/include/firefox-3.5.5 -I${includedir}
    5.18 +Cflags: -I/usr/include/firefox-VERSION -I${includedir}
     6.1 --- a/firefox-dev/stuff/libxul.pc	Sat Mar 16 21:29:51 2013 +0100
     6.2 +++ b/firefox-dev/stuff/libxul.pc	Sat Mar 16 21:31:11 2013 +0100
     6.3 @@ -1,11 +1,11 @@
     6.4  prefix=/usr
     6.5  libdir=/usr/lib/firefox-devel/sdk/lib
     6.6  sdkdir=/usr/lib/firefox-devel/sdk
     6.7 -includedir=/usr/include/firefox-3.5.5
     6.8 -idldir=/usr/share/idl/firefox-3.5.5
     6.9 +includedir=/usr/include/firefox-VERSION
    6.10 +idldir=/usr/share/idl/firefox-VERSION
    6.11  
    6.12  Name: libxul
    6.13  Description: The Mozilla Runtime and Embedding Engine
    6.14 -Version: 3.5.5
    6.15 +Version: VERSION
    6.16  Libs: -L${sdkdir}/lib -lxpcomglue_s -lxul -lxpcom
    6.17  Cflags: -I${includedir} -fshort-wchar