From f7449248474d13bc07a24c5e66ece60fd770ff48 Mon Sep 17 00:00:00 2001 From: "Jason E. Hale" Date: Sat, 20 Oct 2012 06:50:45 +0000 Subject: [PATCH] - Update MASTER_SITES - Fix COMMENT grammar - Add LICENSE (GPLv2 or later) - Convert to new options framework - Update pkg-descr PR: ports/172049 Submitted by: KATO Tsuguru Approved by: makc, avilla (mentors, implicit) Feature safe: yes --- print/cpp2latex/Makefile | 24 +++++++++++++----------- print/cpp2latex/pkg-descr | 5 +++-- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/print/cpp2latex/Makefile b/print/cpp2latex/Makefile index 80cc2c3a7676..bd156f1462cc 100644 --- a/print/cpp2latex/Makefile +++ b/print/cpp2latex/Makefile @@ -1,29 +1,31 @@ -# ex:ts=8 -# New ports collection makefile for: cpp2latex -# Date created: Jul 20, 2001 -# Whom: ijliao -# +# Created by: ijliao # $FreeBSD$ -# PORTNAME= cpp2latex PORTVERSION= 2.3 CATEGORIES= print -MASTER_SITES= http://www.arnoldarts.de/downloads/cpp2latex/ +MASTER_SITES= http://www.arnoldarts.de/files/cpp2latex/ MAINTAINER= ports@FreeBSD.org -COMMENT= Convert C++ source to a file you can input in an LaTeX-document +COMMENT= Converts C++ source to output that can be used in LaTeX documents + +LICENSE= GPLv2 GPLv3 +LICENSE_COMB= dual GNU_CONFIGURE= yes -PLIST_FILES= bin/cpp2latex PORTDOCS= AUTHORS ChangeLog README TODO +PLIST_FILES= bin/cpp2latex + +.include + post-patch: - @${REINPLACE_CMD} -e 's|-pedantic||g' ${WRKSRC}/configure + @${REINPLACE_CMD} -e '/-O2 /s|^|#|' -e '/-pedantic /s|^|#|' \ + ${WRKSRC}/configure post-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} .for docfile in ${PORTDOCS} ${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR} diff --git a/print/cpp2latex/pkg-descr b/print/cpp2latex/pkg-descr index 113dc0c712ad..7aec0fd1b215 100644 --- a/print/cpp2latex/pkg-descr +++ b/print/cpp2latex/pkg-descr @@ -1,3 +1,4 @@ -Convert C++-programmlistings to a file you can input in an LaTeX-document +Cpp2LaTeX converts C++ source code to output you can insert into a +LaTeX document or pipe directly to LaTex. -WWW: http://www.arnoldarts.de/drupal/?q=Cpp2LaTeX +WWW: http://www.arnoldarts.de/cpp2latex