Package Details: ruby-colored 1.2-5

Git Clone URL: https://aur.archlinux.org/ruby-colored.git (read-only, click to copy)
Package Base: ruby-colored
Description: Ruby library for colorizing text output in your terminal
Upstream URL: http://github.com/defunkt/colored
Licenses: MIT
Submitter: oliv
Maintainer: farwayer
Last Packager: farwayer
Votes: 12
Popularity: 0.000000
First Submitted: 2011-04-01 11:12
Last Updated: 2019-03-13 16:06

Dependencies (2)

Required by (3)

Sources (1)

Latest Comments

1 2 Next › Last »

bastelfreak commented on 2020-01-05 13:43

Hi, I updated the PKGBUILD to properly build from source, including tests:

# Mainteiner: farwayer <farwayer@gmail.com>
# Contributor: Tim Meusel <tim@bastelfreak.de>

_gemname='colored'
pkgname="ruby-${_gemname}"
pkgver=1.2
pkgrel=1
pkgdesc='Ruby library to create colorized terminal output'
arch=('any')
url='https://github.com/threedaymonk/text'
license=('MIT')
makedepends=('ruby-rdoc' 'ruby-rake' 'ruby-test-unit')
depends=('ruby')
source=("https://github.com/defunkt/colored/archive/v${pkgver}/${pkgname}-v${pkgver}.tar.gz" 'LICENSE')
options=("!emptydirs")
sha512sums=('3676d7f84abfcf8e518181449d562559f5d1075ed2f7fbf432e463b7ca10550fb11206b12622b253e0115305ec1f3eabfd8cea9951a5552fdd09073c5ac7c2fd'
            'effdb61ffa84c5fe43da4427ce7dd7ebe2427b759a2bc082158c5cd97eb776425d448324cd0e1d0416438bdc16ed9777a8941d7ffe4adfc037940f741d7ed049')

prepare() {
  cd "${_gemname}-${pkgver}"
  # the has_rdoc option is deprecated and just throws a warning during the build
  # Also we need the license entry in the gemspec, so we simply replace the unneeded option with the required one
  sed --in-place 's/s.has_rdoc.*/  s.license = "MIT"/' "${_gemname}.gemspec"
  # The license file is missing the releast and got later added to master
  cp "${srcdir}/LICENSE" .

  # make the testoutput more readable
  sed --in-place 's/false/true/' Rakefile

  # Don't fail if the `mg` gem is missing.
  # It's only required to build releases for rubygems.org
  sed --in-place '/abort/d' Rakefile
}

build() {
  cd "${_gemname}-${pkgver}"
  gem build "${_gemname}.gemspec"
}

check() {
  cd "${_gemname}-${pkgver}"
  rake test
}

package() {
  cd "${_gemname}-${pkgver}"
  local _gemdir="$(gem env gemdir)"
  gem install --verbose --ignore-dependencies --no-user-install --install-dir "${pkgdir}/${_gemdir}" --bindir "${pkgdir}/usr/bin" "${_gemname}-${pkgver}.gem"

  install -Dm 644 "${srcdir}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"

  rm -rf "${pkgdir}/${_gemdir}/cache"
}

# vim: ts=2 sw=2 et:

LICENSE:

Copyright (c) 2010 Chris Wanstrath

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Software), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE

farwayer commented on 2018-02-20 20:32

Updated. @MadPhysicist ty for maintaining.

MadPhysicist commented on 2018-02-20 17:07

I've orphaned the package. Sorry for not looking into this for such a long time.

jerebear commented on 2018-02-04 16:18

Consider adding --no-document to the gem install line. Alternately, add ruby-rdoc as a build dependency. This fixes the following error:

ERROR:  While executing gem ... (Gem::DocumentError)
    RDoc is not installed: cannot load such file -- rdoc/rdoc

Matalonder commented on 2018-01-18 16:21

PKGBUILD has such line: local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"

This should be such: local _gemdir="$(ruby -e'puts Gem.default_dir')"

At least on my system won't build properly otherwise.

MadPhysicist commented on 2015-08-04 19:57

Fixed. Thanks for noticing. And in general, thanks for proofing my PKGBUILDS. I am still pretty new to the AUR, so it really helps to have some input.

Freso commented on 2015-08-04 19:52

Minor thing, but you've mangled up oliv's last name with your commits. Looks like you didn't open it as a UTF-8 file but proceeded to save it as one. "é" should be "é".

Freso commented on 2015-08-04 14:48

Imported previous Git history. Disowning again.

Freso commented on 2015-07-31 08:45

It will get uploaded to AUR4 once I sort out the Git history. Hopefully today, but before week's end at the latest. Use PKGBUILDs from AUR3 for now.

MadPhysicist commented on 2015-07-29 13:37

Please move this package to AUR4 or orphan it. I have already created an updated PKGBUILD, so if you would like to orphan it, I would gladly take over.