Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 07 Jun 2013 09:58:01 +0200
From:      nemysis <nemysis@gmx.ch>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        lichray@gmail.com
Subject:   ports/179391: [PATCH] audio/pure-audio: New Uses pure, add license
Message-ID:  <20130607075804.76E0DC2E@hub.freebsd.org>
Resent-Message-ID: <201306070800.r57800g0062724@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         179391
>Category:       ports
>Synopsis:       [PATCH] audio/pure-audio: New Uses pure, add license
>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:   Fri Jun 07 08:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     nemysis
>Release:        FreeBSD 9.1-RELEASE-p3 amd64
>Organization:
>Environment:
System: FreeBSD FreeBSD_Ports 9.1-RELEASE-p3 FreeBSD 9.1-RELEASE-p3 #0: Mon Apr 29 18:27:25 UTC 2013
>Description:

- Shorten header
- Trim master sites
- Trim comment
- Add license
- New Uses pure
- Add docs and examples
- Trim pkg-descr

Port maintainer (lichray@gmail.com) is cc'd.

Generated and tested manually, tested with port test and with RedPorts, sent with FreeBSD Port Tools 0.99_7 (mode: change, diff: ports)

Build log

https://redports.org/buildarchive/20130607005500-45597/

>How-To-Repeat:
>Fix:

--- pure-audio-0.5.patch begins here ---
diff -ruN /usr/ports/audio/pure-audio/Makefile ./Makefile
--- /usr/ports/audio/pure-audio/Makefile	2013-06-02 19:00:25.000000000 +0200
+++ ./Makefile	2013-06-07 00:20:23.000000000 +0200
@@ -1,30 +1,46 @@
-# New ports collection makefile for:	pure-gtk
-# Date created:		2011-03-18
-# Whom:			Zhihao Yuan <lichray@gmail.com>
-#
+# Created by: Zhihao Yuan <lichray@gmail.com>
 # $FreeBSD: head/audio/pure-audio/Makefile 300895 2012-07-14 12:56:14Z beat $
-#
 
 PORTNAME=	pure-audio
 PORTVERSION=	0.5
 CATEGORIES=	audio
+#MASTER_SITES=	https://cdn.bitbucket.org/purelang/pure-lang/downloads/
+MASTER_SITES=	https://pure-lang.googlecode.com/files/
+DIST_SUBDIR=	pure
 
 MAINTAINER=	lichray@gmail.com
-COMMENT=	A digital audio interface for the Pure language
+COMMENT=	Digital audio interface for the Pure language
+
+LICENSE=	BSD
 
 LIB_DEPENDS=	portaudio:${PORTSDIR}/audio/portaudio2 \
 		samplerate:${PORTSDIR}/audio/libsamplerate \
 		sndfile:${PORTSDIR}/audio/libsndfile \
 		fftw3:${PORTSDIR}/math/fftw3
 
-USE_PURE=	yes
+USES=		pure
 
 post-patch:
-	${REINPLACE_CMD} \
+	@${REINPLACE_CMD} \
 		-e "s|-lportaudio|-I${LOCALBASE}/include/portaudio2 -L${LOCALBASE}/lib/portaudio2 -lportaudio|" \
 		-e "s|portaudio.h|portaudio2/portaudio.h|g" \
-	   	${WRKSRC}/Makefile
+			${WRKSRC}/Makefile
+
+PORTDOCS=	README
+
+PORTEXAMPLES=	*
+
+.include <bsd.port.options.mk>
+
+post-install:
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
+.endif
+
+.if ${PORT_OPTIONS:MEXAMPLES}
+	@${MKDIR} ${EXAMPLESDIR}
+	@(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${EXAMPLESDIR})
+.endif
 
-.include <bsd.port.pre.mk>
-.include "${PORTSDIR}/lang/pure/bsd.pure.mk"
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff -ruN /usr/ports/audio/pure-audio/pkg-descr ./pkg-descr
--- /usr/ports/audio/pure-audio/pkg-descr	2013-06-02 19:00:25.000000000 +0200
+++ ./pkg-descr	2013-04-05 20:44:51.000000000 +0200
@@ -4,4 +4,4 @@
 to realtime scheduling on systems which have a pthreads library with the
 POSIX realtime threads extension.
 
-WWW:	http://docs.pure-lang.googlecode.com/hg/pure-audio.html
+WWW: http://docs.pure-lang.googlecode.com/hg/pure-audio.html
--- pure-audio-0.5.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



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