ports/86245: [NEW PORT] deskutils/hoz: File splitter GTK and CLI versions

Jose Alonso Cardenas Marquez acardenas at bsd.org.pe
Sat Sep 17 02:40:24 UTC 2005


>Number:         86245
>Category:       ports
>Synopsis:       [NEW PORT] deskutils/hoz: File splitter GTK and CLI versions
>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:   Sat Sep 17 02:40:23 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Jose Alonso Cardenas Marquez
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
BSDPeru (http://www.bsd.org.pe)
>Environment:
System: FreeBSD HellFire.BSD.org.pe 5.4-STABLE FreeBSD 5.4-STABLE #0: Sat Sep 10 02:44:40 PET 2005
>Description:
HOZ is what you would call a "file splitter". Its file format is the same as the one used by the "Hacha" software, a well known splitter in Spain and  Latinamerica. HOZ is an open-source and portable  C implementation of an "Hacha" compatible splitter.

Author:	Gustavo Picon <tabo at slashcore.com>
WWW:	http://hoz.sourceforge.net/
>How-To-Repeat:
      
>Fix:
--- hoz-1.65.shar begins here ---
# 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:
#
#	hoz
#	hoz/pkg-descr
#	hoz/Makefile
#	hoz/pkg-plist
#	hoz/distinfo
#	hoz/files
#	hoz/files/patch-src_makehoz
#	hoz/files/patch-src_Makefile
#	hoz/files/patch-src_hozgtk_i.c
#
echo c - hoz
mkdir -p hoz > /dev/null 2>&1
echo x - hoz/pkg-descr
sed 's/^X//' >hoz/pkg-descr << 'END-of-hoz/pkg-descr'
XHOZ is what you would call a "file splitter". Its file format is the same as
Xthe one used by the "Hacha" software, a well known splitter in Spain and
X Latinamerica. HOZ is an open-source and portable  C implementation of an
X"Hacha" compatible splitter.
X
XAuthor:	Gustavo Picon <tabo at slashcore.com>
XWWW:	http://hoz.sourceforge.net/
END-of-hoz/pkg-descr
echo x - hoz/Makefile
sed 's/^X//' >hoz/Makefile << 'END-of-hoz/Makefile'
X# New ports collection makefile for:	HOZ - Hacha Open Zource
X# Date created:		2005-09-16
X# Whom:			Jose Alonso Cardenas Marquez <acardenas at bsd.org.pe>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	hoz
XPORTVERSION=	1.65
XCATEGORIES=	deskutils
XMASTER_SITES=	http://hoz.sourceforge.net/download/
XDISTNAME=	hoz-165
XEXTRACT_SUFX=	.tar.gz
X
XMAINTAINER=	acardenas at bsd.org.pe
XCOMMENT=	File splitter GTK and CLI versions
X
XNO_BUILD=	yes
XUSE_GZIP=	yes
XOPTIONS=	CLI	"CLI interface" off \
X		GTK2	"GTK interface" off \
X		FULL	"CLI and GTK interface"	on \
X		LANG_ES	"Spanish translation"	off \
X		LANG_EN	"English translation"	on \
X		LANG_FR	"French translation"	off
X
XWRKSRC=	${WRKDIR}/${DISTNAME}
XPORT_DBDIR?=	/var/db/ports
XLATEST_LINK=	${PORTNAME}
XOPTIONSFILE?=	${PORT_DBDIR}/${LATEST_LINK}/options
X
X.if exists(${OPTIONSFILE})
X.include "${OPTIONSFILE}"
X.endif
X
X.if defined(WITH_CLI)
XARGS=	cli
X.endif
X
X.if defined(WITH_GTK2)
XUSE_GNOME=	gtk20
XARGS=	gtk
X.endif
X
X.if defined(WITH_FULL)
XUSE_GNOME=	gtk20
XARGS=	both
X.endif
X
X.if defined(WITH_LANG_ES)
XLANGUAGE=	es
X.endif
X
X.if defined(WITH_LANG_EN)
XLANGUAGE=	en
X.endif
X
X.if defined(WITH_LANG_FR)
XLANGUAGE=	fr
X.endif
X
X.if !defined(WITH_CLI) && !defined(WITH_GTK2) && !defined(WITH_FULL)
XUSE_GNOME=	gtk20
XARGS=	both
X.endif
X
Xdo-install:
X	cd ${WRKSRC} && \
X		${SH} makehoz ${ARGS} ${LANGUAGE}
X	@${MKDIR} ${PREFIX}/share/doc/hoz
X	@${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/hoz
X
Xpost-install:
X
X	@${ECHO_CMD} ""
X	@${ECHO_CMD} ""
X	@${ECHO_CMD} "See /usr/local/share/hoz/README for more information about HOZ"
X	@${ECHO_CMD} ""
X	@${ECHO_CMD} ""
X
X.include <bsd.port.mk>
END-of-hoz/Makefile
echo x - hoz/pkg-plist
sed 's/^X//' >hoz/pkg-plist << 'END-of-hoz/pkg-plist'
Xbin/hoz
Xbin/ghoz
Xshare/doc/hoz/README
X at dirrm share/doc/hoz
END-of-hoz/pkg-plist
echo x - hoz/distinfo
sed 's/^X//' >hoz/distinfo << 'END-of-hoz/distinfo'
XMD5 (hoz-165.tar.gz) = 84287a9e50cb96dc20e4444dc74d64a0
XSIZE (hoz-165.tar.gz) = 36857
END-of-hoz/distinfo
echo c - hoz/files
mkdir -p hoz/files > /dev/null 2>&1
echo x - hoz/files/patch-src_makehoz
sed 's/^X//' >hoz/files/patch-src_makehoz << 'END-of-hoz/files/patch-src_makehoz'
X*** makehoz	Mon Jan 12 11:23:38 2004
X--- makehoz.orig	Fri Sep 16 18:17:40 2005
X***************
X*** 5,15 ****
X      exit 1
X  fi
X  
X  cli="0"
X  gtk="0"
X! lang="-DHOZ_LANG_EN"
X  
X  while test $# -gt 0; do
X      case $1 in
X          cli)
X  	    cli="1";;
X--- 5,15 ----
X      exit 1
X  fi
X  
X  cli="0"
X  gtk="0"
X! lang="-DHOZ_LANG_ES"
X  
X  while test $# -gt 0; do
X      case $1 in
X          cli)
X  	    cli="1";;
X***************
X*** 34,45 ****
X      shift
X  done
X  
X  
X  if test ${cli} -eq 1; then
X!     make LANG=${lang} cli
X  fi
X  if test ${gtk} -eq 1; then
X!     make LANG=${lang} gtk
X  fi
X  
X  # vim ft=sh
X--- 34,45 ----
X      shift
X  done
X  
X  
X  if test ${cli} -eq 1; then
X!     gmake LANG=${lang} cli
X  fi
X  if test ${gtk} -eq 1; then
X!     gmake LANG=${lang} gtk
X  fi
X  
X  # vim ft=sh
END-of-hoz/files/patch-src_makehoz
echo x - hoz/files/patch-src_Makefile
sed 's/^X//' >hoz/files/patch-src_Makefile << 'END-of-hoz/files/patch-src_Makefile'
X*** Makefile	Mon Jan 12 11:23:38 2004
X--- Makefile.orig	Fri Sep 16 18:41:57 2005
X***************
X*** 7,23 ****
X  CFLAGS = -Wall			 	\
X  	 -O2                            \
X  	-DG_DISABLE_DEPRECATED 	 	\
X  	-DGDK_DISABLE_DEPRECATED 	\
X  	-DGDK_PIXBUF_DISABLE_DEPRECATED \
X! 	-DGTK_DISABLE_DEPRECATED
X! BIN  = /usr/bin/hoz
X! GBIN  = /usr/bin/ghoz
X  
X  GTK_COMP = `pkg-config gtk+-2.0 --cflags`
X  GTK_LINK = `pkg-config gtk+-2.0 --libs`
X- 
X  
X  # `pkg-config gtk+-2.0 --cflags --libs`
X  
X  .PHONY: all all-before all-after clean clean-custom cli gtk
X  
X--- 7,22 ----
X  CFLAGS = -Wall			 	\
X  	 -O2                            \
X  	-DG_DISABLE_DEPRECATED 	 	\
X  	-DGDK_DISABLE_DEPRECATED 	\
X  	-DGDK_PIXBUF_DISABLE_DEPRECATED \
X! #	-DGTK_DISABLE_DEPRECATED
X! BIN  = /usr/local/bin/hoz
X! GBIN  = /usr/local/bin/ghoz
X  
X  GTK_COMP = `pkg-config gtk+-2.0 --cflags`
X  GTK_LINK = `pkg-config gtk+-2.0 --libs`
X  
X  # `pkg-config gtk+-2.0 --cflags --libs`
X  
X  .PHONY: all all-before all-after clean clean-custom cli gtk
X  
END-of-hoz/files/patch-src_Makefile
echo x - hoz/files/patch-src_hozgtk_i.c
sed 's/^X//' >hoz/files/patch-src_hozgtk_i.c << 'END-of-hoz/files/patch-src_hozgtk_i.c'
X*** hozgtk_i.c	Tue Feb 17 09:31:38 2004
X--- /home/acardenas/hoz-165/hozgtk_i.c	Fri Sep 16 17:53:15 2005
X***************
X*** 119,129 ****
X    gtk_combo_set_popdown_strings (GTK_COMBO (combo_size), combo_size_items);
X    g_list_free (combo_size_items);
X  
X    combo_entry_size = GTK_COMBO (combo_size)->entry;
X    gtk_widget_show (combo_entry_size);
X!   gtk_widget_set_size_request (combo_entry_size, 50, -2);
X    gtk_editable_set_editable (GTK_EDITABLE (combo_entry_size), FALSE);
X    gtk_entry_set_text (GTK_ENTRY (combo_entry_size), "bytes");
X  
X    g_signal_connect ((gpointer) window_hoz, "destroy",
X                      G_CALLBACK (on_window_hoz_destroy),
X--- 119,129 ----
X    gtk_combo_set_popdown_strings (GTK_COMBO (combo_size), combo_size_items);
X    g_list_free (combo_size_items);
X  
X    combo_entry_size = GTK_COMBO (combo_size)->entry;
X    gtk_widget_show (combo_entry_size);
X!   gtk_widget_set_size_request (combo_entry_size, 50, -1);
X    gtk_editable_set_editable (GTK_EDITABLE (combo_entry_size), FALSE);
X    gtk_entry_set_text (GTK_ENTRY (combo_entry_size), "bytes");
X  
X    g_signal_connect ((gpointer) window_hoz, "destroy",
X                      G_CALLBACK (on_window_hoz_destroy),
END-of-hoz/files/patch-src_hozgtk_i.c
exit
--- hoz-1.65.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list