From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Jan 4 13:50:30 2007 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F3C0616A412 for ; Thu, 4 Jan 2007 13:50:29 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id D309C13C43E for ; Thu, 4 Jan 2007 13:50:29 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l04DoT0n026133 for ; Thu, 4 Jan 2007 13:50:29 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l04DoTRD026132; Thu, 4 Jan 2007 13:50:29 GMT (envelope-from gnats) Resent-Date: Thu, 4 Jan 2007 13:50:29 GMT Resent-Message-Id: <200701041350.l04DoTRD026132@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Martin Matuska Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2B6CC16A50E for ; Thu, 4 Jan 2007 13:49:07 +0000 (UTC) (envelope-from rebum@mail.vx.sk) Received: from mail.vx.sk (neo.vx.sk [88.198.35.14]) by mx1.freebsd.org (Postfix) with ESMTP id AF9FA13C458 for ; Thu, 4 Jan 2007 13:49:06 +0000 (UTC) (envelope-from rebum@mail.vx.sk) Received: from localhost (localhost [127.0.0.1]) by mail.vx.sk (Postfix) with ESMTP id 772393F42B for ; Thu, 4 Jan 2007 14:15:56 +0100 (CET) Received: from mail.vx.sk ([127.0.0.1]) by localhost (mail.vx.sk [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 2GQUgF+yFNN6 for ; Thu, 4 Jan 2007 14:15:52 +0100 (CET) Received: by mail.vx.sk (Postfix, from userid 1001) id 378CD3F42E; Thu, 4 Jan 2007 14:15:52 +0100 (CET) Message-Id: <20070104131552.378CD3F42E@mail.vx.sk> Date: Thu, 4 Jan 2007 14:15:52 +0100 (CET) From: Martin Matuska To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/107519: [NEW PORT] archivers/tclmkziplib 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Jan 2007 13:50:30 -0000 >Number: 107519 >Category: ports >Synopsis: [NEW PORT] archivers/tclmkziplib 1.0 >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: Thu Jan 04 13:50:29 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Martin Matuska >Release: FreeBSD 6.1-RELEASE-p10 amd64 >Organization: >Environment: System: FreeBSD 6.1-RELEASE-p10 i386 and amd64 >Description: GZIP and ZIP extension for TCL >How-To-Repeat: >Fix: diff -Nbur archivers/tclmkziplib.orig/Makefile archivers/tclmkziplib/Makefile --- archivers/tclmkziplib.orig/Makefile Thu Jan 1 01:00:00 1970 +++ archivers/tclmkziplib/Makefile Thu Jan 4 14:14:37 2007 @@ -0,0 +1,49 @@ +# New ports collection makefile for: tclmkziplib +# Date created: 4 Jan 2007 +# Whom: martin@matuska.org +# +# $FreeBSD$ +# + +PORTNAME= tclmkziplib +PORTVERSION= 1.0 +CATEGORIES= archivers tcl83 tcl84 +MASTER_SITES= http://mkextensions.sourceforge.net/ +DISTNAME= mkZiplib${PORTVERSION:S/.//} + +MAINTAINER= martin@matuska.org +COMMENT= GZIP and ZIP support for TCL; dynamicly loadable + +TCL_VER?= 8.4 +TCLVND= ${TCL_VER:S/.//} + +LIB_DEPENDS+= tcl84:${PORTSDIR}/lang/tcl${TCLVND} + +WRKSRC= ${WRKDIR}/mkZiplib${PORTVERSION} +USE_ZIP= yes + +TCLCONFIG?= ${LOCALBASE}/lib/tcl${TCL_VER}/tclConfig.sh + +MAKEFILE= ${FILESDIR}/Makefile.bsd +MAKE_ENV= LOCALBASE=${LOCALBASE} \ + VERSION=${PORTVERSION:S/.//} \ + TCLCONFIG=${TCLCONFIG} + +PLIST_SUB+= VERSION=${PORTVERSION:S/.//} + +pre-build: + @${TEST} -f ${TCLCONFIG} || ( echo "tclConfig.sh is required to build mkZiplib"; exit 1 ) + +do-install: + @${MKDIR} ${PREFIX}/lib/mkZiplib + @${INSTALL_PROGRAM} ${WRKSRC}/mkZiplib${PORTVERSION:S/.//}.so ${PREFIX}/lib/mkZiplib + @${INSTALL_DATA} ${WRKSRC}/pkgIndex.tcl ${PREFIX}/lib/mkZiplib + +post-install: +.if !defined(NOPORTDOCS) + @ ${MKDIR} ${DOCSDIR} + @ ${INSTALL_DATA} ${WRKSRC}/mkZiplib${PORTVERSION:S/.//}.htm ${DOCSDIR} +.endif + + +.include diff -Nbur archivers/tclmkziplib.orig/distinfo archivers/tclmkziplib/distinfo --- archivers/tclmkziplib.orig/distinfo Thu Jan 1 01:00:00 1970 +++ archivers/tclmkziplib/distinfo Thu Jan 4 11:55:36 2007 @@ -0,0 +1,3 @@ +MD5 (mkZiplib10.zip) = d7bbe5a2fb62f7726dd2a59164dc08be +SHA256 (mkZiplib10.zip) = bc1f43e04702fb0157365ee5ff7e75878908ae9e357bd0b6deda75bc8de6d7c1 +SIZE (mkZiplib10.zip) = 97703 diff -Nbur archivers/tclmkziplib.orig/files/Makefile.bsd archivers/tclmkziplib/files/Makefile.bsd --- archivers/tclmkziplib.orig/files/Makefile.bsd Thu Jan 1 01:00:00 1970 +++ archivers/tclmkziplib/files/Makefile.bsd Thu Jan 4 13:31:20 2007 @@ -0,0 +1,30 @@ +PACKAGE = mkZiplib +VERSION ?= 10 +SHLIB_NAME = ${PACKAGE}${VERSION}.so + +SRCS = unzip.c zip.c mkZiplib${VERSION}.c + +LOCALBASE ?=/usr/local +TCL_VER ?=8.4 + +SOBJS= ${SRCS:N*.h:R:S/$/.o/} + +TCLCONFIG ?=${LOCALBASE}/lib/tcl${TCL_VER}/tclConfig.sh + +TCL_SHLIB_CFLAGS!= . ${TCLCONFIG}; \ + echo $$TCL_SHLIB_CFLAGS +TCL_INCLUDE_SPEC!= . ${TCLCONFIG}; \ + echo $$TCL_INCLUDE_SPEC +TCL_STUB_LIB_SPEC!= . ${TCLCONFIG}; \ + echo $$TCL_STUB_LIB_SPEC + +CFLAGS += ${TCL_SHLIB_CFLAGS} ${TCL_INCLUDE_SPEC} +LDFLAGS += ${TCL_STUB_LIB_SPEC} -lz + +all: ${SHLIB_NAME} + +${SHLIB_NAME}: ${SOBJS} + ${CC} ${LDFLAGS} -shared -o ${.TARGET} `lorder ${SOBJS} | tsort -q` ${LDADD} + +clean: + @rm -f ${SHLIB_NAME} ${SOBJS} diff -Nbur archivers/tclmkziplib.orig/pkg-descr archivers/tclmkziplib/pkg-descr --- archivers/tclmkziplib.orig/pkg-descr Thu Jan 1 01:00:00 1970 +++ archivers/tclmkziplib/pkg-descr Thu Jan 4 13:18:54 2007 @@ -0,0 +1,10 @@ +mkZiplib is a wrapper for Zlib 1.1.3 and Minizip 0.15. + +It is free, very portable and works for virtually any computer hardware +and operating system. With mkZiplib you can compress/decompress data and +work with .gz and .zip files from within Tcl. + +WWW: http://mkextensions.sourceforge.net + +- Martin Matuska +martin@matuska.org diff -Nbur archivers/tclmkziplib.orig/pkg-plist archivers/tclmkziplib/pkg-plist --- archivers/tclmkziplib.orig/pkg-plist Thu Jan 1 01:00:00 1970 +++ archivers/tclmkziplib/pkg-plist Thu Jan 4 13:37:14 2007 @@ -0,0 +1,5 @@ +lib/mkZiplib/pkgIndex.tcl +lib/mkZiplib/mkZiplib%%VERSION%%.so +%%PORTDOCS%%%%DOCSDIR%%/mkZiplib10.htm +%%PORTDOCS%%@dirrm %%DOCSDIR%% +@dirrm lib/mkZiplib >Release-Note: >Audit-Trail: >Unformatted: