Skip to content

Commit

Permalink
lang/emilua: Update to 0.6.0
Browse files Browse the repository at this point in the history
ChangeLog: https://docs.emilua.org/api/0.6/changelog.html

 * Add FreeBSD’s jails support.
 * Add function format() to format strings. The implementation uses C++'s libfmt.
 * Convert decomposition functions from filesystem.path to properties:
   root_name, root_directory, root_path, relative_path, parent_path, filename,
   stem, extension.
 * Convert some filesystem.path properties to string: root_name, root_directory,
   filename, stem, extension.
 * filesystem.path.iterator() will return strings at each iteration now.
 * Add more functions to the module filesystem: exists(), is_block_file(),
   is_character_file(), is_directory(), is_fifo(), is_other(),
   is_regular_file(), is_socket(), is_symlink(), mode(). It was already possible
   to query for these attributes. These functions were added as an extra
   convenience.
 * Add yet more functions to the module filesystem: mkfifo(), mknod(),
   makedev().
 * New UNIX socket options to retrieve security labels and credentials from the
   remote process.
 * Remove HTTP & WebSocket classes. They should be offered as separate plugins.
 * file_descriptor implemented for Windows pipes and file.stream.
 * Many improvements to Windows version of system.spawn().

PR:		276229
Reported by:	manipuladordedados@gmail.com (maintainer)
  • Loading branch information
fernape committed Jan 20, 2024
1 parent 2aaa08f commit 26231b1
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 21 deletions.
12 changes: 4 additions & 8 deletions lang/emilua/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
PORTNAME= emilua
DISTVERSIONPREFIX= v
DISTVERSION= 0.5.1
PORTREVISION= 1
DISTVERSION= 0.6.0
CATEGORIES= lang devel

MAINTAINER= manipuladordedados@gmail.com
Expand All @@ -11,7 +10,8 @@ WWW= https://emilua.org/
LICENSE= BSL
LICENSE_FILE= ${WRKSRC}/LICENSE_1_0.txt

IGNORE_FreeBSD_13= not supported by Emilua ('clearenv' was not declared in this scope)
IGNORE_FreeBSD_12= not supported by Emilua
IGNORE_FreeBSD_13= not supported by Emilua

BUILD_DEPENDS= asciidoctor:textproc/rubygem-asciidoctor \
boost-libs>0:devel/boost-libs \
Expand All @@ -30,8 +30,7 @@ USES= localbase luajit:luajit-openresty meson ncurses pathfix \
pkgconfig ssl
USE_GCC= 12
USE_GITHUB= nodefault
GH_TUPLE= BoostGSoC14:boost.http:93ae527c89ffc517862e1f5f54c8a257278f1195:emilua_http/subprojects/emilua-http \
breese:trial.protocol:79149f6:trial_protocol/subprojects/trial-protocol
GH_TUPLE= breese:trial.protocol:79149f6:trial_protocol/subprojects/trial-protocol
USE_GITLAB= yes

CONFIGURE_ENV+= BOOST_INCLUDEDIR="${LOCALBASE}/include" \
Expand All @@ -40,15 +39,12 @@ CONFIGURE_ENV+= BOOST_INCLUDEDIR="${LOCALBASE}/include" \
MESON_ARGS= --buildtype=plain \
--wrap-mode=nodownload \
-Db_pch=false \
-Denable_http=true \
-Denable_manpages=true \
-Denable_tests=true

CXXFLAGS+= "-DFMT_HEADER_ONLY"

post-extract:
${CP} ${WRKSRC}/subprojects/packagefiles/emilua-http/meson.build \
${WRKSRC}/subprojects/emilua-http/
${CP} ${WRKSRC}/subprojects/packagefiles/trial.protocol/meson.build \
${WRKSRC}/subprojects/trial-protocol/

Expand Down
8 changes: 3 additions & 5 deletions lang/emilua/distinfo
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
TIMESTAMP = 1702060584
SHA256 (BoostGSoC14-boost.http-93ae527c89ffc517862e1f5f54c8a257278f1195_GH0.tar.gz) = 4e90417806c285348d968183072918e86d7fd7d7db5affb63ec03faee92ed8ed
SIZE (BoostGSoC14-boost.http-93ae527c89ffc517862e1f5f54c8a257278f1195_GH0.tar.gz) = 237404
TIMESTAMP = 1704831155
SHA256 (breese-trial.protocol-79149f6_GH0.tar.gz) = ea82ba7736a2c6ae94e72587a454d3380517ed764df89e2297e6fac2acdeac03
SIZE (breese-trial.protocol-79149f6_GH0.tar.gz) = 255698
SHA256 (emilua-v0.5.1.tar.bz2) = 08a46894dbdb2384e4c4aa4cfb7026caa557b6c16836e47bb30aca3372bf3ccb
SIZE (emilua-v0.5.1.tar.bz2) = 328877
SHA256 (emilua-v0.6.0.tar.bz2) = d19b907e1a3c3d08a58a4c023ed0602ceaa7bb5372d49e66b6c4cb2106ff6442
SIZE (emilua-v0.6.0.tar.bz2) = 322748
27 changes: 19 additions & 8 deletions lang/emilua/pkg-plist
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ include/emilua/file_descriptor.hpp
include/emilua/filesystem.hpp
include/emilua/future.hpp
include/emilua/generic_error.hpp
include/emilua/http.hpp
include/emilua/ip.hpp
include/emilua/json.hpp
include/emilua/lua_shim.hpp
Expand All @@ -32,11 +31,10 @@ include/emilua/system.hpp
include/emilua/time.hpp
include/emilua/tls.hpp
include/emilua/unix.hpp
include/emilua/websocket.hpp
include/emilua/windows.hpp
lib/libemilua.so
lib/libemilua.so.0
lib/libemilua.so.0.5.1
lib/libemilua.so.0.6.0
libdata/pkgconfig/emilua.pc
libexec/emilua/emilua_gperf.awk
share/man/man1/emilua.1.gz
Expand Down Expand Up @@ -68,10 +66,23 @@ share/man/man3em/filesystem.current_working_directory.3em.gz
share/man/man3em/filesystem.directory_entry.3em.gz
share/man/man3em/filesystem.directory_iterator.3em.gz
share/man/man3em/filesystem.equivalent.3em.gz
share/man/man3em/filesystem.exists.3em.gz
share/man/man3em/filesystem.file_size.3em.gz
share/man/man3em/filesystem.hard_link_count.3em.gz
share/man/man3em/filesystem.is_block_file.3em.gz
share/man/man3em/filesystem.is_character_file.3em.gz
share/man/man3em/filesystem.is_directory.3em.gz
share/man/man3em/filesystem.is_empty.3em.gz
share/man/man3em/filesystem.is_fifo.3em.gz
share/man/man3em/filesystem.is_other.3em.gz
share/man/man3em/filesystem.is_regular_file.3em.gz
share/man/man3em/filesystem.is_socket.3em.gz
share/man/man3em/filesystem.is_symlink.3em.gz
share/man/man3em/filesystem.last_write_time.3em.gz
share/man/man3em/filesystem.makedev.3em.gz
share/man/man3em/filesystem.mkfifo.3em.gz
share/man/man3em/filesystem.mknod.3em.gz
share/man/man3em/filesystem.mode.3em.gz
share/man/man3em/filesystem.path.3em.gz
share/man/man3em/filesystem.proximate.3em.gz
share/man/man3em/filesystem.read_symlink.3em.gz
Expand All @@ -85,12 +96,9 @@ share/man/man3em/filesystem.status.3em.gz
share/man/man3em/filesystem.temp_directory_path.3em.gz
share/man/man3em/filesystem.umask.3em.gz
share/man/man3em/filesystem.weakly_canonical.3em.gz
share/man/man3em/format.3em.gz
share/man/man3em/future.3em.gz
share/man/man3em/generic_error.3em.gz
share/man/man3em/http.headers.3em.gz
share/man/man3em/http.request.3em.gz
share/man/man3em/http.response.3em.gz
share/man/man3em/http.socket.3em.gz
share/man/man3em/inbox.3em.gz
share/man/man3em/ip.address.3em.gz
share/man/man3em/ip.address_info_flag.3em.gz
Expand Down Expand Up @@ -134,6 +142,10 @@ share/man/man3em/system.getresgid.3em.gz
share/man/man3em/system.getresuid.3em.gz
share/man/man3em/system.getsid.3em.gz
share/man/man3em/system.in_.3em.gz
share/man/man3em/system.jail_get.3em.gz
share/man/man3em/system.jail_remove.3em.gz
share/man/man3em/system.jail_set.3em.gz
share/man/man3em/system.jailparam_all.3em.gz
share/man/man3em/system.kill.3em.gz
share/man/man3em/system.linux_capabilities.3em.gz
share/man/man3em/system.out.3em.gz
Expand Down Expand Up @@ -164,7 +176,6 @@ share/man/man3em/unix.seqpacket_acceptor.3em.gz
share/man/man3em/unix.seqpacket_socket.3em.gz
share/man/man3em/unix.stream_acceptor.3em.gz
share/man/man3em/unix.stream_socket.3em.gz
share/man/man3em/websocket.3em.gz
share/man/man7/emilua-alternatives.7.gz
share/man/man7/emilua-embedding.7.gz
share/man/man7/emilua-errors.7.gz
Expand Down

0 comments on commit 26231b1

Please sign in to comment.