mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 04:53:07 -04:00
app-misc/*: simple name change and update
Signed-off-by: Quincy Fleming <quincyf467@protonmail.com>
This commit is contained in:
2
app-misc/clipboard/Manifest
Normal file
2
app-misc/clipboard/Manifest
Normal file
@@ -0,0 +1,2 @@
|
||||
DIST clipboard-0.8.0.tar.gz 29340849 BLAKE2B 91635f16eee4c7fec588f3ceae34571e815680a34553ecf352f67b77c0749ad4c4ee848713d1b65d7e0a4dee0a2a597b29f59abab9082400dc02acba00ab7326 SHA512 b600e8425e48625ed2ad068500e381b1a0d40eacce92e05d45af21c1f5517dcac516287fbcdc1c03fe87cd5bdd5933258ffccf31460a03dfd7e306dc22442c63
|
||||
DIST clipboard-0.8.1.tar.gz 31510477 BLAKE2B 25243b59af15ef692f466fcb2b6c35cdd05e2ebaee95ddf2b1c6a555c2225d2273c4d0cc7785fb2da8cfdf8a5afeac968a48cc191c45e1df6966a8dfcfccff0b SHA512 b4c2c857cc734c6470990348c67f31b706cb61b116794135d5e60073d8e5389d4c93ee410e47a9c07998bd3a6578013879ee5f997eda9613c864ea312b54da2e
|
||||
49
app-misc/clipboard/clipboard-0.8.0.ebuild
Normal file
49
app-misc/clipboard/clipboard-0.8.0.ebuild
Normal file
@@ -0,0 +1,49 @@
|
||||
# Copyright 2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake
|
||||
|
||||
MY_PN="Clipboard"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
DESCRIPTION="Cut, copy, and paste anything in your terminal"
|
||||
HOMEPAGE="https://getclipboard.app/ https://github.com/Slackadays/Clipboard"
|
||||
SRC_URI="https://github.com/Slackadays/${MY_PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="X wayland lto debug"
|
||||
|
||||
RDEPEND="X? ( x11-libs/libX11 )
|
||||
wayland? (
|
||||
dev-libs/wayland-protocols
|
||||
dev-libs/wayland
|
||||
)
|
||||
"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/disable-git-and-lto.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
if ! use wayland; then
|
||||
sed -i '/pkg_check_modules(WAYLAND_CLIENT wayland-client wayland-protocols)/d' CMakeLists.txt || die
|
||||
fi
|
||||
|
||||
if ! use debug; then
|
||||
eapply "${FILESDIR}/disable-debug-info.patch"
|
||||
fi
|
||||
cmake_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
"-DCMAKE_INSTALL_LIBDIR=$(get_libdir)"
|
||||
"-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=$(usex lto TRUE FALSE)"
|
||||
"-DCMAKE_DISABLE_FIND_PACKAGE_X11=$(usex X OFF ON)"
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
49
app-misc/clipboard/clipboard-0.8.1.ebuild
Normal file
49
app-misc/clipboard/clipboard-0.8.1.ebuild
Normal file
@@ -0,0 +1,49 @@
|
||||
# Copyright 2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake
|
||||
|
||||
MY_PN="Clipboard"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
DESCRIPTION="Cut, copy, and paste anything in your terminal"
|
||||
HOMEPAGE="https://getclipboard.app/ https://github.com/Slackadays/Clipboard"
|
||||
SRC_URI="https://github.com/Slackadays/${MY_PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="X wayland lto debug"
|
||||
|
||||
RDEPEND="X? ( x11-libs/libX11 )
|
||||
wayland? (
|
||||
dev-libs/wayland-protocols
|
||||
dev-libs/wayland
|
||||
)
|
||||
"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/disable-git-and-lto.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
if ! use wayland; then
|
||||
sed -i '/pkg_check_modules(WAYLAND_CLIENT wayland-client wayland-protocols)/d' CMakeLists.txt || die
|
||||
fi
|
||||
|
||||
if ! use debug; then
|
||||
eapply "${FILESDIR}/disable-debug-info.patch"
|
||||
fi
|
||||
cmake_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
"-DCMAKE_INSTALL_LIBDIR=$(get_libdir)"
|
||||
"-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=$(usex lto TRUE FALSE)"
|
||||
"-DCMAKE_DISABLE_FIND_PACKAGE_X11=$(usex X OFF ON)"
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
19
app-misc/clipboard/files/disable-debug-info.patch
Normal file
19
app-misc/clipboard/files/disable-debug-info.patch
Normal file
@@ -0,0 +1,19 @@
|
||||
#Created by Quincy Fleming.
|
||||
#Disables debug info without using flag NDEBUG as unless forced it will be ignored in favor of the user's specified compiler flags
|
||||
--- a/src/gui/include/all/clipboard/logging.hpp
|
||||
+++ b/src/gui/include/all/clipboard/logging.hpp
|
||||
@@ -17,7 +17,6 @@
|
||||
#include <iostream>
|
||||
#include <streambuf>
|
||||
|
||||
-#if defined(NDEBUG)
|
||||
class NullBuffer : public std::streambuf {
|
||||
public:
|
||||
int overflow(int c) override { return c; }
|
||||
@@ -26,6 +25,3 @@
|
||||
static NullBuffer nullBuffer;
|
||||
static std::ostream nullStream(&nullBuffer);
|
||||
static std::ostream& debugStream = nullStream;
|
||||
-#else
|
||||
-static std::ostream& debugStream = std::cerr;
|
||||
-#endif
|
||||
79
app-misc/clipboard/files/disable-git-and-lto.patch
Normal file
79
app-misc/clipboard/files/disable-git-and-lto.patch
Normal file
@@ -0,0 +1,79 @@
|
||||
#Created by Quincy Fleming
|
||||
#Disables git program as it will just result in fatal error during build (won't stop the build though. just annoying)
|
||||
#Also, this removes enabling of LTO by default and allows the user to choose wether or not they want LTO support via USE flag
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -11,22 +11,6 @@
|
||||
set(X11WL ON)
|
||||
endif()
|
||||
|
||||
-execute_process( # save the current branch to GIT_BRANCH
|
||||
- COMMAND git rev-parse --abbrev-ref HEAD
|
||||
- WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||
- OUTPUT_VARIABLE GIT_BRANCH
|
||||
- OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
-)
|
||||
-
|
||||
-execute_process( # save the current commit hash to GIT_COMMIT_HASH
|
||||
- COMMAND git log -1 --format=%h
|
||||
- WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||
- OUTPUT_VARIABLE GIT_COMMIT_HASH
|
||||
- OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
-)
|
||||
-
|
||||
-add_definitions(-DGIT_COMMIT_HASH="${GIT_COMMIT_HASH}")
|
||||
-add_definitions(-DGIT_BRANCH="${GIT_BRANCH}")
|
||||
add_definitions(-DCLIPBOARD_VERSION="${PROJECT_VERSION}")
|
||||
|
||||
if (MSVC)
|
||||
@@ -84,17 +68,6 @@
|
||||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_MINSIZEREL ${LIB_LOCATION})
|
||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_MINSIZEREL ${BIN_LOCATION})
|
||||
|
||||
-function(enable_lto this_target)
|
||||
-include(CheckIPOSupported)
|
||||
-check_ipo_supported(RESULT lto_supported)
|
||||
-if(lto_supported AND NOT NO_LTO)
|
||||
- set_property(TARGET ${this_target} PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE)
|
||||
- if(CMAKE_COMPILER_IS_GNUCXX)
|
||||
- list(APPEND CMAKE_CXX_COMPILE_OPTIONS_IPO "-flto=auto") # set the thread amount to what is available on the CPU
|
||||
- endif()
|
||||
-endif()
|
||||
-endfunction()
|
||||
-
|
||||
add_subdirectory(src/gui)
|
||||
|
||||
find_package(X11)
|
||||
--- a/src/cb/CMakeLists.txt
|
||||
+++ b/src/cb/CMakeLists.txt
|
||||
@@ -5,8 +5,6 @@
|
||||
src/themes.cpp
|
||||
)
|
||||
|
||||
-enable_lto(cb)
|
||||
-
|
||||
target_link_libraries(cb gui)
|
||||
|
||||
if(WIN32)
|
||||
--- a/src/cbwayland/CMakeLists.txt
|
||||
+++ b/src/cbwayland/CMakeLists.txt
|
||||
@@ -60,8 +60,6 @@
|
||||
)
|
||||
add_dependencies(cbwayland cbwayland_generatedheaders)
|
||||
|
||||
-enable_lto(cbwayland)
|
||||
-
|
||||
target_link_libraries(cbwayland
|
||||
${WAYLAND_CLIENT_LIBRARIES}
|
||||
gui
|
||||
--- a/src/cbx11/CMakeLists.txt
|
||||
+++ b/src/cbx11/CMakeLists.txt
|
||||
@@ -7,8 +7,6 @@
|
||||
gui
|
||||
)
|
||||
|
||||
-enable_lto(cbx11)
|
||||
-
|
||||
target_include_directories(cbx11 PRIVATE ${X11_INCLUDE_DIR})
|
||||
|
||||
install(TARGETS cbx11 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
23
app-misc/clipboard/metadata.xml
Normal file
23
app-misc/clipboard/metadata.xml
Normal file
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>quincyf467@protonmail.com</email>
|
||||
<name>Quincy Fleming</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="lto">Enable Link Time Optimization (LTO)</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="github">Slackadays/Clipboard</remote-id>
|
||||
<doc lang="en">https://github.com/Slackadays/Clipboard/blob/main/README.md</doc>
|
||||
<bugs-to>https://github.com/Slackadays/Clipboard/issues</bugs-to>
|
||||
</upstream>
|
||||
<longdescription lang="en">
|
||||
CB (or Clipboard) is a ridonkulously easy-to-use data remembrance tool bursting with oodles of useful features and absolutely gorgeous eye candy.
|
||||
|
||||
That's underselling it a bit.
|
||||
|
||||
This is your one-way golden ticket to saving time and effort anytime and anywhere. Have a telepath with an infallible memory always by your side. Feel the sheer power flowing through your commanding body as you cut, copy, paste, add, remove, load, and make note of anything that dares lay in your terminal at the mere press of a button. In no time, you'll be reclined back on a sunny beach in the Caribbean sipping a succulent papaya smoothie with the love of your life all while you watch dolphins leaping from the shimmering waves of the soft blue water. Ok, so maybe that last part won't actually happen, but you get the idea
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user