1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

x11/xmascot: clean up port

- fix build with -fno-common and un-expire
- set LICENSE
- fix parallel build
- move to MASTER_SITE of submitter

Add entry to LEGAL

Submitter becomes maintainer

PR:		249011
MFH:		2021Q2
This commit is contained in:
Yoshihiro Takahashi 2021-04-09 16:56:27 +02:00 committed by Rene Ladan
parent 98bc55de69
commit ffce9c1d6d
5 changed files with 29 additions and 31 deletions

1
LEGAL
View File

@ -146,6 +146,7 @@ NetComponents-* java/netcomponents No redistribution except as part of a substa
nntpcache-* news/nntpcache Free for individuals and non-military, non-profit organisations only
nttcp-* benchmarks/nttcp No commercial use
nwresources*.tar.gz games/nwndata Distribution not allowed
nyan--xmascot-* x11/xmascot Commercial use is prohibited
oneko-*.tar.gz games/oneko-sakura Including derivatives from CARDCAPTOR SAKURA
OptimFROG* audio/optimfrog No commercial use
oracle/* databases/jdbc-oracle11g This software is under license and export controls

View File

@ -1,33 +1,37 @@
# Created by: Yukihiro Nakai <Nakai@Mlab.t.u-tokyo.ac.jp>
PORTNAME= xmascot
PORTVERSION= 2.6a
PORTREVISION= 4
PORTVERSION= 2.6a.20200830
DISTVERSIONPREFIX= v
CATEGORIES= x11
MASTER_SITES= http://cclub-flying.dsl.gr.jp/products/xmascot/
DISTNAME= ${PORTNAME}${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
MAINTAINER= nyan@FreeBSD.org
COMMENT= Moving mascot on your X11 screen
# Fix build with -fno-common (llvm 11)
CFLAGS+= -fcommon
LICENSE= UNKNOWN
LICENSE_NAME= XMascot
LICENSE_FILE= ${WRKSRC}/README.jp
LICENSE_PERMS= dist-mirror no-dist-sell pkg-mirror no-pkg-sell auto-accept
DEPRECATED= Unmaintained and dead upstream, does not build with -fno-common (llvm 11).
EXPIRATION_DATE=2021-04-01
USES= imake xorg
USES= iconv:build imake xorg
USE_XORG= ice sm x11 xaw xext xmu xpm xt
MAKE_ARGS= MAKE="${MAKE_CMD}"
USE_GITHUB= yes
GH_ACCOUNT= nyan-
# Unbreak parallel (-jX) builds: do not use unsafe MakeSubdirs() macro
post-patch:
@${REINPLACE_CMD} -e 's/MakeSubdirs(/Named&$$(IMAGELIB),/' \
${WRKSRC}/Imakefile
OPTIONS_DEFINE= DOCS
X11_LIBDIR= ${STAGEDIR}${PREFIX}/lib/X11
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/X11/ja_JP.EUC/app-defaults
${INSTALL_DATA} ${STAGEDIR}${PREFIX}/lib/X11/ja_JP.eucJP/app-defaults/XMascot \
${STAGEDIR}${PREFIX}/lib/X11/ja_JP.EUC/app-defaults
@${MKDIR} ${X11_LIBDIR}/ja_JP.EUC/app-defaults
${INSTALL_DATA} ${X11_LIBDIR}/ja_JP.eucJP/app-defaults/XMascot \
${X11_LIBDIR}/ja_JP.EUC/app-defaults
@${MKDIR} ${X11_LIBDIR}/ja_JP.UTF-8/app-defaults
${ICONV_CMD} -f euc-jp -t utf-8 ${X11_LIBDIR}/ja_JP.eucJP/app-defaults/XMascot > \
${X11_LIBDIR}/ja_JP.UTF-8/app-defaults/XMascot
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${LICENSE_FILE} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View File

@ -1,2 +1,3 @@
SHA256 (xmascot2.6a.tar.gz) = 2eb66d97987217fbf7579b6bb96bdb19380e1389965758e8b4d022841c247773
SIZE (xmascot2.6a.tar.gz) = 238536
TIMESTAMP = 1598758757
SHA256 (nyan--xmascot-v2.6a.20200830_GH0.tar.gz) = 8dd041f7b3befee147979a0251db53dd9fab26e866b436bc8b4aa8bdc16ca30d
SIZE (nyan--xmascot-v2.6a.20200830_GH0.tar.gz) = 197945

View File

@ -1,10 +0,0 @@
--- config.tmpl.orig Fri Oct 24 01:41:01 1997
+++ config.tmpl Sat Jun 8 11:33:39 JST 2002
@@ -97,6 +97,7 @@
#ifdef USE_I18N
DEFINES_I18N = -DI18N
+LANG = ja_JP.eucJP
LOCALEDIR = $(LIBDIR)/$(LANG)/app-defaults
#else
DEFINES_I18N =

View File

@ -2,6 +2,7 @@ bin/xmascot
lib/X11/app-defaults/XMascot
lib/X11/ja_JP.EUC/app-defaults/XMascot
lib/X11/ja_JP.eucJP/app-defaults/XMascot
lib/X11/ja_JP.UTF-8/app-defaults/XMascot
lib/X11/xmascot/aquarius.gif
lib/X11/xmascot/aries.gif
lib/X11/xmascot/canser.gif
@ -44,3 +45,4 @@ lib/X11/xmascot/virgo.gif
lib/X11/xmascot/yubi.xbm
lib/X11/xmascot/yubi.xbmmsk
man/man1/xmascot.1.gz
%%PORTDOCS%%%%DOCSDIR%%/README.jp