void-linux / void-linux/void-packages

Package request: ctemplate

Open
#23,387 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

request
Dominant language
Shell
Stars
3.4k
Forks
2.8k
Avg merge
2d 5h
Merged PRs (30d)
299

Description

Website: https://github.com/OlafvdSpek/ctemplate
Source: https://github.com/OlafvdSpek/ctemplate/archive/ctemplate-2.4.tar.gz

I am copying below a package file I have successfully tried it on my PowerBook5,4 (Void 5.4.41_1 ppc PowerMac uptodate FFF).

# Template file for 'ctemplate'
pkgname=ctemplate
version=2.4
revision=1
archs="i686* x86_64* ppc"
wrksrc="ctemplate-ctemplate-${version}"
build_style=gnu-configure
hostmakedepends="automake libtool pkg-config python3"
short_desc="Simple but powerful template language for C++"
maintainer="Fabrice Colin <fabrice.colin@gmail.com>"
license="BSD-3-Clause"
homepage="https://github.com/OlafvdSpek/ctemplate"
distfiles="https://github.com/OlafvdSpek/ctemplate/archive/${pkgname}-${version}.tar.gz"
checksum=ccc4105b3dc51c82b0f194499979be22d5a14504f741115be155bd991ee93cfa

# Manually declare shlibs used by the subpkgs.
shlib_provides="libctemplate.so libctemplate_nothreads.so"

pre_configure() {
        autoreconf -fi
}

post_install() {
        vlicense COPYING
}

ctemplate-devel_package() {
        depends="${sourcepkg}>=${version}_${revision}"
        short_desc+=" - development files"
        pkg_install() {
                vmove usr/bin/make_tpl_varnames_h
                vmove usr/bin/template-converter
                vmove usr/bin/diff_tpl_auto_escape
                vmove usr/include
                vmove usr/lib/pkgconfig
                vmove "usr/lib/*.a"
                vmove "usr/lib/*.la"
                vmove "usr/lib/*.so"
        }
}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the supplied ctemplate package template and verify the referenced ctemplate-2.4 source archive and checksum. Add the package recipe using the shown build, license, shared-library, and development-package details, then confirm that ctemplate builds successfully for the listed architecture.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, shell
Domain
build-system
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.