Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Jul 2015 21:36:57 +0000 (UTC)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r392908 - in head/print/tex-ptexenc: . files
Message-ID:  <201507252136.t6PLav7e050394@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hrs
Date: Sat Jul 25 21:36:56 2015
New Revision: 392908
URL: https://svnweb.freebsd.org/changeset/ports/392908

Log:
  - Add iconv support.
  - Add LICENSE.
  - Add CTAN mirror to MASTER_SITES.

Added:
  head/print/tex-ptexenc/files/patch-configure   (contents, props changed)
Modified:
  head/print/tex-ptexenc/Makefile

Modified: head/print/tex-ptexenc/Makefile
==============================================================================
--- head/print/tex-ptexenc/Makefile	Sat Jul 25 20:46:48 2015	(r392907)
+++ head/print/tex-ptexenc/Makefile	Sat Jul 25 21:36:56 2015	(r392908)
@@ -2,9 +2,9 @@
 
 PORTNAME=	ptexenc
 PORTVERSION=	1.3.3
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	print
-MASTER_SITES=	ftp://tug.org/historic/systems/texlive/2015/
+MASTER_SITES=	TEX_CTAN/systems/texlive/Source/
 PKGNAMEPREFIX=	tex-
 DISTNAME=	texlive-20150521-source
 DIST_SUBDIR=	TeX
@@ -12,17 +12,22 @@ DIST_SUBDIR=	TeX
 MAINTAINER=	hrs@FreeBSD.org
 COMMENT=	Library for Japanese pTeX and its tools
 
-USES=		tar:xz libtool pkgconfig
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/COPYRIGHT
+
+USES=		iconv libtool pkgconfig tar:xz
 USE_TEX=	kpathsea
 USE_LDCONFIG=	yes
 WRKSRC=		${WRKDIR}/${DISTNAME}/texk/ptexenc
-EXTRACT_AFTER_ARGS=	${EXTRACT_FILES}
-EXTRACT_FILES=	${DISTNAME}/build-aux \
-		${DISTNAME}/texk/ptexenc
+EXTRACT_AFTER_ARGS=	${EXTRACT_FILES:S/^/${DISTNAME}\//}
+EXTRACT_FILES=	build-aux texk/ptexenc
 GNU_CONFIGURE=	yes
-CONFIGURE_ARGS=	--with-system-kpathsea \
+CONFIGURE_ARGS=	--enable-kanji-iconv \
+		--with-system-kpathsea \
 		--with-kpathsea-includes=${LOCALBASE}/include \
 		--with-kpathsea-libdir=${LOCALBASE}/lib
+LIBS+=		${ICONV_LIB}
+CPPFLAGS+=	-I${ICONV_PREFIX}/include
 INSTALL_TARGET=	install-strip
 
 .include <bsd.port.mk>

Added: head/print/tex-ptexenc/files/patch-configure
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/print/tex-ptexenc/files/patch-configure	Sat Jul 25 21:36:56 2015	(r392908)
@@ -0,0 +1,38 @@
+--- configure.orig	2015-07-25 21:31:25 UTC
++++ configure
+@@ -14889,7 +14889,7 @@ if ${ac_cv_lib_iconv_iconv_open+:} false
+   $as_echo_n "(cached) " >&6
+ else
+   ac_check_lib_save_LIBS=$LIBS
+-LIBS="-liconv  $LIBS"
++LIBS="$LIBS"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h.  */
+ 
+@@ -14924,7 +14924,7 @@ if test "x$ac_cv_lib_iconv_iconv_open" =
+ #define HAVE_LIBICONV 1
+ _ACEOF
+ 
+-  LIBS="-liconv $LIBS"
++  LIBS="$LIBS"
+ 
+ else
+   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5
+@@ -14933,7 +14933,7 @@ if ${ac_cv_lib_iconv_libiconv_open+:} fa
+   $as_echo_n "(cached) " >&6
+ else
+   ac_check_lib_save_LIBS=$LIBS
+-LIBS="-liconv  $LIBS"
++LIBS="$LIBS"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h.  */
+ 
+@@ -14968,7 +14968,7 @@ if test "x$ac_cv_lib_iconv_libiconv_open
+ #define HAVE_LIBICONV 1
+ _ACEOF
+ 
+-  LIBS="-liconv $LIBS"
++  LIBS="$LIBS"
+ 
+ fi
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201507252136.t6PLav7e050394>