File:  [cvs.NetBSD.org] / pkgsrc / net / mikutter / Makefile
Revision 1.220: download - view: text, annotated - select for diffs
Sat Apr 6 08:06:31 2024 UTC (13 months, 1 week ago) by wiz
Branches: MAIN
CVS tags: HEAD
* recursive bump for libxkbcommon 1.7.0

Marc Baudoin reported problems with using old binary packages
with the new libkxbcommon, so force everything to 1.7.0

# $NetBSD: Makefile,v 1.220 2024/04/06 08:06:31 wiz Exp $

DISTNAME=	mikutter-5.0.7
DIST_SUBDIR=	${DISTNAME}	# for a pending patch in upstream Redmine
PKGNAME=	${RUBY_PKGPREFIX}-${DISTNAME}
PKGREVISION=	1
CATEGORIES=	net
MASTER_SITES=	https://mikutter.hachune.net/bin/

PATCHFILES=		1585-use-own-blowfish-impl.patch
PATCH_SITES=		https://dev.mikutter.hachune.net/attachments/download/813/
PATCH_DIST_STRIP=	-p1

MAINTAINER=	tsutsui@NetBSD.org
HOMEPAGE=	https://mikutter.hachune.net/
COMMENT=	Simple, powerful, and moeful twitter client
LICENSE=	mit AND apache-2.0 AND cc-by-sa-v3.0

.include "../../lang/ruby/rubyversion.mk"

DEPENDS+=	${RUBY_PKGPREFIX}-addressable>=2.8.0:../../net/ruby-addressable
DEPENDS+=	${RUBY_PKGPREFIX}-delayer>=1.2.1:../../devel/ruby-delayer
DEPENDS+=	${RUBY_PKGPREFIX}-delayer-deferred>=2.2.0:../../devel/ruby-delayer-deferred
DEPENDS+=	${RUBY_PKGPREFIX}-diva>=2.0.1:../../devel/ruby-diva
DEPENDS+=	${RUBY_PKGPREFIX}-gettext>=3.4.1:../../devel/ruby-gettext
DEPENDS+=	${RUBY_PKGPREFIX}-httpclient>=2.8.3nb1:../../www/ruby-httpclient
DEPENDS+=	${RUBY_PKGPREFIX}-memoist>=0.16.2:../../devel/ruby-memoist
DEPENDS+=	${RUBY_PKGPREFIX}-moneta-[0-9]*:../../databases/ruby-moneta
DEPENDS+=	${RUBY_PKGPREFIX}-nokogiri-[0-9]*:../../textproc/ruby-nokogiri
DEPENDS+=	${RUBY_PKGPREFIX}-pluggaloid>=1.7.0:../../net/ruby-pluggaloid
DEPENDS+=	${RUBY_PKGPREFIX}-typed-array>=0.1.2:../../misc/ruby-typed-array

USE_LANGUAGES=	# none
USE_TOOLS+=	pax

REPLACE_RUBY=		mikutter.rb
REPLACE_RUBY_DIRS=	core

INSTALLATION_DIRS+=	bin share/doc/mikutter share/applications share/mikutter

do-build:
	${RM} -rf ${WRKSRC}/vendor
	${SED} -e 's,@PREFIX@,${PREFIX},g' < ${FILESDIR}/desktop.in > ${WRKDIR}/desktop
	${SED} -e 's,@PREFIX@,${PREFIX},g' < ${FILESDIR}/mikutter.sh.in > ${WRKDIR}/mikutter.sh

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/mikutter.rb ${DESTDIR}${PREFIX}/share/mikutter
	${INSTALL_DATA} ${WRKSRC}/Gemfile ${DESTDIR}${PREFIX}/share/mikutter
	cd ${WRKSRC} && pax -rwpp -s ':^.*\.orig$$::' -s ':^.*\.orig_dist$$::' core plugin ${DESTDIR}${PREFIX}/share/mikutter
	${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/mikutter
	${INSTALL_SCRIPT} ${WRKDIR}/mikutter.sh ${DESTDIR}${PREFIX}/bin/mikutter
	${INSTALL_DATA} ${WRKDIR}/desktop ${DESTDIR}${PREFIX}/share/applications/mikutter.desktop

.include "../../x11/ruby-gtk3/buildlink3.mk"
.include "../../lang/ruby/replace.mk"
.include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>