pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

tin: Package to test development snapshot for version 2.4.5



Module Name:	pkgsrc-wip
Committed By:	Michael Baeuerle <michael.baeuerle%stz-e.de@localhost>
Pushed By:	micha
Date:		Mon Apr 27 15:51:57 2020 +0200
Changeset:	f2d725abf0982fc1a27048db645398d5bdd917df

Modified Files:
	Makefile
Added Files:
	tin/DESCR
	tin/Makefile
	tin/PLIST
	tin/README
	tin/distinfo
	tin/options.mk
	tin/patches/patch-Makefile
	tin/patches/patch-configure
	tin/patches/patch-src_Makefile.in

Log Message:
tin: Package to test development snapshot for version 2.4.5

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=f2d725abf0982fc1a27048db645398d5bdd917df

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                          |  1 +
 tin/DESCR                         |  1 +
 tin/Makefile                      | 66 +++++++++++++++++++++++++++++++++++++++
 tin/PLIST                         | 29 +++++++++++++++++
 tin/README                        |  1 +
 tin/distinfo                      |  9 ++++++
 tin/options.mk                    | 61 ++++++++++++++++++++++++++++++++++++
 tin/patches/patch-Makefile        | 15 +++++++++
 tin/patches/patch-configure       | 16 ++++++++++
 tin/patches/patch-src_Makefile.in | 14 +++++++++
 10 files changed, 213 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index f71b060413..f4e9925822 100644
--- a/Makefile
+++ b/Makefile
@@ -4741,6 +4741,7 @@ SUBDIR+=	thrift
 SUBDIR+=	tig
 SUBDIR+=	tilda
 SUBDIR+=	timewarrior
+SUBDIR+=	tin
 SUBDIR+=	tinyca2
 SUBDIR+=	tinycobol
 SUBDIR+=	tinyfugue-beta
diff --git a/tin/DESCR b/tin/DESCR
new file mode 100644
index 0000000000..a99b0fa123
--- /dev/null
+++ b/tin/DESCR
@@ -0,0 +1 @@
+TIN:  Easy to use threaded newsreader with NOV/NNTP support.
diff --git a/tin/Makefile b/tin/Makefile
new file mode 100644
index 0000000000..250c443f7b
--- /dev/null
+++ b/tin/Makefile
@@ -0,0 +1,66 @@
+# $NetBSD$
+
+DISTNAME=	tin-2.4.5
+CATEGORIES=	news
+MASTER_SITES=	https://www.akk.org/~urs/
+#MASTER_SITES=	ftp://ftp.tin.org/pub/news/clients/tin/stable/
+#MASTER_SITES+=	ftp://ftp.funet.fi/pub/unix/news/tin-unoff/
+#MASTER_SITES+=	ftp://ftp.lip6.fr/pub/unix/news/readers/tin-unoff/
+#MASTER_SITES+=	ftp://ftp.cuhk.edu.hk/pub/packages/news/tin/stable/
+#MASTER_SITES+=	ftp://sunsite.icm.edu.pl/pub/unix/news/tin/stable/
+#EXTRACT_SUFX=	.tar.xz
+
+MAINTAINER=	micha%NetBSD.org@localhost
+HOMEPAGE=	http://www.tin.org/
+COMMENT=	USENET newsreader (termcap based)
+# See src/nntplib.c, vms/vms.c
+LICENSE=	tin-license
+
+RESTRICTED=		Profit from use, sale, trade, or reproduction disallowed
+NO_BIN_ON_CDROM=	${RESTRICTED}
+NO_SRC_ON_CDROM=	${RESTRICTED}
+
+GNU_CONFIGURE=		yes
+USE_PKGLOCALEDIR=	yes
+
+INSTALLATION_DIRS=	share/doc/tin
+
+# Perl for tinews.pl
+USE_TOOLS+=	msgfmt perl:run pkg-config yacc
+REPLACE_PERL=	tools/*.pl
+BUILD_TARGET=	build
+
+.include "options.mk"
+
+CONFIGURE_ARGS+=	--with-pkg-config
+CONFIGURE_ARGS+=	--with-nntp-default-server=news
+CONFIGURE_ARGS+=	--with-mime-default-charset=ISO-8859-1
+CONFIGURE_ARGS+=	--enable-break-long-lines
+CONFIGURE_ARGS+=	--with-gpg=${PREFIX}/bin/gpg
+CONFIGURE_ARGS+=	--with-ispell=${PREFIX}/bin/ispell
+CONFIGURE_ARGS+=	--with-metamail=${PREFIX}/bin/metamail
+CONFIGURE_ARGS+=	--with-pcre=${BUILDLINK_PREFIX.pcre}
+CONFIGURE_ARGS+=	--disable-mime-strict-charset
+CONFIGURE_ARGS+=	--with-defaults-dir=${PKG_SYSCONFDIR}
+CONFIGURE_ARGS+=	--enable-mh-mail-handling
+CONFIGURE_ARGS+=	--with-coffee
+
+SUBST_CLASSES+=		tin
+SUBST_STAGE.tin=	pre-configure
+SUBST_MESSAGE.tin=	Adjusting path to the configuration directory.
+SUBST_FILES.tin=	doc/tin.1
+SUBST_SED.tin=		-e 's:/etc/nntpserver:${PKG_SYSCONFDIR}/nntp/server:'
+
+post-configure:
+	${ECHO} '#define NNTP_SERVER_FILE "${PKG_SYSCONFDIR}/nntp/server"' >>${WRKSRC}/include/autoconf.h
+	${ECHO} '#define SMTP_SERVER_FILE "${PKG_SYSCONFDIR}/smtpserver"' >>${WRKSRC}/include/autoconf.h
+
+post-install:
+	${INSTALL_DATA} ${WRKSRC}/doc/WHATSNEW ${DESTDIR}${PREFIX}/share/doc/tin
+	${MV} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5/mmdf.5 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5/tin-mmdf.5
+
+.include "../../converters/libiconv/buildlink3.mk"
+.include "../../converters/uulib/buildlink3.mk"
+.include "../../devel/libidn/buildlink3.mk"
+.include "../../devel/pcre/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/tin/PLIST b/tin/PLIST
new file mode 100644
index 0000000000..5e6a2e0ae3
--- /dev/null
+++ b/tin/PLIST
@@ -0,0 +1,29 @@
+@comment $NetBSD: PLIST,v 1.13 2019/01/15 15:48:17 wiz Exp $
+bin/metamutt
+bin/opt-case.pl
+bin/rtin
+bin/tin
+bin/tinews.pl
+bin/url_handler.pl
+bin/w2r.pl
+man/man1/opt-case.pl.1
+man/man1/rtin.1
+man/man1/tin.1
+man/man1/tinews.pl.1
+man/man1/url_handler.pl.1
+man/man1/w2r.pl.1
+man/man5/rtin.5
+man/man5/tin-mmdf.5
+man/man5/tin.5
+share/doc/tin/WHATSNEW
+${PLIST.nls}share/locale/da/LC_MESSAGES/tin.mo
+${PLIST.nls}share/locale/de/LC_MESSAGES/tin.mo
+${PLIST.nls}share/locale/en_GB/LC_MESSAGES/tin.mo
+${PLIST.nls}share/locale/es/LC_MESSAGES/tin.mo
+${PLIST.nls}share/locale/et/LC_MESSAGES/tin.mo
+${PLIST.nls}share/locale/fr/LC_MESSAGES/tin.mo
+${PLIST.nls}share/locale/ru/LC_MESSAGES/tin.mo
+${PLIST.nls}share/locale/sv/LC_MESSAGES/tin.mo
+${PLIST.nls}share/locale/tr/LC_MESSAGES/tin.mo
+${PLIST.nls}share/locale/zh_CN/LC_MESSAGES/tin.mo
+${PLIST.nls}share/locale/zh_TW/LC_MESSAGES/tin.mo
diff --git a/tin/README b/tin/README
new file mode 100644
index 0000000000..36d10e2a25
--- /dev/null
+++ b/tin/README
@@ -0,0 +1 @@
+This package is for testing a development snapshot of version 2.4.5.
diff --git a/tin/distinfo b/tin/distinfo
new file mode 100644
index 0000000000..a64d59c926
--- /dev/null
+++ b/tin/distinfo
@@ -0,0 +1,9 @@
+$NetBSD: distinfo,v 1.26 2020/03/20 10:25:15 micha Exp $
+
+SHA1 (tin-2.4.5.tar.gz) = 6bdaeb1ab0ef034b1d3ab9e3b5213491cb06599b
+RMD160 (tin-2.4.5.tar.gz) = 3b79686019cc88fd6eab14f2f42021ec0e4e60f7
+SHA512 (tin-2.4.5.tar.gz) = 684fb9a9929a4a33c2a10c3ebb45d59eec42888996ca812ebad28b968936a73ead839170e1beb6261d0c94000a9ed083ed3b5381490d94c0d5b70c316dedf7ff
+Size (tin-2.4.5.tar.gz) = 3227159 bytes
+SHA1 (patch-Makefile) = 7f9048d31e70d9630ba6511d834db5d0c60a7de1
+SHA1 (patch-configure) = 02f6c943c7e6cbf8552f163c8ff4922413c9c340
+SHA1 (patch-src_Makefile.in) = c8dcd48762c9c9159a3e30f446ba69d42df26d06
diff --git a/tin/options.mk b/tin/options.mk
new file mode 100644
index 0000000000..463d2187fd
--- /dev/null
+++ b/tin/options.mk
@@ -0,0 +1,61 @@
+# $NetBSD: options.mk,v 1.19 2019/01/15 15:48:17 wiz Exp $
+
+PKG_OPTIONS_VAR=		PKG_OPTIONS.tin
+PKG_OPTIONS_REQUIRED_GROUPS=	display
+PKG_OPTIONS_GROUP.display=	curses termcap # wide-curses removed, see below
+PKG_SUPPORTED_OPTIONS=		canlock icu inet6 nls tin-use-inn-spool
+PKG_SUGGESTED_OPTIONS=		canlock inet6 nls termcap # see PR #51819
+# untested
+#PKG_SUPPORTED_OPTIONS+=	socks
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mcanlock)
+.include "../../wip/libcanlock/buildlink3.mk"
+CONFIGURE_ARGS+=	--enable-cancel-locks
+.endif
+
+# Option wide-curses removed
+# Use curses option and set CURSES_DEFAULT in mk.conf to select type
+.if !empty(PKG_OPTIONS:Mcurses)
+.include "../../mk/curses.buildlink3.mk"
+CONFIGURE_ARGS+=	--with-screen=${CURSES_TYPE}
+CONFIGURE_ARGS+=	--with-curses-dir=${BUILDLINK_PREFIX.curses}
+.endif
+
+.if !empty(PKG_OPTIONS:Mtermcap)
+.include "../../mk/termcap.buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Micu)
+.include "../../textproc/icu/buildlink3.mk"
+.endif
+
+.if empty(PKG_OPTIONS:Minet6)
+CONFIGURE_ARGS+=	--disable-ipv6
+.endif
+
+PLIST_VARS+=	nls
+.if !empty(PKG_OPTIONS:Mnls)
+PLIST.nls=	yes
+.include "../../devel/gettext-lib/buildlink3.mk"
+CONFIGURE_ARGS+=	--enable-nls
+.else
+CONFIGURE_ARGS+=	--disable-nls
+.endif
+
+.if !empty(PKG_OPTIONS:Mtin-use-inn-spool)
+BUILD_DEFS+=		INN_DATA_DIR VARBASE
+INN_DATA_DIR?=		${VARBASE}/news
+CONFIGURE_ARGS+=	--with-inews-dir=${PREFIX}/inn/bin \
+			--with-libdir=${INN_DATA_DIR}/db \
+			--with-spooldir=${INN_DATA_DIR}/spool/articles \
+			--with-nov-dir=${INN_DATA_DIR}/spool/overview
+.else
+CONFIGURE_ARGS+=	--enable-nntp-only
+.endif
+
+#.if !empty(PKG_OPTIONS:Msocks)
+#.include "../../net/dante/buildlink3.mk"
+#CONFIGURE_ARGS+=	--with-socks=${BUILDLINK_PREFIX.dante}
+#.endif
diff --git a/tin/patches/patch-Makefile b/tin/patches/patch-Makefile
new file mode 100644
index 0000000000..4c1a91653c
--- /dev/null
+++ b/tin/patches/patch-Makefile
@@ -0,0 +1,15 @@
+$NetBSD: patch-Makefile,v 1.2 2019/01/15 15:48:17 wiz Exp $
+
+Do not ignore error for missing src/Makefile.
+
+--- Makefile.orig
++++ Makefile
+@@ -407,7 +407,7 @@ all:
+ 	@$(ECHO) " "
+ 
+ build:
+-	@-if $(TEST) -r $(SRCDIR)/Makefile ; then $(CD) $(SRCDIR) && $(MAKE) ; else $(ECHO) "You need to run configure first - didn't you read README?" ; fi
++	@if $(TEST) -r $(SRCDIR)/Makefile ; then $(CD) $(SRCDIR) && $(MAKE) ; else $(ECHO) "You need to run configure first - didn't you read README?" ; fi
+ 
+ install:
+ 	@$(CD) $(SRCDIR) && $(MAKE) install
diff --git a/tin/patches/patch-configure b/tin/patches/patch-configure
new file mode 100644
index 0000000000..0141a7351e
--- /dev/null
+++ b/tin/patches/patch-configure
@@ -0,0 +1,16 @@
+$NetBSD: patch-configure,v 1.2 2019/01/15 15:48:17 wiz Exp $
+
+Skip missing include directories.
+
+--- configure.orig
++++ configure
+@@ -11429,6 +11429,9 @@ echo "$ac_t""$cf_cv_ncurses_h2" 1>&6
+ if test -n "$cf_1st_incdir" ; then
+   for cf_add_incdir in $cf_1st_incdir
+   do
++    if ! [ -d $cf_add_incdir ]; then
++      continue;
++    fi
+ 	while test $cf_add_incdir != /usr/include
+ 	do
+ 	  if test -d $cf_add_incdir
diff --git a/tin/patches/patch-src_Makefile.in b/tin/patches/patch-src_Makefile.in
new file mode 100644
index 0000000000..b76d657b67
--- /dev/null
+++ b/tin/patches/patch-src_Makefile.in
@@ -0,0 +1,14 @@
+$NetBSD$
+
+Do not install mbox manpage.
+
+--- src/Makefile.in.orig
++++ src/Makefile.in
+@@ -340,7 +340,6 @@ install_manpage : $(DESTDIR)$(INS_MANUAL
+ 	@-$(RM) -f $(DESTDIR)$(INS_MANUAL_DIR)5/r$(PROJECT).5
+ 	@$(ECHO) ".so $(INS_MANUAL_DIR)5/$(PROJECT).5" > $(DESTDIR)$(INS_MANUAL_DIR)5/r$(PROJECT).5
+ 	@$(CHMOD) 444 $(DESTDIR)$(INS_MANUAL_DIR)5/r$(PROJECT).5
+-	@-if test ! -f $(DESTDIR)$(INS_MANUAL_DIR)5/mbox.5 ; then $(INSTALL) -m 444 $(DOCDIR)/mbox.5 $(DESTDIR)$(INS_MANUAL_DIR)5/mbox.5 ; else $(ECHO) "  ... skipping $(DESTDIR)$(INS_MANUAL_DIR)5/mbox.5 - file already exists" ; fi
+ 	@-if test ! -f $(DESTDIR)$(INS_MANUAL_DIR)5/mmdf.5 ; then $(INSTALL) -m 444 $(DOCDIR)/mmdf.5 $(DESTDIR)$(INS_MANUAL_DIR)5/mmdf.5 ; else $(ECHO) "  ... skipping $(DESTDIR)$(INS_MANUAL_DIR)5/mmdf.5 - file already exists" ; fi
+ 
+ uninstall_manpage :


Home | Main Index | Thread Index | Old Index