pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/nanotodon nanotodon: update to 0.2.0.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c797bf972a7c
branches:  trunk
changeset: 441303:c797bf972a7c
user:      tsutsui <tsutsui%pkgsrc.org@localhost>
date:      Sun Nov 01 05:48:20 2020 +0000

description:
nanotodon: update to 0.2.0.

pkgsrc changes:
- adapt Makefile to upstream build structure changes

Upstream changes:
 https://github.com/taka-tuos/nanotodon/releases/tag/0.2.0

MANY UPDATES!

Whats New
* PRIVATE and UNLISTED toots are available now
* Hide PRIVATE toots on default boot

Note
* Without -unlock, will PRIVATE toots are not visible

diffstat:

 net/nanotodon/Makefile                    |  21 ++++++++++++++-----
 net/nanotodon/PLIST                       |   3 +-
 net/nanotodon/distinfo                    |  13 ++++++-----
 net/nanotodon/patches/patch-Makefile      |  32 -------------------------------
 net/nanotodon/patches/patch-Makefile.base |  15 ++++++++++++++
 net/nanotodon/patches/patch-Makefile.in   |  16 +++++++++++++++
 6 files changed, 55 insertions(+), 45 deletions(-)

diffs (141 lines):

diff -r c10fe793105a -r c797bf972a7c net/nanotodon/Makefile
--- a/net/nanotodon/Makefile    Sun Nov 01 05:16:11 2020 +0000
+++ b/net/nanotodon/Makefile    Sun Nov 01 05:48:20 2020 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.7 2020/05/22 10:56:29 adam Exp $
+# $NetBSD: Makefile,v 1.8 2020/11/01 05:48:21 tsutsui Exp $
 
-GITHUB_TAG=    v0.1.1
-DISTNAME=      nanotodon-${GITHUB_TAG:S/v//}
-PKGREVISION=   4
+GITHUB_TAG=    0.2.0
+DISTNAME=      nanotodon-${GITHUB_TAG}
+#PKGREVISION=  0
 CATEGORIES=    net
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=taka-tuos/}
 
@@ -13,12 +13,21 @@
 
 USE_LANGUAGES= c99
 
-INSTALLATION_DIRS+=    bin
+INSTALLATION_DIRS+=    bin share/doc/nanotodon
+
+BUILD_TARGET=          default
+MAKE_FILE=             Makefile.bsd
 
-BUILD_TARGET=  default
+SUBST_CLASSES+=                prefix
+SUBST_MESSAGE.prefix=  Fixing hardcoded paths and link options in Makefiles.
+SUBST_STAGE.prefix=    pre-configure
+SUBST_FILES.prefix=    Makefile.bsd
+SUBST_SED.prefix+=     -e 's|/usr/pkg/|${PREFIX}/|g'
 
 do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/nanotodon ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_DATA} ${WRKSRC}/README.md \
+           ${DESTDIR}${PREFIX}/share/doc/nanotodon
 
 .include "../../devel/ncursesw/buildlink3.mk"
 .include "../../textproc/json-c/buildlink3.mk"
diff -r c10fe793105a -r c797bf972a7c net/nanotodon/PLIST
--- a/net/nanotodon/PLIST       Sun Nov 01 05:16:11 2020 +0000
+++ b/net/nanotodon/PLIST       Sun Nov 01 05:48:20 2020 +0000
@@ -1,2 +1,3 @@
-@comment $NetBSD: PLIST,v 1.1 2020/02/08 00:53:01 tsutsui Exp $
+@comment $NetBSD: PLIST,v 1.2 2020/11/01 05:48:21 tsutsui Exp $
 bin/nanotodon
+share/doc/nanotodon/README.md
diff -r c10fe793105a -r c797bf972a7c net/nanotodon/distinfo
--- a/net/nanotodon/distinfo    Sun Nov 01 05:16:11 2020 +0000
+++ b/net/nanotodon/distinfo    Sun Nov 01 05:48:20 2020 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.3 2020/03/26 13:59:40 nia Exp $
+$NetBSD: distinfo,v 1.4 2020/11/01 05:48:21 tsutsui Exp $
 
-SHA1 (nanotodon-0.1.1.tar.gz) = a7dbe3a923274ecf6efc0cd269daacc05cd5c229
-RMD160 (nanotodon-0.1.1.tar.gz) = c454cc9a28d74d0d31ce22a39a9009b4b9e096f9
-SHA512 (nanotodon-0.1.1.tar.gz) = 9dbc8618112eef4af18f71419a6e21be8ad4514aa0f321036564f0582678f85482860ec4503d8ab3d4f24ac78ca988d381a7f9f108dae4b120053c8a87b0a3ce
-Size (nanotodon-0.1.1.tar.gz) = 23593 bytes
-SHA1 (patch-Makefile) = 4e2b783ccf1d112cba111b91ae119e3cdfb39763
+SHA1 (nanotodon-0.2.0.tar.gz) = cce56f0d5e683518400654c79f13c7eaf1bbe07e
+RMD160 (nanotodon-0.2.0.tar.gz) = 7502562c52ed7f3a03235248ab47b2af7efdadf6
+SHA512 (nanotodon-0.2.0.tar.gz) = 9cfd8c5c31bf10da53d04a89942a3500f255908369d86cb4bd2f390c211b798934f224456d2c6933dd03e1a62d16d387b26357e2b2a0e4719c0f7388d6c5c5ca
+Size (nanotodon-0.2.0.tar.gz) = 24262 bytes
+SHA1 (patch-Makefile.base) = 5fa2123753e095ba19ae3190f5c71643ac488a65
+SHA1 (patch-Makefile.in) = c5110768d81c6dcb3e85928fcd465f7bbb01d61d
diff -r c10fe793105a -r c797bf972a7c net/nanotodon/patches/patch-Makefile
--- a/net/nanotodon/patches/patch-Makefile      Sun Nov 01 05:16:11 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,32 +0,0 @@
-$NetBSD: patch-Makefile,v 1.3 2020/03/26 13:59:40 nia Exp $
-
-- Remove OS specific conditinal with GNU make extension
-- Misc options for pkgsrc builds.
-
---- Makefile.orig      2020-02-21 04:51:47.000000000 +0000
-+++ Makefile
-@@ -1,21 +1,13 @@
- TARGET                = nanotodon
- OBJS_TARGET   = nanotodon.o config.o messages.o
- 
--CFLAGS = -g
--# optimization
--#CFLAGS+= -O2
- # Use $XDG_CONFIG_HOME or ~/.config dir to save config files
- CFLAGS+= -DSUPPORT_XDG_BASE_DIR
- 
--LDFLAGS = 
--ifeq ($(shell uname -s),Darwin)
--      LIBS = -lcurl -ljson-c -lncurses -lpthread -lm
--else
--      LIBS = -lcurl -ljson-c -lncursesw -lpthread -lm
--endif
-+LIBS = -lcurl -ljson-c -lncursesw -lpthread -lm
- 
- # for pkgsrc build
--#CFLAGS+= -I/usr/pkg/include -I/usr/pkg/include/ncursesw -DNCURSES_WIDECHAR
--#LDFLAGS+= -L/usr/pkg/lib -Wl,-R/usr/pkg/lib
-+CFLAGS+= -I/usr/pkg/include -I/usr/pkg/include/ncursesw -DNCURSES_WIDECHAR
-+LDFLAGS+= -L/usr/pkg/lib -Wl,-R/usr/pkg/lib
- 
- include Makefile.in
diff -r c10fe793105a -r c797bf972a7c net/nanotodon/patches/patch-Makefile.base
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/nanotodon/patches/patch-Makefile.base Sun Nov 01 05:48:20 2020 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-Makefile.base,v 1.1 2020/11/01 05:48:20 tsutsui Exp $
+
+- enable optimiazation
+
+--- Makefile.base.orig 2020-10-12 01:49:56.000000000 +0000
++++ Makefile.base
+@@ -3,7 +3,7 @@ OBJS_TARGET    = nanotodon.o config.o messa
+ 
+ CFLAGS = -g
+ # optimization
+-#CFLAGS+= -O2
++CFLAGS+= -O2
+ # Use $XDG_CONFIG_HOME or ~/.config dir to save config files
+ CFLAGS+= -DSUPPORT_XDG_BASE_DIR
+ 
diff -r c10fe793105a -r c797bf972a7c net/nanotodon/patches/patch-Makefile.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/nanotodon/patches/patch-Makefile.in   Sun Nov 01 05:48:20 2020 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-Makefile.in,v 1.1 2020/11/01 05:48:20 tsutsui Exp $
+
+- workaround to build using Makefile.bsd
+
+--- Makefile.in.orig   2020-10-12 01:49:56.000000000 +0000
++++ Makefile.in
+@@ -6,8 +6,7 @@ CP             = cp
+ 
+ # default
+ 
+-default :
+-      $(MAKE) $(TARGET)
++default : $(TARGET)
+ 
+ # rules
+ 



Home | Main Index | Thread Index | Old Index