diff --git a/haiku-apps/pecorename/patches/pecorename-1.5.patch b/haiku-apps/pecorename/patches/pecorename-1.5.patch new file mode 100644 index 000000000..4a99f86f1 --- /dev/null +++ b/haiku-apps/pecorename/patches/pecorename-1.5.patch @@ -0,0 +1,63 @@ +From 94174525029023155f8870495b23765da7b6f754 Mon Sep 17 00:00:00 2001 +From: Sergei Reznikov +Date: Sat, 25 Oct 2014 12:33:31 +0400 +Subject: [PATCH] Fix paths in Makefiles + +--- + trunk/Main/Makefile | 18 ++++++++++++++---- + trunk/Tracker Add-On/Makefile | 8 +++++++- + 2 files changed, 21 insertions(+), 5 deletions(-) + +diff --git a/trunk/Main/Makefile b/trunk/Main/Makefile +index 52564e9..76bd5dd 100644 +--- a/trunk/Main/Makefile ++++ b/trunk/Main/Makefile +@@ -1,10 +1,14 @@ + NAME= ../PecoRename + TYPE= APP +-SRCS= main.cpp constants.cpp functions.cpp BottomView.cpp Fenster.cpp FileListItem.cpp FileListView.cpp FileView.cpp LiveTextControl.cpp MainView.cpp Panel.cpp PecoApp.cpp ScriptFilePanel.cpp TopView.cpp Renamer.cpp Renamer_SearchReplace.cpp Renamer_InsertReplace.cpp Renamer_Remove.cpp Renamer_Numbering.cpp Renamer_Extension.cpp Renamer_UpperLower.cpp About.cpp ++SRCS= main.cpp constants.cpp functions.cpp BottomView.cpp Fenster.cpp \ ++ FileListItem.cpp FileListView.cpp FileView.cpp LiveTextControl.cpp \ ++ MainView.cpp Panel.cpp PecoApp.cpp ScriptFilePanel.cpp TopView.cpp \ ++ Renamer.cpp Renamer_SearchReplace.cpp Renamer_InsertReplace.cpp \ ++ Renamer_Remove.cpp Renamer_Numbering.cpp Renamer_Extension.cpp \ ++ Renamer_UpperLower.cpp About.cpp + RSRCS= About.rsrc FileInfo.rsrc +-LIBS= /boot/develop/lib/x86/libbe.so /boot/develop/lib/x86/libstdc++.r4.so /boot/develop/lib/x86/libtextencoding.so /boot/develop/lib/x86/libtracker.so ++LIBS=be textencoding tracker $(STDCPPLIBS) + LIBPATHS= +-SYSTEM_INCLUDE_PATHS= /boot/develop/headers/be /boot/develop/headers/cpp /boot/develop/headers/posix /boot/develop/lib /boot/beos/system/lib + LOCAL_INCLUDE_PATHS= + OPTIMIZE=FULL + # specify any preprocessor symbols to be defined. The symbols will not +@@ -24,4 +28,10 @@ COMPILER_FLAGS=-Woverloaded-virtual -funsigned-bitfields -Wwrite-strings + LINKER_FLAGS= + + ## include the makefile-engine +-include $(BUILDHOME)/etc/makefile-engine ++DEVEL_DIRECTORY := \ ++ $(shell if findpaths > /dev/null 2>&1 ; then \ ++ findpaths -r "makefile_engine" B_FIND_PATH_DEVELOP_DIRECTORY ; \ ++ else \ ++ finddir B_SYSTEM_DEVELOP_DIRECTORY ; \ ++ fi) ++include $(DEVEL_DIRECTORY)/etc/makefile-engine +diff --git a/trunk/Tracker Add-On/Makefile b/trunk/Tracker Add-On/Makefile +index 81e2a9a..8b41dfe 100644 +--- a/trunk/Tracker Add-On/Makefile ++++ b/trunk/Tracker Add-On/Makefile +@@ -14,4 +14,10 @@ COMPILER_FLAGS=-Woverloaded-virtual -funsigned-bitfields -Wwrite-strings + LINKER_FLAGS= + + ## include the makefile-engine +-include $(BUILDHOME)/etc/makefile-engine ++DEVEL_DIRECTORY := \ ++ $(shell if findpaths > /dev/null 2>&1 ; then \ ++ findpaths -r "makefile_engine" B_FIND_PATH_DEVELOP_DIRECTORY ; \ ++ else \ ++ finddir B_SYSTEM_DEVELOP_DIRECTORY ; \ ++ fi) ++include $(DEVEL_DIRECTORY)/etc/makefile-engine +-- +1.8.3.4 + diff --git a/haiku-apps/pecorename/pecorename-1.5.recipe b/haiku-apps/pecorename/pecorename-1.5.recipe new file mode 100644 index 000000000..39d3cce88 --- /dev/null +++ b/haiku-apps/pecorename/pecorename-1.5.recipe @@ -0,0 +1,59 @@ +SUMMARY="A powerfull renaming utility" +DESCRIPTION=" +PecoRename is a powerfull renaming utility, which allows you to rename many \ +files according to a preset pattern. + + * You can rename your files in many different ways: + * Number your files in order + * Search and replace + * Delete characters + * Make uppercase/lowercase + * Add the suitable file extension according to the file type + * Insert, append or replace text... + +PecoRename gives you an easy to use interface with a powerfull tool behind it.\ +The changes can be previewed in realtime. +And - of course - all functions support special chars (like ä, â...). + +Whenever you have to rename some or many files the same way, this is YOUR \ +program! + " +HOMEPAGE="https://github.com/HaikuArchives/PecoRename" +SRC_URI="git://github.com/HaikuArchives/PecoRename#cdca0ce831ab87b209758bcdd4edc4ea66efd660" +COPYRIGHT="Copyright 2008 Werner Freytag" +LICENSE="MIT" +REVISION="1" + +ARCHITECTURES="x86_gcc2 !x86 !x86_64" +SECONDARY_ARCHITECTURES="x86_gcc2 !x86" + +PROVIDES=" + pecorename = $portVersion + " +REQUIRES="" + +BUILD_REQUIRES="haiku >= $haikuVersion" + +BUILD_PREREQUIRES=" + haiku${secondaryArchSuffix}_devel >= $haikuVersion + makefile_engine + cmd:gcc$secondaryArchSuffix + cmd:make + cmd:mkdepend + " + +PATCHES="pecorename-$portVersion.patch" + +BUILD() +{ + cd trunk/Main + make $jobArgs OBJ_DIR=objects +} + +INSTALL() +{ + mkdir -p $appsDir + cp trunk/Main/PecoRename $appsDir/PecoRename + + addAppDeskbarSymlink $appsDir/PecoRename +}