const injectCss = require('inject-css') const OldMetaMaskUiCss = require('../../old-ui/css') const NewMetaMaskUiCss = require('../../ui/css') const startPopup = require('./popup-core') const PortStream = require('./lib/port-stream.js') const { getEnvironmentType } = require('./lib/util') const { ENVIRONMENT_TYPE_NOTIFICATION } = require('./lib/enums') const extension = require('extensionizer') const ExtensionPlatform = require('./platforms/extension') const NotificationManager = require('./lib/notification-manager') const notificationManager = new NotificationManager() const setupRaven = require('./lib/setupRaven') const log = require('loglevel') start().catch(log.error) async function start () { // create platform global global.platform = new ExtensionPlatform() // setup sentry error reporting const release = global.platform.getVersion() setupRaven({ release }) // inject css // const css = MetaMaskUiCss() // injectCss(css) // identify window type (popup, notification) const windowType = getEnvironmentType(window.location.href) global.METAMASK_UI_TYPE = windowType closePopupIfOpen(windowType) // setup stream to background const extensionPort = extension.runtime.connect({ name: windowType }) const connectionStream = new PortStream(extensionPort) // start ui const container = document.getElementById('app-content') startPopup({ container, connectionStream }, (err, store) => { if (err) return displayCriticalError(err) // Code commented out until we begin auto adding users to NewUI // const { isMascara, identities = {}, featureFlags = {} } = store.getState().metamask // const firstTime = Object.keys(identities).length === 0 const { isMascara, featureFlags = {} } = store.getState().metamask let betaUIState = featureFlags.betaUI // Code commented out until we begin auto adding users to NewUI // const useBetaCss = isMascara || firstTime || betaUIState const useBetaCss = isMascara || betaUIState let css = useBetaCss ? NewMetaMaskUiCss() : OldMetaMaskUiCss() let deleteInjectedCss = injectCss(css) let newBetaUIState store.subscribe(() => { const state = store.getState() newBetaUIState = state.metamask.featureFlags.betaUI if (newBetaUIState !== betaUIState) { deleteInjectedCss() betaUIState = newBetaUIState css = betaUIState ? NewMetaMaskUiCss() : OldMetaMaskUiCss() deleteInjectedCss = injectCss(css) } }) }) function closePopupIfOpen (windowType) { if (windowType !== ENVIRONMENT_TYPE_NOTIFICATION) { // should close only chrome popup notificationManager.closePopup() } } function displayCriticalError (err) { container.innerHTML = '
The MetaMask app failed to load: please open and close MetaMask again to restart.
' container.style.height = '80px' log.error(err.stack) throw err } } ue='dependabot/npm_and_yarn/devel/electron4/files/y18n-3.2.2'>dependabot/npm_and_yarn/devel/electron4/files/y18n-3.2.2 FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
path: root/shells/fd
diff options
context:
space:
mode:
authormax <max@FreeBSD.org>1996-12-12 12:50:58 +0800
committermax <max@FreeBSD.org>1996-12-12 12:50:58 +0800
commitdf6de12ce6fcdf76150e5d63c90d1cfc862f01eb (patch)
tree9efd4f5831deeed2e4df11b9a00068ceea4c23ee /shells/fd
parent7296f9a1b97c18e7721eb9e90069319941741415 (diff)
downloadfreebsd-ports-gnome-df6de12ce6fcdf76150e5d63c90d1cfc862f01eb.tar.gz
freebsd-ports-gnome-df6de12ce6fcdf76150e5d63c90d1cfc862f01eb.tar.zst
freebsd-ports-gnome-df6de12ce6fcdf76150e5d63c90d1cfc862f01eb.zip
Install the man page to man/ja_JP.EUC/man1.
Diffstat (limited to 'shells/fd')
-rw-r--r--shells/fd/Makefile7
-rw-r--r--shells/fd/files/patch-aa12
-rw-r--r--shells/fd/pkg-plist2
3 files changed, 10 insertions, 11 deletions
diff --git a/shells/fd/Makefile b/shells/fd/Makefile
index a2b4a27e86f9..0252ccaa9076 100644
--- a/shells/fd/Makefile
+++ b/shells/fd/Makefile
@@ -3,7 +3,7 @@
# Date created: 20 Feb 1996
# Whom: Nobuhiro Yasutomi <nobu@psrc.isac.co.jp>
#
-# $Id: Makefile,v 1.2 1996/11/11 05:49:29 obrien Exp $
+# $Id: Makefile,v 1.3 1996/11/17 09:05:43 obrien Exp $
#
DISTNAME= FD-1.01
@@ -15,13 +15,10 @@ MAINTAINER= nobu@psrc.isac.co.jp
ALL_TARGET= goal
PATCH_STRIP= -p0 -o fdrc
-INSTALL_TARGET= install catman
+MANLANG= ja_JP.EUC
MAN1= fd.1
do-configure:
cd ${WRKSRC} ; make config
-post-install:
- rm -f /usr/local/man/man1/fd.1.gz /usr/local/man/cat1/fd.1.gz
-
.include <bsd.port.mk>
diff --git a/shells/fd/files/patch-aa b/shells/fd/files/patch-aa
index af0cfad63577..14a21accb73b 100644
--- a/shells/fd/files/patch-aa
+++ b/shells/fd/files/patch-aa
@@ -48,23 +48,25 @@
# archiver definition
#".lzh" A "lha aq %C %TA" "lha xq %C %TA"
---- ./Makefile.in.org Sun Dec 17 20:39:36 1995
-+++ ./Makefile.in Tue Mar 19 23:42:45 1996
-@@ -3,11 +3,11 @@
+--- Makefile.in.orig Mon Dec 18 13:39:36 1995
++++ Makefile.in Thu Dec 12 12:10:02 1996
+@@ -3,11 +3,12 @@
#
TITLE = FD-
-TOPDIR = /usr/local
++PREFIX?= /usr/local
+TOPDIR = $(PREFIX)
BINDIR = $(TOPDIR)/bin
- MANDIR = $(TOPDIR)/man/man$(MANSEC)
+-MANDIR = $(TOPDIR)/man/man$(MANSEC)
++MANDIR = $(TOPDIR)/man/ja_JP.EUC/man$(MANSEC)
CATDIR = $(TOPDIR)/man/cat$(MANSEC)
-DEFRC = /etc/fdrc
+DEFRC = $(TOPDIR)/etc/fdrc
SHELL = /bin/sh
INSTALL = cp -p
CHMOD = chmod
-@@ -40,7 +40,7 @@
+@@ -40,7 +41,7 @@
kanji.o file.o apply.o archive.o tree.o command.o browse.o
LDFLAGS = __TERMLIBS__ __REGLIBS__ __OTHERLIBS__
diff --git a/shells/fd/pkg-plist b/shells/fd/pkg-plist
index b2b280abecdc..9f641075e93d 100644
--- a/shells/fd/pkg-plist
+++ b/shells/fd/pkg-plist
@@ -1,3 +1,3 @@
bin/fd
-man/man1/fd.1.gz
+man/ja_JP.EUC/man1/fd.1.gz
etc/fdrc