pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Major update Makefile (fix last directiv) replace files/ COPYING by LICENSE!



Module Name:	pkgsrc-wip
Committed By:	K.I.A.Derouiche <kamel.derouiche%gmail.com@localhost>
Pushed By:	jihbed
Date:		Mon Jan 18 00:35:32 2016 +0000
Changeset:	8822a654455d92c3e8ea937ef4b59db668f428a3

Modified Files:
	pdftk/Makefile
Removed Files:
	pdftk/files/COPYING

Log Message:
Major update Makefile (fix last directiv)
replace files/COPYING by LICENSE!

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=8822a654455d92c3e8ea937ef4b59db668f428a3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 pdftk/Makefile      | 17 ++++++++---------
 pdftk/files/COPYING | 23 -----------------------
 2 files changed, 8 insertions(+), 32 deletions(-)

diffs:
diff --git a/pdftk/Makefile b/pdftk/Makefile
index 0d5f888..52e4215 100644
--- a/pdftk/Makefile
+++ b/pdftk/Makefile
@@ -2,6 +2,7 @@
 #
 
 DISTNAME=		pdftk-2.02-src
+PKGNAME=	${DISTNAME:S/-src//}
 CATEGORIES=		print
 MASTER_SITES=		https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/
 EXTRACT_SUFX=		.zip
@@ -9,8 +10,7 @@ EXTRACT_SUFX=		.zip
 MAINTAINER=		mwicks%kettering.edu@localhost
 HOMEPAGE=		https://www.pdflabs.com/tools/pdftk-server/
 COMMENT=		Swiss army knife for PDF files
-
-PKG_DESTDIR_SUPPORT=	none
+LICENSE=	gnu-gpl-v2
 
 BUILD_DIRS=		pdftk
 MAKE_FILE=		Makefile.FreeBSD
@@ -23,15 +23,14 @@ SUBST_CLASSES+=		   fix-paths
 SUBST_STAGE.fix-paths=	   post-patch
 SUBST_MESSAGE.fix-paths=   Fixing absolute paths in make file
 SUBST_FILES.fix-paths=	   pdftk/Makefile.Base
-SUBST_SED.fix-paths=	   -e 's,/usr/local,${LOCALBASE},g'
+SUBST_SED.fix-paths=	   -e 's,/usr/local,${PREFIX},g'
+
+INSTALLATION_DIRS= 	 ${PKGMANDIR}/man1 share/doc/pdftk
 
 post-install:
-	${INSTALL_MAN}  ${WRKSRC}/debian/pdftk.1 ${LOCALBASE}/${PKGMANDIR}/man1
-	${INSTALL_DATA_DIR} ${LOCALBASE}/share/doc/html/pdftk
-	${INSTALL_DATA}  ${WRKSRC}/pdftk.1.html ${LOCALBASE}/share/doc/html/pdftk/pdftk.html
-	${INSTALL_DATA_DIR} ${LOCALBASE}/share/doc/pdftk
-	${INSTALL_DATA} ${WRKSRC}/java_libs/com/lowagie/text/pdf/fonts/License-Adobe.txt ${LOCALBASE}/share/doc/pdftk
-	${INSTALL_DATA} files/COPYING ${LOCALBASE}/share/doc/pdftk
+	${INSTALL_MAN}  ${WRKSRC}/debian/pdftk.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+	${INSTALL_DATA}  ${WRKSRC}/pdftk.1.html ${DESTDIR}${PREFIX}/share/doc/html/pdftk/pdftk.html
+	${INSTALL_DATA} ${WRKSRC}/java_libs/com/lowagie/text/pdf/fonts/License-Adobe.txt ${DESTDIR}${PREFIX}/share/doc/pdftk
 
 # XXX figure out why this is needed (something about gcc34)
 # (maybe try to use gcc5 instead?)
diff --git a/pdftk/files/COPYING b/pdftk/files/COPYING
deleted file mode 100644
index d027ecf..0000000
--- a/pdftk/files/COPYING
+++ /dev/null
@@ -1,23 +0,0 @@
-Note: The executable file "pdftk" contains information derived from 14 AFM
-files from Adobe.  The license notice for these AFM files is included in the
-package as a separate file named "License-Adobe.txt." The AFM files are
-required to build "pdftk", but are not themselves part of the pkgsrc
-package.
-
-The copyright notice for pdftk itself is as follows.
-
-        pdftk, the PDF Toolkit
-        Copyright (c) 2003-2006 Sid Steward
-	
-        This program is free software; you can redistribute it and/or modify
-        it under the terms of the GNU General Public License as published by
-        the Free Software Foundation; either version 2 of the License, or
-        (at your option) any later version.
-
-        This program is distributed in the hope that it will be useful,
-        but WITHOUT ANY WARRANTY; without even the implied warranty of
-        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-        GNU General Public License for more details.
-
-        Visit: http://www.gnu.org/licenses/gpl.txt
-        for more details on this license.


Home | Main Index | Thread Index | Old Index