summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorryoon <ryoon@pkgsrc.org>2011-07-29 19:32:18 +0000
committerryoon <ryoon@pkgsrc.org>2011-07-29 19:32:18 +0000
commit3b2e170d692a4af011a337bde4e2b7c874e96ae2 (patch)
tree5105dbe54219a25ffd9a56c1f3df101e941e61fd
parent6478818e8557c34544786466479263cbd7c17bd5 (diff)
downloadpkgsrc-3b2e170d692a4af011a337bde4e2b7c874e96ae2.tar.gz
Import FlightCrew-0.7.1 as textproc/FlightCrew from wip/FlightCrew
FlightCrew is a C++, cross-platform, native code epub validator. It is composed of three parts: * FlightCrew, the validation library; * FlightCrew-cli, the command-line front-end to the FlightCrew library; * FlightCrew-gui, the GUI front-end to the FlightCrew library;
-rw-r--r--textproc/FlightCrew/DESCR6
-rw-r--r--textproc/FlightCrew/Makefile37
-rw-r--r--textproc/FlightCrew/PLIST3
-rw-r--r--textproc/FlightCrew/distinfo7
-rw-r--r--textproc/FlightCrew/patches/patch-CMakeLists.txt23
-rw-r--r--textproc/FlightCrew/patches/patch-src_FlightCrew_tests_CMakeLists.txt15
6 files changed, 91 insertions, 0 deletions
diff --git a/textproc/FlightCrew/DESCR b/textproc/FlightCrew/DESCR
new file mode 100644
index 00000000000..75747dffcdb
--- /dev/null
+++ b/textproc/FlightCrew/DESCR
@@ -0,0 +1,6 @@
+FlightCrew is a C++, cross-platform, native code epub validator.
+It is composed of three parts:
+
+* FlightCrew, the validation library;
+* FlightCrew-cli, the command-line front-end to the FlightCrew library;
+* FlightCrew-gui, the GUI front-end to the FlightCrew library;
diff --git a/textproc/FlightCrew/Makefile b/textproc/FlightCrew/Makefile
new file mode 100644
index 00000000000..8cd95c602cf
--- /dev/null
+++ b/textproc/FlightCrew/Makefile
@@ -0,0 +1,37 @@
+# $NetBSD: Makefile,v 1.1.1.1 2011/07/29 19:32:18 ryoon Exp $
+#
+
+DISTNAME= FlightCrew-0.7.1-Code
+PKGNAME= ${DISTNAME:S/-Code//}
+CATEGORIES= textproc
+MASTER_SITES= http://flightcrew.googlecode.com/files/
+EXTRACT_SUFX= .zip
+
+MAINTAINER= ryoon@NetBSD.org
+HOMEPAGE= http://code.google.com/p/flightcrew/
+COMMENT= EPUB validator
+LICENSE= gnu-lgpl-v3 AND cc-by-sa-v3.0
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+USE_LANGUAGES= c c++
+USE_CMAKE= yes
+
+BUILDLINK_TRANSFORM+= l:BoostParts:boost_date_time:boost_filesystem:boost_regex:boost_system:boost_thread:boost_program_options
+BUILDLINK_TRANSFORM+= l:Xerces:xerces-c
+BUILDLINK_TRANSFORM+= l:zlib:z
+
+SUBST_CLASSES+= fix-damaged
+SUBST_STAGE.fix-damaged= pre-patch
+SUBST_MESSAGE.fix-damaged= fixing
+SUBST_FILES.fix-damaged= src/FlightCrew/tests/misc_tests/ConvertUtf8PathToBoostPath_test.cpp
+SUBST_SED.fix-damaged+= -e "2,2s/^/\//" # commented-out
+SUBST_SED.fix-damaged+= -e "1,1d" # deleted
+
+.include "../../devel/googletest/buildlink3.mk"
+.include "../../devel/gmock/buildlink3.mk"
+.include "../../textproc/xerces-c/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../devel/boost-libs/buildlink3.mk"
+.include "../../x11/qt4-tools/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/FlightCrew/PLIST b/textproc/FlightCrew/PLIST
new file mode 100644
index 00000000000..0290c66305a
--- /dev/null
+++ b/textproc/FlightCrew/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2011/07/29 19:32:18 ryoon Exp $
+bin/flightcrew-cli
+bin/flightcrew-gui
diff --git a/textproc/FlightCrew/distinfo b/textproc/FlightCrew/distinfo
new file mode 100644
index 00000000000..215c6717c46
--- /dev/null
+++ b/textproc/FlightCrew/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2011/07/29 19:32:18 ryoon Exp $
+
+SHA1 (FlightCrew-0.7.1-Code.zip) = fda658c25b5991caa6a912d5f4198f0222bc1466
+RMD160 (FlightCrew-0.7.1-Code.zip) = 591f25e8f7631a381f4a00cc1e63d6974d27df86
+Size (FlightCrew-0.7.1-Code.zip) = 7738824 bytes
+SHA1 (patch-CMakeLists.txt) = 8423ab7b53fad354e04fdfd159b070a8f8bf61f9
+SHA1 (patch-src_FlightCrew_tests_CMakeLists.txt) = a505955df3d6d1901f0a331311fa401ba9fec3ba
diff --git a/textproc/FlightCrew/patches/patch-CMakeLists.txt b/textproc/FlightCrew/patches/patch-CMakeLists.txt
new file mode 100644
index 00000000000..4a5bb109b7b
--- /dev/null
+++ b/textproc/FlightCrew/patches/patch-CMakeLists.txt
@@ -0,0 +1,23 @@
+$NetBSD: patch-CMakeLists.txt,v 1.1.1.1 2011/07/29 19:32:18 ryoon Exp $
+
+* Use external boost, xerces-c, zlib, and gmock.
+
+--- CMakeLists.txt.orig 2010-11-11 10:05:50.000000000 +0000
++++ CMakeLists.txt
+@@ -42,12 +42,12 @@ set( CMAKE_OSX_SYSROOT "/Developer/SDKs/
+ set( CMAKE_OSX_ARCHITECTURES "i386;x86_64" )
+
+ # The parsing order is significant!
+-add_subdirectory( src/BoostParts )
+-add_subdirectory( src/Xerces )
++#add_subdirectory( src/BoostParts )
++#add_subdirectory( src/Xerces )
+ add_subdirectory( src/XercesExtensions )
+-add_subdirectory( src/zlib )
++#add_subdirectory( src/zlib )
+ add_subdirectory( src/zipios )
+-add_subdirectory( src/googlemock )
++#add_subdirectory( src/googlemock )
+ add_subdirectory( src/FlightCrew )
+ add_subdirectory( src/FlightCrew-cli )
+
diff --git a/textproc/FlightCrew/patches/patch-src_FlightCrew_tests_CMakeLists.txt b/textproc/FlightCrew/patches/patch-src_FlightCrew_tests_CMakeLists.txt
new file mode 100644
index 00000000000..bda6e8bb37d
--- /dev/null
+++ b/textproc/FlightCrew/patches/patch-src_FlightCrew_tests_CMakeLists.txt
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_FlightCrew_tests_CMakeLists.txt,v 1.1.1.1 2011/07/29 19:32:18 ryoon Exp $
+
+* libgtest is needed.
+
+--- src/FlightCrew/tests/CMakeLists.txt.orig 2010-11-11 10:05:50.000000000 +0000
++++ src/FlightCrew/tests/CMakeLists.txt
+@@ -65,7 +65,7 @@ precompiled_header( TEST_SOURCES ALL_INC
+
+ add_executable( ${PROJECT_NAME} ${TEST_SOURCES} )
+
+-target_link_libraries( ${PROJECT_NAME} FlightCrew gmock )
++target_link_libraries( ${PROJECT_NAME} FlightCrew gmock gtest )
+
+ #############################################################################
+