wok-4.x diff qoauth/receipt @ rev 11390
Update BUILD_DEPENDS of slitaz-18n according co CORE_PKGS; ensure thoses are cooked before slitaz-18n
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Sat Dec 10 05:08:01 2011 +0100 (2011-12-10) |
parents | |
children | 8e4c74abdf74 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/qoauth/receipt Sat Dec 10 05:08:01 2011 +0100 1.3 @@ -0,0 +1,121 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="qoauth" 1.7 +VERSION="1.0" 1.8 +CATEGORY="development" 1.9 +SHORT_DESC="OAuth support for Qt applications." 1.10 +MAINTAINER="ben@seawolfsanctuary.com" 1.11 +DEPENDS="glibc-locale libQtCore libQtGui libQtNetwork libQtSvg libQtXml \ 1.12 +libQtDesigner libQtScript libQt3Support libQtClucene libQtDBus libQtHelp \ 1.13 +libQtOpenGL libQtSql libQtWebkit" 1.14 +BUILD_DEPENDS="qmake qca-dev xorg-libX11-dev dbus-dev Qt4-dev slitaz-toolchain" 1.15 +TARBALL="$PACKAGE-$VERSION-src.tar.bz2" 1.16 +WEB_SITE="http://github.com/ayoy/$PACKAGE" 1.17 +WGET_URL="http://files.ayoy.net/$PACKAGE/release/$VERSION/src/$TARBALL" 1.18 + 1.19 +# Rules to configure and make the package. 1.20 +compile_rules() 1.21 +{ 1.22 +# echo -n "Linking..." 1.23 +# ln -s $src-src $src 1.24 +# status 1.25 + 1.26 + cd $src 1.27 + 1.28 + qmake PREFIX="/usr" 1.29 +# chmod +x configure 1.30 +# ./configure \ 1.31 +# --prefix=/usr 1.32 + 1.33 +patch -u <<ENDOFPATCH 1.34 +--- Makefile 1.35 ++++ Makefile 1.36 +@@ -28,2 +28,1 @@ 1.37 +- sub-src \\ 1.38 +- sub-tests 1.39 ++ sub-src 1.40 +ENDOFPATCH 1.41 + 1.42 +status 1.43 + 1.44 +patch -u <<ENDOFPATCH 1.45 +--- Makefile 1.46 ++++ Makefile 1.47 +@@ -24,8 +24,7 @@ 1.48 + MOVE = mv -f 1.49 + CHK_DIR_EXISTS= test -d 1.50 + MKDIR = mkdir -p 1.51 +-SUBTARGETS = \\ 1.52 +- sub-src 1.53 ++SUBTARGETS = sub-src 1.54 + 1.55 + src/\$(MAKEFILE): 1.56 + @\$(CHK_DIR_EXISTS) src/ || \$(MKDIR) src/ 1.57 +@@ -140,16 +139,16 @@ 1.58 + qmake: qmake_all FORCE 1.59 + @\$(QMAKE) -unix PREFIX=/usr -o Makefile qoauth.pro 1.60 + 1.61 +-qmake_all: sub-src-qmake_all sub-tests-qmake_all FORCE 1.62 ++qmake_all: sub-src-qmake_all FORCE 1.63 + 1.64 +-make_default: sub-src-make_default-ordered sub-tests-make_default-ordered FORCE 1.65 +-make_first: sub-src-make_first-ordered sub-tests-make_first-ordered FORCE 1.66 +-all: sub-src-all-ordered sub-tests-all-ordered FORCE 1.67 +-clean: sub-src-clean-ordered sub-tests-clean-ordered FORCE 1.68 +-distclean: sub-src-distclean-ordered sub-tests-distclean-ordered FORCE 1.69 ++make_default: sub-src-make_default-ordered FORCE 1.70 ++make_first: sub-src-make_first-ordered FORCE 1.71 ++all: sub-src-all-ordered FORCE 1.72 ++clean: sub-src-clean-ordered FORCE 1.73 ++distclean: sub-src-distclean-ordered FORCE 1.74 + -\$(DEL_FILE) Makefile 1.75 +-install_subtargets: sub-src-install_subtargets-ordered sub-tests-install_subtargets-ordered FORCE 1.76 +-uninstall_subtargets: sub-src-uninstall_subtargets-ordered sub-tests-uninstall_subtargets-ordered FORCE 1.77 ++install_subtargets: sub-src-install_subtargets-ordered FORCE 1.78 ++uninstall_subtargets: sub-src-uninstall_subtargets-ordered FORCE 1.79 + 1.80 + check: sub-tests 1.81 + ( cd tests/ut_interface && ./ut_interface ) && ( cd tests/ft_interface && ./ft_interface ) 1.82 +ENDOFPATCH 1.83 + 1.84 +status 1.85 + 1.86 + if [ -f /usr/include/QtOAuth ] || [ -d /usr/include/QtOAuth ] ; then 1.87 + echo -n "Removing QtOAuth placeholder... " 1.88 + rm -rf /usr/include/QtOAuth/ 1.89 + status && echo 1.90 + fi 1.91 + 1.92 + make -j4 && make DESTDIR=$_pkg install 1.93 +} 1.94 + 1.95 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.96 +genpkg_rules() 1.97 +{ 1.98 + mkdir -p $fs/usr 1.99 + for DIRECTORY in lib include ; do 1.100 + cp -a $src/$DIRECTORY $fs/usr 1.101 + done 1.102 + cp $src/src/*.h $fs/usr/include 1.103 + 1.104 + mv $fs/usr/include/QtOAuth $fs/usr/include/QtOAuth.bak 1.105 + mkdir $fs/usr/include/QtOAuth/ 1.106 + mv $fs/usr/include/interface.h $fs/usr/include/QtOAuth/interface.h 1.107 + cp $fs/usr/include/QtOAuth/interface.h $fs/usr/include/interface.h 1.108 + mv $fs/usr/include/QtOAuth.bak $fs/usr/include/QtOAuth/QtOAuth 1.109 + 1.110 + mkdir -p $fs/usr/share/qt/mkspecs/features && \ 1.111 + cp $src/oauth.prf $fs/usr/share/qt/mkspecs/features/oauth.prf 1.112 + 1.113 + # Copy .desktop file: 1.114 +# cp -a $WOK/$PACKAGE/stuff/* $fs/usr 1.115 +} 1.116 + 1.117 +pre_install() 1.118 +{ 1.119 + if [ -f /usr/include/QtOAuth ] || [ -d /usr/include/QtOAuth ] ; then 1.120 + echo -n "Removing QtOAuth placeholder... " 1.121 + rm -rf /usr/include/QtOAuth/ 1.122 + status && echo 1.123 + fi 1.124 +}