From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Apr 13 23:20:01 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6D7D5429 for ; Sun, 13 Apr 2014 23:20:01 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4659211D4 for ; Sun, 13 Apr 2014 23:20:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s3DNK1q1062447 for ; Sun, 13 Apr 2014 23:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s3DNK1Ud062446; Sun, 13 Apr 2014 23:20:01 GMT (envelope-from gnats) Resent-Date: Sun, 13 Apr 2014 23:20:01 GMT Resent-Message-Id: <201404132320.s3DNK1Ud062446@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Uffe Jakobsen Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 16282402 for ; Sun, 13 Apr 2014 23:17:59 +0000 (UTC) Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E9B1811C6 for ; Sun, 13 Apr 2014 23:17:58 +0000 (UTC) Received: from cgiserv.freebsd.org ([127.0.1.6]) by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s3DNHww8021440 for ; Sun, 13 Apr 2014 23:17:58 GMT (envelope-from nobody@cgiserv.freebsd.org) Received: (from nobody@localhost) by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s3DNHwnZ021426; Sun, 13 Apr 2014 23:17:58 GMT (envelope-from nobody) Message-Id: <201404132317.s3DNHwnZ021426@cgiserv.freebsd.org> Date: Sun, 13 Apr 2014 23:17:58 GMT From: Uffe Jakobsen To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/188575: New port: devel/libmpsse X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Apr 2014 23:20:01 -0000 >Number: 188575 >Category: ports >Synopsis: New port: devel/libmpsse >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Apr 13 23:20:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Uffe Jakobsen >Release: FreeBSD 10.0-RELEASE >Organization: >Environment: FreeBSD asus-u32u 10.0-RELEASE-p1 FreeBSD 10.0-RELEASE-p1 #0: Tue Apr 8 06:45:06 UTC 2014 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 >Description: New port: devel/libmpsse Open source library for SPI/I2C control via FTDI chips Libmpsse is a library for interfacing with SPI/I2C devices via FTDI's FT-2232 family of USB chips. Based around the libftdi library. WWW: http://code.google.com/p/libmpsse/ >How-To-Repeat: >Fix: Patch attached with submission follows: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # libmpsse # libmpsse/Makefile # libmpsse/distinfo # libmpsse/pkg-descr # libmpsse/files # libmpsse/files/patch-src_configure_ac # libmpsse/files/patch-src_makefile_in # echo c - libmpsse mkdir -p libmpsse > /dev/null 2>&1 echo x - libmpsse/Makefile sed 's/^X//' >libmpsse/Makefile << '034e94c0a98e9ee1367a030dcdf8cdc3' X# Created by: Uffe Jakobsen X# $FreeBSD: $ X XPORTNAME= libmpsse XPORTVERSION= 1.3 XPORTREVISION= 1 XCATEGORIES= devel XMASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} X XMAINTAINER= uffe@uffe.org XCOMMENT= Open source library for SPI/I2C control via FTDI chips X XLICENSE= GPLv2 X XBUILD_DEPENDS= swig2.0:${PORTSDIR}/devel/swig20 XLIB_DEPENDS= libftdi.so:${PORTSDIR}/devel/libftdi X XUSE_AUTOTOOLS= autoconf XGNU_CONFIGURE= yes XCFLAGS+= -I${LOCALBASE}/include -fPIC XLDFLAGS+= -L${LOCALBASE}/lib -lftdi XUSE_LDCONFIG= yes X#USES= pathfix XUSES= gmake pkgconfig X XCONFIGURE_WRKSRC= ${WRKSRC}/src XBUILD_WRKSRC= ${WRKSRC}/src XINSTALL_WRKSRC= ${WRKSRC}/src X XCONFIGURE_ENV= SWIG="swig2.0" X XMAKE_ARGS= CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" X XPORTDOCS= README README.* XPORTEXAMPLES= * X XPLIST_FILES= ${LOCALBASE}/lib/libmpsse.so ${LOCALBASE}/lib/libmpsse.a ${LOCALBASE}/include/mpsse.h X Xpre-install: X ${MKDIR} ${STAGEDIR}/${LOCALBASE}/lib/ X Xpost-install: X ${MKDIR} ${STAGEDIR}/${DOCSDIR} X (cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} "! -name Makefile") X ${MKDIR} ${STAGEDIR}/${EXAMPLESDIR} X (cd ${WRKSRC}/src/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} "! -name Makefile") X X.include 034e94c0a98e9ee1367a030dcdf8cdc3 echo x - libmpsse/distinfo sed 's/^X//' >libmpsse/distinfo << 'a2d21da15f425c2dc6efe01ba8c6bb64' XSHA256 (libmpsse-1.3.tar.gz) = 08f2a0025074720d40e29430089b1ab78d764756cc5d2bcb3148d98131b4074b XSIZE (libmpsse-1.3.tar.gz) = 652047 a2d21da15f425c2dc6efe01ba8c6bb64 echo x - libmpsse/pkg-descr sed 's/^X//' >libmpsse/pkg-descr << '5ec0596886290a2a4f699d152551f520' XOpen source library for SPI/I2C control via FTDI chips X XLibmpsse is a library for interfacing with SPI/I2C devices via FTDI's XFT-2232 family of USB chips. Based around the libftdi library. X XWWW: http://code.google.com/p/libmpsse/ 5ec0596886290a2a4f699d152551f520 echo c - libmpsse/files mkdir -p libmpsse/files > /dev/null 2>&1 echo x - libmpsse/files/patch-src_configure_ac sed 's/^X//' >libmpsse/files/patch-src_configure_ac << '8a236739c40fd9ae031faf4d6c7e77c6' X--- src/configure.ac.orig 2014-04-13 17:54:11.835943734 +0200 X+++ src/configure.ac 2014-04-13 18:06:11.083132540 +0200 X@@ -42,6 +42,31 @@ X exit 1 X fi X X+ if ! test $PYEXE X+ then X+ PYEXE=$(which python2) X+ if ! test ${PYEXE} X+ then X+ PYEXE=$(which python) X+ fi X+ fi X+ echo $PYEXE X+ X+ if ! test $PYDEV X+ then X+ for INCL in $(python2-config --includes) X+ do X+ echo $INCL X+ INCL=$(echo "${INCL}" | sed 's:^-I::g') X+ echo $INCL X+ if test -f "${INCL}/Python.h" X+ then X+ PYDEV="${INCL}" X+ break; X+ fi; X+ done X+ fi X+ X if ! test $PYDEV X then X PYDEV="/usr/include/python$(python -V 2>&1 | awk '{print $2}' | cut -d'.' -f1,2)" X@@ -54,7 +79,7 @@ X dnl This is a hack to get a valid python library path X echo "import sys" > pylib.py X echo "for path in sys.path: print path" >> pylib.py X- PYLIB="$(python pylib.py | grep -e '-packages$' | head -1)" X+ PYLIB="$(${PYEXE} pylib.py | grep -e '-packages$' | head -1)" X rm -f pylib.py X fi X 8a236739c40fd9ae031faf4d6c7e77c6 echo x - libmpsse/files/patch-src_makefile_in sed 's/^X//' >libmpsse/files/patch-src_makefile_in << 'af4a6d01497573f56b0c3be8ede2517e' X--- src/Makefile.in.orig 2013-04-19 04:12:59.000000000 +0200 X+++ src/Makefile.in 2014-04-14 00:28:28.000000000 +0200 X@@ -43,6 +43,7 @@ X -o _pylib$(TARGET).so $(LDFLAGS) $(INC) X X pyswig-install: X+ install -d -m755 $(DESTDIR)/$(PYLIB) X install -D -m644 pylib$(TARGET).py $(DESTDIR)/$(PYLIB)/pylib$(TARGET).py X install -D -m644 _pylib$(TARGET).so $(DESTDIR)/$(PYLIB)/_pylib$(TARGET).so X install -D -m644 $(TARGET).py $(DESTDIR)/$(PYLIB)/$(TARGET).py af4a6d01497573f56b0c3be8ede2517e exit >Release-Note: >Audit-Trail: >Unformatted: