Update to 1.2.

Install examples.
Install as a Tcl module.
This commit is contained in:
stu 2015-07-13 00:57:06 +00:00
parent 13485d32a7
commit 6d9eddaaaa
5 changed files with 66 additions and 14 deletions

View File

@ -1,27 +1,39 @@
# $OpenBSD: Makefile,v 1.3 2015/04/04 09:21:05 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.4 2015/07/13 00:57:06 stu Exp $
COMMENT = high level interface to dbus-tcl
DISTNAME = dbus-intf0.4
PKGNAME = dbus-intf-0.4
V = 1.2
DISTNAME = dbus-intf-${V}
CATEGORIES = x11
HOMEPAGE = http://dbus-tcl.sourceforge.net/
MAINTAINER = Stuart Cassoff <stwo@users.sourceforge.net>
REVISION = 0
# ISC
PERMIT_PACKAGE_CDROM = Yes
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=dbus-tcl/}
DISTFILES = dbus-intf{dbif}-${V}.tar.gz
MODULES = lang/tcl
BUILD_DEPENDS = devel/tcllib
RUN_DEPENDS = x11/dbus-tcl
RUN_DEPENDS = x11/dbus-tcl>=2.1
SEPARATE_BUILD =Yes
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS+=--with-tcl=${MODTCL_LIBDIR} \
--libdir=${MODTCL_TCLDIR}
--docdir='$${datarootdir}/doc/dbus-intf'
CONFIGURE_ENV+= moduledir=${MODTCL_MODDIR}/85
NO_TEST = Yes
WRKDIST = ${WRKDIR}/dbif-${V}
SUBST_VARS += V
pre-configure:
@${MODTCL_WISH_ADJ} ${WRKSRC}/examples/hello.tcl
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/dbus-intf
${INSTALL_SCRIPT} ${WRKSRC}/examples/hello.tcl \
${PREFIX}/share/examples/dbus-intf
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (dbus-intf0.4.tar.gz) = QqxNxbhxHDWciGRHUS4uYJunOcJBNv2G7Z7dje0A5pk=
SIZE (dbus-intf0.4.tar.gz) = 87714
SHA256 (dbus-intf-1.2.tar.gz) = 3sB3wH0YLOH5mH0hqyQozS5Ibm4d/sy1/MxbkEjyVlM=
SIZE (dbus-intf-1.2.tar.gz) = 108314

View File

@ -0,0 +1,20 @@
$OpenBSD: patch-Makefile_in,v 1.1 2015/07/13 00:57:06 stu Exp $
--- Makefile.in.orig Wed Apr 29 13:44:46 2015
+++ Makefile.in Wed Apr 29 13:44:59 2015
@@ -47,13 +47,13 @@ module: $(MODULE_NAME)
doc: doc/dbif.html doc/dbif.n
$(MODULE_NAME): $(PKG_TCL_SOURCES)
- cp $< $@
+ cp $+ $> $@
doc/dbif.n: $(srcdir)/doc/dbif.man
- $(DTPLITE) -o $@ nroff $+
+ $(DTPLITE) -o $@ nroff $+ $>
doc/dbif.html: $(srcdir)/doc/dbif.man
- $(DTPLITE) -o $@ html $+
+ $(DTPLITE) -o $@ html $+ $>
VPATH = $(srcdir)

View File

@ -1,8 +1,9 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2012/08/08 11:46:35 stu Exp $
lib/tcl/dbus-intf/
lib/tcl/dbus-intf/dbus-intf.tcl
lib/tcl/dbus-intf/pkgIndex.tcl
@man man/mann/dbus-intf.n
@comment $OpenBSD: PLIST,v 1.2 2015/07/13 00:57:06 stu Exp $
lib/tcl/modules/85/dbif-${V}.tm
@man man/mann/dbif.n
share/doc/dbus-intf/
share/doc/dbus-intf/dbus-intf.html
share/doc/dbus-intf/dbif.html
share/doc/dbus-intf/license.terms
share/doc/pkg-readmes/${FULLPKGNAME}
share/examples/dbus-intf/
share/examples/dbus-intf/hello.tcl

19
x11/dbus-intf/pkg/README Normal file
View File

@ -0,0 +1,19 @@
$OpenBSD: README,v 1.1 2015/07/13 00:57:06 stu Exp $
+-----------------------------------------------------------------------
| Running ${FULLPKGNAME} on OpenBSD
+-----------------------------------------------------------------------
If used with non-threaded Tcl or an executable that is
not linked with libpthread then it will be necessary to
set "LD_PRELOAD=/usr/lib/libpthread.so" in the environment.
As of version 1.0:
The 'dbus-intf' Tcl package is now called 'dbif'.
Man and doc files dbus-intf.n and dbus-intf.html are
now dbif.n and dbif.html, respectively.
All other port files and directories remain 'dbus-intf'.
Occurrences of [package require dbus-intf]
should be changed to [package require dbif].