1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-05 06:27:37 +00:00

deskutils/ydotool: update to 1.0.1

* Add sdoc build dependency
 * The project does not ship a .so anymore
 * Pet linters

Reported by:	portscout
This commit is contained in:
Fernando Apesteguía 2022-02-17 18:44:57 +01:00
parent a11753c57b
commit 776f54e205
3 changed files with 15 additions and 56 deletions

View File

@ -1,6 +1,5 @@
PORTNAME= ydotool
PORTVERSION= 0.1.8
PORTREVISION= 2
PORTVERSION= 1.0.1
DISTVERSIONPREFIX= v
CATEGORIES= deskutils
@ -10,7 +9,8 @@ COMMENT= Generic command-line automation tool (no X!)
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${LOCALBASE}/include/linux/uinput.h:devel/evdev-proto
BUILD_DEPENDS= ${LOCALBASE}/include/linux/uinput.h:devel/evdev-proto \
scdoc:textproc/scdoc
LIB_DEPENDS= libepoll-shim.so:devel/libepoll-shim \
libuInputPlus.so:devel/libuinputplus \
libboost_program_options.so:devel/boost-libs \
@ -18,17 +18,18 @@ LIB_DEPENDS= libepoll-shim.so:devel/libepoll-shim \
USES= cmake compiler:c++11-lang localbase
CXXFLAGS+= -I${LOCALBASE}/include/libepoll-shim
LDFLAGS+= -L${LOCALBASE}/lib -lepoll-shim
USE_GITHUB= yes
GH_ACCOUNT= ReimuNotMoe
PLIST_FILES= bin/ydotool \
bin/ydotoold \
lib/libydotool.so \
lib/libydotool.so.0
USE_LDCONFIG= yes
CFLAGS+= -I${LOCALBASE}/include/libepoll-shim
LDFLAGS+= -L${LOCALBASE}/lib -lepoll-shim
PLIST_FILES= bin/ydotool \
bin/ydotoold \
lib/systemd/user/ydotool.service \
man/man1/ydotool.1.gz \
man/man8/ydotoold.8.gz
.include <bsd.port.mk>

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1587107905
SHA256 (ReimuNotMoe-ydotool-v0.1.8_GH0.tar.gz) = 6ebc4ede0a11aa7ced6b52637a4a59cc1528b4c5ed54478d38f0248a40b40a07
SIZE (ReimuNotMoe-ydotool-v0.1.8_GH0.tar.gz) = 13362
TIMESTAMP = 1645119887
SHA256 (ReimuNotMoe-ydotool-v1.0.1_GH0.tar.gz) = 02311cdc608f205711b06a95e5fd71093b2294f4920efc526f5e98a2ddab42b8
SIZE (ReimuNotMoe-ydotool-v1.0.1_GH0.tar.gz) = 27219

View File

@ -1,42 +0,0 @@
--- CMakeLists.txt.orig 2019-10-01 17:22:23 UTC
+++ CMakeLists.txt
@@ -47,10 +47,12 @@ set(SOURCE_FILES_CLIENT
add_library(ydotool_library SHARED ${SOURCE_FILES_LIBRARY})
set_target_properties(ydotool_library PROPERTIES OUTPUT_NAME ydotool)
-add_library(ydotool_library_static STATIC ${SOURCE_FILES_LIBRARY})
-set_target_properties(ydotool_library_static PROPERTIES OUTPUT_NAME ydotool)
-target_link_libraries(ydotool_library dl boost_program_options uInputPlus evdevPlus)
-target_link_libraries(ydotool_library_static dl boost_program_options uInputPlus evdevPlus)
+set_target_properties(ydotool_library PROPERTIES VERSION ${PROJECT_VERSION})
+set_target_properties(ydotool_library PROPERTIES VERSION ${CPACK_PACKAGE_VERSION_MAJOR})
+#add_library(ydotool_library_static STATIC ${SOURCE_FILES_LIBRARY})
+#set_target_properties(ydotool_library_static PROPERTIES OUTPUT_NAME ydotool)
+#target_link_libraries(ydotool_library dl boost_program_options uInputPlus evdevPlus)
+#target_link_libraries(ydotool_library_static dl boost_program_options uInputPlus evdevPlus)
link_libraries(-L.)
add_executable(ydotoold ${SOURCE_FILES_DAEMON})
@@ -60,9 +62,9 @@ add_executable(ydotool_client ${SOURCE_FILES_CLIENT})
target_link_libraries(ydotool_client ydotool_library boost_program_options pthread uInputPlus evdevPlus)
set_target_properties(ydotool_client PROPERTIES OUTPUT_NAME ydotool)
-add_executable(ydotool_client_static ${SOURCE_FILES_CLIENT})
-target_link_libraries(ydotool_client_static ydotool_library_static boost_program_options pthread uInputPlus evdevPlus -static)
-set_target_properties(ydotool_client_static PROPERTIES OUTPUT_NAME ydotool_static)
+#add_executable(ydotool_client_static ${SOURCE_FILES_CLIENT})
+#target_link_libraries(ydotool_client_static ydotool_library_static boost_program_options pthread uInputPlus evdevPlus -static)
+#set_target_properties(ydotool_client_static PROPERTIES OUTPUT_NAME ydotool_static)
#add_library(mousemove SHARED Tools/MouseMove/MouseMove.hpp Tools/MouseMove/MouseMove.cpp)
#target_link_libraries(mousemove ydotool_library boost_program_options uInputPlus evdevPlus)
@@ -80,6 +82,6 @@ set_target_properties(ydotool_client_static PROPERTIES
#target_link_libraries(recorder ydotool_library boost_program_options uInputPlus evdevPlus)
-install(TARGETS ydotool_library ydotool_library_static DESTINATION lib)
+install(TARGETS ydotool_library DESTINATION lib)
#install(TARGETS mousemove key click type recorder DESTINATION lib/ydotool)
-install(TARGETS ydotoold ydotool_client DESTINATION bin)
\ No newline at end of file
+install(TARGETS ydotoold ydotool_client DESTINATION bin)