wok-undigest rev 168

Add: qTwitter v0.10.0 (Twitter/StatusNet client) and deps:
- Qt4-QCA v2.0.2 (Qt Crypto Arch)
- Qt4-QCA-OSSL v2.0.0-beta3 (SSL plug-in)
- QoAuth v1.0 (Qt oAuth) -- may need fixes on file locations
author Ben Arnold <ben@seawolfsanctuary.com>
date Sat Sep 04 21:46:16 2010 +0100 (2010-09-04)
parents 4831d22201aa
children 4af789ab716d
files Qt4-qca-ossl/receipt Qt4-qca/receipt qoauth/receipt qtwitter/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Qt4-qca-ossl/receipt	Sat Sep 04 21:46:16 2010 +0100
     1.3 @@ -0,0 +1,81 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +NAME="qca-ossl"
     1.7 +PACKAGE="Qt4-$NAME"
     1.8 +MAJORVERSION="2.0"
     1.9 +VERSION="2.0.0-beta3"
    1.10 +CATEGORY="development"
    1.11 +SHORT_DESC="OpenSSL plug-in for the Qt Cryptographic Architecture (QCA)."
    1.12 +MAINTAINER="ben@seawolfsanctuary.com"
    1.13 +DEPENDS="glibc-locale libQtCore libQtGui libQtNetwork libQtSvg libQtXml \
    1.14 +libQtDesigner libQtScript libQt3Support libQtClucene libQtDBus libQtHelp \
    1.15 +libQtOpenGL libQtSql libQtWebkit Qt4-qca openssl"
    1.16 +BUILD_DEPENDS="xorg-libX11-dev dbus-dev openssl-dev Qt4-dev Qt4-qca \
    1.17 +slitaz-toolchain"
    1.18 +TARBALL="$NAME-$VERSION.tar.bz2"
    1.19 +WEB_SITE="http://delta.affinix.com/$NAME"
    1.20 +WGET_URL="http://delta.affinix.com/download/qca/$MAJORVERSION/plugins/$TARBALL"
    1.21 +
    1.22 +# Rules to configure and make the package.
    1.23 +compile_rules()
    1.24 +{
    1.25 +	cd $NAME-$VERSION
    1.26 +	
    1.27 +	patch -u <<EOP
    1.28 +--- qca-ossl.cpp
    1.29 ++++ qca-ossl.cpp
    1.30 +@@ -330,1 +330,1 @@
    1.31 +-	X509_EXTENSION *ex = X509V3_EXT_conf_nid(NULL, &ctx, NID_subject_key_identifier, "hash");
    1.32 ++	X509_EXTENSION *ex = X509V3_EXT_conf_nid(NULL, &ctx, NID_subject_key_identifier, (char *)"hash");
    1.33 +EOP
    1.34 +	status
    1.35 +	patch -u <<EOP
    1.36 +--- qca-ossl.cpp
    1.37 ++++ qca-ossl.cpp
    1.38 +@@ -6597,9 +6597,11 @@
    1.39 + #ifdef SHA512_DIGEST_LENGTH
    1.40 + 	list += "sha512";
    1.41 + #endif
    1.42 ++ /*
    1.43 + #ifdef OBJ_whirlpool
    1.44 + 	list += "whirlpool";
    1.45 + #endif
    1.46 ++ */
    1.47 + 	return list;
    1.48 + }
    1.49 +EOP
    1.50 +	status
    1.51 +	patch -u <<EOP
    1.52 +--- qca-ossl.cpp
    1.53 ++++ qca-ossl.cpp
    1.54 +@@ -6812,10 +6812,12 @@
    1.55 + 		else if ( type == "sha512" )
    1.56 + 			return new opensslHashContext( EVP_sha512(), this, type);
    1.57 + #endif
    1.58 ++/*
    1.59 + #ifdef OBJ_whirlpool
    1.60 + 		else if ( type == "whirlpool" )
    1.61 + 			return new opensslHashContext( EVP_whirlpool(), this, type);
    1.62 + #endif
    1.63 ++*/
    1.64 + 		else if ( type == "pbkdf1(sha1)" )
    1.65 + 			return new opensslPbkdf1Context( EVP_sha1(), this, type );
    1.66 + 		else if ( type == "pbkdf1(md2)" )
    1.67 +EOP
    1.68 +	status
    1.69 +	
    1.70 +	chmod +x configure
    1.71 +	./configure \
    1.72 +		--qtdir=/usr/lib/qt && \
    1.73 +	make -j4 && make DESTDIR=$_pkg install
    1.74 +}
    1.75 +
    1.76 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.77 +genpkg_rules()
    1.78 +{
    1.79 +	mkdir -p $fs/usr/lib/qt/plugins/crypto
    1.80 +	cp -a $WOK/$PACKAGE/$NAME-$VERSION/lib/* $fs/usr/lib/qt/plugins/crypto/
    1.81 +
    1.82 +	# Copy .desktop file:
    1.83 +#	cp -a $WOK/$PACKAGE/stuff/* $fs/usr
    1.84 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/Qt4-qca/receipt	Sat Sep 04 21:46:16 2010 +0100
     2.3 @@ -0,0 +1,40 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +NAME="qca"
     2.7 +PACKAGE="Qt4-$NAME"
     2.8 +MAJORVERSION="2.0"
     2.9 +VERSION="2.0.2"
    2.10 +CATEGORY="development"
    2.11 +SHORT_DESC="The Qt Cryptographic Architecture (QCA)."
    2.12 +MAINTAINER="ben@seawolfsanctuary.com"
    2.13 +DEPENDS="glibc-locale libQtCore libQtGui libQtNetwork libQtSvg libQtXml \
    2.14 +libQtDesigner libQtScript libQt3Support libQtClucene libQtDBus libQtHelp \
    2.15 +libQtOpenGL libQtSql libQtWebkit"
    2.16 +BUILD_DEPENDS="xorg-libX11-dev dbus-dev Qt4-dev slitaz-toolchain"
    2.17 +TARBALL="$NAME-$VERSION.tar.bz2"
    2.18 +WEB_SITE="http://delta.affinix.com/$NAME"
    2.19 +WGET_URL="http://delta.affinix.com/download/$NAME/$MAJORVERSION/$TARBALL"
    2.20 +
    2.21 +# Rules to configure and make the package.
    2.22 +compile_rules()
    2.23 +{
    2.24 +	cd $NAME-$VERSION
    2.25 +	
    2.26 +	chmod +x configure
    2.27 +	./configure \
    2.28 +		--prefix=/usr \
    2.29 +		--disable-tests && \
    2.30 +	make -j4 && make DESTDIR=$_pkg install
    2.31 +}
    2.32 +
    2.33 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.34 +genpkg_rules()
    2.35 +{
    2.36 +	mkdir -p $fs/usr
    2.37 +	for DIR in bin lib include ; do
    2.38 +		cp -a $WOK/$PACKAGE/$NAME-$VERSION/$DIR $fs/usr
    2.39 +	done
    2.40 +
    2.41 +	# Copy .desktop file:
    2.42 +#	cp -a $WOK/$PACKAGE/stuff/* $fs/usr
    2.43 +}
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/qoauth/receipt	Sat Sep 04 21:46:16 2010 +0100
     3.3 @@ -0,0 +1,120 @@
     3.4 +# SliTaz package receipt.
     3.5 +
     3.6 +PACKAGE="qoauth"
     3.7 +VERSION="1.0"
     3.8 +CATEGORY="development"
     3.9 +SHORT_DESC="OAuth support for Qt applications."
    3.10 +MAINTAINER="ben@seawolfsanctuary.com"
    3.11 +DEPENDS="glibc-locale libQtCore libQtGui libQtNetwork libQtSvg libQtXml \
    3.12 +libQtDesigner libQtScript libQt3Support libQtClucene libQtDBus libQtHelp \
    3.13 +libQtOpenGL libQtSql libQtWebkit"
    3.14 +BUILD_DEPENDS="xorg-libX11-dev dbus-dev Qt4-dev slitaz-toolchain"
    3.15 +TARBALL="$PACKAGE-$VERSION-src.tar.bz2"
    3.16 +WEB_SITE="http://github.com/ayoy/$PACKAGE"
    3.17 +WGET_URL="http://files.ayoy.net/$PACKAGE/release/$VERSION/src/$TARBALL"
    3.18 +
    3.19 +# Rules to configure and make the package.
    3.20 +compile_rules()
    3.21 +{
    3.22 +#	echo -n "Linking..."
    3.23 +#	ln -s $src-src $src
    3.24 +#	status
    3.25 +
    3.26 +	cd $src
    3.27 +
    3.28 +	qmake PREFIX="/usr"
    3.29 +#	chmod +x configure
    3.30 +#	./configure \
    3.31 +#		--prefix=/usr
    3.32 +
    3.33 +patch -u <<ENDOFPATCH
    3.34 +--- Makefile
    3.35 ++++ Makefile
    3.36 +@@ -28,2 +28,1 @@
    3.37 +-		sub-src \\
    3.38 +-		sub-tests
    3.39 ++		sub-src
    3.40 +ENDOFPATCH
    3.41 +
    3.42 +status
    3.43 +
    3.44 +patch -u <<ENDOFPATCH
    3.45 +--- Makefile
    3.46 ++++ Makefile
    3.47 +@@ -24,8 +24,7 @@
    3.48 + MOVE          = mv -f
    3.49 + CHK_DIR_EXISTS= test -d
    3.50 + MKDIR         = mkdir -p
    3.51 +-SUBTARGETS    =  \\
    3.52 +-		sub-src
    3.53 ++SUBTARGETS    = sub-src
    3.54 +
    3.55 + src/\$(MAKEFILE):
    3.56 + 	@\$(CHK_DIR_EXISTS) src/ || \$(MKDIR) src/
    3.57 +@@ -140,16 +139,16 @@
    3.58 + qmake: qmake_all FORCE
    3.59 + 	@\$(QMAKE) -unix PREFIX=/usr -o Makefile qoauth.pro
    3.60 +
    3.61 +-qmake_all: sub-src-qmake_all sub-tests-qmake_all FORCE
    3.62 ++qmake_all: sub-src-qmake_all FORCE
    3.63 +
    3.64 +-make_default: sub-src-make_default-ordered sub-tests-make_default-ordered FORCE
    3.65 +-make_first: sub-src-make_first-ordered sub-tests-make_first-ordered FORCE
    3.66 +-all: sub-src-all-ordered sub-tests-all-ordered FORCE
    3.67 +-clean: sub-src-clean-ordered sub-tests-clean-ordered FORCE
    3.68 +-distclean: sub-src-distclean-ordered sub-tests-distclean-ordered FORCE
    3.69 ++make_default: sub-src-make_default-ordered FORCE
    3.70 ++make_first: sub-src-make_first-ordered FORCE
    3.71 ++all: sub-src-all-ordered FORCE
    3.72 ++clean: sub-src-clean-ordered FORCE
    3.73 ++distclean: sub-src-distclean-ordered FORCE
    3.74 + 	-\$(DEL_FILE) Makefile
    3.75 +-install_subtargets: sub-src-install_subtargets-ordered sub-tests-install_subtargets-ordered FORCE
    3.76 +-uninstall_subtargets: sub-src-uninstall_subtargets-ordered sub-tests-uninstall_subtargets-ordered FORCE
    3.77 ++install_subtargets: sub-src-install_subtargets-ordered FORCE
    3.78 ++uninstall_subtargets: sub-src-uninstall_subtargets-ordered FORCE
    3.79 +
    3.80 + check: sub-tests
    3.81 + 	( cd tests/ut_interface && ./ut_interface ) && ( cd tests/ft_interface && ./ft_interface )
    3.82 +ENDOFPATCH
    3.83 +
    3.84 +status
    3.85 +
    3.86 +	if [ -f /usr/include/QtOAuth ] || [ -d /usr/include/QtOAuth ] ; then
    3.87 +		echo -n "Removing QtOAuth placeholder... "
    3.88 +		rm -rf /usr/include/QtOAuth/
    3.89 +		status && echo
    3.90 +	fi
    3.91 +
    3.92 +	make -j4 && make DESTDIR=$_pkg install
    3.93 +}
    3.94 +
    3.95 +# Rules to gen a SliTaz package suitable for Tazpkg.
    3.96 +genpkg_rules()
    3.97 +{
    3.98 +	mkdir -p $fs/usr
    3.99 +	for DIRECTORY in lib include ; do
   3.100 +		cp -a $src/$DIRECTORY $fs/usr
   3.101 +	done
   3.102 +
   3.103 +	mv $fs/usr/include/QtOAuth $fs/usr/include/QtOAuth.bak
   3.104 +	mkdir $fs/usr/include/QtOAuth/
   3.105 +	mv $fs/usr/include/interface.h $fs/usr/include/QtOAuth/interface.h
   3.106 +	cp $fs/usr/include/QtOAuth/interface.h $fs/usr/include/interface.h
   3.107 +	mv $fs/usr/include/QtOAuth.bak $fs/usr/include/QtOAuth/QtOAuth
   3.108 +
   3.109 +	mkdir -p $fs/usr/share/qt/mkspecs/features && \
   3.110 +	cp $src/oauth.prf $fs/usr/share/qt/mkspecs/features/oauth.prf
   3.111 +
   3.112 +	# Copy .desktop file:
   3.113 +#	cp -a $WOK/$PACKAGE/stuff/* $fs/usr
   3.114 +}
   3.115 +
   3.116 +pre_install()
   3.117 +{
   3.118 +	if [ -f /usr/include/QtOAuth ] || [ -d /usr/include/QtOAuth ] ; then
   3.119 +		echo -n "Removing QtOAuth placeholder... "
   3.120 +		rm -rf /usr/include/QtOAuth/
   3.121 +		status && echo
   3.122 +	fi
   3.123 +}
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/qtwitter/receipt	Sat Sep 04 21:46:16 2010 +0100
     4.3 @@ -0,0 +1,53 @@
     4.4 +# SliTaz package receipt.
     4.5 +
     4.6 +PACKAGE="qtwitter"
     4.7 +VERSION="0.10.0"
     4.8 +CATEGORY="internet"
     4.9 +SHORT_DESC="A Qt-based, cross-network microblogging client."
    4.10 +MAINTAINER="ben@seawolfsanctuary.com"
    4.11 +DEPENDS="glibc-locale libQtCore libQtGui libQtNetwork libQtSvg libQtXml \
    4.12 +libQtDesigner libQtScript libQt3Support libQtClucene libQtDBus libQtHelp \
    4.13 +libQtOpenGL libQtSql libQtWebkit qoauth"
    4.14 +BUILD_DEPENDS="xorg-libX11-dev dbus-dev Qt4-dev qoauth slitaz-toolchain"
    4.15 +TARBALL="$PACKAGE-$VERSION-src.tar.gz"
    4.16 +WEB_SITE="http://www.ayoy.net/$PACKAGE"
    4.17 +WGET_URL="http://files.ayoy.net/$PACKAGE/release/$VERSION/src/$TARBALL"
    4.18 +
    4.19 +# Rules to configure and make the package.
    4.20 +compile_rules()
    4.21 +{
    4.22 +	echo -n "Linking..."
    4.23 +		ln -s $WOK/$PACKAGE-$VERSION-src $src
    4.24 +	status
    4.25 +
    4.26 +	cd $src
    4.27 +	
    4.28 +	qmake PREFIX="/usr" && \
    4.29 +	make -j4 && make DESTDIR=$_pkg install
    4.30 +}
    4.31 +
    4.32 +# Rules to gen a SliTaz package suitable for Tazpkg.
    4.33 +genpkg_rules()
    4.34 +{
    4.35 +	mkdir -p $fs/usr/lib $fs/usr/bin
    4.36 +
    4.37 +	# Binaries
    4.38 +	for FILE in qtwitter ; do
    4.39 +		cp -a $src/$FILE $fs/usr/bin
    4.40 +	done
    4.41 +	# Libraries
    4.42 +	for FILE in \
    4.43 +	liburlshortener.so.1.0.0 \
    4.44 +	liburlshortener.so.1.0 \
    4.45 +	liburlshortener.so.1 \
    4.46 +	liburlshortener.so \
    4.47 +	libtwitterapi.so.0.9.1 \
    4.48 +	libtwitterapi.so.0.9 \
    4.49 +	libtwitterapi.so.0 \
    4.50 +	libtwitterapi.so ; do
    4.51 +		cp -a $src/$FILE $fs/usr/lib
    4.52 +	done
    4.53 +
    4.54 +	# Copy .desktop file:
    4.55 +#	cp -a $WOK/$PACKAGE/stuff/* $fs/usr
    4.56 +}