wok annotate qoauth/receipt @ rev 23915

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