diff options
author | Florian Franzmann | 2021-10-30 00:12:01 +0200 |
---|---|---|
committer | Florian Franzmann | 2021-10-30 00:12:07 +0200 |
commit | 3d24a3b8089ee66f46debc96f6a76c69099fb5df (patch) | |
tree | 2fde8d7d8e3e949789ad24692084be8d5aa319f1 /python-pypi | |
parent | 0ad65629f55ab9a4babf7b161e22ab8b1d611695 (diff) |
python-pypi/python-guardonce: new spell, convert C++ include guards to pragmas
Diffstat (limited to 'python-pypi')
-rwxr-xr-x | python-pypi/python-guardonce/DEPENDS | 1 | ||||
-rwxr-xr-x | python-pypi/python-guardonce/DETAILS | 21 | ||||
-rw-r--r-- | python-pypi/python-guardonce/HISTORY | 3 |
3 files changed, 25 insertions, 0 deletions
diff --git a/python-pypi/python-guardonce/DEPENDS b/python-pypi/python-guardonce/DEPENDS new file mode 100755 index 0000000000..053d106105 --- /dev/null +++ b/python-pypi/python-guardonce/DEPENDS @@ -0,0 +1 @@ +depends python3 diff --git a/python-pypi/python-guardonce/DETAILS b/python-pypi/python-guardonce/DETAILS new file mode 100755 index 0000000000..f4b91d63bd --- /dev/null +++ b/python-pypi/python-guardonce/DETAILS @@ -0,0 +1,21 @@ + SPELL=python-guardonce + VERSION=2.4.0 + SOURCE="$SPELL-$VERSION.tar.gz" + SOURCE_URL[0]=https://github.com/cgmb/guardonce/archive/refs/tags/v${VERSION}.tar.gz + SOURCE_HASH=sha512:aa049b79ff7a97f57b941da299dec37ee2651bf797bd4391d0be0cad9e0f815ad62db73e06c7ec5bfa41197005a42f544aedbfca7b1dfa81f33531ee62a7cf71 +SOURCE_DIRECTORY="${BUILD_DIRECTORY}/guardonce-$VERSION" + WEB_SITE="https://github.com/cgmb/guardonce" + LICENSE[0]=MIT + ENTERED=20211029 + SHORT="utilities for converting from C/C++ include guards to #pragma once and back again" +cat << EOF +Include guards suck. They're tiring to type and tedious to update. Worse, +the task of updating boilerplate leaves room for copy/paste errors, or other +mistakes. #pragma once is simpler and less error prone. That's why you should +convert to #pragma once. + +Alas, though #pragma once is available on all the most commonly used compilers, +it's not available on every compiler. Perhaps one day you'll add support +for a platform with a barebones compiler with no support for #pragma once +and you'll have to convert back. That's ok. It's easy! +EOF diff --git a/python-pypi/python-guardonce/HISTORY b/python-pypi/python-guardonce/HISTORY new file mode 100644 index 0000000000..a1aabb48dc --- /dev/null +++ b/python-pypi/python-guardonce/HISTORY @@ -0,0 +1,3 @@ +2021-10-29 Florian Franzmann <siflfran@hawo.stw.uni-erlangen.de> + * DEPENDS, DETAILS: spell created + |