wok annotate qoauth/receipt @ rev 21209

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