From nobody@FreeBSD.org  Tue Mar  1 15:19:59 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id E57391065673
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  1 Mar 2011 15:19:58 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id D41FD8FC17
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  1 Mar 2011 15:19:58 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p21FJw2F096162
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 1 Mar 2011 15:19:58 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p21FJwdd096161;
	Tue, 1 Mar 2011 15:19:58 GMT
	(envelope-from nobody)
Message-Id: <201103011519.p21FJwdd096161@red.freebsd.org>
Date: Tue, 1 Mar 2011 15:19:58 GMT
From: Alberto Villa <avilla@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] update port: audio/libgpod 0.7.2 -> 0.8.0
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         155161
>Category:       ports
>Synopsis:       [patch] update port: audio/libgpod 0.7.2 -> 0.8.0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    danfe
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 01 15:20:11 UTC 2011
>Closed-Date:    Tue Mar 15 15:18:43 UTC 2011
>Last-Modified:  Tue Mar 15 15:20:08 UTC 2011
>Originator:     Alberto Villa
>Release:        FreeBSD 9-CURRENT
>Organization:
>Environment:
FreeBSD echo.hoth 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r219021: Fri Feb 25 11:09:31 CET 2011     root@echo.hoth:/usr/obj/usr/src/sys/HPDV6  amd64
>Description:
this update makes libgpod finally support ipod nano 5g (successfully tested), iphone, ipod touch, and possibly some more stuff i don't even know

some notes:
- mono bindings are not enabled because i'm unable to build mono on my system
- sgutils is not optional anymore because sysinfo extended utility is built even without it, and sgutils is not a heavy port

it obviously requires a shlib bump in dependent ports
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

? work
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/audio/libgpod/Makefile,v
retrieving revision 1.27
diff -u -r1.27 Makefile
--- Makefile	31 May 2010 01:57:28 -0000	1.27
+++ Makefile	1 Mar 2011 15:10:00 -0000
@@ -6,28 +6,42 @@
 #
 
 PORTNAME=	libgpod
-PORTVERSION=	0.7.2
-PORTREVISION=	4
+PORTVERSION=	0.8.0
 CATEGORIES=	audio
-MASTER_SITES=	SF/gtkpod/${PORTNAME}/${PORTNAME}-${PORTVERSION}
+MASTER_SITES=	SF/gtkpod/${PORTNAME}/${PORTNAME}-${PORTVERSION:R}
 
 MAINTAINER=	danfe@FreeBSD.org
 COMMENT=	A library for direct access of iPod contents
 
+LIB_DEPENDS=	plist.1:${PORTSDIR}/devel/libplist \
+		tag.1:${PORTSDIR}/audio/taglib \
+		sgutils2.2:${PORTSDIR}/sysutils/sg3_utils
+
 USE_GETTEXT=	yes
 USE_GMAKE=	yes
 USE_GNOME=	gtk20
+USE_SQLITE=	3
 USE_LDCONFIG=	yes
 GNU_CONFIGURE=	yes
 CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
 		LDFLAGS="-L${LOCALBASE}/lib"
 CONFIGURE_ARGS=	--without-hal --with-html-dir="${PREFIX}/share/doc"
 
-OPTIONS=	PYTHON	"Enable Python bindings"		off \
-		TOOLS	"Build SysInfo detection utility"	off
+OPTIONS=	PYTHON	"Enable Python bindings"	off
+
+#MONO	"Enable Mono bindings"		off
 
 .include <bsd.port.options.mk>
 
+#.if defined(WITH_MONO)
+#LIB_DEPENDS+=	mono.0:${PORTSDIR}/lang/mono
+#CONFIGURE_ARGS+=	--with-mono
+#PLIST_SUB+=	MONO=""
+#.else
+CONFIGURE_ARGS+=	--without-mono
+#PLIST_SUB+=	MONO="@comment "
+#.endif
+
 .if defined(WITH_PYTHON)
 USE_PYTHON=	yes
 BUILD_DEPENDS=	${PYTHON_SITELIBDIR}/gtk-2.0/gobject/__init__.py:${PORTSDIR}/devel/py-gobject \
@@ -40,18 +54,21 @@
 PLIST_SUB+=	PYTHON="@comment "
 .endif
 
-# SysInfo detection utility is required in order to support iPod classic
-# and nano 3G
-.if defined(WITH_TOOLS) || exists(${LOCALBASE}/lib/libsgutils2.so)
-LIB_DEPENDS+=	sgutils2.2:${PORTSDIR}/sysutils/sg3_utils
-PLIST_FILES+=	bin/ipod-read-sysinfo-extended
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} >= 800069
+LIB_DEPENDS+=	imobiledevice.1:${PORTSDIR}/comms/libimobiledevice
+CONFIGURE_ENV+=	LIBUSB_CFLAGS=" " LIBUSB_LIBS="-lusb"
+.else
+CONFIGURE_ARGS+=	--without-libimobiledevice
 .endif
 
 post-patch: .SILENT
 # Adjust pkgconfigdir to the FreeBSD world
 	${REINPLACE_CMD} -e \
 		's,libdir)/pkgconfig,prefix)/libdata/pkgconfig,' \
-			${WRKSRC}/Makefile.in
+			${WRKSRC}/Makefile.in \
+			${WRKSRC}/bindings/mono/libgpod-sharp/Makefile.in
 # Allow to build tools without HAL
 	${REINPLACE_CMD} -e \
 		'/noinst_PROGRAMS =/s,^,@HAVE_HAL_TRUE@,' \
@@ -60,4 +77,4 @@
 	${REINPLACE_CMD} -e 's, docs,,' ${WRKSRC}/Makefile.in
 .endif
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
Index: distinfo
===================================================================
RCS file: /home/pcvs/ports/audio/libgpod/distinfo,v
retrieving revision 1.7
diff -u -r1.7 distinfo
--- distinfo	7 Aug 2009 17:01:29 -0000	1.7
+++ distinfo	1 Mar 2011 15:10:00 -0000
@@ -1,3 +1,2 @@
-MD5 (libgpod-0.7.2.tar.gz) = 1ec69c3a19fb071b1639cdcaf68463c1
-SHA256 (libgpod-0.7.2.tar.gz) = 2e8f31fc37ed0c9c89004097fdb568e8971627e7aedfb57fb229399c0f490777
-SIZE (libgpod-0.7.2.tar.gz) = 959142
+SHA256 (libgpod-0.8.0.tar.gz) = 1b8baef8e5a718f6a11eaaea5619b906198766d999e8d54308f514b522571602
+SIZE (libgpod-0.8.0.tar.gz) = 997674
Index: pkg-plist
===================================================================
RCS file: /home/pcvs/ports/audio/libgpod/pkg-plist,v
retrieving revision 1.9
diff -u -r1.9 pkg-plist
--- pkg-plist	23 Aug 2009 18:30:41 -0000	1.9
+++ pkg-plist	1 Mar 2011 15:10:00 -0000
@@ -1,15 +1,16 @@
+bin/ipod-read-sysinfo-extended
 include/gpod-1.0/gpod/itdb.h
 @dirrm include/gpod-1.0/gpod
 @dirrm include/gpod-1.0
-lib/libgpod.so.5
+lib/libgpod.so.7
 lib/libgpod.so
 lib/libgpod.la
 lib/libgpod.a
 libdata/pkgconfig/libgpod-1.0.pc
+libdata/pkgconfig/libgpod-sharp.pc
 %%PYTHON%%%%PYTHON_SITELIBDIR%%/gpod/__init__.py
 %%PYTHON%%%%PYTHON_SITELIBDIR%%/gpod/__init__.pyc
 %%PYTHON%%%%PYTHON_SITELIBDIR%%/gpod/__init__.pyo
-%%PYTHON%%%%PYTHON_SITELIBDIR%%/gpod/_gpod.a
 %%PYTHON%%%%PYTHON_SITELIBDIR%%/gpod/_gpod.la
 %%PYTHON%%%%PYTHON_SITELIBDIR%%/gpod/_gpod.so
 %%PYTHON%%%%PYTHON_SITELIBDIR%%/gpod/gpod.py


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->danfe 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Tue Mar 1 15:20:28 UTC 2011 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=155161 

From: Alberto Villa <avilla@freebsd.org>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: ports/155161: [patch] update port: audio/libgpod 0.7.2 -&gt; 0.8.0
Date: Wed, 2 Mar 2011 05:08:59 +0100

 --nextPart1502472.I8QdbrgmiL
 Content-Type: multipart/mixed;
   boundary="Boundary-01=_cLcbNG7Z46wgxfy"
 Content-Transfer-Encoding: 7bit
 
 
 --Boundary-01=_cLcbNG7Z46wgxfy
 Content-Type: Text/Plain;
   charset="us-ascii"
 Content-Transfer-Encoding: quoted-printable
 Content-Disposition: inline
 
 new patch adapted to recent fixes to usbmuxd (in the libusb detection=20
 part)
 
 i've also added the installation of doc files (README and friends)=20
 because i=20
 find them invaluable to make ipod/iphone work and to debug problems
 =2D-=20
 Alberto Villa, FreeBSD committer <avilla@FreeBSD.org>
 http://people.FreeBSD.org/~avilla
 
 Whatever women do they must do twice as well as men to be thought=20
 half
 as good.  Luckily this is not difficult.
 		-- Charlotte Whitton
 
 --Boundary-01=_cLcbNG7Z46wgxfy
 Content-Type: text/plain;
   charset="UTF-8";
   name="libgpod.txt"
 Content-Transfer-Encoding: quoted-printable
 Content-Disposition: attachment;
 	filename="libgpod.txt"
 
 ? work
 Index: Makefile
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 RCS file: /home/pcvs/ports/audio/libgpod/Makefile,v
 retrieving revision 1.27
 diff -u -r1.27 Makefile
 =2D-- Makefile	31 May 2010 01:57:28 -0000	1.27
 +++ Makefile	2 Mar 2011 04:08:00 -0000
 @@ -6,28 +6,45 @@
  #
 =20
  PORTNAME=3D	libgpod
 =2DPORTVERSION=3D	0.7.2
 =2DPORTREVISION=3D	4
 +PORTVERSION=3D	0.8.0
  CATEGORIES=3D	audio
 =2DMASTER_SITES=3D	SF/gtkpod/${PORTNAME}/${PORTNAME}-${PORTVERSION}
 +MASTER_SITES=3D	SF/gtkpod/${PORTNAME}/${PORTNAME}-${PORTVERSION:R}
 =20
  MAINTAINER=3D	danfe@FreeBSD.org
  COMMENT=3D	A library for direct access of iPod contents
 =20
 +LIB_DEPENDS=3D	plist.1:${PORTSDIR}/devel/libplist \
 +		tag.1:${PORTSDIR}/audio/taglib \
 +		sgutils2.2:${PORTSDIR}/sysutils/sg3_utils
 +
  USE_GETTEXT=3D	yes
  USE_GMAKE=3D	yes
  USE_GNOME=3D	gtk20
 +USE_SQLITE=3D	3
  USE_LDCONFIG=3D	yes
  GNU_CONFIGURE=3D	yes
  CONFIGURE_ENV=3D	CPPFLAGS=3D"-I${LOCALBASE}/include" \
  		LDFLAGS=3D"-L${LOCALBASE}/lib"
  CONFIGURE_ARGS=3D	--without-hal --with-html-dir=3D"${PREFIX}/share/doc"
 =20
 =2DOPTIONS=3D	PYTHON	"Enable Python bindings"		off \
 =2D		TOOLS	"Build SysInfo detection utility"	off
 +OPTIONS=3D	PYTHON	"Enable Python bindings"	off
 +
 +#MONO	"Enable Mono bindings"		off
 +
 +PORTDOCS=3D	AUTHORS ChangeLog NEWS README \
 +		README.SysInfo README.overview README.sqlite
 =20
  .include <bsd.port.options.mk>
 =20
 +#.if defined(WITH_MONO)
 +#LIB_DEPENDS+=3D	mono.0:${PORTSDIR}/lang/mono
 +#CONFIGURE_ARGS+=3D	--with-mono
 +#PLIST_SUB+=3D	MONO=3D""
 +#.else
 +CONFIGURE_ARGS+=3D	--without-mono
 +#PLIST_SUB+=3D	MONO=3D"@comment "
 +#.endif
 +
  .if defined(WITH_PYTHON)
  USE_PYTHON=3D	yes
  BUILD_DEPENDS=3D	${PYTHON_SITELIBDIR}/gtk-2.0/gobject/__init__.py:${PORTSD=
 IR}/devel/py-gobject \
 @@ -40,18 +57,30 @@
  PLIST_SUB+=3D	PYTHON=3D"@comment "
  .endif
 =20
 =2D# SysInfo detection utility is required in order to support iPod classic
 =2D# and nano 3G
 =2D.if defined(WITH_TOOLS) || exists(${LOCALBASE}/lib/libsgutils2.so)
 =2DLIB_DEPENDS+=3D	sgutils2.2:${PORTSDIR}/sysutils/sg3_utils
 =2DPLIST_FILES+=3D	bin/ipod-read-sysinfo-extended
 +.include <bsd.port.pre.mk>
 +
 +.if ${OSVERSION} =3D=3D 800107 || ${OSVERSION} =3D=3D 900002
 +HAVE_LIBUSB104!=3D	${GREP} --quiet "libusb_fill_bulk_transfer" \
 +				/usr/include/libusb.h \
 +				&& ${ECHO_CMD} yes || ${ECHO_CMD} no
 +.elif ${OSVERSION} > 800107 && ${OSVERSION} < 900000 || ${OSVERSION} > 900=
 002
 +HAVE_LIBUSB104=3D		yes
 +.else
 +HAVE_LIBUSB104=3D		no
 +.endif
 +.if ${HAVE_LIBUSB104} =3D=3D "yes"
 +LIB_DEPENDS+=3D	imobiledevice.1:${PORTSDIR}/comms/libimobiledevice
 +CONFIGURE_ENV+=3D	LIBUSB_CFLAGS=3D" " LIBUSB_LIBS=3D"-lusb"
 +.else
 +CONFIGURE_ARGS+=3D	--without-libimobiledevice
  .endif
 =20
  post-patch: .SILENT
  # Adjust pkgconfigdir to the FreeBSD world
  	${REINPLACE_CMD} -e \
  		's,libdir)/pkgconfig,prefix)/libdata/pkgconfig,' \
 =2D			${WRKSRC}/Makefile.in
 +			${WRKSRC}/Makefile.in \
 +			${WRKSRC}/bindings/mono/libgpod-sharp/Makefile.in
  # Allow to build tools without HAL
  	${REINPLACE_CMD} -e \
  		'/noinst_PROGRAMS =3D/s,^,@HAVE_HAL_TRUE@,' \
 @@ -60,4 +89,12 @@
  	${REINPLACE_CMD} -e 's, docs,,' ${WRKSRC}/Makefile.in
  .endif
 =20
 =2D.include <bsd.port.mk>
 +post-install:
 +.ifndef(NOPORTDOCS)
 +	${MKDIR} ${DOCSDIR}
 +.for f in ${PORTDOCS}
 +	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
 +.endfor
 +.endif
 +
 +.include <bsd.port.post.mk>
 Index: distinfo
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 RCS file: /home/pcvs/ports/audio/libgpod/distinfo,v
 retrieving revision 1.7
 diff -u -r1.7 distinfo
 =2D-- distinfo	7 Aug 2009 17:01:29 -0000	1.7
 +++ distinfo	2 Mar 2011 04:08:00 -0000
 @@ -1,3 +1,2 @@
 =2DMD5 (libgpod-0.7.2.tar.gz) =3D 1ec69c3a19fb071b1639cdcaf68463c1
 =2DSHA256 (libgpod-0.7.2.tar.gz) =3D 2e8f31fc37ed0c9c89004097fdb568e8971627=
 e7aedfb57fb229399c0f490777
 =2DSIZE (libgpod-0.7.2.tar.gz) =3D 959142
 +SHA256 (libgpod-0.8.0.tar.gz) =3D 1b8baef8e5a718f6a11eaaea5619b906198766d9=
 99e8d54308f514b522571602
 +SIZE (libgpod-0.8.0.tar.gz) =3D 997674
 Index: pkg-plist
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 RCS file: /home/pcvs/ports/audio/libgpod/pkg-plist,v
 retrieving revision 1.9
 diff -u -r1.9 pkg-plist
 =2D-- pkg-plist	23 Aug 2009 18:30:41 -0000	1.9
 +++ pkg-plist	2 Mar 2011 04:08:00 -0000
 @@ -1,15 +1,16 @@
 +bin/ipod-read-sysinfo-extended
  include/gpod-1.0/gpod/itdb.h
  @dirrm include/gpod-1.0/gpod
  @dirrm include/gpod-1.0
 =2Dlib/libgpod.so.5
 +lib/libgpod.so.7
  lib/libgpod.so
  lib/libgpod.la
  lib/libgpod.a
  libdata/pkgconfig/libgpod-1.0.pc
 +libdata/pkgconfig/libgpod-sharp.pc
  %%PYTHON%%%%PYTHON_SITELIBDIR%%/gpod/__init__.py
  %%PYTHON%%%%PYTHON_SITELIBDIR%%/gpod/__init__.pyc
  %%PYTHON%%%%PYTHON_SITELIBDIR%%/gpod/__init__.pyo
 =2D%%PYTHON%%%%PYTHON_SITELIBDIR%%/gpod/_gpod.a
  %%PYTHON%%%%PYTHON_SITELIBDIR%%/gpod/_gpod.la
  %%PYTHON%%%%PYTHON_SITELIBDIR%%/gpod/_gpod.so
  %%PYTHON%%%%PYTHON_SITELIBDIR%%/gpod/gpod.py
 
 --Boundary-01=_cLcbNG7Z46wgxfy--
 
 --nextPart1502472.I8QdbrgmiL
 Content-Type: application/pgp-signature; name=signature.asc 
 Content-Description: This is a digitally signed message part.
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.17 (FreeBSD)
 
 iJwEAAECAAYFAk1twtwACgkQ3xiC6kQ1CosJjwP+ObzYrJMIIHknymlw7eY+60Ao
 OFb168CzCUGT+d6wULDCtu2gzjQhlkfxoHOGrwUbZkWii4Gp5UTJhuS7UrddO9an
 jypTwVhmonntOLyzsNgvSpRBJDCulg/K3NLooypQGeyWZmzrYU5hnFodbw3zY5Zr
 pAHjWDxfwJZaJr/yFew=
 =kwHu
 -----END PGP SIGNATURE-----
 
 --nextPart1502472.I8QdbrgmiL--

From: Alberto Villa <avilla@freebsd.org>
To: bug-followup@freebsd.org,
 avilla@freebsd.org
Cc:  
Subject: Re: ports/155161: [patch] update port: audio/libgpod 0.7.2 -> 0.8.0
Date: Mon, 7 Mar 2011 01:43:18 +0100

 --nextPart1785806.NDmOq80Xz8
 Content-Type: multipart/mixed;
   boundary="Boundary-01=_noCdNysUcRjl+/k"
 Content-Transfer-Encoding: 7bit
 
 
 --Boundary-01=_noCdNysUcRjl+/k
 Content-Type: Text/Plain;
   charset="us-ascii"
 Content-Transfer-Encoding: quoted-printable
 Content-Disposition: inline
 
 yet a correction in the libusb detection part... patch updated
 =2D-=20
 Alberto Villa, FreeBSD committer <avilla@FreeBSD.org>
 http://people.FreeBSD.org/~avilla
 
 If a thing's worth doing, it is worth doing badly.
 		-- G. K. Chesterton
 
 --Boundary-01=_noCdNysUcRjl+/k
 Content-Type: text/plain;
   charset="UTF-8";
   name="libgpod.txt"
 Content-Transfer-Encoding: quoted-printable
 Content-Disposition: attachment;
 	filename="libgpod.txt"
 
 ? work
 Index: Makefile
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 RCS file: /home/pcvs/ports/audio/libgpod/Makefile,v
 retrieving revision 1.27
 diff -u -r1.27 Makefile
 =2D-- Makefile	31 May 2010 01:57:28 -0000	1.27
 +++ Makefile	7 Mar 2011 00:39:40 -0000
 @@ -6,28 +6,45 @@
  #
 =20
  PORTNAME=3D	libgpod
 =2DPORTVERSION=3D	0.7.2
 =2DPORTREVISION=3D	4
 +PORTVERSION=3D	0.8.0
  CATEGORIES=3D	audio
 =2DMASTER_SITES=3D	SF/gtkpod/${PORTNAME}/${PORTNAME}-${PORTVERSION}
 +MASTER_SITES=3D	SF/gtkpod/${PORTNAME}/${PORTNAME}-${PORTVERSION:R}
 =20
  MAINTAINER=3D	danfe@FreeBSD.org
  COMMENT=3D	A library for direct access of iPod contents
 =20
 +LIB_DEPENDS=3D	plist.1:${PORTSDIR}/devel/libplist \
 +		tag.1:${PORTSDIR}/audio/taglib \
 +		sgutils2.2:${PORTSDIR}/sysutils/sg3_utils
 +
  USE_GETTEXT=3D	yes
  USE_GMAKE=3D	yes
  USE_GNOME=3D	gtk20
 +USE_SQLITE=3D	3
  USE_LDCONFIG=3D	yes
  GNU_CONFIGURE=3D	yes
  CONFIGURE_ENV=3D	CPPFLAGS=3D"-I${LOCALBASE}/include" \
  		LDFLAGS=3D"-L${LOCALBASE}/lib"
  CONFIGURE_ARGS=3D	--without-hal --with-html-dir=3D"${PREFIX}/share/doc"
 =20
 =2DOPTIONS=3D	PYTHON	"Enable Python bindings"		off \
 =2D		TOOLS	"Build SysInfo detection utility"	off
 +OPTIONS=3D	PYTHON	"Enable Python bindings"	off
 +
 +#MONO	"Enable Mono bindings"		off
 +
 +PORTDOCS=3D	AUTHORS ChangeLog NEWS README \
 +		README.SysInfo README.overview README.sqlite
 =20
  .include <bsd.port.options.mk>
 =20
 +#.if defined(WITH_MONO)
 +#LIB_DEPENDS+=3D	mono.0:${PORTSDIR}/lang/mono
 +#CONFIGURE_ARGS+=3D	--with-mono
 +#PLIST_SUB+=3D	MONO=3D""
 +#.else
 +CONFIGURE_ARGS+=3D	--without-mono
 +#PLIST_SUB+=3D	MONO=3D"@comment "
 +#.endif
 +
  .if defined(WITH_PYTHON)
  USE_PYTHON=3D	yes
  BUILD_DEPENDS=3D	${PYTHON_SITELIBDIR}/gtk-2.0/gobject/__init__.py:${PORTSD=
 IR}/devel/py-gobject \
 @@ -40,18 +57,21 @@
  PLIST_SUB+=3D	PYTHON=3D"@comment "
  .endif
 =20
 =2D# SysInfo detection utility is required in order to support iPod classic
 =2D# and nano 3G
 =2D.if defined(WITH_TOOLS) || exists(${LOCALBASE}/lib/libsgutils2.so)
 =2DLIB_DEPENDS+=3D	sgutils2.2:${PORTSDIR}/sysutils/sg3_utils
 =2DPLIST_FILES+=3D	bin/ipod-read-sysinfo-extended
 +.include <bsd.port.pre.mk>
 +
 +.if ${OSVERSION} > 800107 && ${OSVERSION} < 900000 || ${OSVERSION} > 900002
 +LIB_DEPENDS+=3D	imobiledevice.1:${PORTSDIR}/comms/libimobiledevice
 +CONFIGURE_ENV+=3D	LIBUSB_CFLAGS=3D" " LIBUSB_LIBS=3D"-lusb"
 +.else
 +CONFIGURE_ARGS+=3D	--without-libimobiledevice
  .endif
 =20
  post-patch: .SILENT
  # Adjust pkgconfigdir to the FreeBSD world
  	${REINPLACE_CMD} -e \
  		's,libdir)/pkgconfig,prefix)/libdata/pkgconfig,' \
 =2D			${WRKSRC}/Makefile.in
 +			${WRKSRC}/Makefile.in \
 +			${WRKSRC}/bindings/mono/libgpod-sharp/Makefile.in
  # Allow to build tools without HAL
  	${REINPLACE_CMD} -e \
  		'/noinst_PROGRAMS =3D/s,^,@HAVE_HAL_TRUE@,' \
 @@ -60,4 +80,12 @@
  	${REINPLACE_CMD} -e 's, docs,,' ${WRKSRC}/Makefile.in
  .endif
 =20
 =2D.include <bsd.port.mk>
 +post-install:
 +.ifndef(NOPORTDOCS)
 +	${MKDIR} ${DOCSDIR}
 +.for f in ${PORTDOCS}
 +	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
 +.endfor
 +.endif
 +
 +.include <bsd.port.post.mk>
 Index: distinfo
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 RCS file: /home/pcvs/ports/audio/libgpod/distinfo,v
 retrieving revision 1.7
 diff -u -r1.7 distinfo
 =2D-- distinfo	7 Aug 2009 17:01:29 -0000	1.7
 +++ distinfo	7 Mar 2011 00:39:40 -0000
 @@ -1,3 +1,2 @@
 =2DMD5 (libgpod-0.7.2.tar.gz) =3D 1ec69c3a19fb071b1639cdcaf68463c1
 =2DSHA256 (libgpod-0.7.2.tar.gz) =3D 2e8f31fc37ed0c9c89004097fdb568e8971627=
 e7aedfb57fb229399c0f490777
 =2DSIZE (libgpod-0.7.2.tar.gz) =3D 959142
 +SHA256 (libgpod-0.8.0.tar.gz) =3D 1b8baef8e5a718f6a11eaaea5619b906198766d9=
 99e8d54308f514b522571602
 +SIZE (libgpod-0.8.0.tar.gz) =3D 997674
 Index: pkg-plist
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 RCS file: /home/pcvs/ports/audio/libgpod/pkg-plist,v
 retrieving revision 1.9
 diff -u -r1.9 pkg-plist
 =2D-- pkg-plist	23 Aug 2009 18:30:41 -0000	1.9
 +++ pkg-plist	7 Mar 2011 00:39:40 -0000
 @@ -1,15 +1,16 @@
 +bin/ipod-read-sysinfo-extended
  include/gpod-1.0/gpod/itdb.h
  @dirrm include/gpod-1.0/gpod
  @dirrm include/gpod-1.0
 =2Dlib/libgpod.so.5
 +lib/libgpod.so.7
  lib/libgpod.so
  lib/libgpod.la
  lib/libgpod.a
  libdata/pkgconfig/libgpod-1.0.pc
 +libdata/pkgconfig/libgpod-sharp.pc
  %%PYTHON%%%%PYTHON_SITELIBDIR%%/gpod/__init__.py
  %%PYTHON%%%%PYTHON_SITELIBDIR%%/gpod/__init__.pyc
  %%PYTHON%%%%PYTHON_SITELIBDIR%%/gpod/__init__.pyo
 =2D%%PYTHON%%%%PYTHON_SITELIBDIR%%/gpod/_gpod.a
  %%PYTHON%%%%PYTHON_SITELIBDIR%%/gpod/_gpod.la
  %%PYTHON%%%%PYTHON_SITELIBDIR%%/gpod/_gpod.so
  %%PYTHON%%%%PYTHON_SITELIBDIR%%/gpod/gpod.py
 
 --Boundary-01=_noCdNysUcRjl+/k--
 
 --nextPart1785806.NDmOq80Xz8
 Content-Type: application/pgp-signature; name=signature.asc 
 Content-Description: This is a digitally signed message part.
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.17 (FreeBSD)
 
 iJwEAAECAAYFAk10KioACgkQ3xiC6kQ1CotSKQP/cOdEsJaqF3rryyLNri9dTDmT
 DnMqh69mP3RiPmIfu4EeDnJubUdwT2BTMh2HD5SroxZ/yWDHR9v0TE47oRNtwdgs
 3RcKaIpTYOhqOMvJSuGGoohWrF4bBpG/v5UzbQz2zhLR7MMgLO+tt6QpdehnzIHN
 BOTq4kC24kntBVAXBTM=
 =9Sdg
 -----END PGP SIGNATURE-----
 
 --nextPart1785806.NDmOq80Xz8--
State-Changed-From-To: open->closed 
State-Changed-By: danfe 
State-Changed-When: Tue Mar 15 15:15:37 UTC 2011 
State-Changed-Why:  
Committed with modifications: added LICENSE, fix Mono binding build, 
remove superfluous mkdir of DOCSDIR since it is created during 
installation.  Also, thanks for taking maintainership of this baby! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=155161 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/155161: commit references a PR
Date: Tue, 15 Mar 2011 15:12:17 +0000 (UTC)

 danfe       2011-03-15 15:03:00 UTC
 
   FreeBSD ports repository
 
   Modified files:
     audio/libgpod        Makefile distinfo pkg-descr pkg-plist 
   Log:
   - Update to version 0.8.0
   - Add LICENSE (LGPL20)
   - Install some extra documentation files
   - Transfer maintainership to submitter.  Alberto did a good job on porting
     libgpod dependencies, owns more recent Apple gadgets than me, and kindly
     agreed to look after this port
   
   PR:             ports/155161
   Submitted by:   avilla
   
   Revision  Changes    Path
   1.28      +42 -17    ports/audio/libgpod/Makefile
   1.8       +2 -3      ports/audio/libgpod/distinfo
   1.5       +1 -1      ports/audio/libgpod/pkg-descr
   1.10      +10 -4     ports/audio/libgpod/pkg-plist
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
