From owner-freebsd-ports Fri Sep 13 8: 0:35 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B9B4937B400 for ; Fri, 13 Sep 2002 08:00:15 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB62443E6E for ; Fri, 13 Sep 2002 08:00:14 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g8DF0EJU014870 for ; Fri, 13 Sep 2002 08:00:14 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g8DF0Edk014869; Fri, 13 Sep 2002 08:00:14 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BCFA437B400 for ; Fri, 13 Sep 2002 07:58:30 -0700 (PDT) Received: from mainframe.sysfault.org (p508610D5.dip.t-dialin.net [80.134.16.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9640A43E42 for ; Fri, 13 Sep 2002 07:58:29 -0700 (PDT) (envelope-from raz@sysfault.org) Received: from raz by mainframe.sysfault.org with local (Exim 4.10) id 17prx1-000MC2-00 for FreeBSD-gnats-submit@freebsd.org; Fri, 13 Sep 2002 17:01:43 +0200 Message-Id: Date: Fri, 13 Sep 2002 17:01:43 +0200 From: Marcus vA Reply-To: Marcus vA To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/42733: Port Update: Lingoteach - sound addition Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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 -.include +.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 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