ports/145853: Update Port: math/eukleides. Fixed a bug reported by QAT
Ashish SHUKLA
wahjava at gmail.com
Mon Apr 19 17:20:02 UTC 2010
>Number: 145853
>Category: ports
>Synopsis: Update Port: math/eukleides. Fixed a bug reported by QAT
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Mon Apr 19 17:20:00 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Ashish SHUKLA
>Release: FreeBSD 8.0-RELEASE-p2 amd64
>Organization:
N/A
>Environment:
System: FreeBSD chateau.d.if 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #3: Tue Mar 2 01:06:00 IST 2010 root at chateau.d.if:/usr/obj/usr/src/sys/CHATEAU amd64
>Description:
QAT reported a packing issue in the port. The attached diff file fixes the issue.
The file "files/path-build_Makefile~" is accidentally sent by me. And therefore needs to be deleted.
Sorry for this carelessness.
Thanks
>How-To-Repeat:
>Fix:
diff -urN /usr/ports/math/eukleides/Makefile eukleides/Makefile
--- /usr/ports/math/eukleides/Makefile 2010-04-19 14:49:19.000000000 +0530
+++ eukleides/Makefile 2010-04-19 22:35:23.000000000 +0530
@@ -25,7 +25,6 @@
USE_ICONV= yes
MAN1= eukleides.1 euktoeps.1 euktopdf.1 euktopst.1 euktotex.1
-PORTEXAMPLES= greenwich.euk sundial.euk vonkoch.euk
.ifndef NOPORTDOCS
BUILD_DEPENDS= pdflatex:${PORTSDIR}/print/teTeX-base
@@ -33,6 +32,10 @@
INFO= eukleides
.endif
+.ifndef NOPORTEXAMPLES
+PORTEXAMPLES= greenwich.euk sundial.euk vonkoch.euk
+.endif
+
post-patch:
${GREP} -lR "#!/bin/bash" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
's|#!/bin/bash|#!/bin/sh|g'
@@ -47,9 +50,14 @@
${REINPLACE_CMD} -e '/^install:/ s/install_doc//g' \
-e '/^all:/ s/doc//g' ${WRKSRC}/Makefile
.endif
+.ifdef NOPORTEXAMPLES
+ ${REINPLACE_CMD} -e 's/install_exm$$//g' ${WRKSRC}/Makefile
+.endif
+.ifndef NOPORTEXAMPLES
pre-install:
${MKDIR} ${EXAMPLESDIR}
+.endif
post-install:
for i in euktoeps euktopdf euktotex; do \
diff -urN /usr/ports/math/eukleides/files/patch-build_Makefile~ eukleides/files/patch-build_Makefile~
--- /usr/ports/math/eukleides/files/patch-build_Makefile~ 2010-04-19 14:49:19.000000000 +0530
+++ eukleides/files/patch-build_Makefile~ 1970-01-01 05:30:00.000000000 +0530
@@ -1,20 +0,0 @@
-
-$FreeBSD: ports/math/eukleides/files/patch-build_Makefile~,v 1.1 2010/04/19 09:19:19 wen Exp $
-
---- build/Makefile.orig
-+++ build/Makefile
-@@ -12,12 +12,12 @@
- YACC = bison
- YFLAGS = -d
- CC = gcc
--IFLAGS = -I$(COMMON_DIR) -I$(MAIN_DIR) -I$(BUILD_DIR)
-+IFLAGS = -I$(COMMON_DIR) -I$(MAIN_DIR) -I$(BUILD_DIR) "-I%%LOCALBASE%%/../include" "-I%%LOCALBASE%%/include"
- ifneq ($(strip $(LOCALES)),)
- MOFLAGS = -DMO_DIR=\"$(MO_DIR)\"
- endif
- CFLAGS = -Wall -D__$(BINARY)__ $(IFLAGS) $(MOFLAGS)
--LDFLAGS = -lncurses -lreadline -lm
-+LDFLAGS = -lncurses -lreadline -lm "-L%%LOCALBASE%%/lib" -lintl
- VPATH = $(COMMON_DIR):$(MAIN_DIR):$(BUILD_DIR)
-
- $(BINARY):
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list