From e7bac8f78d456be81aa49b026bd1354eb70d8b04 Mon Sep 17 00:00:00 2001 From: Marc Date: Wed, 12 Mar 2025 20:05:05 +0700 Subject: [PATCH] Update LibraryBase.php rectify typo --- src/SPC/builder/LibraryBase.php | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/src/SPC/builder/LibraryBase.php b/src/SPC/builder/LibraryBase.php index a66b9e6b..ec5c7b3b 100644 --- a/src/SPC/builder/LibraryBase.php +++ b/src/SPC/builder/LibraryBase.php @@ -261,14 +261,6 @@ abstract class LibraryBase return LIB_STATUS_ALREADY; } - /** - * Patch before build, overwrite this and return true to patch libs. - */ - public function patchBeforeBuild(): bool - { - return false; - } - public function validate(): void { // do nothing, just throw wrong usage exception if not valid @@ -294,10 +286,21 @@ abstract class LibraryBase // do something before pack, default do nothing. overwrite this method to do something (e.g. modify pkg-config file) } + /** + * Patch code before build + * If you need to patch some code, overwrite this + * return true if you patched something, false if not + */ + public function patchBeforeBuild(): bool + { + return false; + } + + /** * Patch code before ./buildconf * If you need to patch some code, overwrite this - * return true if you patched something, false if notand return true + * return true if you patched something, false if not */ public function patchBeforeBuildconf(): bool {