diff options
Diffstat (limited to 'textproc/uncrustify')
-rw-r--r-- | textproc/uncrustify/Makefile | 18 | ||||
-rw-r--r-- | textproc/uncrustify/PLIST | 10 | ||||
-rw-r--r-- | textproc/uncrustify/distinfo | 11 | ||||
-rw-r--r-- | textproc/uncrustify/patches/patch-CMakeLists.txt | 17 |
4 files changed, 46 insertions, 10 deletions
diff --git a/textproc/uncrustify/Makefile b/textproc/uncrustify/Makefile index 4ef5ba11c65..6287f461f12 100644 --- a/textproc/uncrustify/Makefile +++ b/textproc/uncrustify/Makefile @@ -1,15 +1,25 @@ -# $NetBSD: Makefile,v 1.2 2014/03/31 08:31:44 wiz Exp $ +# $NetBSD: Makefile,v 1.3 2019/05/14 12:54:17 ryoon Exp $ -DISTNAME= uncrustify-0.60 +DISTNAME= uncrustify-uncrustify-0.69.0 +PKGNAME= ${DISTNAME:S/uncrustify-//} CATEGORIES= textproc -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=uncrustify/} +MASTER_SITES= ${MASTER_SITE_GITHUB:=uncrustify/} +GITHUB_PROJECT= uncrustify +GITHUB_TAG= uncrustify-0.69.0 MAINTAINER= ryoon@NetBSD.org HOMEPAGE= http://uncrustify.sourceforge.net/ COMMENT= Source Code Beautifier for C-like languages LICENSE= gnu-gpl-v2 -GNU_CONFIGURE= yes +USE_CMAKE= yes USE_LANGUAGES= c c++ +OBJDIR= ${WRKSRC}/build +CONFIGURE_DIRS= ${OBJDIR} +CMAKE_ARG_PATH= ${WRKSRC} + +pre-configure: + ${MKDIR} ${WRKSRC}/build + .include "../../mk/bsd.pkg.mk" diff --git a/textproc/uncrustify/PLIST b/textproc/uncrustify/PLIST index 4584af4be75..5a2e47c74f6 100644 --- a/textproc/uncrustify/PLIST +++ b/textproc/uncrustify/PLIST @@ -1,12 +1,20 @@ -@comment $NetBSD: PLIST,v 1.1 2013/01/13 04:22:34 ryoon Exp $ +@comment $NetBSD: PLIST,v 1.2 2019/05/14 12:54:17 ryoon Exp $ bin/uncrustify man/man1/uncrustify.1 +share/uncrustify/MS-calling_conventions.cfg +share/uncrustify/amxmodx.cfg share/uncrustify/ben.cfg +share/uncrustify/ben2.cfg share/uncrustify/d.cfg share/uncrustify/defaults.cfg +share/uncrustify/freebsd.cfg share/uncrustify/gnu-indent.cfg +share/uncrustify/klaus.cfg share/uncrustify/kr-indent.cfg share/uncrustify/linux-indent.cfg share/uncrustify/linux.cfg share/uncrustify/mono.cfg +share/uncrustify/msvc.cfg +share/uncrustify/objc.cfg +share/uncrustify/sun.cfg share/uncrustify/xsupplicant.cfg diff --git a/textproc/uncrustify/distinfo b/textproc/uncrustify/distinfo index 09f8dbdf1cf..67ca7cbf226 100644 --- a/textproc/uncrustify/distinfo +++ b/textproc/uncrustify/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.4 2015/11/04 02:00:14 agc Exp $ +$NetBSD: distinfo,v 1.5 2019/05/14 12:54:17 ryoon Exp $ -SHA1 (uncrustify-0.60.tar.gz) = 769a7649a1cefb80beff9b67b11b4b87a8cc8e0e -RMD160 (uncrustify-0.60.tar.gz) = 5770265558adaeecf5b66334fe91389e75b19674 -SHA512 (uncrustify-0.60.tar.gz) = 5ff3ac05d607420e6a140369b44407caae4b1dd4601d387375babeb0cfe0fe0501052a80acfc0a28bad53ee55f181f182cb9560f90d7735b2ba879a3a64b35fe -Size (uncrustify-0.60.tar.gz) = 1037433 bytes +SHA1 (uncrustify-uncrustify-0.69.0.tar.gz) = 4956ef18bb53037f0cfcb4881f34b4c210372ee0 +RMD160 (uncrustify-uncrustify-0.69.0.tar.gz) = f1ecfefbfd8ad8ac75e3345c6f5951c0d8921775 +SHA512 (uncrustify-uncrustify-0.69.0.tar.gz) = 06eb985b941bd595c037c71becd277ed68298bebb56e9cdaba5da8315812a43a1455eba8635f370e2b039e665fa89891042f520933b7de5677bdcfb2dd69e6cb +Size (uncrustify-uncrustify-0.69.0.tar.gz) = 1600390 bytes +SHA1 (patch-CMakeLists.txt) = 4715199cfdfceb60828d9996f91bf6a45cb46cd4 diff --git a/textproc/uncrustify/patches/patch-CMakeLists.txt b/textproc/uncrustify/patches/patch-CMakeLists.txt new file mode 100644 index 00000000000..48608389013 --- /dev/null +++ b/textproc/uncrustify/patches/patch-CMakeLists.txt @@ -0,0 +1,17 @@ +$NetBSD: patch-CMakeLists.txt,v 1.1 2019/05/14 12:54:17 ryoon Exp $ + +* Install cfg files under non-Windows platforms + +--- CMakeLists.txt.orig 2019-05-13 14:46:13.000000000 +0000 ++++ CMakeLists.txt +@@ -459,6 +459,10 @@ else() + install(FILES "${CMAKE_CURRENT_BINARY_DIR}/uncrustify.1" + DESTINATION "${CMAKE_INSTALL_MANDIR}/man1" + ) ++ install(DIRECTORY "${PROJECT_SOURCE_DIR}/etc/" ++ DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/uncrustify" ++ FILES_MATCHING PATTERN "*.cfg" ++ ) + endif() + + # |