head	1.13;
access;
symbols
	pkgsrc-2026Q2:1.13.0.4
	pkgsrc-2026Q2-base:1.13
	pkgsrc-2026Q1:1.13.0.2
	pkgsrc-2026Q1-base:1.13
	pkgsrc-2025Q4:1.12.0.4
	pkgsrc-2025Q4-base:1.12
	pkgsrc-2025Q3:1.12.0.2
	pkgsrc-2025Q3-base:1.12
	pkgsrc-2025Q2:1.11.0.4
	pkgsrc-2025Q2-base:1.11
	pkgsrc-2025Q1:1.11.0.2
	pkgsrc-2025Q1-base:1.11
	pkgsrc-2024Q4:1.10.0.4
	pkgsrc-2024Q4-base:1.10
	pkgsrc-2024Q3:1.10.0.2
	pkgsrc-2024Q3-base:1.10
	pkgsrc-2024Q2:1.9.0.10
	pkgsrc-2024Q2-base:1.9
	pkgsrc-2024Q1:1.9.0.8
	pkgsrc-2024Q1-base:1.9
	pkgsrc-2023Q4:1.9.0.6
	pkgsrc-2023Q4-base:1.9
	pkgsrc-2023Q3:1.9.0.4
	pkgsrc-2023Q3-base:1.9
	pkgsrc-2023Q2:1.9.0.2
	pkgsrc-2023Q2-base:1.9
	pkgsrc-2023Q1:1.8.0.8
	pkgsrc-2023Q1-base:1.8
	pkgsrc-2022Q4:1.8.0.6
	pkgsrc-2022Q4-base:1.8
	pkgsrc-2022Q3:1.8.0.4
	pkgsrc-2022Q3-base:1.8
	pkgsrc-2022Q2:1.8.0.2
	pkgsrc-2022Q2-base:1.8
	pkgsrc-2022Q1:1.7.0.2
	pkgsrc-2022Q1-base:1.7
	pkgsrc-2021Q4:1.5.0.2
	pkgsrc-2021Q4-base:1.5
	pkgsrc-2021Q3:1.2.0.4
	pkgsrc-2021Q3-base:1.2
	pkgsrc-2021Q2:1.2.0.2
	pkgsrc-2021Q2-base:1.2
	pkgsrc-2021Q1:1.1.0.6
	pkgsrc-2021Q1-base:1.1
	pkgsrc-2020Q4:1.1.0.4
	pkgsrc-2020Q4-base:1.1
	pkgsrc-2020Q3:1.1.0.2
	pkgsrc-2020Q3-base:1.1;
locks; strict;
comment	@# @;


1.13
date	2026.01.06.22.03.18;	author wiz;	state Exp;
branches;
next	1.12;
commitid	Y3tfBBnoDoHdHnpG;

1.12
date	2025.08.18.07.27.41;	author wiz;	state Exp;
branches;
next	1.11;
commitid	ZQFHW51PowINnb7G;

1.11
date	2025.01.21.11.00.11;	author nia;	state Exp;
branches;
next	1.10;
commitid	ERZvanoGurVahlGF;

1.10
date	2024.08.25.06.18.36;	author wiz;	state Exp;
branches;
next	1.9;
commitid	BcrSL94SO85mvanF;

1.9
date	2023.05.28.10.05.36;	author bsiegert;	state Exp;
branches;
next	1.8;
commitid	CdAukyFDjSJZnIqE;

1.8
date	2022.04.20.16.15.01;	author nia;	state Exp;
branches;
next	1.7;
commitid	8n4caepKoRU1oXAD;

1.7
date	2022.02.19.08.18.22;	author nia;	state Exp;
branches;
next	1.6;
commitid	rW3duCnLNFLDFctD;

1.6
date	2022.02.13.10.30.19;	author nia;	state Exp;
branches;
next	1.5;
commitid	mD7eae6QebekBrsD;

1.5
date	2021.12.27.09.45.40;	author nia;	state Exp;
branches;
next	1.4;
commitid	2qIHPKZUYaSHTgmD;

1.4
date	2021.12.20.20.53.12;	author nia;	state Exp;
branches;
next	1.3;
commitid	jYwmUETZu9uFOqlD;

1.3
date	2021.12.19.10.56.37;	author nia;	state Exp;
branches;
next	1.2;
commitid	yyiMl7bJQe6zxflD;

1.2
date	2021.05.13.10.23.10;	author nia;	state Exp;
branches;
next	1.1;
commitid	JoCfP827CXXKqYSC;

1.1
date	2020.07.02.20.48.09;	author nia;	state Exp;
branches;
next	;
commitid	olurtEUyFe6Z0yeC;


desc
@@


1.13
log
@lua-luv: does not support lua 5.5 yet
@
text
@# $NetBSD: Makefile,v 1.12 2025/08/18 07:27:41 wiz Exp $

DISTNAME=	luv-1.43.0-0
PKGNAME=	${LUA_PKGPREFIX}-${DISTNAME:S/-0$/.0/1}
PKGREVISION=	1
CATEGORIES=	devel
MASTER_SITES=	${MASTER_SITE_GITHUB:=luvit/}
GITHUB_PROJECT=	luv
GITHUB_TAG=	${DISTNAME:S/^luv-//1}

MAINTAINER=	pkgsrc-users@@NetBSD.org
HOMEPAGE=	https://github.com/luvit/luv
COMMENT=	Bare libuv bindings for Lua
LICENSE=	apache-2.0

LUA_SELF_CONFLICT=	yes
LUA_LINKER_MAGIC=	no

LUA_VERSIONS_INCOMPATIBLE=	55

.include "../../lang/lua/luaversion.mk"

.if ${_LUA_VERSION} == "51" || ${_LUA_VERSION} == "52"
DEPENDS+=	${LUA_PKGPREFIX}-compat53-[0-9]*:../../devel/lua-compat53
.endif

CMAKE_CONFIGURE_ARGS+=	-DWITH_SHARED_LIBUV=ON
CMAKE_CONFIGURE_ARGS+=	-DBUILD_MODULE=ON
CMAKE_CONFIGURE_ARGS+=	-DBUILD_SHARED_LIBS=ON
CMAKE_CONFIGURE_ARGS+=	-DLUA_BUILD_TYPE=System
CMAKE_CONFIGURE_ARGS+=	-DWITH_LUA_ENGINE=Lua
CMAKE_CONFIGURE_ARGS+=	-DCMAKE_POLICY_VERSION_MINIMUM=3.5

PKGCONFIG_OVERRIDE+=	libluv.pc.in

pre-configure:
.if ${_LUA_VERSION} == "51" || ${_LUA_VERSION} == "52"
	${CP} ${PREFIX}/${LUA_INCDIR}/compat-5.3.* ${WRKSRC}/src
.endif

.include "../../devel/cmake/build.mk"
.include "../../lang/lua/module.mk"
.include "../../devel/libuv/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
@


1.12
log
@lua-luv: fix build with cmake 4

Convert to cmake/build.mk
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2025/01/21 11:00:11 nia Exp $
d19 2
@


1.11
log
@*: Drop maintainership.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2024/08/25 06:18:36 wiz Exp $
a24 2
USE_CMAKE=	yes

d30 1
d39 1
@


1.10
log
@*: replace CMAKE_ARGS with CMAKE_CONFIGURE_ARGS
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2023/05/28 10:05:36 bsiegert Exp $
d11 1
a11 1
MAINTAINER=	nia@@NetBSD.org
@


1.9
log
@lua-luv: unset LUA_LINKER_MAGIC

Reported by Jonathan Buschmann in PR pkg/57412.
No conditional around the setting, since it has only an effect on Darwin
and Cygwin.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2022/04/20 16:15:01 nia Exp $
d27 5
a31 5
CMAKE_ARGS+=	-DWITH_SHARED_LIBUV=ON
CMAKE_ARGS+=	-DBUILD_MODULE=ON
CMAKE_ARGS+=	-DBUILD_SHARED_LIBS=ON
CMAKE_ARGS+=	-DLUA_BUILD_TYPE=System
CMAKE_ARGS+=	-DWITH_LUA_ENGINE=Lua
@


1.8
log
@lua-luv: Install headers and other files required by neovim.

Unfortnately this requires we add a self-conflict.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2022/02/19 08:18:22 nia Exp $
d17 1
@


1.7
log
@lua-luv: update to 1.43.0

                                    1.43.0-0

     * Change the call to acquire_vm_cb() in luv.new_therad() to be made
       before the thread is created in luv_new_thread().
     * simplify vm management in thread and threadpool
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2022/02/13 10:30:19 nia Exp $
d5 1
d16 2
d28 1
d32 2
@


1.6
log
@lua-luv: Only attempt to copy the compat5.3 headers when they're
actively required.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2021/12/27 09:45:40 nia Exp $
d3 2
a4 2
DISTNAME=	luv-1.42.0-1
PKGNAME=	${LUA_PKGPREFIX}-${DISTNAME:S/-1$/.1/1}
@


1.5
log
@lua-luv: Fix 5.1 and 5.2 builds.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2021/12/20 20:53:12 nia Exp $
d29 1
d31 1
@


1.4
log
@lua-luv: Needs lua-compat53
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2021/12/19 10:56:37 nia Exp $
d28 3
@


1.3
log
@lua-luv: update to 1.42.0.1

1.42.0-1

* Use uv_handle_size/uv_req_size instead of sizeof
* LuaJIT: add missing LJ_ENDIAN and LJ_NO_UNWIND checks for DASM
  [this fixes building on aarch64]

1.42.0-0

* Update to Libuv 1.42.0
    * New function: uv.try_write2
* Fix uninitialized memory reads when work_fn in uv.new_work returns no
  values
* Luv C API: Add function to run thread in protected mode
* Change luv_work_cb() to run in protected mode and throw an error in
  luv_thread_arg_set() if an argument of an impermissible type is passed
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2021/05/13 10:23:10 nia Exp $
d15 6
@


1.2
log
@lua-luv: update to 1.41.0

Changes:
    Updated Libuv to 1.41.0
    Fix/add support for Lua 5.4
    CMake: Only require finding Lua libs via find_package on Windows
    fs_{read,write}: make offset argument optional and default it to -1
    Add udp_set_source_membership binding + improve udp_set_membership
    Add pipe_chmod binding
    Add process_get_pid binding
    Add handle_get_type and req_get_type
    Add method form of uv.cancel: req:cancel()
    Add loop_configure binding
    Fix garbage collection-related memory bug with threads
    fix install path for make install with Luajit 2.1
    Fix args potentially being garbage collected before use in luv_spawn
    fix bug in luv_check_fs
    Add uv.loop_mode function
    Add BUILD_STATIC_LIBS to Makefile
    fix a memry bug in thread pool work callback
    Fix possible memory leak in lhandle.c
    fix memleaks in luv_cpu_info
    fs: Print destination paths in error messages for the relevant functions
    Make symlink/copyfile bindings more user-friendly
    Fix shared library build failure on macOS
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2020/07/02 20:48:09 nia Exp $
d3 2
a4 2
DISTNAME=	luv-1.41.0-0
PKGNAME=	${LUA_PKGPREFIX}-${DISTNAME:S/-0//1}
d8 1
a8 1
GITHUB_RELEASE=	${PKGVERSION_NOREV}-0
@


1.1
log
@devel: Add lua-luv. Based on work by Jonathan Buschmann in wip.

This library makes libuv available to lua scripts.  It was made for the
luvit project but should usable from nearly any lua project.
@
text
@d1 1
a1 1
# $NetBSD$
d3 1
a3 1
DISTNAME=	luv-1.36.0-0
@

