From owner-svn-ports-head@FreeBSD.ORG Wed Jan 23 13:41:24 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 201EB8AF; Wed, 23 Jan 2013 13:41:24 +0000 (UTC) (envelope-from makc@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 03CC3200; Wed, 23 Jan 2013 13:41:24 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id r0NDfNTL014211; Wed, 23 Jan 2013 13:41:23 GMT (envelope-from makc@svn.freebsd.org) Received: (from makc@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id r0NDfNne014209; Wed, 23 Jan 2013 13:41:23 GMT (envelope-from makc@svn.freebsd.org) Message-Id: <201301231341.r0NDfNne014209@svn.freebsd.org> From: Max Brazhnikov Date: Wed, 23 Jan 2013 13:41:23 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r310865 - in head/print/hplip: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jan 2013 13:41:24 -0000 Author: makc Date: Wed Jan 23 13:41:23 2013 New Revision: 310865 URL: http://svnweb.freebsd.org/changeset/ports/310865 Log: - Fix shebang lines [1] - Rename and update patch - Switch to USE_PKGCONFIG Reported by: AN via mail [1] Added: head/print/hplip/files/patch-installer__dcheck.py (contents, props changed) - copied, changed from r310622, head/print/hplip/files/patch-dcheck.py Deleted: head/print/hplip/files/patch-dcheck.py Modified: head/print/hplip/Makefile Modified: head/print/hplip/Makefile ============================================================================== --- head/print/hplip/Makefile Wed Jan 23 13:25:34 2013 (r310864) +++ head/print/hplip/Makefile Wed Jan 23 13:41:23 2013 (r310865) @@ -3,6 +3,7 @@ PORTNAME= hplip PORTVERSION= 3.12.11 +PORTREVISION= 1 CATEGORIES= print MASTER_SITES= SF @@ -23,7 +24,8 @@ CONFLICTS_INSTALL= hpijs-[0-9]* USE_GHOSTSCRIPT_RUN= yes USE_PYTHON= 2.5+ -USE_GNOME= pkgconfig pygobject +USE_GNOME= pygobject +USE_PKGCONFIG= build GNU_CONFIGURE= yes CONFIGURE_ARGS= --enable-foomatic-ppd-install \ @@ -166,7 +168,17 @@ post-patch: ${FILES4FIX:S,^,${WRKSRC}/,} ${REINPLACE_CMD} -e 's,%USB_INCLUDE%,${USB_INCLUDE},' \ ${WRKSRC}/installer/core_install.py -.if defined(NOPORTDOCS) + cd ${WRKSRC} && \ + ${REINPLACE_CMD} -e "s,^#!/usr/bin/python,#!/usr/bin/env python," \ + base/magic.py \ + config_usb_printer.py \ + logcapture.py \ + makeuri.py \ + setup.py \ + ui/upgradeform.py \ + uninstall.py \ + upgrade.py +.if !${PORT_OPTIONS:MDOCS} ${REINPLACE_CMD} -e '/[[:space:]]install-docDATA/ s|install-docDATA||' \ ${WRKSRC}/Makefile.in .endif Copied and modified: head/print/hplip/files/patch-installer__dcheck.py (from r310622, head/print/hplip/files/patch-dcheck.py) ============================================================================== --- head/print/hplip/files/patch-dcheck.py Fri Jan 18 21:11:49 2013 (r310622, copy source) +++ head/print/hplip/files/patch-installer__dcheck.py Wed Jan 23 13:41:23 2013 (r310865) @@ -1,11 +1,24 @@ ---- installer/dcheck.py.orig 2009-08-05 09:37:17.000000000 +1200 -+++ installer/dcheck.py 2009-11-27 18:53:56.000000000 +1300 -@@ -46,7 +46,7 @@ +--- ./installer/dcheck.py.orig 2012-11-20 09:51:37.000000000 +0000 ++++ ./installer/dcheck.py 2013-01-22 14:25:58.685224662 +0000 +@@ -44,7 +44,11 @@ def update_ld_output(): # For library checks global ld_output - status, ld_output = utils.run('%s -p' % os.path.join(utils.which('ldconfig'), 'ldconfig'), log_output=False) -+ status, ld_output = utils.run('%s -r' % os.path.join(utils.which('ldconfig'), 'ldconfig'), log_output=False) ++ if sys.platform.startswith('freebsd'): ++ ld_cmd = '%s -r' ++ else: # linux ++ ld_cmd = '%s -p' ++ status, ld_output = utils.run(ld_cmd % os.path.join(utils.which('ldconfig'), 'ldconfig'), log_output=False) if status != 0: log.debug("ldconfig failed.") +@@ -373,6 +377,8 @@ + except ImportError: + return '-' + else: ++ if sys.platform.startswith('freebsd'): ++ return '-' + LIBC = ctypes.CDLL(ctypes.util.find_library('c'), use_errno=True) + LIBC.gnu_get_libc_version.restype = ctypes.c_char_p + return LIBC.gnu_get_libc_version()