From 57c8d141f817528f54d71730cd407d1c8d68df4e Mon Sep 17 00:00:00 2001 From: Duncaen Date: Sat, 8 Oct 2022 18:48:11 +0200 Subject: [PATCH] codelite: fix building codelite-ctags from source --- srcpkgs/codelite/patches/install-ctags.patch | 11 +++++++++++ srcpkgs/codelite/template | 16 +++++++++++++--- 2 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 srcpkgs/codelite/patches/install-ctags.patch diff --git a/srcpkgs/codelite/patches/install-ctags.patch b/srcpkgs/codelite/patches/install-ctags.patch new file mode 100644 index 00000000000..8ef1746225e --- /dev/null +++ b/srcpkgs/codelite/patches/install-ctags.patch @@ -0,0 +1,11 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -744,3 +744,8 @@ + ## Scan for user plugins + CL_SCAN_FOR_PLUGINS() + endif() # NOT WXC_APP ++ ++if (UNIX) ++ set_target_properties(ctags PROPERTIES OUTPUT_NAME "codelite-ctags") ++ install(TARGETS ctags DESTINATION ${CL_PREFIX}/bin PERMISSIONS ${EXE_PERM}) ++endif() diff --git a/srcpkgs/codelite/template b/srcpkgs/codelite/template index 645982538f9..bdd872583a7 100644 --- a/srcpkgs/codelite/template +++ b/srcpkgs/codelite/template @@ -1,7 +1,9 @@ # Template file for 'codelite' pkgname=codelite version=16.0.0 -revision=1 +revision=2 +create_wrksrc=yes +build_wrksrc="codelite-${version}" build_style=cmake build_helper=cmake-wxWidgets-gtk3 configure_args="-DWITH_PCH=0 -DWITH_WX_CONFIG=wx-config-gtk3 @@ -15,9 +17,12 @@ short_desc="Open-source, cross platform IDE for the C/C++ programming languages" maintainer="Orphaned " license="GPL-2.0-or-later" homepage="http://www.codelite.org" -distfiles="https://github.com/eranif/${pkgname}/archive/${version}.tar.gz" -checksum=fb707b98b2f56ae0791c7cb341c6a0240ff26a785dae31f7dcd1038956737957 +distfiles="https://github.com/eranif/${pkgname}/archive/${version}.tar.gz + https://github.com/eranif/ctags/archive/52c724d1132d78ea44894bfe2eaca44f38a9bd85.tar.gz" +checksum="fb707b98b2f56ae0791c7cb341c6a0240ff26a785dae31f7dcd1038956737957 + 7925adbe15cd240c7e65cf54e8752e7f5dbb24622342b84d151de97d2d75acea" python_version=3 +patch_args="-Np1 -d ${build_wrksrc}" build_options="hunspell lldb sftp" build_options_default="hunspell sftp" @@ -28,3 +33,8 @@ desc_option_sftp="Enable Workspace Mirroring plugin" case "$XBPS_TARGET_MACHINE" in x86_64*|ppc64le*|aarch64*|arm*) build_options_default+=" lldb";; esac + +post_extract() { + rm -rf ${build_wrksrc}/universal-ctags + ln -rsf ctags-52c724d1132d78ea44894bfe2eaca44f38a9bd85 ${build_wrksrc}/universal-ctags +}