Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Apr 2009 22:23:16 +0200
From:      Heiner <h.eichmann@gmx.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/133928: New Port: multimedia/gdialog, A Project X addon to read Siemens Gigaset M740AV video recordings
Message-ID:  <200904222223.16197.h.eichmann@gmx.de>
Resent-Message-ID: <200904222030.n3MKU19v069882@freefall.freebsd.org>

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

>Number:         133928
>Category:       ports
>Synopsis:       New Port: multimedia/gdialog, A Project X addon to read
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 22 20:30:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Heiner Eichmann <h.eichmann@gmx.de>
>Release:        FreeBSD 7.1-RELEASE
>Organization:
Sirius Cybernetics Corp.
>Environment:
FreeBSD 7of9.unimatrix-zero.borg 7.1-RELEASE-p3 FreeBSD 7.1-RELEASE-p3 #0: Sun 
Feb 22 13:06:04 CET 2009     
root@7of9.unimatrix-zero.borg:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
"GDialog" is an add-on for "Project X - DVB demux Tool".
It adds a dialog to it's GUI to retrieve and select the video recordings 
of the Siemens Gigaset M740AV settop box. 
For details refer to the wiki (german only):
http://www.m740.de/wiki/ProjectX_mit_Gigaset-Erweiterung



I am not sure, if this port is as intended. I had 3 problems:

- GDialog is a java .jar, which extends another java program (projectx).
To work, it must copy a .jar into the directory with the files installed by 
the depentent port (projectx). Therefore the strange DATADIR= line

- It requires projectx to be installed at install time (copies into its 
install directory) and to be installed at run time. This is a typical 
LIB_DEPENDS situation. Unfortunately (as I understand it) LIB_DEPENDS works 
only on c-libraries, not on jars. Therefore I have made a BUILD_DEPENDS and 
RUN_DEPENDS out of it.

- GDialog 2.5 works only with projectx 0.90.4.00. Unfortunately I can not set 
BUILD_DEPENDS=  projectx=0.90.4.00_*:.... 
or
BUILD_DEPENDS=  projectx>=0.90.4.00_0 || projectx>=0.90.4.00_9999:...

so I set 
BUILD_DEPENDS=  projectx>=0.90.4.00:...

which will survive the next PORTREVISION bump but will fail on the next 
version upgrade of projectx. I have no better idea.

If someone with deeper insight into the FreeBSD port system has a better 
solution: any hint is welcome!


Regards,

Heiner

>How-To-Repeat:
>Fix:


--Boundary-00=_0y37Jc3bPWsH8ev
Content-Type: text/plain;
  charset="iso 8859-15";
  name="gdialog.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="gdialog.txt"

# 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:
#
#	gdialog
#	gdialog/Makefile
#	gdialog/distinfo
#	gdialog/pkg-descr
#	gdialog/pkg-plist
#	gdialog/files
#	gdialog/files/gdialog.sh.in
#
echo c - gdialog
mkdir -p gdialog > /dev/null 2>&1
echo x - gdialog/Makefile
sed 's/^X//' >gdialog/Makefile << '3ed0049d544c40296982dfe76a4f85ec'
X# New ports collection makefile for:	gdialog
X# Date created:			Sun Apr 19 21:30:26 CEST 2009
X# Whom:				Heiner Eichmann <h.eichmann@gmx.de>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	gdialog
XPORTVERSION=	2.5
XCATEGORIES=	multimedia java
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	gdialog-x
XDISTFILES=	GDialog-090400-25.zip
X
XMAINTAINER=	h.eichmann@gmx.de
XCOMMENT=	A Project X addon to read Siemens Gigaset M740AV video recordings
X
XBUILD_DEPENDS=	projectx>=0.90.4.00:${PORTSDIR}/multimedia/projectx
XRUN_DEPENDS=	projectx>=0.90.4.00:${PORTSDIR}/multimedia/projectx
X
XUSE_ZIP=	yes
XUSE_JAVA=	yes
XJAVA_VERSION=	1.3+
XUSE_JIKES=	no
XEXTRACT_AFTER_ARGS=	-d ${WRKDIR}/gdialog-${PORTVERSION}
X
XSUB_FILES=	gdialog.sh
XDATADIR=	${JAVASHAREDIR}/projectx
X
Xdo-build:
X
Xdo-install:
X	${MKDIR} ${DATADIR}
X	${INSTALL_DATA} ${WRKSRC}/GDialog.jar ${DATADIR}
X	${INSTALL_DATA} ${WRKSRC}/ReleaseNotes.txt ${DATADIR}/GDialog-ReleaseNotes.txt
X	${INSTALL_DATA} ${WRKSRC}/Copying ${DATADIR}/GDialog-Copying
X	${INSTALL_SCRIPT} ${WRKDIR}/gdialog.sh ${PREFIX}/bin/gdialog
X
X.include <bsd.port.mk>
3ed0049d544c40296982dfe76a4f85ec
echo x - gdialog/distinfo
sed 's/^X//' >gdialog/distinfo << '3432ec1b1f293cbdfc31b4ceedc52c10'
XMD5 (GDialog-090400-25.zip) = e1322ebb076219da83ea929f7d3a18a1
XSHA256 (GDialog-090400-25.zip) = ce2aa949b1bff567d7ce2f3a4b3f62a0d886b0dcdb02aa7c02eca2a43ae7faba
XSIZE (GDialog-090400-25.zip) = 297624
3432ec1b1f293cbdfc31b4ceedc52c10
echo x - gdialog/pkg-descr
sed 's/^X//' >gdialog/pkg-descr << '3ba3087d607fbe8bedda588d45265da8'
X"GDialog" is an add-on for "Project X - DVB demux Tool".
XIt adds a dialog to it's GUI to retrieve and select the video recordings 
Xof the Siemens Gigaset M740AV settop box. 
XFor details refer to the wiki (german only):
Xhttp://www.m740.de/wiki/ProjectX_mit_Gigaset-Erweiterung
X
XWWW: http://sourceforge.net/projects/gdialog-x
XHeiner (h.eichmann@gmx.de)
3ba3087d607fbe8bedda588d45265da8
echo x - gdialog/pkg-plist
sed 's/^X//' >gdialog/pkg-plist << '18dff07008f253c2acdfcd6fa3491f0d'
Xbin/gdialog
X%%DATADIR%%/GDialog-Copying
X%%DATADIR%%/GDialog.jar
X%%DATADIR%%/GDialog-ReleaseNotes.txt
X@dirrmtry %%DATADIR%%
18dff07008f253c2acdfcd6fa3491f0d
echo c - gdialog/files
mkdir -p gdialog/files > /dev/null 2>&1
echo x - gdialog/files/gdialog.sh.in
sed 's/^X//' >gdialog/files/gdialog.sh.in << '2c515a63c09b590989a932574dea0e12'
X#!/bin/sh
X#
X# $FreeBSD: $
X
Xcase "$#" in
X0)
X	mkdir -p "${HOME}/.projectx"
X	cd "${HOME}/.projectx"
X	ln -sf %%DATADIR%%/*.txt %%DATADIR%%/htmls .
X	if ! grep '^# ProjectX 0.90.4.00' X.ini >/dev/null 2>&1; then
X		rm -f X.ini
X	fi
X	;;
Xesac
X
XJAVA_VERSION="%%JAVA_VERSION%%" exec "%%LOCALBASE%%/bin/java" -jar "%%DATADIR%%/GDialog.jar" "$@"
2c515a63c09b590989a932574dea0e12
exit


--Boundary-00=_0y37Jc3bPWsH8ev--
>Release-Note:
>Audit-Trail:
>Unformatted:
 --Boundary-00=_0y37Jc3bPWsH8ev
 Content-Type: text/plain;
   charset="iso-8859-1"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline
 
 Siemens Gigaset M740AV video recordings



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