[Midnightbsd-cvs] mports [18437] trunk/devel/cmake-gui: update
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sat Mar 28 17:41:09 EDT 2015
Revision: 18437
http://svnweb.midnightbsd.org/mports/?rev=18437
Author: laffer1
Date: 2015-03-28 17:41:08 -0400 (Sat, 28 Mar 2015)
Log Message:
-----------
update
Modified Paths:
--------------
trunk/devel/cmake-gui/Makefile
trunk/devel/cmake-gui/pkg-descr
trunk/devel/cmake-gui/pkg-plist
Added Paths:
-----------
trunk/devel/cmake-gui/files/
trunk/devel/cmake-gui/files/patch-Utilities__Sphinx__CMakeLists.txt
Modified: trunk/devel/cmake-gui/Makefile
===================================================================
--- trunk/devel/cmake-gui/Makefile 2015-03-28 21:39:16 UTC (rev 18436)
+++ trunk/devel/cmake-gui/Makefile 2015-03-28 21:41:08 UTC (rev 18437)
@@ -1,9 +1,9 @@
# $MidnightBSD$
PORTNAME= cmake
-PORTVERSION= 2.8.11.2
+PORTVERSION= 3.1.3
CATEGORIES= devel
-MASTER_SITES= http://www.cmake.org/files/v2.8/
+MASTER_SITES= http://www.cmake.org/files/v3.1/
PKGNAMESUFFIX= -gui
MAINTAINER= ports at MidnightBSD.org
@@ -11,18 +11,32 @@
LICENSE= bsd3
-USE_QT4= gui qmake_build moc_build uic_build rcc_build
-USES= cmake:run
+BUILD_DEPENDS= sphinx-build:${PORTSDIR}/textproc/py-sphinx
+LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl \
+ libexpat.so:${PORTSDIR}/textproc/expat2
+
+USE_QT5= core gui widgets buildtools_build qmake_build
+USES= cmake:run desktop-file-utils shared-mime-info
CMAKE_ARGS= -DBUILD_QtDialog:bool=on \
+ -DBUILD_CursesDialog:BOOL=OFF \
+ -DSPHINX_MAN:BOOL=ON \
+ -DCMAKE_USE_SYSTEM_LIBRARIES:BOOL=ON \
-DCMAKE_DATA_DIR:STRING="/${DATADIR_REL}" \
-DCMAKE_DOC_DIR:STRING="/${DOCSDIR_REL}"
-MAN1= cmake-gui.1
-BUILD_WRKSRC= ${WRKSRC}/Source/QtDialog
-INSTALL_WRKSRC= ${BUILD_WRKSRC}
+ALL_TARGET= cmake-gui documentation
+INSTALL_WRKSRC= ${WRKSRC}/Source/QtDialog
-DISTINFO_FILE= ${.CURDIR}/../cmake/distinfo
+DISTINFO_FILE= ${.CURDIR}/../cmake/distinfo
+.include <bsd.port.pre.mk>
+
+# CMake >= 3.1.0 needs libarchive3 because it calls
+# archive_entry_copy_sourcepath_w and archive_write_set_format_7zip.
+.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000009
+LIB_DEPENDS+= libarchive.so.13:${PORTSDIR}/archivers/libarchive
+.endif
+
post-patch:
@(${FIND} ${WRKSRC}/Modules -name "*.cmake" -print0; \
${FIND} ${WRKSRC}/Tests -name "CMakeLists.txt" -print0 ) | \
@@ -31,10 +45,9 @@
pre-install:
${LN} -sf ${CMAKE_BIN} ${WRKSRC}/bin
- ${WRKSRC}/bin/cmake-gui --help-man > ${WRKSRC}/cmake-gui.1
post-install:
- ${MKDIR} ${MANPREFIX}/man/man1
- ${INSTALL_MAN} ${WRKSRC}/cmake-gui.1 ${MANPREFIX}/man/man1
+ ${INSTALL_MAN} ${WRKSRC}/Utilities/Sphinx/man/cmake-gui.1 \
+ ${STAGEDIR}${PREFIX}/man/man1
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
Added: trunk/devel/cmake-gui/files/patch-Utilities__Sphinx__CMakeLists.txt
===================================================================
--- trunk/devel/cmake-gui/files/patch-Utilities__Sphinx__CMakeLists.txt (rev 0)
+++ trunk/devel/cmake-gui/files/patch-Utilities__Sphinx__CMakeLists.txt 2015-03-28 21:41:08 UTC (rev 18437)
@@ -0,0 +1,26 @@
+Make the `documentation' target stop depending on basically all other targets,
+since we are only interested in building the cmake-gui one. If we don't do
+this, building the documentation will build all other targets which are only
+needed by devel/cmake itself.
+--- Utilities/Sphinx/CMakeLists.txt
++++ Utilities/Sphinx/CMakeLists.txt
+@@ -93,19 +93,6 @@ endforeach()
+
+ add_custom_target(documentation ALL DEPENDS ${doc_format_outputs})
+
+-foreach(t
+- cmake
+- ccmake
+- cmake-gui
+- cpack
+- ctest
+- )
+- if(TARGET ${t})
+- # Build documentation after main executables.
+- add_dependencies(documentation ${t})
+- endif()
+-endforeach()
+-
+ if(SPHINX_MAN)
+ file(GLOB man_rst RELATIVE ${CMake_SOURCE_DIR}/Help/manual
+ ${CMake_SOURCE_DIR}/Help/manual/*.[1-9].rst)
Property changes on: trunk/devel/cmake-gui/files/patch-Utilities__Sphinx__CMakeLists.txt
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Modified: trunk/devel/cmake-gui/pkg-descr
===================================================================
--- trunk/devel/cmake-gui/pkg-descr 2015-03-28 21:39:16 UTC (rev 18436)
+++ trunk/devel/cmake-gui/pkg-descr 2015-03-28 21:41:08 UTC (rev 18437)
@@ -6,4 +6,4 @@
configuration, pre-processor generation, code generation, and
template instantiation.
-WWW: http://www.cmake.org
+WWW: http://www.cmake.org
Modified: trunk/devel/cmake-gui/pkg-plist
===================================================================
--- trunk/devel/cmake-gui/pkg-plist 2015-03-28 21:39:16 UTC (rev 18436)
+++ trunk/devel/cmake-gui/pkg-plist 2015-03-28 21:41:08 UTC (rev 18437)
@@ -1,7 +1,5 @@
bin/cmake-gui
+man/man1/cmake-gui.1.gz
share/applications/CMake.desktop
share/mime/packages/cmakecache.xml
share/pixmaps/CMakeSetup32.png
- at dirrmtry share/mime/packages
- at dirrmtry share/mime
- at dirrmtry share/applications
More information about the Midnightbsd-cvs
mailing list