wok annotate qoauth/receipt @ rev 14207

w3m: config receipt to use patches
author Richard Dunbar <mojo@slitaz.org>
date Fri Mar 15 13:42:03 2013 +0000 (2013-03-15)
parents 2f79d601d5bc
children 7d6089953592
rev   line source
pascal@11214 1 # SliTaz package receipt.
pascal@11214 2
pascal@11214 3 PACKAGE="qoauth"
pascal@11214 4 VERSION="1.0"
pascal@11214 5 CATEGORY="development"
pascal@11214 6 SHORT_DESC="OAuth support for Qt applications."
pascal@11214 7 MAINTAINER="ben@seawolfsanctuary.com"
pascal@11214 8 DEPENDS="glibc-locale libQtCore libQtGui libQtNetwork libQtSvg libQtXml \
pascal@11214 9 libQtDesigner libQtScript libQt3Support libQtClucene libQtDBus libQtHelp \
pascal@11214 10 libQtOpenGL libQtSql libQtWebkit"
pascal@11214 11 BUILD_DEPENDS="qmake qca-dev xorg-libX11-dev dbus-dev Qt4-dev slitaz-toolchain"
pascal@11214 12 TARBALL="$PACKAGE-$VERSION-src.tar.bz2"
pascal@11214 13 WEB_SITE="http://github.com/ayoy/$PACKAGE"
pascal@11214 14 WGET_URL="http://files.ayoy.net/$PACKAGE/release/$VERSION/src/$TARBALL"
pascal@11214 15
pascal@11214 16 # Rules to configure and make the package.
pascal@11214 17 compile_rules()
pascal@11214 18 {
pascal@11214 19 # echo -n "Linking..."
pascal@11214 20 # ln -s $src-src $src
pascal@11214 21 # status
pascal@11214 22
pascal@11214 23 cd $src
pascal@11214 24
pascal@11214 25 qmake PREFIX="/usr"
pascal@11214 26 # chmod +x configure
pascal@11214 27 # ./configure \
pascal@11214 28 # --prefix=/usr
pascal@11214 29
pascal@11214 30 patch -u <<ENDOFPATCH
pascal@11214 31 --- Makefile
pascal@11214 32 +++ Makefile
pascal@11214 33 @@ -28,2 +28,1 @@
pascal@11214 34 - sub-src \\
pascal@11214 35 - sub-tests
pascal@11214 36 + sub-src
pascal@11214 37 ENDOFPATCH
pascal@11214 38
pascal@11214 39 status
pascal@11214 40
pascal@11214 41 patch -u <<ENDOFPATCH
pascal@11214 42 --- Makefile
pascal@11214 43 +++ Makefile
pascal@11214 44 @@ -24,8 +24,7 @@
pascal@11214 45 MOVE = mv -f
pascal@11214 46 CHK_DIR_EXISTS= test -d
pascal@11214 47 MKDIR = mkdir -p
pascal@11214 48 -SUBTARGETS = \\
pascal@11214 49 - sub-src
pascal@11214 50 +SUBTARGETS = sub-src
pascal@11214 51
pascal@11214 52 src/\$(MAKEFILE):
pascal@11214 53 @\$(CHK_DIR_EXISTS) src/ || \$(MKDIR) src/
pascal@11214 54 @@ -140,16 +139,16 @@
pascal@11214 55 qmake: qmake_all FORCE
pascal@11214 56 @\$(QMAKE) -unix PREFIX=/usr -o Makefile qoauth.pro
pascal@11214 57
pascal@11214 58 -qmake_all: sub-src-qmake_all sub-tests-qmake_all FORCE
pascal@11214 59 +qmake_all: sub-src-qmake_all FORCE
pascal@11214 60
pascal@11214 61 -make_default: sub-src-make_default-ordered sub-tests-make_default-ordered FORCE
pascal@11214 62 -make_first: sub-src-make_first-ordered sub-tests-make_first-ordered FORCE
pascal@11214 63 -all: sub-src-all-ordered sub-tests-all-ordered FORCE
pascal@11214 64 -clean: sub-src-clean-ordered sub-tests-clean-ordered FORCE
pascal@11214 65 -distclean: sub-src-distclean-ordered sub-tests-distclean-ordered FORCE
pascal@11214 66 +make_default: sub-src-make_default-ordered FORCE
pascal@11214 67 +make_first: sub-src-make_first-ordered FORCE
pascal@11214 68 +all: sub-src-all-ordered FORCE
pascal@11214 69 +clean: sub-src-clean-ordered FORCE
pascal@11214 70 +distclean: sub-src-distclean-ordered FORCE
pascal@11214 71 -\$(DEL_FILE) Makefile
pascal@11214 72 -install_subtargets: sub-src-install_subtargets-ordered sub-tests-install_subtargets-ordered FORCE
pascal@11214 73 -uninstall_subtargets: sub-src-uninstall_subtargets-ordered sub-tests-uninstall_subtargets-ordered FORCE
pascal@11214 74 +install_subtargets: sub-src-install_subtargets-ordered FORCE
pascal@11214 75 +uninstall_subtargets: sub-src-uninstall_subtargets-ordered FORCE
pascal@11214 76
pascal@11214 77 check: sub-tests
pascal@11214 78 ( cd tests/ut_interface && ./ut_interface ) && ( cd tests/ft_interface && ./ft_interface )
pascal@11214 79 ENDOFPATCH
pascal@11214 80
pascal@11214 81 status
pascal@11214 82
pascal@11214 83 if [ -f /usr/include/QtOAuth ] || [ -d /usr/include/QtOAuth ] ; then
pascal@11214 84 echo -n "Removing QtOAuth placeholder... "
pascal@11214 85 rm -rf /usr/include/QtOAuth/
pascal@11214 86 status && echo
pascal@11214 87 fi
pascal@11214 88
gokhlayeh@11574 89 make $MAKEFLAGS && make DESTDIR=$_pkg install
pascal@11214 90 }
pascal@11214 91
pascal@11214 92 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11214 93 genpkg_rules()
pascal@11214 94 {
pascal@11214 95 mkdir -p $fs/usr
pascal@11214 96 for DIRECTORY in lib include ; do
pascal@11214 97 cp -a $src/$DIRECTORY $fs/usr
pascal@11214 98 done
pascal@11214 99 cp $src/src/*.h $fs/usr/include
pascal@11214 100
pascal@11214 101 mv $fs/usr/include/QtOAuth $fs/usr/include/QtOAuth.bak
pascal@11214 102 mkdir $fs/usr/include/QtOAuth/
pascal@11214 103 mv $fs/usr/include/interface.h $fs/usr/include/QtOAuth/interface.h
pascal@11214 104 cp $fs/usr/include/QtOAuth/interface.h $fs/usr/include/interface.h
pascal@11214 105 mv $fs/usr/include/QtOAuth.bak $fs/usr/include/QtOAuth/QtOAuth
pascal@11214 106
pascal@11214 107 mkdir -p $fs/usr/share/qt/mkspecs/features && \
pascal@11214 108 cp $src/oauth.prf $fs/usr/share/qt/mkspecs/features/oauth.prf
pascal@11214 109
pascal@11214 110 # Copy .desktop file:
pascal@11214 111 # cp -a $WOK/$PACKAGE/stuff/* $fs/usr
pascal@11214 112 }
pascal@11214 113
pascal@11214 114 pre_install()
pascal@11214 115 {
pascal@11214 116 if [ -f /usr/include/QtOAuth ] || [ -d /usr/include/QtOAuth ] ; then
pascal@11214 117 echo -n "Removing QtOAuth placeholder... "
pascal@11214 118 rm -rf /usr/include/QtOAuth/
pascal@11214 119 status && echo
pascal@11214 120 fi
pascal@11214 121 }