Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Sep 2002 17:01:43 +0200
From:      Marcus vA <mva121@gmx.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/42733: Port Update: Lingoteach - sound addition
Message-ID:  <E17prx1-000MC2-00@mainframe.sysfault.org>

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

>Number:         42733
>Category:       ports
>Synopsis:       Port Update: Lingoteach - sound addition
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 13 08:00:13 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Marcus vA
>Release:        FreeBSD 4.6.2-RELEASE i386
>Organization:
>Environment:
System: FreeBSD mainframe.sysfault.org 4.6.2-RELEASE FreeBSD 4.6.2-RELEASE #0: Fri Aug 16 14:32:43 CEST 2002 marcus@mainframe.sysfault.org:/usr/obj/usr/src/sys/PLONK i386

>Description:
	added WITH_SOUND for lingoteach, users now can choose
	if they want to have sound snippets automatically 
	installed

>How-To-Repeat:
>Fix:

diff -Nur lingoteach/Makefile lingoteach.new/Makefile
--- lingoteach/Makefile	Wed Sep 11 16:38:15 2002
+++ lingoteach.new/Makefile	Fri Sep 13 16:17:25 2002
@@ -7,8 +7,13 @@
 
 PORTNAME=      lingoteach
 PORTVERSION=   0.3.7
+PORTREVISION=  1
 CATEGORIES=    misc
 MASTER_SITES=  http://unc.dl.sourceforge.net/sourceforge/lingoteach/
+.if defined(WITH_SOUND)
+DISTFILES=     ${PORTNAME}-sound-${PORTVERSION}.tar.gz \
+	       ${PORTNAME}-${PORTVERSION}.tar.gz
+.endif
 
 MAINTAINER=    mva121@gmx.net
 
@@ -16,17 +21,55 @@
 	       xml2-config:${PORTSDIR}/textproc/libxml2:install
 LIB_DEPENDS=   xml2.5:${PORTSDIR}/textproc/libxml2:install \
 	       gtk-x11-2.0.0:${PORTSDIR}/x11-toolkits/gtk20:install
+.if defined(WITH_SOUND)
+RUN_DEPENDS=   ogg123:${PORTSDIR}/audio/vorbis-tools
+.endif
 
 GNU_CONFIGURE= yes
-CONFIGURE_TARGET=
+CONFIGURE_TARGET=""
 USE_GMAKE=     yes
 
-post-install::
-	@${ECHO_MSG} "--------------------------------------------------------"
-	@${ECHO_MSG} " If you want the sound snippets too, go to the projects "
-	@${ECHO_MSG} " homepage - http://lingoteach.org, fetch the tar ball   "
-	@${ECHO_MSG} " of the sound snippets and copy the content of data     "
-	@${ECHO_MSG} " to $PREFIX/share/lingoteach/data.                      "
-	@${ECHO_MSG} "--------------------------------------------------------"
+.if defined(WITH_SOUND)
+PLIST=	       ${WRKDIR}/plist
+.endif
+
+SORT?=	       /usr/bin/sort
+
+.include <bsd.port.pre.mk>
 
-.include <bsd.port.mk>
+.if !defined(WITH_SOUND)
+pre-extract::
+	@${ECHO_CMD} "************************************************"
+	@${ECHO_CMD} "*                                              *"
+	@${ECHO_CMD} "* For Sound in Lingoteach, type Ctrl-C now and *"
+	@${ECHO_CMD} "*            define WITH_SOUND=yes             *"
+	@${ECHO_CMD} "*                                              *"
+	@${ECHO_CMD} "************************************************"
+	@sleep 3
+.endif
+
+.if defined(WITH_SOUND)
+pre-install::
+	cd ${WRKSRC}/src; ${ECHO_CMD} \
+	"bin/`find . -type f -perm 755 |cut -c3-`" > ${PLIST}; \
+	cd ${WRKDIR}/${PORTNAME}-sound-${PORTVERSION}/data; \
+	${FIND} . -type f \! -name "Make*" | cut -c2- | \
+	${SED} 's|^|${DATADIR:S,${PREFIX}/,,}/data|' \
+	| ${SORT} >> ${PLIST}; \
+	cd ${WRKDIR}/${PORTNAME}-${PORTVERSION}/data; \
+	${FIND} . -type f \! -name "Make*" | cut -c2- | ${SED} \
+	's|^|${DATADIR:S,${PREFIX}/,,}/data|' | ${SORT} >> ${PLIST}; \
+	cd ${WRKDIR}/${PORTNAME}-sound-${PORTVERSION}/data; \
+	${FIND} . -type d | cut -c2- | ${SED} \
+	's|^|@dirrm ${DATADIR:S,${PREFIX}/,,}/data|' | ${SORT} -r >> ${PLIST};
+	${ECHO_CMD} "@dirrm ${DATADIR:S,${PREFIX}/,,}" >> ${PLIST};
+.endif
+
+.if defined(WITH_SOUND)
+post-install::
+	cd ${WRKDIR}/${PORTNAME}-sound-${PORTVERSION}/data; \
+	${RM} Make*; \
+	${CP} -R ${WRKDIR}/${PORTNAME}-sound-${PORTVERSION}/data \
+	${DATADIR};
+.endif
+.include <bsd.port.post.mk>

diff -Nur lingoteach/distinfo lingoteach.new/distinfo
--- lingoteach/distinfo	Wed Sep 11 16:38:15 2002
+++ lingoteach.new/distinfo	Thu Sep 12 18:09:21 2002
@@ -1 +1,2 @@
+MD5 (lingoteach-sound-0.3.7.tar.gz) = 13f008b67161fef001258582986b0997
 MD5 (lingoteach-0.3.7.tar.gz) = ac128bbf49b8e70fbe296aa9f71c5baf

diff -Nur lingoteach/pkg-comment lingoteach.new/pkg-comment
--- lingoteach/pkg-comment	Wed Sep 11 16:38:15 2002
+++ lingoteach.new/pkg-comment	Thu Sep 12 18:20:10 2002
@@ -1 +1 @@
-A language teaching program
+A language teaching program with sound

diff -Nur lingoteach/pkg-descr lingoteach.new/pkg-descr
--- lingoteach/pkg-descr	Wed Sep 11 16:38:15 2002
+++ lingoteach.new/pkg-descr	Thu Sep 12 21:10:17 2002
@@ -1,12 +1,9 @@
 This is a port of lingoteach, which aims to be a language
-teaching program. Until now, chinese, german, spanish and
-english are supported. You ca add your own lessons by using
-an integrated editor or editing the xml-files yourself.
-Different types of learning are available for actually 825
-words and sentences.
-For the soundsnippets, you have to download the sound tarball
-separately ad copy the content of its data-dir to
-$PREFIX/lingoteach/data.
+teaching program. Until now nearly 17 languages are supported, 
+some with sound of native speakers. You can add your own lessons
+by using an integrated editor or edit the XML-files manually.
+Different types of learning are available for many words and
+sentences.
 
 WWW: http://www.lingoteach.org
 



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

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E17prx1-000MC2-00>