On 30/01/2025 17:35, Michael Cook via Cygwin-apps wrote:
Sure, attached.

It's very similar to the old astyle-2.06-1.cygport:


see attached, I rewrote following latest practice and to use cmake.

no need of source patch and to use version on file name.

Let me know if something is not clear.

Regards
Marco
inherit cmake
NAME="astyle"
VERSION=3.6.6
RELEASE=1

LICENSE="MIT"
PKG_HINTS=setup
CATEGORY="Devel Utils"
SUMMARY="Artistic Style is a reindenter and reformatter of C, C++, C# and Java 
source code"
DESCRIPTION="Artistic Style is a reindenter and reformatter of C, C++, C# and 
Java source code"
HOMEPAGE="https://astyle.sourceforge.net/";
SRC_URI="https://gitlab.com/saalen/astyle/-/archive/${PV}/${P}.tar.bz2";
SRC_DIR="${P}"

BUILD_REQUIRES="cmake gcc-g++"

src_compile() {
    cd ${B}
        cygcmake
    cygmake
}

src_install() {
        cd ${B}
        cyginstall
        doman ${S}/AStyle/man/astyle.1
        dodoc ${S}/AStyle/doc/*
        dodoc AStyle/LICENSE.md
        docinto file
        dodoc ${S}/AStyle/file/*
}

Reply via email to