pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel



Module Name:    pkgsrc
Committed By:   nia
Date:           Thu Jul  9 13:15:45 UTC 2020

Modified Files:
        pkgsrc/devel: Makefile
Added Files:
        pkgsrc/devel/lua-mimetypes: DESCR Makefile PLIST distinfo

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.3166 -r1.3167 pkgsrc/devel/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/lua-mimetypes/DESCR \
    pkgsrc/devel/lua-mimetypes/Makefile pkgsrc/devel/lua-mimetypes/PLIST \
    pkgsrc/devel/lua-mimetypes/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/Makefile
diff -u pkgsrc/devel/Makefile:1.3166 pkgsrc/devel/Makefile:1.3167
--- pkgsrc/devel/Makefile:1.3166        Thu Jul  9 10:04:25 2020
+++ pkgsrc/devel/Makefile       Thu Jul  9 13:15:45 2020
@@ -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-lrexlib-posix
 SUBDIR+=       lua-luassert
 SUBDIR+=       lua-luv
 SUBDIR+=       lua-mediator
+SUBDIR+=       lua-mimetypes
 SUBDIR+=       lua-mode
 SUBDIR+=       lua-penlight
 SUBDIR+=       lua-posix

Added files:

Index: pkgsrc/devel/lua-mimetypes/DESCR
diff -u /dev/null pkgsrc/devel/lua-mimetypes/DESCR:1.1
--- /dev/null   Thu Jul  9 13:15:45 2020
+++ pkgsrc/devel/lua-mimetypes/DESCR    Thu Jul  9 13:15:45 2020
@@ -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.
Index: pkgsrc/devel/lua-mimetypes/Makefile
diff -u /dev/null pkgsrc/devel/lua-mimetypes/Makefile:1.1
--- /dev/null   Thu Jul  9 13:15:45 2020
+++ pkgsrc/devel/lua-mimetypes/Makefile Thu Jul  9 13:15:45 2020
@@ -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"
Index: pkgsrc/devel/lua-mimetypes/PLIST
diff -u /dev/null pkgsrc/devel/lua-mimetypes/PLIST:1.1
--- /dev/null   Thu Jul  9 13:15:45 2020
+++ pkgsrc/devel/lua-mimetypes/PLIST    Thu Jul  9 13:15:45 2020
@@ -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
Index: pkgsrc/devel/lua-mimetypes/distinfo
diff -u /dev/null pkgsrc/devel/lua-mimetypes/distinfo:1.1
--- /dev/null   Thu Jul  9 13:15:45 2020
+++ pkgsrc/devel/lua-mimetypes/distinfo Thu Jul  9 13:15:45 2020
@@ -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