summaryrefslogtreecommitdiff
path: root/devel/astyle
diff options
context:
space:
mode:
authorjoerg <joerg>2007-11-28 19:06:00 +0000
committerjoerg <joerg>2007-11-28 19:06:00 +0000
commita5abf93337c7ad06c3fa109cbf83eb767a924401 (patch)
treed71e6c72cd660c55c810c65aa6fc7fe63984420b /devel/astyle
parentac9a90ba0a56efec48febd60b325bc8c29ee31c4 (diff)
downloadpkgsrc-a5abf93337c7ad06c3fa109cbf83eb767a924401.tar.gz
Don't rename makefile to Makefile, use it directly. Add DESTDIR support.
Diffstat (limited to 'devel/astyle')
-rw-r--r--devel/astyle/Makefile13
-rw-r--r--devel/astyle/distinfo4
-rw-r--r--devel/astyle/patches/patch-aa8
3 files changed, 13 insertions, 12 deletions
diff --git a/devel/astyle/Makefile b/devel/astyle/Makefile
index 17b6d7f73a3..2d5a2afd843 100644
--- a/devel/astyle/Makefile
+++ b/devel/astyle/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2006/06/06 21:38:34 joerg Exp $
+# $NetBSD: Makefile,v 1.12 2007/11/28 19:06:00 joerg Exp $
#
DISTNAME= astyle_1.13.6.1
@@ -12,7 +12,12 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://astyle.sourceforge.net/
COMMENT= Reindenter and reformatter of C++, C and Java source code
+PKG_DESTDIR_SUPPORT= user-destdir
+
+MAKE_FILE= makefile
+
HTMLDIR= ${PREFIX}/share/doc/html/astyle
+INSTALLATION_DIRS= bin ${HTMLDIR}
USE_LANGUAGES= c++
@@ -22,12 +27,8 @@ USE_LANGUAGES= c++
CFLAGS+= -DASTYLE_GCC2
.endif
-post-extract:
- ${MV} -f ${WRKSRC}/makefile ${WRKSRC}/Makefile
-
post-install:
- ${INSTALL_DATA_DIR} ${HTMLDIR}
cd ${WRKSRC} && ${INSTALL_DATA} astyle.html \
- astyle_release_notes.html license.html ${HTMLDIR}
+ astyle_release_notes.html license.html ${DESTDIR}${HTMLDIR}
.include "../../mk/bsd.pkg.mk"
diff --git a/devel/astyle/distinfo b/devel/astyle/distinfo
index ebc7ede2172..ceeac0aff15 100644
--- a/devel/astyle/distinfo
+++ b/devel/astyle/distinfo
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.6 2006/01/02 18:05:11 joerg Exp $
+$NetBSD: distinfo,v 1.7 2007/11/28 19:06:01 joerg Exp $
SHA1 (astyle_1.13.6.1.zip) = 4e0172fe30986d68c61b4a7c1638a1fc42ea0675
RMD160 (astyle_1.13.6.1.zip) = 74030324515be84e0e7499edc2503d0e549673ba
Size (astyle_1.13.6.1.zip) = 61422 bytes
-SHA1 (patch-aa) = 1bb6cb72145c52e548336d4d90020fa982d049e1
+SHA1 (patch-aa) = 3e8adb7b979188f9828b3ae22d8037008975fb5b
SHA1 (patch-ab) = c9b21d45f53331411425a734971f003d415b11e7
SHA1 (patch-ac) = d143f2cd5ef3d15317d8dbe01be98f3a9a862ec6
diff --git a/devel/astyle/patches/patch-aa b/devel/astyle/patches/patch-aa
index a3a62883d93..f74d45e7fdb 100644
--- a/devel/astyle/patches/patch-aa
+++ b/devel/astyle/patches/patch-aa
@@ -1,7 +1,7 @@
-$NetBSD: patch-aa,v 1.3 2004/06/12 02:30:35 grant Exp $
+$NetBSD: patch-aa,v 1.4 2007/11/28 19:06:01 joerg Exp $
---- Makefile.orig 2000-02-11 12:02:10.000000000 +1100
-+++ Makefile
+--- makefile.orig 2000-02-11 12:02:10.000000000 +1100
++++ makefile
@@ -1,14 +1,19 @@
# "Artistic Style" Makefile
@@ -13,7 +13,7 @@ $NetBSD: patch-aa,v 1.3 2004/06/12 02:30:35 grant Exp $
+all: astyle
+
+install:
-+ install -s -c astyle ${LOCALBASE}/bin/
++ install -s -c astyle ${DESTDIR}${PREFIX}/bin
astyle: $(OBJS)
- g++ $(CPPFLAGS) -o astyle $(OBJS)