wt: add wt 2.2.0, a C++ Web Toolkit
authorJeremy Lainé <jeremy.laine@m4x.org>
Fri, 17 Oct 2008 23:37:17 +0000 (01:37 +0200)
committerJeremy Lainé <jeremy.laine@m4x.org>
Fri, 17 Oct 2008 23:37:17 +0000 (01:37 +0200)
conf/checksums.ini
packages/wt/files/cmakelist.patch [new file with mode: 0644]
packages/wt/wt_2.2.0.bb [new file with mode: 0644]

index 99c15e2..186ed0e 100644 (file)
@@ -15282,6 +15282,10 @@ sha256=f70b18243e049bbda66254388b6e94d404e747d913b8496d6e93a9c56bbf4af2
 md5=eb06a9a05d3916addf9451297a558aa2
 sha256=0c10e59dd079c4e5d9ec6eebe9a8ac0e1b9e472cccef49c705f87a78391e79fa
 
+[http://downloads.sourceforge.net/witty/wt-2.2.0.tar.gz]
+md5=c990186db06cf188cb267d12bc21e2da
+sha256=f91445e5e1a02ee16f0bc1eb31a1cdfa53c4bb1e1cb4f76fae33436d472e9345
+
 [http://downloads.sourceforge.net/wvware/wv-1.2.0.tar.gz]
 md5=b6319d5e75611fe2210453b5feb82c0c
 sha256=a76f44468e78591e6d510d326702e7c3999d2b9dd3ab8ab8c1c9811fd5b111e4
diff --git a/packages/wt/files/cmakelist.patch b/packages/wt/files/cmakelist.patch
new file mode 100644 (file)
index 0000000..405914a
--- /dev/null
@@ -0,0 +1,8 @@
+diff -urN wt-2.2.0.orig/src/Wt/Ext/CMakeLists.txt wt-2.2.0/src/Wt/Ext/CMakeLists.txt
+--- wt-2.2.0.orig/src/Wt/Ext/CMakeLists.txt    2008-07-15 08:25:54.000000000 +0200
++++ wt-2.2.0/src/Wt/Ext/CMakeLists.txt 2008-10-17 22:37:38.000000000 +0200
+@@ -1,2 +1,3 @@
+-INSTALL_FILES(/include/Wt/Ext "...+[^Ch~]$")
++# avoid CMake* getting included
++INSTALL_FILES(/include/Wt/Ext "^[A-Z][a-z].*[^Ch~]$")
+ INSTALL_FILES(/include/Wt/Ext ExtDllDefs.h)
diff --git a/packages/wt/wt_2.2.0.bb b/packages/wt/wt_2.2.0.bb
new file mode 100644 (file)
index 0000000..4bd1f37
--- /dev/null
@@ -0,0 +1,27 @@
+DESCRIPTION = "A C++ Web Toolkit"
+PRIORITY = "optional"
+SECTION = "devel"
+LICENSE = "GPL"
+DEPENDS = "boost"
+FILE_PR = "r1"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/witty/wt-${PV}.tar.gz \
+       file://cmakelist.patch;patch=1"
+
+FILES_${PN} += "${datadir}/Wt"
+FILES_${PN}-dev += "${datadir}/cmake-2.*"
+
+inherit cmake
+
+STAGE_TEMP = "${WORKDIR}/temp-staging"
+
+do_stage() {
+       rm -rf ${STAGE_TEMP}
+       mkdir -p ${STAGE_TEMP}
+       oe_runmake DESTDIR="${STAGE_TEMP}" install
+       cp -pPR ${STAGE_TEMP}/${includedir}/* ${STAGING_INCDIR}
+       cp -pPR ${STAGE_TEMP}/${libdir}/* ${STAGING_LIBDIR}
+       cp -pPR ${STAGE_TEMP}/${datadir}/cmake-2.* ${STAGING_DATADIR}
+       rm -rf ${STAGE_TEMP}
+}
+