dos2unix: new version 7.4.2 and enforce link with gettext (#26371)

This commit is contained in:
Olivier Cessenat 2021-09-30 12:04:32 +02:00 committed by GitHub
parent b96d836a72
commit 9e70fc630e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,9 +12,20 @@ class Dos2unix(MakefilePackage):
homepage = "https://waterlan.home.xs4all.nl/dos2unix.html"
url = "https://waterlan.home.xs4all.nl/dos2unix/dos2unix-7.3.4.tar.gz"
maintainers = ['cessenat']
version('7.4.2', sha256='6035c58df6ea2832e868b599dfa0d60ad41ca3ecc8aa27822c4b7a9789d3ae01')
version('7.3.4', sha256='8ccda7bbc5a2f903dafd95900abb5bf5e77a769b572ef25150fde4056c5f30c5')
depends_on('gettext')
@property
def build_targets(self):
targets = [
'LDFLAGS_USER=-L{0} {1}'.format(
self.spec['gettext'].prefix.lib, self.spec['gettext'].libs.link_flags),
]
return targets
def install(self, spec, prefix):
make('prefix={0}'.format(prefix), 'install')