diff options
author | wiz <wiz@pkgsrc.org> | 2019-02-27 15:28:13 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2019-02-27 15:28:13 +0000 |
commit | 0d1d988d05c92e18e5745a2e53cf4c2ff916e2bc (patch) | |
tree | 8cdb9a80a1cd3f103d61355a4ade7529f458c84a /sysutils/trash | |
parent | bb6e4acdd4e77e30f5c168153b4ccd68d183f6df (diff) | |
download | pkgsrc-0d1d988d05c92e18e5745a2e53cf4c2ff916e2bc.tar.gz |
sysutils/trash: import trash-0.9.2
Trash is a small command-line program for OS X that moves files or
folders to the trash.
Diffstat (limited to 'sysutils/trash')
-rw-r--r-- | sysutils/trash/DESCR | 2 | ||||
-rw-r--r-- | sysutils/trash/Makefile | 28 | ||||
-rw-r--r-- | sysutils/trash/PLIST | 3 | ||||
-rw-r--r-- | sysutils/trash/distinfo | 7 | ||||
-rw-r--r-- | sysutils/trash/patches/patch-Makefile | 15 |
5 files changed, 55 insertions, 0 deletions
diff --git a/sysutils/trash/DESCR b/sysutils/trash/DESCR new file mode 100644 index 00000000000..d8b35824c51 --- /dev/null +++ b/sysutils/trash/DESCR @@ -0,0 +1,2 @@ +Trash is a small command-line program for OS X that moves files or +folders to the trash. diff --git a/sysutils/trash/Makefile b/sysutils/trash/Makefile new file mode 100644 index 00000000000..b4a4c55284d --- /dev/null +++ b/sysutils/trash/Makefile @@ -0,0 +1,28 @@ +# $NetBSD: Makefile,v 1.1 2019/02/27 15:28:13 wiz Exp $ + +DISTNAME= trash-0.9.2 +CATEGORIES= sysutils +MASTER_SITES= ${MASTER_SITE_GITHUB:=ali-rantakari/} +GITHUB_TAG= v${PKGVERSION_NOREV} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://github.com/ali-rantakari/trash/ +COMMENT= Command-line program for OS X that moves files or folders to the trash +LICENSE= mit + +ONLY_FOR_PLATFORM= Darwin-*-* + +# actually, pod2man +USE_TOOLS+= gmake perl + +INSTALLATION_DIRS+= bin ${PKGMANDIR}/man1 + +do-build: + cd ${WRKSRC} && ${GMAKE} + cd ${WRKSRC} && ${GMAKE} docs + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/trash ${DESTDIR}${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/trash.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 + +.include "../../mk/bsd.pkg.mk" diff --git a/sysutils/trash/PLIST b/sysutils/trash/PLIST new file mode 100644 index 00000000000..ac7d5fa41a1 --- /dev/null +++ b/sysutils/trash/PLIST @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST,v 1.1 2019/02/27 15:28:13 wiz Exp $ +bin/trash +man/man1/trash.1 diff --git a/sysutils/trash/distinfo b/sysutils/trash/distinfo new file mode 100644 index 00000000000..43a83905356 --- /dev/null +++ b/sysutils/trash/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1 2019/02/27 15:28:13 wiz Exp $ + +SHA1 (trash-0.9.2.tar.gz) = e4071caf49dd5c65567a5d9a8878b427144e30f4 +RMD160 (trash-0.9.2.tar.gz) = 44da3b093f9fe52e9136e1cd975c5410e343e126 +SHA512 (trash-0.9.2.tar.gz) = b4a5e83d0b9c01a962e317a4704209a61eb2436412879db423a03e463c0f31899a8c4611b0b4bf301071a64c4349ffe6cf36023dc9af0385d1911da2f0b4a892 +Size (trash-0.9.2.tar.gz) = 23044 bytes +SHA1 (patch-Makefile) = c2b7f1caba59aee7424d7b971897b0bd035bf017 diff --git a/sysutils/trash/patches/patch-Makefile b/sysutils/trash/patches/patch-Makefile new file mode 100644 index 00000000000..2c30e848495 --- /dev/null +++ b/sysutils/trash/patches/patch-Makefile @@ -0,0 +1,15 @@ +$NetBSD: patch-Makefile,v 1.1 2019/02/27 15:28:13 wiz Exp $ + +Do not build i386 executable, fails on 10.14. + +--- Makefile.orig 2018-07-12 07:49:49.000000000 +0000 ++++ Makefile +@@ -10,7 +10,7 @@ trash: $(SOURCE_FILES) + @echo + @echo ---- Compiling: + @echo ====================================== +- $(CC) -O2 -Wall -Wextra -Wpartial-availability -Wno-unguarded-availability -force_cpusubtype_ALL -mmacosx-version-min=10.7 -arch i386 -arch x86_64 -framework AppKit -framework ScriptingBridge -o $@ $(SOURCE_FILES) ++ $(CC) -O2 -Wall -Wextra -Wpartial-availability -Wno-unguarded-availability -force_cpusubtype_ALL -mmacosx-version-min=10.7 -arch x86_64 -framework AppKit -framework ScriptingBridge -o $@ $(SOURCE_FILES) + + analyze: + @echo |