Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel deveL: Add lua-mimetypes



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e5e8fe237252
branches:  trunk
changeset: 435567:e5e8fe237252
user:      nia <nia%pkgsrc.org@localhost>
date:      Thu Jul 09 13:15:45 2020 +0000

description:
deveL: Add lua-mimetypes

This is a simple library for guessing a file's MIME type. It includes
a (hopefully) comprehensive database of MIME types, but it allows
you to create your own should you have specific requirements. It
can guess types both by extension and by the complete filename.

diffstat:

 devel/Makefile               |   3 ++-
 devel/lua-mimetypes/DESCR    |   4 ++++
 devel/lua-mimetypes/Makefile |  30 ++++++++++++++++++++++++++++++
 devel/lua-mimetypes/PLIST    |   3 +++
 devel/lua-mimetypes/distinfo |   6 ++++++
 5 files changed, 45 insertions(+), 1 deletions(-)

diffs (76 lines):

diff -r e52aa91e908f -r e5e8fe237252 devel/Makefile
--- a/devel/Makefile    Thu Jul 09 11:14:56 2020 +0000
+++ b/devel/Makefile    Thu Jul 09 13:15:45 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3166 2020/07/09 10:04:25 nia Exp $
+# $NetBSD: Makefile,v 1.3167 2020/07/09 13:15:45 nia Exp $
 #
 
 COMMENT=       Development utilities
@@ -871,6 +871,7 @@
 SUBDIR+=       lua-luassert
 SUBDIR+=       lua-luv
 SUBDIR+=       lua-mediator
+SUBDIR+=       lua-mimetypes
 SUBDIR+=       lua-mode
 SUBDIR+=       lua-penlight
 SUBDIR+=       lua-posix
diff -r e52aa91e908f -r e5e8fe237252 devel/lua-mimetypes/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-mimetypes/DESCR Thu Jul 09 13:15:45 2020 +0000
@@ -0,0 +1,4 @@
+This is a simple library for guessing a file's MIME type. It includes
+a (hopefully) comprehensive database of MIME types, but it allows
+you to create your own should you have specific requirements. It
+can guess types both by extension and by the complete filename.
diff -r e52aa91e908f -r e5e8fe237252 devel/lua-mimetypes/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-mimetypes/Makefile      Thu Jul 09 13:15:45 2020 +0000
@@ -0,0 +1,30 @@
+# $NetBSD: Makefile,v 1.1 2020/07/09 13:15:45 nia Exp $
+
+DISTNAME=      lua-mimetypes-1.0.0
+PKGNAME=       ${LUA_PKGPREFIX}-${DISTNAME:S/lua-//1}
+CATEGORIES=    devel lua
+MASTER_SITES=  -https://bitbucket.org/leafstorm/lua-mimetypes/get/v${PKGVERSION_NOREV}.tar.gz
+
+MAINTAINER=    nia%NetBSD.org@localhost
+HOMEPAGE=      https://bitbucket.org/leafstorm/lua-mimetypes
+COMMENT=       MIME type database for Lua
+LICENSE=       mit
+
+WRKSRC=                ${WRKDIR}/leafstorm-lua-mimetypes-02100ff1171e
+USE_LANGUAGES= # none
+NO_BUILD=      yes
+
+INSTALLATION_DIRS+=    ${LUA_LDIR}
+INSTALLATION_DIRS+=    share/doc/${PKGNAME_NOREV}
+
+do-install:
+       ${INSTALL_DATA} ${WRKSRC}/README \
+               ${DESTDIR}${PREFIX}/share/doc/${PKGNAME_NOREV}
+       ${INSTALL_DATA} ${WRKSRC}/mimetypes.lua \
+               ${DESTDIR}${PREFIX}/${LUA_LDIR}/mimetypes.lua
+
+do-test:
+       cd ${WRKSRC} && ${LUA_INTERPRETER} test.lua
+
+.include "../../lang/lua/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r e52aa91e908f -r e5e8fe237252 devel/lua-mimetypes/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-mimetypes/PLIST Thu Jul 09 13:15:45 2020 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2020/07/09 13:15:45 nia Exp $
+share/doc/${PKGNAME}/README
+${LUA_LDIR}/mimetypes.lua
diff -r e52aa91e908f -r e5e8fe237252 devel/lua-mimetypes/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-mimetypes/distinfo      Thu Jul 09 13:15:45 2020 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/07/09 13:15:45 nia Exp $
+
+SHA1 (lua-mimetypes-1.0.0.tar.gz) = b050f5210a2fd636d985d0e8c40af93e61031985
+RMD160 (lua-mimetypes-1.0.0.tar.gz) = c259aec4ac42d18a4101079907c38ebfd00eacdd
+SHA512 (lua-mimetypes-1.0.0.tar.gz) = 2533e1a4ff0c48efd7eb776b4bd202ef2d31f5b23df5f27e628c7b0236072bef5cd07d05c895e1d5318587ed2ecf63c6e1aaea9e6959854306fc88b0082725f6
+Size (lua-mimetypes-1.0.0.tar.gz) = 4992 bytes



Home | Main Index | Thread Index | Old Index