pkgsrc-Changes archive

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

CVS commit: pkgsrc/x11



Module Name:    pkgsrc
Committed By:   nia
Date:           Wed Nov 28 18:48:58 UTC 2018

Modified Files:
        pkgsrc/x11: Makefile
Added Files:
        pkgsrc/x11/kitty: DESCR Makefile PLIST distinfo
        pkgsrc/x11/kitty/patches: patch-kitty_threading.h patch-setup.py

Log Message:
x11/kitty: Import version 0.12.3

kitty - the fast, featureful, GPU based terminal emulator


To generate a diff of this commit:
cvs rdiff -u -r1.829 -r1.830 pkgsrc/x11/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/x11/kitty/DESCR pkgsrc/x11/kitty/Makefile \
    pkgsrc/x11/kitty/PLIST pkgsrc/x11/kitty/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/x11/kitty/patches/patch-kitty_threading.h \
    pkgsrc/x11/kitty/patches/patch-setup.py

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

Modified files:

Index: pkgsrc/x11/Makefile
diff -u pkgsrc/x11/Makefile:1.829 pkgsrc/x11/Makefile:1.830
--- pkgsrc/x11/Makefile:1.829   Sat Nov 24 13:09:57 2018
+++ pkgsrc/x11/Makefile Wed Nov 28 18:48:58 2018
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.829 2018/11/24 13:09:57 nia Exp $
+# $NetBSD: Makefile,v 1.830 2018/11/28 18:48:58 nia Exp $
 #
 
 COMMENT=       Packages to support the X window system
@@ -201,6 +201,7 @@ SUBDIR+=    kguiaddons
 SUBDIR+=       kinit
 SUBDIR+=       kirigami2
 SUBDIR+=       kitemviews
+SUBDIR+=       kitty
 SUBDIR+=       kjobwidgets
 SUBDIR+=       konsole
 SUBDIR+=       kterm

Added files:

Index: pkgsrc/x11/kitty/DESCR
diff -u /dev/null pkgsrc/x11/kitty/DESCR:1.1
--- /dev/null   Wed Nov 28 18:48:58 2018
+++ pkgsrc/x11/kitty/DESCR      Wed Nov 28 18:48:58 2018
@@ -0,0 +1 @@
+kitty - the fast, featureful, GPU based terminal emulator
Index: pkgsrc/x11/kitty/Makefile
diff -u /dev/null pkgsrc/x11/kitty/Makefile:1.1
--- /dev/null   Wed Nov 28 18:48:58 2018
+++ pkgsrc/x11/kitty/Makefile   Wed Nov 28 18:48:58 2018
@@ -0,0 +1,67 @@
+# $NetBSD: Makefile,v 1.1 2018/11/28 18:48:58 nia Exp $
+
+DISTNAME=      kitty-0.12.3
+CATEGORIES=    x11
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=kovidgoyal/}
+GITHUB_PROJECT=        kitty
+GITHUB_TAG=    v${PKGVERSION_NOREV}
+
+MAINTAINER=    nia%NetBSD.org@localhost
+HOMEPAGE=      https://sw.kovidgoyal.net/kitty/index.html
+COMMENT=       GPU based terminal emulator
+LICENSE=       gnu-gpl-v3
+
+EXTRACT_USING= bsdtar
+USE_TOOLS+=    gmake pkg-config
+BUILD_TARGET=  app
+
+SUBST_CLASSES+=                python
+SUBST_STAGE.python=    pre-build
+SUBST_MESSAGE.python=  Replace path of Python interpreter.
+SUBST_FILES.python+=   Makefile
+SUBST_FILES.python+=   docs/Makefile
+SUBST_SED.python+=     -e "s,python3,python${PYVERSSUFFIX},g"
+SUBST_SED.python+=     -e "s,sphinx-build,sphinx-build${PYVERSSUFFIX},g"
+
+BUILD_DEPENDS+=        ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
+BUILD_DEPENDS+=        ${PYPKGPREFIX}-sphinx-[0-9]*:../../textproc/py-sphinx
+
+PYTHON_VERSIONS_INCOMPATIBLE=  27 34
+
+REPLACE_PYTHON+=       kitty/launcher/kitty
+
+INSTALLATION_DIRS+=    ${PKGMANDIR}/man1
+
+do-build:
+       cd ${WRKSRC} && ${MAKE_ENV} ${PYTHONBIN} setup.py linux-package
+       cd ${WRKSRC} && ${MAKE_ENV} ${GMAKE} man
+
+do-install:
+       cd ${WRKSRC} && ${MAKE_ENV} ${PYTHONBIN} setup.py linux-package \
+           --prefix ${DESTDIR}${PREFIX}
+       ${INSTALL_DATA} ${WRKSRC}/man/man1/kitty.1 \
+           ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/kitty.1
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} != "Darwin"
+.include "../../graphics/freetype2/buildlink3.mk"
+.include "../../fonts/fontconfig/buildlink3.mk"
+.endif
+
+.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../fonts/harfbuzz/buildlink3.mk"
+.include "../../graphics/MesaLib/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../sysutils/dbus/buildlink3.mk"
+.include "../../x11/libXcursor/buildlink3.mk"
+.include "../../x11/libXi/buildlink3.mk"
+.include "../../x11/libXinerama/buildlink3.mk"
+.include "../../x11/libXrandr/buildlink3.mk"
+.include "../../x11/libxkbcommon/buildlink3.mk"
+.include "../../lang/python/application.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/dlopen.buildlink3.mk"
+BUILDLINK_TRANSFORM+=  opt:-ldl:${BUILDLINK_LDADD.dl:Q}
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/x11/kitty/PLIST
diff -u /dev/null pkgsrc/x11/kitty/PLIST:1.1
--- /dev/null   Wed Nov 28 18:48:58 2018
+++ pkgsrc/x11/kitty/PLIST      Wed Nov 28 18:48:58 2018
@@ -0,0 +1,240 @@
+@comment $NetBSD: PLIST,v 1.1 2018/11/28 18:48:58 nia Exp $
+bin/kitty
+lib/kitty/__main__.py
+lib/kitty/__pycache__/__main__.cpython-37.opt-1.pyc
+lib/kitty/kittens/__init__.py
+lib/kitty/kittens/__pycache__/__init__.cpython-37.opt-1.pyc
+lib/kitty/kittens/__pycache__/runner.cpython-37.opt-1.pyc
+lib/kitty/kittens/ask/__init__.py
+lib/kitty/kittens/ask/__pycache__/__init__.cpython-37.opt-1.pyc
+lib/kitty/kittens/ask/__pycache__/main.cpython-37.opt-1.pyc
+lib/kitty/kittens/ask/main.py
+lib/kitty/kittens/clipboard/__init__.py
+lib/kitty/kittens/clipboard/__pycache__/__init__.cpython-37.opt-1.pyc
+lib/kitty/kittens/clipboard/__pycache__/main.cpython-37.opt-1.pyc
+lib/kitty/kittens/clipboard/main.py
+lib/kitty/kittens/diff/__init__.py
+lib/kitty/kittens/diff/__pycache__/__init__.cpython-37.opt-1.pyc
+lib/kitty/kittens/diff/__pycache__/collect.cpython-37.opt-1.pyc
+lib/kitty/kittens/diff/__pycache__/config.cpython-37.opt-1.pyc
+lib/kitty/kittens/diff/__pycache__/config_data.cpython-37.opt-1.pyc
+lib/kitty/kittens/diff/__pycache__/highlight.cpython-37.opt-1.pyc
+lib/kitty/kittens/diff/__pycache__/main.cpython-37.opt-1.pyc
+lib/kitty/kittens/diff/__pycache__/patch.cpython-37.opt-1.pyc
+lib/kitty/kittens/diff/__pycache__/render.cpython-37.opt-1.pyc
+lib/kitty/kittens/diff/__pycache__/search.cpython-37.opt-1.pyc
+lib/kitty/kittens/diff/collect.py
+lib/kitty/kittens/diff/config.py
+lib/kitty/kittens/diff/config_data.py
+lib/kitty/kittens/diff/diff_speedup.so
+lib/kitty/kittens/diff/highlight.py
+lib/kitty/kittens/diff/main.py
+lib/kitty/kittens/diff/patch.py
+lib/kitty/kittens/diff/render.py
+lib/kitty/kittens/diff/search.py
+lib/kitty/kittens/hints/__init__.py
+lib/kitty/kittens/hints/__pycache__/__init__.cpython-37.opt-1.pyc
+lib/kitty/kittens/hints/__pycache__/main.cpython-37.opt-1.pyc
+lib/kitty/kittens/hints/__pycache__/url_regex.cpython-37.opt-1.pyc
+lib/kitty/kittens/hints/main.py
+lib/kitty/kittens/hints/url_regex.py
+lib/kitty/kittens/icat/__init__.py
+lib/kitty/kittens/icat/__pycache__/__init__.cpython-37.opt-1.pyc
+lib/kitty/kittens/icat/__pycache__/main.cpython-37.opt-1.pyc
+lib/kitty/kittens/icat/main.py
+lib/kitty/kittens/panel/__init__.py
+lib/kitty/kittens/panel/__pycache__/__init__.cpython-37.opt-1.pyc
+lib/kitty/kittens/panel/__pycache__/main.cpython-37.opt-1.pyc
+lib/kitty/kittens/panel/main.py
+lib/kitty/kittens/resize_window/__init__.py
+lib/kitty/kittens/resize_window/__pycache__/__init__.cpython-37.opt-1.pyc
+lib/kitty/kittens/resize_window/__pycache__/main.cpython-37.opt-1.pyc
+lib/kitty/kittens/resize_window/main.py
+lib/kitty/kittens/runner.py
+lib/kitty/kittens/show_error/__init__.py
+lib/kitty/kittens/show_error/__pycache__/__init__.cpython-37.opt-1.pyc
+lib/kitty/kittens/show_error/__pycache__/main.cpython-37.opt-1.pyc
+lib/kitty/kittens/show_error/main.py
+lib/kitty/kittens/ssh/__init__.py
+lib/kitty/kittens/ssh/__pycache__/__init__.cpython-37.opt-1.pyc
+lib/kitty/kittens/ssh/__pycache__/main.cpython-37.opt-1.pyc
+lib/kitty/kittens/ssh/main.py
+lib/kitty/kittens/tui/__init__.py
+lib/kitty/kittens/tui/__pycache__/__init__.cpython-37.opt-1.pyc
+lib/kitty/kittens/tui/__pycache__/handler.cpython-37.opt-1.pyc
+lib/kitty/kittens/tui/__pycache__/images.cpython-37.opt-1.pyc
+lib/kitty/kittens/tui/__pycache__/line_edit.cpython-37.opt-1.pyc
+lib/kitty/kittens/tui/__pycache__/loop.cpython-37.opt-1.pyc
+lib/kitty/kittens/tui/__pycache__/operations.cpython-37.opt-1.pyc
+lib/kitty/kittens/tui/handler.py
+lib/kitty/kittens/tui/images.py
+lib/kitty/kittens/tui/line_edit.py
+lib/kitty/kittens/tui/loop.py
+lib/kitty/kittens/tui/operations.py
+lib/kitty/kittens/unicode_input/__init__.py
+lib/kitty/kittens/unicode_input/__pycache__/__init__.cpython-37.opt-1.pyc
+lib/kitty/kittens/unicode_input/__pycache__/main.cpython-37.opt-1.pyc
+lib/kitty/kittens/unicode_input/main.py
+lib/kitty/kittens/unicode_input/unicode_names.so
+lib/kitty/kitty/__init__.py
+lib/kitty/kitty/__pycache__/__init__.cpython-37.opt-1.pyc
+lib/kitty/kitty/__pycache__/borders.cpython-37.opt-1.pyc
+lib/kitty/kitty/__pycache__/boss.cpython-37.opt-1.pyc
+lib/kitty/kitty/__pycache__/child.cpython-37.opt-1.pyc
+lib/kitty/kitty/__pycache__/cli.cpython-37.opt-1.pyc
+lib/kitty/kitty/__pycache__/client.cpython-37.opt-1.pyc
+lib/kitty/kitty/__pycache__/cmds.cpython-37.opt-1.pyc
+lib/kitty/kitty/__pycache__/complete.cpython-37.opt-1.pyc
+lib/kitty/kitty/__pycache__/config.cpython-37.opt-1.pyc
+lib/kitty/kitty/__pycache__/config_data.cpython-37.opt-1.pyc
+lib/kitty/kitty/__pycache__/constants.cpython-37.opt-1.pyc
+lib/kitty/kitty/__pycache__/key_encoding.cpython-37.opt-1.pyc
+lib/kitty/kitty/__pycache__/keys.cpython-37.opt-1.pyc
+lib/kitty/kitty/__pycache__/layout.cpython-37.opt-1.pyc
+lib/kitty/kitty/__pycache__/main.cpython-37.opt-1.pyc
+lib/kitty/kitty/__pycache__/remote_control.cpython-37.opt-1.pyc
+lib/kitty/kitty/__pycache__/rgb.cpython-37.opt-1.pyc
+lib/kitty/kitty/__pycache__/session.cpython-37.opt-1.pyc
+lib/kitty/kitty/__pycache__/shell.cpython-37.opt-1.pyc
+lib/kitty/kitty/__pycache__/tab_bar.cpython-37.opt-1.pyc
+lib/kitty/kitty/__pycache__/tabs.cpython-37.opt-1.pyc
+lib/kitty/kitty/__pycache__/terminfo.cpython-37.opt-1.pyc
+lib/kitty/kitty/__pycache__/utils.cpython-37.opt-1.pyc
+lib/kitty/kitty/__pycache__/window.cpython-37.opt-1.pyc
+lib/kitty/kitty/blit_fragment.glsl
+lib/kitty/kitty/blit_vertex.glsl
+lib/kitty/kitty/border_fragment.glsl
+lib/kitty/kitty/border_vertex.glsl
+lib/kitty/kitty/borders.py
+lib/kitty/kitty/boss.py
+lib/kitty/kitty/cell_fragment.glsl
+lib/kitty/kitty/cell_vertex.glsl
+lib/kitty/kitty/child.py
+lib/kitty/kitty/cli.py
+lib/kitty/kitty/client.py
+lib/kitty/kitty/cmds.py
+lib/kitty/kitty/complete.py
+lib/kitty/kitty/conf/__init__.py
+lib/kitty/kitty/conf/__pycache__/__init__.cpython-37.opt-1.pyc
+lib/kitty/kitty/conf/__pycache__/definition.cpython-37.opt-1.pyc
+lib/kitty/kitty/conf/__pycache__/utils.cpython-37.opt-1.pyc
+lib/kitty/kitty/conf/definition.py
+lib/kitty/kitty/conf/utils.py
+lib/kitty/kitty/config.py
+lib/kitty/kitty/config_data.py
+lib/kitty/kitty/constants.py
+lib/kitty/kitty/fast_data_types.so
+lib/kitty/kitty/fonts/__init__.py
+lib/kitty/kitty/fonts/__pycache__/__init__.cpython-37.opt-1.pyc
+lib/kitty/kitty/fonts/__pycache__/box_drawing.cpython-37.opt-1.pyc
+lib/kitty/kitty/fonts/__pycache__/core_text.cpython-37.opt-1.pyc
+lib/kitty/kitty/fonts/__pycache__/fontconfig.cpython-37.opt-1.pyc
+lib/kitty/kitty/fonts/__pycache__/list.cpython-37.opt-1.pyc
+lib/kitty/kitty/fonts/__pycache__/render.cpython-37.opt-1.pyc
+lib/kitty/kitty/fonts/box_drawing.py
+lib/kitty/kitty/fonts/core_text.py
+lib/kitty/kitty/fonts/fontconfig.py
+lib/kitty/kitty/fonts/list.py
+lib/kitty/kitty/fonts/render.py
+lib/kitty/kitty/glfw-x11.so
+lib/kitty/kitty/graphics_fragment.glsl
+lib/kitty/kitty/graphics_vertex.glsl
+lib/kitty/kitty/key_encoding.py
+lib/kitty/kitty/keys.py
+lib/kitty/kitty/launcher/kitty
+lib/kitty/kitty/layout.py
+lib/kitty/kitty/main.py
+lib/kitty/kitty/remote_control.py
+lib/kitty/kitty/rgb.py
+lib/kitty/kitty/session.py
+lib/kitty/kitty/shell.py
+lib/kitty/kitty/tab_bar.py
+lib/kitty/kitty/tabs.py
+lib/kitty/kitty/terminfo.py
+lib/kitty/kitty/utils.py
+lib/kitty/kitty/window.py
+lib/kitty/logo/beam-cursor.png
+lib/kitty/logo/beam-cursor%2x.png@localhost
+lib/kitty/logo/kitty.rgba
+lib/kitty/terminfo/x/xterm-kitty
+man/man1/kitty.1
+share/applications/kitty.desktop
+share/doc/kitty/html/.buildinfo
+share/doc/kitty/html/.nojekyll
+share/doc/kitty/html/_downloads/7cb11c46fdfc0ef332e693a52d23cc9d/diff.conf
+share/doc/kitty/html/_downloads/b7aa12c1e980d68be9bc7488795e5d36/kitty.conf
+share/doc/kitty/html/_images/diff.png
+share/doc/kitty/html/_images/hints_mode.png
+share/doc/kitty/html/_images/panel.png
+share/doc/kitty/html/_images/screenshot.png
+share/doc/kitty/html/_images/unicode.png
+share/doc/kitty/html/_sources/binary.rst.txt
+share/doc/kitty/html/_sources/build.rst.txt
+share/doc/kitty/html/_sources/changelog.rst.txt
+share/doc/kitty/html/_sources/conf.rst.txt
+share/doc/kitty/html/_sources/faq.rst.txt
+share/doc/kitty/html/_sources/graphics-protocol.rst.txt
+share/doc/kitty/html/_sources/index.rst.txt
+share/doc/kitty/html/_sources/invocation.rst.txt
+share/doc/kitty/html/_sources/key-encoding.rst.txt
+share/doc/kitty/html/_sources/kittens/clipboard.rst.txt
+share/doc/kitty/html/_sources/kittens/custom.rst.txt
+share/doc/kitty/html/_sources/kittens/diff.rst.txt
+share/doc/kitty/html/_sources/kittens/hints.rst.txt
+share/doc/kitty/html/_sources/kittens/icat.rst.txt
+share/doc/kitty/html/_sources/kittens/panel.rst.txt
+share/doc/kitty/html/_sources/kittens/unicode-input.rst.txt
+share/doc/kitty/html/_sources/performance.rst.txt
+share/doc/kitty/html/_sources/protocol-extensions.rst.txt
+share/doc/kitty/html/_sources/remote-control.rst.txt
+share/doc/kitty/html/_sources/support.rst.txt
+share/doc/kitty/html/_static/ajax-loader.gif
+share/doc/kitty/html/_static/alabaster.css
+share/doc/kitty/html/_static/basic.css
+share/doc/kitty/html/_static/comment-bright.png
+share/doc/kitty/html/_static/comment-close.png
+share/doc/kitty/html/_static/comment.png
+share/doc/kitty/html/_static/custom.css
+share/doc/kitty/html/_static/doctools.js
+share/doc/kitty/html/_static/documentation_options.js
+share/doc/kitty/html/_static/down-pressed.png
+share/doc/kitty/html/_static/down.png
+share/doc/kitty/html/_static/file.png
+share/doc/kitty/html/_static/jquery-3.2.1.js
+share/doc/kitty/html/_static/jquery.js
+share/doc/kitty/html/_static/kitty.png
+share/doc/kitty/html/_static/minus.png
+share/doc/kitty/html/_static/plus.png
+share/doc/kitty/html/_static/pygments.css
+share/doc/kitty/html/_static/searchtools.js
+share/doc/kitty/html/_static/underscore-1.3.1.js
+share/doc/kitty/html/_static/underscore.js
+share/doc/kitty/html/_static/up-pressed.png
+share/doc/kitty/html/_static/up.png
+share/doc/kitty/html/_static/websupport.js
+share/doc/kitty/html/binary.html
+share/doc/kitty/html/build.html
+share/doc/kitty/html/changelog.html
+share/doc/kitty/html/conf.html
+share/doc/kitty/html/faq.html
+share/doc/kitty/html/genindex.html
+share/doc/kitty/html/graphics-protocol.html
+share/doc/kitty/html/index.html
+share/doc/kitty/html/invocation.html
+share/doc/kitty/html/key-encoding.html
+share/doc/kitty/html/kittens/clipboard.html
+share/doc/kitty/html/kittens/custom.html
+share/doc/kitty/html/kittens/diff.html
+share/doc/kitty/html/kittens/hints.html
+share/doc/kitty/html/kittens/icat.html
+share/doc/kitty/html/kittens/panel.html
+share/doc/kitty/html/kittens/unicode-input.html
+share/doc/kitty/html/objects.inv
+share/doc/kitty/html/performance.html
+share/doc/kitty/html/protocol-extensions.html
+share/doc/kitty/html/remote-control.html
+share/doc/kitty/html/search.html
+share/doc/kitty/html/searchindex.js
+share/doc/kitty/html/support.html
+share/icons/hicolor/256x256/apps/kitty.png
+share/terminfo/x/xterm-kitty
Index: pkgsrc/x11/kitty/distinfo
diff -u /dev/null pkgsrc/x11/kitty/distinfo:1.1
--- /dev/null   Wed Nov 28 18:48:58 2018
+++ pkgsrc/x11/kitty/distinfo   Wed Nov 28 18:48:58 2018
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2018/11/28 18:48:58 nia Exp $
+
+SHA1 (kitty-0.12.3.tar.gz) = 09e8eeed197148f4128e6b71df1ec9fd31794c28
+RMD160 (kitty-0.12.3.tar.gz) = e5c8aee097f9a55e26cc41146e74297f62e66801
+SHA512 (kitty-0.12.3.tar.gz) = a70c20f5d71db8ecd63c23f593abb156953a07493a7ca8a111ae77f6682dc252fb036a4fe99f19764fc1d339af5afad6cb7072a250160bb663cac1a49684d36b
+Size (kitty-0.12.3.tar.gz) = 3485747 bytes
+SHA1 (patch-kitty_threading.h) = d6bf2285a2100479c44de2f9aa842b910ca8ba6d
+SHA1 (patch-setup.py) = 74efa778a3d8139e7579cb721b57e4e7678bf33a

Index: pkgsrc/x11/kitty/patches/patch-kitty_threading.h
diff -u /dev/null pkgsrc/x11/kitty/patches/patch-kitty_threading.h:1.1
--- /dev/null   Wed Nov 28 18:48:58 2018
+++ pkgsrc/x11/kitty/patches/patch-kitty_threading.h    Wed Nov 28 18:48:58 2018
@@ -0,0 +1,24 @@
+$NetBSD: patch-kitty_threading.h,v 1.1 2018/11/28 18:48:58 nia Exp $
+
+Support NetBSD.
+
+--- kitty/threading.h.orig     2018-09-29 03:45:40.000000000 +0000
++++ kitty/threading.h
+@@ -14,6 +14,8 @@
+ #if defined(__APPLE__)
+ // I cant figure out how to get pthread.h to include this definition on macOS. MACOSX_DEPLOYMENT_TARGET does not work.
+ extern int pthread_setname_np(const char *name);
++#elif defined(__NetBSD__)
++extern int pthread_getname_np(pthread_t, char *, size_t);
+ #elif defined(FREEBSD_SET_NAME)
+ // Function has a different name on FreeBSD
+ void pthread_set_name_np(pthread_t tid, const char *name);
+@@ -27,6 +29,8 @@ set_thread_name(const char *name) {
+     int ret;
+ #if defined(__APPLE__)
+     ret = pthread_setname_np(name);
++#elif defined(__NetBSD__)
++    ret = pthread_setname_np(pthread_self(), name, NULL);
+ #elif defined(FREEBSD_SET_NAME)
+     pthread_set_name_np(pthread_self(), name);
+     ret = 0;
Index: pkgsrc/x11/kitty/patches/patch-setup.py
diff -u /dev/null pkgsrc/x11/kitty/patches/patch-setup.py:1.1
--- /dev/null   Wed Nov 28 18:48:58 2018
+++ pkgsrc/x11/kitty/patches/patch-setup.py     Wed Nov 28 18:48:58 2018
@@ -0,0 +1,91 @@
+$NetBSD: patch-setup.py,v 1.1 2018/11/28 18:48:58 nia Exp $
+
+Use PKGMANDIR and sort out (C|CPP|LD)FLAGS.
+
+--- setup.py.orig      2018-09-29 03:45:40.000000000 +0000
++++ setup.py
+@@ -179,41 +179,14 @@ def init_env(
+         df += ' -Og'
+     optimize = df if debug or sanitize else '-O3'
+     sanitize_args = get_sanitize_args(cc, ccver) if sanitize else set()
+-    cppflags = os.environ.get(
+-        'OVERRIDE_CPPFLAGS', (
+-            '-D{}DEBUG'
+-        ).format(
+-            ('' if debug else 'N'),
+-        )
+-    )
+-    cppflags = shlex.split(cppflags)
+-    cflags = os.environ.get(
+-        'OVERRIDE_CFLAGS', (
+-            '-Wextra -Wno-missing-field-initializers -Wall -std=c99'
+-            ' -pedantic-errors -Werror {} {} -fwrapv {} {} -pipe {} -fvisibility=hidden'
+-        ).format(
+-            optimize,
+-            ' '.join(sanitize_args),
+-            stack_protector,
+-            missing_braces,
+-            '-march=native' if native_optimizations else '',
+-        )
+-    )
+-    cflags = shlex.split(cflags) + shlex.split(
+-        sysconfig.get_config_var('CCSHARED')
+-    )
+-    ldflags = os.environ.get(
+-        'OVERRIDE_LDFLAGS',
+-        '-Wall ' + ' '.join(sanitize_args) + ('' if debug else ' -O3')
+-    )
+-    ldflags = shlex.split(ldflags)
++    cppflags = shlex.split(os.environ.get('CPPFLAGS', ''))
++    cflags = shlex.split(os.environ.get('CFLAGS', ''))
++    cflags.append('-std=c99')
++    cflags.append('-fwrapv')
++    cflags.append('-fvisibility=hidden')
++    cflags.append('-fPIC')
++    ldflags = shlex.split(os.environ.get('LDFLAGS', ''))
+     ldflags.append('-shared')
+-    cppflags += shlex.split(os.environ.get('CPPFLAGS', ''))
+-    cflags += shlex.split(os.environ.get('CFLAGS', ''))
+-    ldflags += shlex.split(os.environ.get('LDFLAGS', ''))
+-    if not debug and not sanitize:
+-        # See https://github.com/google/sanitizers/issues/647
+-        cflags.append('-flto'), ldflags.append('-flto')
+ 
+     if profile:
+         cppflags.append('-DWITH_PROFILER')
+@@ -508,14 +481,12 @@ def build_asan_launcher(args):
+ 
+ 
+ def build_linux_launcher(args, launcher_dir='.', for_bundle=False, sh_launcher=False, for_freeze=False):
+-    cflags = '-Wall -Werror -fpie'.split()
+-    cppflags = []
+-    libs = []
++    cflags = shlex.split(os.environ.get('CFLAGS', ''))
++    cppflags = shlex.split(os.environ.get('CPPFLAGS', ''))
++    libs = shlex.split(os.environ.get('LIBS', ''))
+     if args.profile:
+         cppflags.append('-DWITH_PROFILER'), cflags.append('-g')
+         libs.append('-lprofiler')
+-    else:
+-        cflags.append('-O3')
+     if for_bundle or for_freeze:
+         cppflags.append('-DFOR_BUNDLE')
+         cppflags.append('-DPYVER="{}"'.format(sysconfig.get_python_version()))
+@@ -524,8 +495,6 @@ def build_linux_launcher(args, launcher_
+     cppflags.append('-DLIB_DIR_NAME="{}"'.format(args.libdir_name.strip('/')))
+     pylib = get_python_flags(cflags)
+     exe = 'kitty-profile' if args.profile else 'kitty'
+-    cppflags += shlex.split(os.environ.get('CPPFLAGS', ''))
+-    cflags += shlex.split(os.environ.get('CFLAGS', ''))
+     ldflags = shlex.split(os.environ.get('LDFLAGS', ''))
+     if for_freeze:
+         ldflags += ['-Wl,-rpath,$ORIGIN/../lib']
+@@ -540,7 +509,7 @@ def build_linux_launcher(args, launcher_
+ 
+ 
+ def copy_man_pages(ddir):
+-    mandir = os.path.join(ddir, 'share', 'man')
++    mandir = os.environ['PKGMANDIR']
+     safe_makedirs(mandir)
+     try:
+         shutil.rmtree(os.path.join(mandir, 'man1'))



Home | Main Index | Thread Index | Old Index